Skip to main content

clip

Function clip 

Source
pub fn clip(x: &mut [Number], lo: &[Number], hi: &[Number], has_box: bool)
Expand description

Clip x into [lo, hi] when a finite box is known (no-op otherwise).