Vector.length_vectors
- static Vector.length_vectors(vectors)[source]
Compute the length of multiple vectors.
- Parameters:
- vectorslist[[float, float, float] |
compas.geometry.Vector
] A list of vectors.
- vectorslist[[float, float, float] |
- Returns:
- list[float]
A list of lengths.
Examples
>>> result = Vector.length_vectors([[1.0, 0.0, 0.0], [2.0, 0.0, 0.0]]) >>> print(result) [1.0, 2.0]