normalize_vector_xy

compas.geometry.normalize_vector_xy(vector)[source]

Normalize a vector, assuming it lies in the XY-plane.

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

XY(Z) components of the vector.

Returns:
[float, float, 0.0]

The normalized vector in the XY-plane.

Examples

>>>