Vector.sum_vectors

static Vector.sum_vectors(vectors)[source]

Compute the sum of multiple vectors.

Parameters

vectors (list[[float, float, float] | compas.geometry.Vector]) – A list of vectors.

Returns

compas.geometry.Vector – A vector that is the sum of the vectors.

Examples

>>> Vector.sum_vectors([[1.0, 0.0, 0.0], [2.0, 0.0, 0.0]])
Vector(3.000, 0.000, 0.000)