#include <VectorMathf.h>
Static Public Member Functions | |
static GLfloat | amountf (const GLfloat vector[3]) |
static GLvoid | normalizef (GLfloat vector[3]) |
static GLvoid | multiplyf (GLfloat vector[3], GLfloat s) |
static GLvoid | addf (GLfloat result[3], const GLfloat vector0[3], const GLfloat vector1[3]) |
static GLvoid | subf (GLfloat result[3], const GLfloat vector0[3], const GLfloat vector1[3]) |
static GLvoid | copyf (GLfloat copy[3], const GLfloat vector[3]) |
static GLfloat | dotProductf (const GLfloat vector0[3], const GLfloat vector1[3]) |
static GLvoid | crossProductf (GLfloat result[3], const GLfloat vector0[3], const GLfloat vector1[3]) |
static GLvoid | multMatrixVectorf (GLfloat result[3], const GLfloat matrix[16], const GLfloat vector[3], const GLfloat w=1.0f) |
static GLvoid | multMatrixScalarf (GLfloat result[16], const GLfloat matrix[16], GLfloat scalar) |
static GLvoid | loadIdentityf (GLfloat matrix[16]) |
static GLvoid | addMatrixf (GLfloat result[16], const GLfloat matrix0[16], const GLfloat matrix1[16]) |
static GLvoid | subMatrixf (GLfloat result[16], const GLfloat matrix0[16], const GLfloat matrix1[16]) |
static GLvoid | multMatrixf (GLfloat result[16], const GLfloat matrix0[16], const GLfloat matrix1[16]) |
static GLvoid | translateMatrixf (GLfloat result[16], GLfloat x, GLfloat y, GLfloat z) |
static GLvoid | scaleMatrixf (GLfloat result[16], GLfloat x, GLfloat y, GLfloat z) |
static GLvoid | rotateRzRyRxMatrixf (GLfloat result[16], GLfloat anglex, GLfloat angley, GLfloat anglez) |
static GLvoid | transposeMatrixf (GLfloat result[16], const GLfloat matrix[16]) |
static GLboolean | inverseMatrixf (GLfloat result[16], const GLfloat matrix[16]) |
static GLvoid ES3D::VectorMathf::addf | ( | GLfloat | result[3], | |
const GLfloat | vector0[3], | |||
const GLfloat | vector1[3] | |||
) | [inline, static] |
Adds two vectors.
result | the result | |
vector0 | the first vector | |
vector1 | the second vector |
static GLvoid ES3D::VectorMathf::addMatrixf | ( | GLfloat | result[16], | |
const GLfloat | matrix0[16], | |||
const GLfloat | matrix1[16] | |||
) | [inline, static] |
Adds a matrix to another matrix.
result | the resulting matrix | |
matrix0 | the first matrix | |
matrix1 | the second matrix |
static GLfloat ES3D::VectorMathf::amountf | ( | const GLfloat | vector[3] | ) | [inline, static] |
Calculates the amount of a vector.
vector | the vector |
static GLvoid ES3D::VectorMathf::copyf | ( | GLfloat | copy[3], | |
const GLfloat | vector[3] | |||
) | [inline, static] |
Copys a vector
copy | the copy | |
vector | the source vector |
static GLvoid ES3D::VectorMathf::crossProductf | ( | GLfloat | result[3], | |
const GLfloat | vector0[3], | |||
const GLfloat | vector1[3] | |||
) | [inline, static] |
Calculates the cross product of two vectors. result = vector0 x vector1
result | the resulting vector | |
vector0 | the first vector | |
vector1 | the second vector |
static GLfloat ES3D::VectorMathf::dotProductf | ( | const GLfloat | vector0[3], | |
const GLfloat | vector1[3] | |||
) | [inline, static] |
Calculates the dot product of two vectors.
vector0 | the frist vector | |
vector1 | the second vector |
static GLboolean ES3D::VectorMathf::inverseMatrixf | ( | GLfloat | result[16], | |
const GLfloat | matrix[16] | |||
) | [inline, static] |
Calculates the invers of a matrix.
result | the resulting matrix | |
matrix | the source matrix |
static GLvoid ES3D::VectorMathf::loadIdentityf | ( | GLfloat | matrix[16] | ) | [inline, static] |
Loads the identity matrix.
matrix | the matrix where to load in the identity. |
static GLvoid ES3D::VectorMathf::multiplyf | ( | GLfloat | vector[3], | |
GLfloat | s | |||
) | [inline, static] |
Multiplies a vector by a scalar.
vector | the vector to be multiplied | |
s | the scalar |
static GLvoid ES3D::VectorMathf::multMatrixf | ( | GLfloat | result[16], | |
const GLfloat | matrix0[16], | |||
const GLfloat | matrix1[16] | |||
) | [inline, static] |
Multiplies a matrix with another. result = matrix0 * matrix1
result | the resulting matrix | |
matrix0 | the first matrix | |
matrix1 | the second matrix |
static GLvoid ES3D::VectorMathf::multMatrixScalarf | ( | GLfloat | result[16], | |
const GLfloat | matrix[16], | |||
GLfloat | scalar | |||
) | [inline, static] |
Multiplies a matrix with a scalar.
result | the reulting matrix | |
matrix | the source matrix | |
scalar | the scalar to multiply with |
static GLvoid ES3D::VectorMathf::multMatrixVectorf | ( | GLfloat | result[3], | |
const GLfloat | matrix[16], | |||
const GLfloat | vector[3], | |||
const GLfloat | w = 1.0f | |||
) | [inline, static] |
Multiplies a vector with the given matrix.
result | the resulting vector | |
matrix | the matrix to multiply with | |
vector | the source vector | |
w | homogenous coordiante, when needed |
static GLvoid ES3D::VectorMathf::normalizef | ( | GLfloat | vector[3] | ) | [inline, static] |
Normalizes a vector.
vector | the vector to normalize |
static GLvoid ES3D::VectorMathf::rotateRzRyRxMatrixf | ( | GLfloat | result[16], | |
GLfloat | anglex, | |||
GLfloat | angley, | |||
GLfloat | anglez | |||
) | [inline, static] |
Rotates a matrix around the x, y and z axis.
result | the resulting matrix. | |
anglex | the x angle | |
angley | the y angle | |
anglez | the z angle |
static GLvoid ES3D::VectorMathf::scaleMatrixf | ( | GLfloat | result[16], | |
GLfloat | x, | |||
GLfloat | y, | |||
GLfloat | z | |||
) | [inline, static] |
Scaling matrix.
result | the resulting matrix | |
x | the x scaling factor | |
y | the y scaling factor | |
z | the z scaling factor |
static GLvoid ES3D::VectorMathf::subf | ( | GLfloat | result[3], | |
const GLfloat | vector0[3], | |||
const GLfloat | vector1[3] | |||
) | [inline, static] |
Subtracts two vectors: vector0 - vector1
result | the result | |
vector0 | the first vector | |
vector1 | the second vector |
static GLvoid ES3D::VectorMathf::subMatrixf | ( | GLfloat | result[16], | |
const GLfloat | matrix0[16], | |||
const GLfloat | matrix1[16] | |||
) | [inline, static] |
Subtracts a matrix from another matrix.
result | the resulting matrix | |
matrix0 | the first matrix | |
matrix1 | the second matrix |
static GLvoid ES3D::VectorMathf::translateMatrixf | ( | GLfloat | result[16], | |
GLfloat | x, | |||
GLfloat | y, | |||
GLfloat | z | |||
) | [inline, static] |
Translates a matrix.
result | the resulting matrix | |
x | the x coordinate. | |
y | the y coordinate. | |
z | the z coordinate. |
static GLvoid ES3D::VectorMathf::transposeMatrixf | ( | GLfloat | result[16], | |
const GLfloat | matrix[16] | |||
) | [inline, static] |
Transposes a matrix.
result | the resulting matrix | |
matrix | the source matrix |