OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Macros | Functions
ossimSpaceObliqueMercatorProjection.cpp File Reference
#include <ossim/projection/ossimSpaceObliqueMercatorProjection.h>
#include <math.h>
#include <ossim/base/ossimConstants.h>

Go to the source code of this file.

Macros

#define PI_OVER_2   (M_PI/2)
 
#define PI   (M_PI)
 
#define TWOPI   (2*M_PI)
 
#define HALFPI   (M_PI/2.0)
 
#define TOL   1e-7
 
#define PI_HALFPI   4.71238898038468985766
 
#define TWOPI_HALFPI   7.85398163397448309610
 
#define ONE_TOL   1.00000000000001
 
#define ATOL   1e-50
 
#define FORTPI   0.78539816339744833
 

Functions

double aasin (double v)
 
double aacos (double v)
 
double asqrt (double v)
 
double aatan2 (double n, double d)
 
 RTTI_DEF1 (ossimSpaceObliqueMercatorProjection, "ossimSpaceObliqueMercatorProjection", ossimMapProjection)
 

Macro Definition Documentation

◆ ATOL

#define ATOL   1e-50

Definition at line 22 of file ossimSpaceObliqueMercatorProjection.cpp.

Referenced by aatan2().

◆ FORTPI

#define FORTPI   0.78539816339744833

◆ HALFPI

#define HALFPI   (M_PI/2.0)

◆ ONE_TOL

#define ONE_TOL   1.00000000000001

Definition at line 21 of file ossimSpaceObliqueMercatorProjection.cpp.

◆ PI

#define PI   (M_PI)

◆ PI_HALFPI

#define PI_HALFPI   4.71238898038468985766

◆ PI_OVER_2

#define PI_OVER_2   (M_PI/2)

Definition at line 14 of file ossimSpaceObliqueMercatorProjection.cpp.

◆ TOL

#define TOL   1e-7

◆ TWOPI

#define TWOPI   (2*M_PI)

◆ TWOPI_HALFPI

#define TWOPI_HALFPI   7.85398163397448309610

Function Documentation

◆ aacos()

double aacos ( double  v)

Definition at line 35 of file ossimSpaceObliqueMercatorProjection.cpp.

References PI.

36 {
37  double av;
38 
39  if ((av = fabs(v)) >= 1.)
40  {
41  return (v < 0. ? PI : 0.);
42  }
43  return acos(v);
44 }

◆ aasin()

double aasin ( double  v)

Definition at line 25 of file ossimSpaceObliqueMercatorProjection.cpp.

References HALFPI.

Referenced by ossimSpaceObliqueMercatorProjection::forward(), and ossimSpaceObliqueMercatorProjection::inverse().

26 {
27  double av;
28 
29  if ((av = fabs(v)) >= 1.)
30  {
31  return (v < 0. ? -HALFPI : HALFPI);
32  }
33  return asin(v);
34 }

◆ aatan2()

double aatan2 ( double  n,
double  d 
)

Definition at line 49 of file ossimSpaceObliqueMercatorProjection.cpp.

References ATOL, and n.

50 {
51  return ((fabs(n) < ATOL && fabs(d) < ATOL) ? 0. : atan2(n,d));
52 }
os2<< "> n<< " > nendobj n

◆ asqrt()

double asqrt ( double  v)

Definition at line 45 of file ossimSpaceObliqueMercatorProjection.cpp.

46 {
47  return ((v <= 0) ? 0. : sqrt(v));
48 }

◆ RTTI_DEF1()

RTTI_DEF1 ( ossimSpaceObliqueMercatorProjection  ,
"ossimSpaceObliqueMercatorProjection"  ,
ossimMapProjection   
)