Compounds | |
| class | math::matrix4 |
| A 4x4 matrix. More... | |
| class | math::quaternion |
| A quaternion. More... | |
| class | math::vector3 |
| A 3-dimensional vector. More... | |
Functions | |
| double | rand01 (void) |
| Returns a random number between 0.0 and 1.0. | |
| double | to_degrees (double x) |
| Converts radians to degrees. More... | |
| double | to_radians (double x) |
| Converts degrees to radians. More... | |
| bool | equals (double x, double y) |
| Precision aware equals. More... | |
| template<class T> void | swap (T &x, T &y) |
| Swaps x and y. More... | |
| double | sign (double x) |
| Finds the sign of x. More... | |
| bool | same_sign (double x, double y) |
| Checks if x and y share the same sign. More... | |
| bool | negative (double x) |
| Check if x is negative. More... | |
| bool | positive (double x) |
| Check if x is positive. More... | |
| math::vector3 | cross (const math::vector3 &lhs, const math::vector3 &rhs) |
| void | add (math::vector3 &dest, const math::vector3 &lhs, const math::vector3 &rhs) |
| void | subtract (math::vector3 &dest, const math::vector3 &lhs, const math::vector3 &rhs) |
| void | multiply (math::vector3 &dest, const math::vector3 &lhs, const math::vector3 &rhs) |
| void | divide (math::vector3 &dest, const math::vector3 &lhs, const math::vector3 &rhs) |
| void | multiply (math::vector3 &dest, const math::vector3 &lhs, real_t rhs) |
| void | multiply (math::vector3 &dest, real_t rhs, const math::vector3 &lhs) |
| real_t | dot (const math::vector3 &lhs, const math::vector3 &rhs) |
|
||||||||||||
|
Precision aware equals.
Returns Definition at line 59 of file mathematics.h. Referenced by math::quaternion::get_angle_axis, math::matrix4::get_inverted_rotation, math::vector3::normalize, math::vector3::operator!=, math::vector3::operator==, and math::quaternion::slerp. |
|
|
Check if x is negative.
Definition at line 115 of file mathematics.h. |
|
|
Check if x is positive.
Definition at line 129 of file mathematics.h. |
|
||||||||||||
|
Checks if x and y share the same sign.
Definition at line 101 of file mathematics.h. |
|
|
Finds the sign of x.
Definition at line 87 of file mathematics.h. |
|
||||||||||||||||
|
Swaps x and y. Templated swap function. Assumes the following:
Definition at line 75 of file mathematics.h. Referenced by math::matrix4::transpose. |
|
|
Converts radians to degrees.
Definition at line 37 of file mathematics.h. |
|
|
Converts degrees to radians.
Definition at line 48 of file mathematics.h. |
1.2.14 written by Dimitri van Heesch,
© 1997-2002