Function nalgebra_glm::step_vec
source · pub fn step_vec<N: Number, D: Dimension>(
edge: &TVec<N, D>,
x: &TVec<N, D>
) -> TVec<N, D>where
DefaultAllocator: Alloc<N, D>,
Expand description
Returns 0.0 if x[i] < edge[i]
, otherwise it returns 1.0.