|
Functions |
| float | modff (float f, float *iPart) |
| | Split a floating point value into its integer and fractional parts.
|
| float | sincosf (float &rcos, float theta) |
| | Calculate both sine and cosine of an angle.
|
| double | sincos (double &rcos, double theta) |
| | Calculate both sine and cosine of an angle.
|
| int | floatToFixed (float f, unsigned int prec) |
| | Convert a floating point value to fixed point.
|
| int | floatToFixed (float f) |
| | Convert a floating point value to fixed point with eight bits of precision.
|
| float | fixedToFloat (int i, unsigned int prec) |
| | Convert a fixed point value to floating point.
|
| float | fixedToFloat (int i) |
| | Convert an eight bit fixed point value to floating point.
|
| int | floatToSign (float f) |
| | Extract the sign bit of a floating point value.
|
| int | floatToMask (float f) |
| | Extract the sign bit of a floating point value.
|
| int | intToMask (int i) |
| | Extract the sign bit of an integer value.
|
| int | floatToIntBits (float f) |
| | Extract the underlying binary representation of a floating point value.
|
| float | intBitsToFloat (int i) |
| | Reconstitute a floating point value given its underlying binary representation.
|
| bool | floatIsNegative (float f) |
| | Compare a floating point value to zero.
|
| bool | floatIsPositive (float f) |
| | Compare a floating point value to zero.
|
| bool | floatIsZero (float f) |
| | Compare a floating point value to zero.
|
| bool | equals (float a, float b, float e=Epsilon) |
| | Compare two floating point values.
|
| bool | lessThan (float a, float b, float e=Epsilon) |
| | Compare two floating point values.
|
| bool | greaterThan (float a, float b, float e=Epsilon) |
| | Compare two floating point values.
|
| int | lessEqual (float a, float b, float e=Epsilon) |
| | Compare two floating point values.
|
| bool | greaterEqual (float a, float b, float e=Epsilon) |
| | Compare two floating point values.
|
| int | compare (float a, float b, float e=Epsilon) |
| | Compare two floating point values.
|
| float | conditional (float a, float b, float ans1, float ans2) |
| | Compare two floating point values.
|
| float | maximum (float a, float b) |
| | Compare two floating point values.
|
| float | minimum (float a, float b) |
| | Compare two floating point values.
|
| template<class T> T | conditional (T a, T b, T ans1, T ans2) |
| | Compare two values.
|
| template<class T> T | maximum (T a, T b) |
| | Compare two values.
|
| template<class T> T | minimum (T a, T b) |
| | Compare two values.
|
| template<class T> T | clamp (T val, T min, T max) |
| | Clamp a value to a range.
|
| float | interpolate (float mul, float f1, float f2) |
| | Interpolate between two floating point values.
|
Variables |
| const float | Epsilon = 0.001f |
| const float | PI = 3.1415926536f |