normalize_vector

compas.geometry.normalize_vector(vector)[source]

Normalise a given vector.

Parameters:
vector[float, float, float] | compas.geometry.Vector

XYZ components of the vector.

Returns:
[float, float, float]

The normalized vector.

Examples

>>>