#include <math.h>
Include dependency graph for psConstants.h:

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

Go to the source code of this file.
Defines | |
| #define | M_PI 3.1415926535897932384626433832795029 |
| #define | M_PI_2 1.5707963267948966192313216916397514 |
| #define | M_PI_4 0.7853981633974483096156608458198757 |
| #define | M_1_PI 0.3183098861837906715377675267450287 |
| #define | M_2_PI 0.6366197723675813430755350534900574 |
| #define | DEG_TO_RAD(DEGREES) ((DEGREES) * M_PI / 180.0) |
| #define | MIN_TO_RAD(MINUTES) ((MINUTES) * M_PI / (180.0 * 60.0)) |
| #define | SEC_TO_RAD(SECONDS) ((SECONDS) * M_PI / (180.0 * 60.0 * 60.0)) |
| #define | RAD_TO_DEG(RADIANS) ((RADIANS) * 180.0 / M_PI) |
| #define | RAD_TO_MIN(RADIANS) ((RADIANS) * 180.0 * 60.0 / M_PI) |
| #define | RAD_TO_SEC(RADIANS) ((RADIANS) * 180.0 * 60.0 * 60.0 / M_PI) |
| #define | PS_MAX(A, B) (((A) > (B)) ? (A) : (B)) |
| #define | PS_MIN(A, B) (((A) < (B)) ? (A) : (B)) |
| #define | PS_SQR(A) ((A) * (A)) |
| #define | PS_SWAP(X, Y) {double tmp=(X); (X) = (Y); (Y) = tmp;} |
| #define | PS_NOT_U8(A) (UCHAR_MAX-(A)) |
| #define | PS_NOT_U16(A) (USHORT_MAX-(A)) |
1.5.1