#include <math.h>
#include "cproj_prototypes.h"
Go to the source code of this file.
|
#define | PI 3.141592653589793238 |
|
#define | HALF_PI (PI*0.5) |
|
#define | TWO_PI (PI*2.0) |
|
#define | EPSLN 1.0e-10 |
|
#define | R2D 57.2957795131 |
|
#define | D2R 1.745329251994328e-2 |
|
#define | S2R 4.848136811095359e-6 |
|
#define | OK 0 |
|
#define | ERROR -1 |
|
#define | IN_BREAK -2 |
|
#define | SQUARE(x) ((x) * (x)) /* x**2 */ |
|
#define | CUBE(x) ((x) * (x) * (x)) /* x**3 */ |
|
#define | QUAD(x) ((x) * (x) * (x) * (x)) /* x**4 */ |
|
#define | GMAX(A, B) ((A) > (B) ? (A) : (B)) /* assign maximum of a and b */ |
|
#define | GMIN(A, B) ((A) < (B) ? (A) : (B)) /* assign minimum of a and b */ |
|
#define | IMOD(A, B) (A) - (((A) / (B)) * (B)) /* Integer mod function */ |
|
◆ CUBE
#define CUBE |
( |
|
x | ) |
((x) * (x) * (x)) /* x**3 */ |
◆ D2R
#define D2R 1.745329251994328e-2 |
◆ EPSLN
◆ ERROR
◆ GMAX
#define GMAX |
( |
|
A, |
|
|
|
B |
|
) |
| ((A) > (B) ? (A) : (B)) /* assign maximum of a and b */ |
◆ GMIN
#define GMIN |
( |
|
A, |
|
|
|
B |
|
) |
| ((A) < (B) ? (A) : (B)) /* assign minimum of a and b */ |
◆ HALF_PI
◆ IMOD
#define IMOD |
( |
|
A, |
|
|
|
B |
|
) |
| (A) - (((A) / (B)) * (B)) /* Integer mod function */ |
◆ IN_BREAK
◆ OK
◆ PI
#define PI 3.141592653589793238 |
◆ QUAD
#define QUAD |
( |
|
x | ) |
((x) * (x) * (x) * (x)) /* x**4 */ |
◆ R2D
#define R2D 57.2957795131 |
◆ S2R
#define S2R 4.848136811095359e-6 |
◆ SQUARE
#define SQUARE |
( |
|
x | ) |
((x) * (x)) /* x**2 */ |
◆ TWO_PI