length_vector_sqrd
- compas.geometry.length_vector_sqrd(vector)[source]
Compute the squared length of a vector.
- Parameters
vector ([float, float, float] |
compas.geometry.Vector
) – XYZ components of the vector.- Returns
float – The squared length.
Examples
>>> length_vector_sqrd([1.0, 1.0, 0.0]) 2.0