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 ([float, float, float] | Point) – XYZ coordinates.

  • b ([float, float, float] | Point) – XYZ coordinates.

  • c ([float, float, float] | Point) – XYZ coordinates.

  • 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.

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

>>>