sumolib.geomhelper | index /home/behr_mi/sumo/tools/sumolib/geomhelper.py

`@file geomhelper.py
@author Daniel Krajzewicz
@date 2013-02-25
@version $Id: geomhelper.py 13886 2013-05-06 10:18:57Z namdre $
Some helper functions for geometrical computations.
SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
Copyright (C) 2008-2013 DLR (http://www.dlr.de/) and contributors
All rights reserved`

Modules
`` |  |
math |  |  |

Functions
`` |  | distance(p1, p2) distancePointToLine(point, line_start, line_end, perpendicular=False) `Return the minimum distance between point and the line (line_start, line_end)` distancePointToPolygon(point, polygon, perpendicular=True) `Return the minimum distance between point and polygon` lineOffsetWithMinimumDistanceToPoint(point, line_start, line_end, perpendicular=False) `Return the offset from line (line_start, line_end) where the distance to point is minimal` polygonOffsetWithMinimumDistanceToPoint(point, polygon) `Return the offset from the polygon start where the distance to point is minimal`

Data
`` |  | INVALID_DISTANCE = -1