![]() |
![]() |
![]() |
Pigment 0.3 Reference Manual | ![]() |
---|---|---|---|---|
#include <pgm/pgm.h> #define PGM_DEGREES_TO_RADIANS (theta) #define PGM_RADIANS_TO_DEGREES (theta) #define PGM_SINCOS (theta,s,c) #define PGM_FABSF (x) enum PgmError;
Various enumerations and macros used by Pigment for common tasks.
Last reviewed on 2007-04-12 (0.1.5)
#define PGM_DEGREES_TO_RADIANS(theta) ((theta) * (G_PI / 180.0f))
Converts from degrees to radians.
theta : |
an angle in degrees. |
#define PGM_RADIANS_TO_DEGREES(theta) ((theta) * (180.0f / G_PI))
Converts from radians to degrees.
theta : |
an angle in radians. |
#define PGM_SINCOS(theta,s,c)
Calculates sine and cosine of the angle theta
simultaneously.
theta : |
an angle in radians. |
s : |
the address of the double where the sine value is going to be stored. |
c : |
the address of the double where the cosine value is going to be stored. |
#define PGM_FABSF(x)
Calculates the absolute value of float.
x : |
the floating-point number. |