angles_points

compas.geometry.angles_points(a, b, c, deg=False)[source]

Compute the two angles between two vectors defined by three points.

Parameters
  • a (sequence of float)) – XYZ coordinates.

  • b (sequence of float)) – XYZ coordinates.

  • c (sequence of float)) – XYZ coordinates.

  • 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

The vectors are defined in the following way

\[\begin{split}\mathbf{u} = \mathbf{b} - \mathbf{a} \\ \mathbf{v} = \mathbf{c} - \mathbf{a}\end{split}\]

Examples

>>>