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

lerp_q12_i32_rounded

Function lerp_q12_i32_rounded 

Source
pub fn lerp_q12_i32_rounded(first: i32, second: i32, fraction: i32) -> i32
Expand description

Bounded Q12 interpolation rounded to nearest, matching Quake-PSX’s cached-depth near clip.