Static Public Member Functions | |
float | DegreesToRadians (float degrees) |
float | RadiansToDegrees (float radians) |
float | Sin (float angle) |
Matrix4 | BuildReflectionMatrix (Plane plane) |
Vector4 | CalculateFaceNormal (Vector3 v1, Vector3 v2, Vector3 v3) |
Vector3 | CalculateTangentSpaceVector (Vector3 position1, Vector3 position2, Vector3 position3, float u1, float v1, float u2, float v2, float u3, float v3) |
float | Cos (float angle) |
float | ACos (float angle) |
float | ASin (float angle) |
float | InvSqrt (float number) |
float | Sqrt (float number) |
float | Abs (float number) |
bool | FloatEqual (float a, float b) |
bool | FloatEqual (float a, float b, float tolerance) |
float | Tan (float angle) |
float | Max (float value1, float value2) |
float | Min (float value1, float value2) |
float | RangeRandom (float min, float max) |
float | UnitRandom () |
float | SymmetricRandom () |
Pair | Intersects (Ray ray, AxisAlignedBox box) |
Intersection | Intersects (AxisAlignedBox boxA, AxisAlignedBox boxB) |
Public Attributes | |
const float | PI = (float)System.Math.PI |
const float | TWO_PI = (float)System.Math.PI * 2.0f |
const float | RADIANS_PER_DEGREE = PI / 180.0f |
const float | DEGREES_PER_RADIAN = 180.0f / PI |
|
Returns the absolute value of the supplied number. |
|
Returns the arc cosine of the angle. |
|
Returns the arc sine of the angle. |
|
Builds a reflection matrix for the specified plane. |
|
Calculate a face normal, including the w component which is the offset from the origin. |
|
Calculates the tangent space vector for a given set of positions / texture coords. Adapted from bump mapping tutorials at: http://www.paulsprojects.net/tutorials/simplebump/simplebump.html author : paul.baker@univ.ox.ac.uk |
|
Returns the cosine of the angle. |
|
Converts degrees to radians. |
|
Compares float values for equality, taking into consideration that floating point values should never be directly compared using ==. 2 floats could be conceptually equal, but vary by a .000001 which would fail in a direct comparison. To circumvent that, a tolerance value is used to see if the difference between the 2 floats is less than the desired amount of accuracy. |
|
Tests an intersection between two boxes. The primary box. The box to test intersection with boxA. None - There was no intersection between the 2 boxes. Contains - boxA is fully within boxB. Partial - boxA is partially intersecting with boxB. Submitted by: romout |
|
Tests an intersection between a ray and a box. A Pair object containing whether the intersection occurred, and the distance between the 2 objects. |
|
Inverse square root. |
|
Used to quickly determine the greater value between two values. |
|
Used to quickly determine the lesser value between two values. |
|
Converts radians to degrees. |
|
Returns a random value between the specified min and max values. Minimum value. Maximum value. A random value in the range [min,max]. |
|
Returns the sine of the angle. |
|
Returns the square root of a number. This is one of the more expensive math operations. Avoid when possible. |
|
|
|
Returns the tangent of the angle. |
|
|