Function unit_sphere::vector::is_unit

source ยท
pub fn is_unit(a: &Vector3d) -> bool
Expand description

Determine whether a Vector3d is a unit vector.

  • a - the vector.

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