angles_vectors_xy
- compas.geometry.angles_vectors_xy(u, v, deg=False)[source]
Compute the angles between the XY components of two vectors.
- Parameters
u (sequence of float) – XY(Z) coordinates of the first vector.
v (sequence of float) – XY(Z) coordinates 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.
Notes
Z components may be provided, but are simply ignored.
Examples
>>>