Vector.dot_vectors

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

Compute the dot product of two lists of vectors.

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

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