diff options
| author | Frank Warmerdam <warmerdam@pobox.com> | 2010-06-11 03:26:04 +0000 |
|---|---|---|
| committer | Frank Warmerdam <warmerdam@pobox.com> | 2010-06-11 03:26:04 +0000 |
| commit | cf5c8cd32ebf39f7ff24c426ac00e75a7ae34da8 (patch) | |
| tree | c7e18dad05709f747a2aaccb21da844ae6b43f24 /src/aasincos.c | |
| parent | 02b4b8db7f5d3ce59baca4a38b8059538ccf3217 (diff) | |
| download | PROJ-cf5c8cd32ebf39f7ff24c426ac00e75a7ae34da8.tar.gz PROJ-cf5c8cd32ebf39f7ff24c426ac00e75a7ae34da8.zip | |
roll projCtx through various other low level functions
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1856 4e78687f-474d-0410-85f9-8d5e500ac6b2
Diffstat (limited to 'src/aasincos.c')
| -rw-r--r-- | src/aasincos.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/aasincos.c b/src/aasincos.c index 460590e4..6f39478e 100644 --- a/src/aasincos.c +++ b/src/aasincos.c @@ -3,24 +3,26 @@ #define ONE_TOL 1.00000000000001 #define TOL 0.000000001 #define ATOL 1e-50 + double -aasin(double v) { +aasin(projCtx ctx,double v) { double av; - + if ((av = fabs(v)) >= 1.) { if (av > ONE_TOL) - pj_errno = -19; + pj_ctx_set_errno( ctx, -19 ); return (v < 0. ? -HALFPI : HALFPI); } return asin(v); } + double -aacos(double v) { +aacos(projCtx ctx, double v) { double av; if ((av = fabs(v)) >= 1.) { if (av > ONE_TOL) - pj_errno = -19; + pj_ctx_set_errno( ctx, -19 ); return (v < 0. ? PI : 0.); } return acos(v); |
