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

matrix.c File Reference

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Functions

void print_matrix (float *m)
 Routine that print a matrix on screen.

float * BoxtoVertex (float w, float h, float d)
 Converts a box size into vertex coords.

void multVertexforMatrix (float *v, GLfloat *matrix)
 Multiply a vertex with a matrix.


Function Documentation

float* BoxtoVertex float  w,
float  h,
float  d
 

Converts a box size into vertex coords.

Parameters:
w width
h height
d dept
Returns:
a 24 float array storing the 8 vertex

void multVertexforMatrix float *  v,
GLfloat *  matrix
 

Multiply a vertex with a matrix.

Store the result in the source vertex.

Parameters:
v the vertex
matrix the matrix

void print_matrix float *  m  ) 
 

Routine that print a matrix on screen.

Parameters:
m the matrix as an array of 16 float


SourceForge.net Logo

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