angle_vectors
- compas.geometry.angle_vectors(u, v, deg=False, tol=0.0)[source]
Compute the smallest angle between two vectors.
- Parameters
- Returns
float – The smallest angle in radians (in degrees if
deg == True
). The angle is always positive.
Examples
>>> angle_vectors([0.0, 1.0, 0.0], [1.0, 0.0, 0.0]) 1.57079