math Namespace Reference

Generic math routines. More...


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.


Detailed Description

Generic math routines.

Typedef Documentation

typedef float math::scalar_t
 

Scalar type (float) used for computations.

typedef unsigned char math::UINT_8
 

Unsigned 8-bit integer.

typedef unsigned short math::UINT_16
 

Unsigned 16-bit integer.

typedef unsigned long math::UINT_32
 

Unsigned 32-bit integer.

typedef signed char math::INT_8
 

Signed 8-bit integer.

typedef signed short math::INT_16
 

Signed 16-bit integer.

typedef signed long math::INT_32
 

Signed 32-bit integer.


Function Documentation

scalar_t SINE_FUNCTION scalar_t  x  )  [inline]
 

Compute sine of a value.

scalar_t COSINE_FUNCTION scalar_t  x  )  [inline]
 

Compute cosine of a value.

scalar_t SQRT_FUNCTION scalar_t  x  )  [inline]
 

Compute square root of a value.

vector3 cross_product const vector3 &  v1,
const vector3 &  v2
[inline]
 

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.

scalar_t dot_product3 const vector4 &  v1,
const vector4 &  v2
[inline]
 

Calculate dot product of two vectors and return temp vector containing the result.

Only 3 first elements of given vectors are used in calculation.

scalar_t dot_product4 const vector4 &  v1,
const vector4 &  v2
[inline]
 

Calculate dot product of two vectors and return temp vector containing the result.

Only 3 first elements of given vectors are used in calculation.

matrix4 transpose const matrix4 &  m  )  [inline]
 

Calculate transpose of given matrix and return temp matrix containing the result.


Generated on Sun May 1 17:34:32 2005 for RealityStrike Game Engine API by doxygen 1.3.6