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

classify_aabb_clip4

Function classify_aabb_clip4 

Source
pub fn classify_aabb_clip4(
    mins: [i16; 3],
    maxs: [i16; 3],
    planes: &[AabbClipPlane; 4],
    clip_flags: u8,
) -> i32
Expand description

Classify a signed-integer AABB against four planes loaded by load_aabb_clip4.

clip_flags selects active planes in bits zero through three. Returns -1 when the box is fully outside any active plane; otherwise returns the remaining intersecting-plane flags after fully-inside planes are cleared. The GTE path computes the same unshifted signed Q12 dot products as six scalar MIPS multiplications per active plane.