[][src]Function tray_rust::linalg::clamp

pub fn clamp<T: PartialOrd>(x: T, min: T, max: T) -> T

Clamp x to be between min and max