Vector.angle_vectors
- static Vector.angle_vectors(left, right)[source]
Compute the smallest angle between corresponding pairs of two lists of vectors.
- Parameters
left (list[[float, float, float] |
compas.geometry.Vector
]) – A list of vectors.right (list[[float, float, float] |
compas.geometry.Vector
]) – A list of vectors.
- Returns
list[float] – A list of angles.
Examples
>>> Vector.angle_vectors([[1.0, 0.0, 0.0], [2.0, 0.0, 0.0]], [[0.0, 1.0, 0.0], [0.0, 0.0, 2.0]]) [1.5707963267948966, 1.5707963267948966]