Skip to main content
← PSoXide SDK guides and examples · SDK f2fec1c301f1 · All Cargo features enabled; check feature gates before use.

Module math

Module math 

Source
Expand description

Fixed-point math types for GTE inputs/outputs.

Re-exported verbatim from psx_gte_core::math so the SDK and the emulator share one definition. See that crate for type-level docs.

Structs§

Mat3I16
3×3 rotation / light matrix of i16 in 1.3.12. Laid out row-major so m[row][col] matches PSX-SPX notation (M_rc).
Vec3I16
3-component vector of i16 in 1.3.12 fixed point. Matches the GTE’s V0/V1/V2 input slots and the IR accumulators.
Vec3I32
3-component vector of i32 – used for translation / colour bias / far colour values (stored raw in 31.0 or 19.12 depending on which register, see the GTE spec).