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] | Vector) – XYZ components of the first vector.

  • v ([float, float, float] | Vector) – XYZ components of the second vector.

  • deg (bool, 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

>>>