Vector.dot_vectors

static Vector.dot_vectors(left, right)[source]

Compute the dot product of two lists of vectors.

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

A list of vectors.

rightlist[[float, float, float] | compas.geometry.Vector]

A list of vectors.

Returns:
list[float]

A list of dot products.

Examples

>>> Vector.dot_vectors([[1.0, 0.0, 0.0], [2.0, 0.0, 0.0]], [[1.0, 0.0, 0.0], [2.0, 0.0, 0.0]])
[1.0, 4.0]