angles_vectors
- compas.geometry.angles_vectors(u, v, deg=False)[source]
Compute the the 2 angles formed by a pair of vectors.
- Parameters
u (sequence of float) – XYZ components of the first vector.
v (sequence of float) – XYZ components of the second vector.
deg (boolean) – returns angles in degrees if True
- Returns
tuple – The smallest angle between the vectors in radians (in degrees if deg == True). The smallest angle is returned first.
Examples
>>>