MarSTDv2004: CMath.h File Reference

MarSTDv2004

CMath.h File Reference


Detailed Description

: Common math functions.

Definition in file CMath.h.

Include dependency graph for CMath.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define RAD2DEG(_x)   ( (_x) / M_PI * 180.0 )
 Converts a radian value to degrees.
#define RAD2BIN(_x)   ( (_x) / M_PI * 128.0 )
 Converts a radian value to binairy (0..256).
#define DEG2RAD(_x)   ( (_x) / 180.0 * M_PI )
 Converts a degrees value to radians.
#define DEG2BIN(_x)   ( (_x) / 180.0 * 128.0 )
 Converts a degrees value to binairy.
#define BIN2RAD(_x)   ( (_x) / 128.0 * M_PI )
 Converts a binairy value to radians.
#define BIN2DEG(_x)   ( (_x) / 128.0 * 180.0 )
 Converts a binairy value to degrees.

Functions

static float dxdy2rad (float dx, float dy)

Function Documentation

static float dxdy2rad float  dx,
float  dy
[static]
 

Returns an angle for a given (dx, dy) pair. (dx, dy) is a vector with arbitrary size. cos(angle) = dx. sin(angle) = dy.

Definition at line 57 of file CMath.h.


Generated on Tue Feb 8 21:59:15 2005 for MarSTDv2004 by  doxygen 1.4.1