Function signed_min

Source
fn signed_min(v: f32, min: f32) -> f32
Expand description

Keep v’s direction while forcing at least min of length, so a zero-length drag still makes a visible shape without flipping which way it points.