Classes | |
| class | vector2 |
| 2 element vector More... | |
| class | vector3 |
| 3 element vector More... | |
| class | vector4 |
| 4 element vector More... | |
| class | matrix4 |
| 4x4 element matrix More... | |
| class | matrix4_identity |
| 4x4 Matrix initialized to identity. More... | |
| class | matrix4_rotation |
| 4x4 Matrix initialized to rotation matrix. More... | |
| class | matrix4_translation |
| 4x4 Matrix initialized to translation matrix. More... | |
| class | matrix4_scale |
| 4x4 Matrix initialized to scale matrix. More... | |
| class | matrix4_perspective_projection |
| 4x4 Matrix initialized to perspective_projection matrix. More... | |
| class | matrix4_parallel_projection |
| 4x4 Matrix initialized to parallel_projection matrix. More... | |
Typedefs | |
| typedef float | scalar_t |
| Scalar type (float) used for computations. | |
| typedef unsigned char | UINT_8 |
| Unsigned 8-bit integer. | |
| typedef unsigned short | UINT_16 |
| Unsigned 16-bit integer. | |
| typedef unsigned long | UINT_32 |
| Unsigned 32-bit integer. | |
| typedef signed char | INT_8 |
| Signed 8-bit integer. | |
| typedef signed short | INT_16 |
| Signed 16-bit integer. | |
| typedef signed long | INT_32 |
| Signed 32-bit integer. | |
Functions | |
| scalar_t | SINE_FUNCTION (scalar_t x) |
| Compute sine of a value. | |
| scalar_t | COSINE_FUNCTION (scalar_t x) |
| Compute cosine of a value. | |
| scalar_t | SQRT_FUNCTION (scalar_t x) |
| Compute square root of a value. | |
| vector3 | cross_product (const vector3 &v1, const vector3 &v2) |
| Calculate cross product of two vectors and return temp vector containing the result. | |
| scalar_t | dot_product3 (const vector4 &v1, const vector4 &v2) |
| Calculate dot product of two vectors and return temp vector containing the result. | |
| scalar_t | dot_product4 (const vector4 &v1, const vector4 &v2) |
| Calculate dot product of two vectors and return temp vector containing the result. | |
| matrix4 | transpose (const matrix4 &m) |
| Calculate transpose of given matrix and return temp matrix containing the result. | |
|
|
Scalar type (float) used for computations.
|
|
|
Unsigned 8-bit integer.
|
|
|
Unsigned 16-bit integer.
|
|
|
Unsigned 32-bit integer.
|
|
|
Signed 8-bit integer.
|
|
|
Signed 16-bit integer.
|
|
|
Signed 32-bit integer.
|
|
|
Compute sine of a value.
|
|
|
Compute cosine of a value.
|
|
|
Compute square root of a value.
|
|
||||||||||||
|
Calculate cross product of two vectors and return temp vector containing the result. Only 3 first elements of given vectors are used in calculation. Result vector will always have it's fourth element filled with value 1. |
|
||||||||||||
|
Calculate dot product of two vectors and return temp vector containing the result. Only 3 first elements of given vectors are used in calculation. |
|
||||||||||||
|
Calculate dot product of two vectors and return temp vector containing the result. Only 3 first elements of given vectors are used in calculation. |
|
|
Calculate transpose of given matrix and return temp matrix containing the result.
|
1.3.6