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.

Returns:
list[float]

A list of lengths.

Examples

>>> Vector.length_vectors([[1.0, 0.0, 0.0], [2.0, 0.0, 0.0]])
[1.0, 2.0]