Function sd_poly

Source
fn sd_poly(px: f32, py: f32, pts: &[[f32; 2]]) -> f32
Expand description

Signed distance to the closed polygon through pts (negative inside).