normalize_vector

spherical_geometry.vector.normalize_vector(xyz, output=None)[source]

Normalizes a vector so it falls on the unit sphere.

Parameters:
xyzNx3 array of vectors

The input vectors

outputNx3 array of vectors, optional

The array to store the results in. If None, a new array will be created and returned.

Returns:
outputNx3 array of vectors