angles_points_xy

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

Compute the two angles between the two vectors defined by the XY components of three points.

Parameters
  • a (sequence of float)) – XY(Z) coordinates.

  • b (sequence of float)) – XY(Z) coordinates.

  • c (sequence of float)) – XY(Z) 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}\]

Z components may be provided, but are simply ignored.

Examples

>>>