Module geometry
[hide private]
[frames] | no frames]

Module geometry

source code

Functions [hide private]
 
distance2D(a, b)
2D distance between two points (x1, y1) and (x2, y2)
source code
 
orientation2D(a, b)
Orientation of the vector b-a.
source code
 
computeShortestTurn(fromAng, toAng)
Computes that shortest angle (positive or negative) between 2 angles.
source code
 
averagePoint2D(pointList)
return the average point in a list of (x,y) points
source code
Variables [hide private]
  __package__ = None
  e = 2.71828182846
  pi = 3.14159265359
Function Details [hide private]

orientation2D(a, b)

source code 

Orientation of the vector b-a. The results is between -180 and 180 degrees