ES3D::VectorMathf Class Reference

#include <VectorMathf.h>

List of all members.

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])


Detailed Description

Class which supports the basic vector math operations.


Member Function Documentation

static GLvoid ES3D::VectorMathf::addf ( GLfloat  result[3],
const GLfloat  vector0[3],
const GLfloat  vector1[3] 
) [inline, static]

Adds two vectors.

Parameters:
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.

Parameters:
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.

Parameters:
vector the vector
Returns:
the amount

static GLvoid ES3D::VectorMathf::copyf ( GLfloat  copy[3],
const GLfloat  vector[3] 
) [inline, static]

Copys a vector

Parameters:
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

Parameters:
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.

Parameters:
vector0 the frist vector
vector1 the second vector
Returns:
the result, the dot product

static GLboolean ES3D::VectorMathf::inverseMatrixf ( GLfloat  result[16],
const GLfloat  matrix[16] 
) [inline, static]

Calculates the invers of a matrix.

Parameters:
result the resulting matrix
matrix the source matrix
Returns:
true, if a inverse matrix could be found

static GLvoid ES3D::VectorMathf::loadIdentityf ( GLfloat  matrix[16]  )  [inline, static]

Loads the identity matrix.

Parameters:
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.

Parameters:
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

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
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

Parameters:
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.

Parameters:
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.

Parameters:
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.

Parameters:
result the resulting matrix
matrix the source matrix


The documentation for this class was generated from the following file:
Generated on Sat May 10 16:30:56 2008 for ES 3D Game SDK Documentation by  doxygen 1.4.7