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

sin_1_3_12

Function sin_1_3_12 

Source
pub const fn sin_1_3_12(angle: u16) -> i16
Expand description

Sine of angle in 256-per-revolution units, returned in 1.3.12.

Angles wrap modulo 256. Values are piecewise-linear approximations of sin – accurate to within ±1 LSB of the 1.3.12 representation, which is good enough for real-time 3D but not for scientific use.