KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
matrix3d.h File Reference

3D matrix operations. More...

#include <sys/cdefs.h>
#include <dc/matrix.h>

Go to the source code of this file.

Functions

void mat_rotate_x (float r)
 Rotate around the X-axis.
 
void mat_rotate_y (float r)
 Rotate around the Y-axis.
 
void mat_rotate_z (float r)
 Rotate around the Z-axis.
 
void mat_rotate (float xr, float yr, float zr)
 Rotate around all axes.
 
void mat_translate (float x, float y, float z)
 Perform a 3D translation.
 
void mat_scale (float x, float y, float z)
 Perform a 3D scale operation.
 
void mat_perspective (float xcenter, float ycenter, float cot_fovy_2, float znear, float zfar)
 Set up a perspective view frustum.
 
void mat_lookat (const point_t *eye, const point_t *center, const vector_t *up)
 Set up a "camera".
 

Detailed Description

3D matrix operations.

This file contains various 3D matrix math functionality for using the SH4's matrix transformation unit.

Author
Megan Potter
Jordan DeLong