Compute the squared length of a vector.
vector ([float, float, float] | Vector) – XYZ components of the vector.
Vector
float – The squared length.
Examples
>>> length_vector_sqrd([1.0, 1.0, 0.0]) 2.0
A computational framework for collaboration and research in Architecture, Engineering, Fabrication, and Construction.
Copyright © 2017-2021 compas-dev