length_vector_xy
- compas.geometry.length_vector_xy(vector)[source]
Compute the length of a vector, assuming it lies in the XY plane.
- Parameters
vector ([float, float, float] |
Vector
) – XY(Z) components of the vector.- Returns
float – The length of the XY component of the vector.
Examples
>>> length_vector_xy([2.0, 0.0]) 2.0
>>> length_vector_xy([2.0, 0.0, 0.0]) 2.0
>>> length_vector_xy([2.0, 0.0, 2.0]) 2.0