18 #ifndef __KOS_MATRIX3D_H 
   19 #define __KOS_MATRIX3D_H 
   21 #include <sys/cdefs.h> 
   79 void mat_scale(
float x, 
float y, 
float z);
 
   92                      float znear, 
float zfar);
 
void mat_scale(float x, float y, float z)
Perform a 3D scale operation. 
 
void mat_rotate_x(float r)
Rotate around the X-axis. 
 
void mat_rotate(float xr, float yr, float zr)
Rotate around all axes. 
 
void mat_perspective(float xcenter, float ycenter, float cot_fovy_2, float znear, float zfar)
Set up a perspective view frustum. 
 
void mat_rotate_y(float r)
Rotate around the Y-axis. 
 
4-part vector type. 
Definition: vector.h:34
 
void mat_translate(float x, float y, float z)
Perform a 3D translation. 
 
void mat_lookat(const point_t *eye, const point_t *center, const vector_t *up)
Set up a "camera". 
 
void mat_rotate_z(float r)
Rotate around the Z-axis.