Vector.sum_vectors

static Vector.sum_vectors(vectors)[source]

Compute the sum of multiple vectors.

Parameters:
vectorslist[[float, float, float] | compas.geometry.Vector]

A list of vectors.

Returns:
compas.geometry.Vector

A vector that is the sum of the vectors.

Examples

>>> result = Vector.sum_vectors([[1.0, 0.0, 0.0], [2.0, 0.0, 0.0]])
>>> print(result)
Vector(x=3.000, y=0.000, z=0.000)