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.
- leftlist[[float, float, float] |
- Returns:
- list[float]
A list of dot products.
Examples
>>> result = 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]]) >>> print(result) [1.0, 4.0]