XXX: Add parenthesis around all arguments so that these macros can be called with complex expressions.
XXX: All functions which use the PS_ASSERT macros must be scrutinized so that we ensure that an argument which is expected to be output is psFree'ed before reurning NULL.
XXX: The macros have a name similar to PS_CHECK_CONDITION() and generally throw a psError if the CONDITION is true. However, some throw the error if the CONDITION is false. This should be consistant.
Definition in file psConstants.h.
#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;} |
|
|
Definition at line 39 of file psConstants.h. |
|
|
Definition at line 35 of file psConstants.h. |
|
|
Definition at line 36 of file psConstants.h. |
|
|
Definition at line 32 of file psConstants.h. |
|
|
Definition at line 33 of file psConstants.h. |
|
|
Definition at line 34 of file psConstants.h. |
|
|
Definition at line 40 of file psConstants.h. |
|
|
Definition at line 49 of file psConstants.h. |
|
|
Definition at line 52 of file psConstants.h. |
|
|
Definition at line 55 of file psConstants.h. |
|
|
Definition at line 58 of file psConstants.h. |
|
|
Definition at line 42 of file psConstants.h. |
|
|
Definition at line 43 of file psConstants.h. |
|
|
Definition at line 44 of file psConstants.h. |
|
|
Definition at line 41 of file psConstants.h. |
1.4.4