Function clampf::clamp[][src]

pub fn clamp<T: Float>(value: T) -> T

Constrain the value to the range [0,1].