Function unit_sphere::vector::normalise
source ยท pub fn normalise(a: &Vector3d) -> Option<Vector3d>Expand description
Normalize a vector to lie on the surface of the unit sphere.
Note: this function returns an Option so uses the British spelling of
normalise to differentiate it from the standard normalize function.
atheVector3d
return the nomalized point or None if the vector is too small to normalize.