Skip to main content

normalize_fit

Function normalize_fit 

Source
pub fn normalize_fit(segs: &mut [SegmentInstance], target: f32)
Expand description

Center segs and uniformly scale them to fit within [-target, target] on the larger axis, so any figure (whatever its raw extent per depth) frames itself in the view. A degenerate (zero-extent) set is left untouched.