Functions |
float | Rad2Deg (float fRad) |
| convert degrees to radians
|
float | Deg2Rad (float fDeg) |
vec3f | transformVector (vec3f v3f, float m16[16]) |
| convert radians to degree
|
void | myMultMatrix (float A[16], float B[16], float RESULT[16]) |
| transform a row-major vector with a row-major matrix
|
void | copymatrix (float DEST[16], float SOURCE[16]) |
| multiply two row-major matrices, store the result to a new one
|
void | cleanupmatrix (float M[16]) |
| copy a row-major matrix to another one
|
void | getXRotationMatrix (float m[16], float pitch) |
| create a unity matrix
|
void | getYRotationMatrix (float m[16], float yaw) |
| create a row-major rotation matrix for x-rotations
|
void | getZRotationMatrix (float m[16], float azimuth) |
| create a row-major rotation matrix for y-rotations
|
void | getTranslationMatrix (float m[16], float x, float y, float z) |
| create a row-major rotation matrix for z-rotations
|
void | normalizeVector (vec3f v) |
| create a row-major translation matrix
|
void | calculateNormal (vec3f result, vec3f p1, vec3f p2, vec3f p3) |
| normalize a vector
|
void | crossProduct (vec3f *n, vec3f *v1, vec3f *v2) |
| calculate a normal-vector for a triangle with points given in clockwise order
|