Package mosp :: Package geo :: Module utils
[hide private]
[frames] | no frames]

Module utils

source code

Utils


Author: F. Ludwig, B. Henne

Contact: henne@dcsec.uni-hannover.de

Copyright: (c) 2010, DCSec, Leibniz Universitaet Hannover, Germany

License: GPLv3

Functions [hide private]
 
distance(node1, node2)
Euclidean distance of two nodes given by the Pythagorean formula.
source code
 
atan2Deg(x, y)
Returns the atan2(y, x) in degrees
source code
 
angleToXAxis(x, y)
Returns the angle in degrees between the x-axis and the line through origin and point (x,y)
source code
 
inDistance(x1, y1, x2, y2, distance)
Returns, whether point (x1,y1) and point (x2,y2) are in a distance lower or equal distance
source code
 
pointInSector(pointX, pointY, originX, originY, radius, centralAngle, direction)
Returns whether a point (x,y) is in a sector of a circle with given coordinates (x,y), radius, angle and direction
source code
Variables [hide private]
  __maintainer__ = 'B. Henne'
  __package__ = 'mosp.geo'
Function Details [hide private]

distance(node1, node2)

source code 

Euclidean distance of two nodes given by the Pythagorean formula.

Author: F. Ludwig