Skip to main content

clamp

Function clamp 

Source
pub fn clamp(v: Vec2, a: Vec2, b: Vec2) -> Vec2
Expand description

Component-wise clamp vector v into the range [a, b]