aboutsummaryrefslogtreecommitdiff
path: root/src/nad_cvt.c
AgeCommit message (Collapse)Author
2018-05-15IWYU: Partial PJ_natearth.c..rtodms.cKurt Schwehr
2018-04-16Collect custom C99 math functions in proj_math.hKristian Evers
We are relying more and more on C99 math functions. On C89 systems where those functions are not available our own custom versions of those functions are used instead. So far these has been spread across the code base. This commit gathers them in the same file and introduces the proj_math.h header. The build system checks for C99 math functions. If not found the proj_math.h header make sure that C99 functions are defined as their pj_ equivalent. Ideally proj_math.h is included instead of math.h. This removes the need for any checks against HAVE_C99_MATH in the code making it easier to read. For this commit the functions hypot, log1p and asinh has been taken care of.
2017-10-30change suspicious loop exit condition in nad_cvt (#634)Thomas Knudsen
* change suspicious loop exit condition in nad_cvt * touch up nad_cvt.c * ...and remove tabs
2016-05-28Change math constants, similar to PR #372. Use M_ namespace with the de ↵Micah Cochran
facto standard M_PI and its ilk. Change names that are widely used in the project to be in the M_ namespace, so HALFPI becomes M_HALFPI. HALFPI is #defined as M_PI_2 (the defacto standard name). #defines _USE_MATH_DEFINES for MS Visual Studio (I didn't personally test this part, but Appveyor will not build otherwise).
2009-01-26remove SCCSID and lint stuff from all source filesFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1515 4e78687f-474d-0410-85f9-8d5e500ac6b2
2004-10-30Changed domain of tb.lam to -180 to 180 instead of 0 to 360 before callingFrank Warmerdam
adjlon(). Otherwise worldsized grids will fail over half their domain. ie. cs2cs +proj=latlong +datum=WGS84 +to +proj=latlong +nadgrids=null < "10 5" git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1267 4e78687f-474d-0410-85f9-8d5e500ac6b2
2003-03-31Changed so that if the inverted source location is outside the currentFrank Warmerdam
grid then the first approximation of the correction is accepted. See comments inline about the change. This isn't really the "correct" solution. git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1127 4e78687f-474d-0410-85f9-8d5e500ac6b2
1999-03-18NewFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@776 4e78687f-474d-0410-85f9-8d5e500ac6b2