Skip to content

get angle

Katya Soltan edited this page Aug 11, 2017 · 5 revisions

get_angle

Calculates angle of vector defined by two points with respect to the +x axis.

Parameters:

   pt1 - Coordinates defining initial point of vector
   pt2 - Coordinates defining terminal point of vector

Returns:

  Angle between vector defined by pt1 and pt2 from horizontal.
  -180 < theta < 180

See Also:


atan2d

Clone this wiki locally