Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals

vp_math_utils.c File Reference


Functions

vectormake_vector (sfvec3f data)
 Transform an sfvec3f in an homogeneus vector.

vrmlMatrixmake_rot_matrix (sfrotation rot)
 Transform a sfrotation in an homogeneus rotation matrix.

vrmlMatrixmake_scale_matrix (sfvec3f scale)
 transform a sfvec3f in a scale matrix.

vrmlMatrixmake_translation_matrix (sfvec3f translation)
 Transform a sfvec3f ina a translation matrix.

vrmlMatrixmake_identity ()
 Creates an identity matrix.

vrmlMatrixmake_transform_matrix (vrmlMatrix translation, vrmlMatrix rotation, vrmlMatrix scale, vrmlMatrix scaleOrientation, vrmlMatrix inverseScaleOrientation, vrmlMatrix center)
 Generates the transformation matrix from given ones.

void matrix_premul (vrmlMatrix origin, vrmlMatrix pre)
 premoltiplica origin con la matrice pre e salva in origin.

float det_minor (vrmlMatrix matrix, int r1, int r2, int r3, int c1, int c2, int c3)
 Return determinant of 3x3 submatrix by given row and column indices.

float det (vrmlMatrix matrix)
 Return determinant of entire matrix.

void negate (vrmlMatrix matrix)
 Multiply the given matrix for -1.


Function Documentation

float det vrmlMatrix  matrix  ) 
 

Return determinant of entire matrix.

Parameters:
matrix the matrix to work on.
Returns:
the determinant.

Here is the call graph for this function:

float det_minor vrmlMatrix  matrix,
int  r1,
int  r2,
int  r3,
int  c1,
int  c2,
int  c3
 

Return determinant of 3x3 submatrix by given row and column indices.

Parameters:
matrix the matrix to work on.
r1 row index.
r2 row index.
r3 row index.
c1 column index.
c2 column index.
c3 column index.
Returns:
the determinant.

vrmlMatrix* make_identity void   ) 
 

Creates an identity matrix.

Returns:
an identity vrmlMatrix.

vrmlMatrix* make_rot_matrix sfrotation  rot  ) 
 

Transform a sfrotation in an homogeneus rotation matrix.

Parameters:
rot an sfrotation.
Returns:
a corresponding vrmlMatrix.

vrmlMatrix* make_scale_matrix sfvec3f  scale  ) 
 

transform a sfvec3f in a scale matrix.

Parameters:
scale an sfvec3f
Returns:
a corresponding vrmlMatrix.

vrmlMatrix* make_transform_matrix vrmlMatrix  translation,
vrmlMatrix  rotation,
vrmlMatrix  scale,
vrmlMatrix  scaleOrientation,
vrmlMatrix  inverseScaleOrientation,
vrmlMatrix  center
 

Generates the transformation matrix from given ones.

Returns:
the resulting vrmlMatrix.
Parameters:
translation the translation matrix.
rotation the rotation matrix.
scale the scale matrix.
scaleOrientation the rotation that defines the sistem used by the scale matrix.
inverseScaleOrientation the inverse rotation of the one that defines the sistem used by the scale matrix.
center the transltion to the ccenter of rotation.

Here is the call graph for this function:

vrmlMatrix* make_translation_matrix sfvec3f  translation  ) 
 

Transform a sfvec3f ina a translation matrix.

Parameters:
translation an sfvec3f
Returns:
a corresponding vrmlMatrix

vector* make_vector sfvec3f  data  ) 
 

Transform an sfvec3f in an homogeneus vector.

Parameters:
data an sfvec3f.
Returns:
a corresponding vector.

void matrix_premul vrmlMatrix  origin,
vrmlMatrix  pre
 

premoltiplica origin con la matrice pre e salva in origin.

Here is the call graph for this function:

void negate vrmlMatrix  matrix  ) 
 

Multiply the given matrix for -1.

Parameters:
matrix the matrix.


SourceForge.net Logo

Generated on Mon Jun 14 17:25:56 2004 for D.R.I.V.E. by doxygen 1.3.7