angle_vectors_xy

compas.geometry.angle_vectors_xy(u, v, deg=False, tol=0.0001)[source]

Compute the smallest angle between the XY components of two vectors.

Parameters
  • u (sequence of float) – The first 2D or 3D vector (Z will be ignored).

  • v (sequence of float)) – The second 2D or 3D vector (Z will be ignored).

  • deg (boolean) – returns angle in degrees if True

Returns

float – The smallest angle between the vectors in radians (in degrees if deg == True). The angle is always positive.

Examples

>>>