Skip to main content

is_unit

Function is_unit 

Source
pub fn is_unit<T>(a: &Vector3<T>) -> bool
where T: Float + Scalar + ComplexField<RealField = T>,
Expand description

Determine whether a Vector3 is a unit vector.

  • a - the vector.

returns true if a is a unit vector, false otherwise.