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[float, float] or [float, float, float] | compas.geometry.Vector

XY(Z) coordinates of the first vector.

v[float, float] or [float, float, float] | compas.geometry.Vector

XY(Z) coordinates of the second vector.

degbool, optional

If True, returns the angle in degrees.

Returns:
float

The smallest angle in radians, or in degrees if deg == True.

float

The other angle.

Notes

Z components may be provided, but are simply ignored.

Examples

>>>