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.
- vector[float, float, float] |
- Returns:
- float
The squared length.
Examples
>>> length_vector_sqrd([1.0, 1.0, 0.0]) 2.0