Skip to main content

sdf_box

Function sdf_box 

Source
pub fn sdf_box(p: [f64; 3], center: [f64; 3], b: [f64; 3]) -> f64
Expand description

Signed distance from point p to an axis-aligned box centred at center with half-extents b.