angles_vectors

compas.geometry.angles_vectors(u, v, deg=False)[source]

Compute the the 2 angles formed by a pair of vectors.

Parameters:
u[float, float, float] | compas.geometry.Vector

XYZ components of the first vector.

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

XYZ components 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.

Examples

>>>