SH4ZAM! 0.1.0
Fast math library for the Sega Dreamcast's SH4 CPU
Loading...
Searching...
No Matches
Matrices

Files

file  shz_matrix.h
 
file  shz_matrix.hpp
 

Detailed Description

In-Memory Matrix Manipulation.

These types and their corresponding functions are for working with matrices stored within memory, as opposed to being preloaded within the XMTRX back-bank of FP registers. Typically this is desirable for one-off operations where there is no batching of matrix operations, especially when clobbering XMTRX is undesirable.

For most transform types, this API offers 4 different "versions" of the operation. Using translation as an example:

Warning
Beware that some of these routines clobber the matrix currently loaded as the active 4x4 matrix, XMTRX.
See also
XMTRX