Vector.sum_vectors

static Vector.sum_vectors(vectors)[source]

Compute the sum of multiple vectors.

Parameters

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

Returns

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)