Skip to main content

si_pythagorean48_encode

Function si_pythagorean48_encode 

Source
#[unsafe(no_mangle)]
pub extern "C" fn si_pythagorean48_encode(x: f64, y: f64) -> u8
Expand description

Quantize a 2D direction to one of 48 evenly-spaced angles (7.5° increments). Returns a u8 in [0, 47].