Vector.length_vectors

static Vector.length_vectors(vectors)[source]

Compute the length of multiple vectors.

Parameters

vectors (list[[float, float, float] | 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]