MISR Toolkit  1.5.1
Macros
cproj.h File Reference
#include <math.h>
#include "cproj_prototypes.h"

Go to the source code of this file.

Macros

#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 */
 

Macro Definition Documentation

◆ CUBE

#define CUBE (   x)    ((x) * (x) * (x)) /* x**3 */

Definition at line 25 of file cproj.h.

◆ D2R

#define D2R   1.745329251994328e-2

Definition at line 15 of file cproj.h.

◆ EPSLN

#define EPSLN   1.0e-10

Definition at line 10 of file cproj.h.

◆ ERROR

#define ERROR   -1

Definition at line 19 of file cproj.h.

◆ GMAX

#define GMAX (   A,
 
)    ((A) > (B) ? (A) : (B)) /* assign maximum of a and b */

Definition at line 28 of file cproj.h.

◆ GMIN

#define GMIN (   A,
 
)    ((A) < (B) ? (A) : (B)) /* assign minimum of a and b */

Definition at line 29 of file cproj.h.

◆ HALF_PI

#define HALF_PI   (PI*0.5)

Definition at line 8 of file cproj.h.

◆ IMOD

#define IMOD (   A,
 
)    (A) - (((A) / (B)) * (B)) /* Integer mod function */

Definition at line 31 of file cproj.h.

◆ IN_BREAK

#define IN_BREAK   -2

Definition at line 20 of file cproj.h.

◆ OK

#define OK   0

Definition at line 18 of file cproj.h.

◆ PI

#define PI   3.141592653589793238

Definition at line 7 of file cproj.h.

◆ QUAD

#define QUAD (   x)    ((x) * (x) * (x) * (x)) /* x**4 */

Definition at line 26 of file cproj.h.

◆ R2D

#define R2D   57.2957795131

Definition at line 11 of file cproj.h.

◆ S2R

#define S2R   4.848136811095359e-6

Definition at line 16 of file cproj.h.

◆ SQUARE

#define SQUARE (   x)    ((x) * (x)) /* x**2 */

Definition at line 24 of file cproj.h.

◆ TWO_PI

#define TWO_PI   (PI*2.0)

Definition at line 9 of file cproj.h.


MISR Toolkit - Copyright © 2005 - 2020 Jet Propulsion Laboratory
Generated on Fri Jun 19 2020 22:49:53