Function nalgebra_glm::step_scalar
source · pub fn step_scalar<N: Number>(edge: N, x: N) -> N
Expand description
Returns 0.0 if x < edge
, otherwise it returns 1.0.
pub fn step_scalar<N: Number>(edge: N, x: N) -> N
Returns 0.0 if x < edge
, otherwise it returns 1.0.