sumolib.geomhelper
index
/build/sumo-pCkLSE/sumo-0.32.0+dfsg1/tools/sumolib/geomhelper.py

# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
# Copyright (C) 2013-2017 German Aerospace Center (DLR) and others.
# This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v2.0
# which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v20.html

 
Modules
       
math

 
Functions
       
angle2D(p1, p2)
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=False)
Return the minimum distance between point and polygon
isWithin(pos, shape)
lineOffsetWithMinimumDistanceToPoint(point, line_start, line_end, perpendicular=False)
Return the offset from line (line_start, line_end) where the distance to
point is minimal
polyLength(polygon)
polygonOffsetAndDistanceToPoint(point, polygon, perpendicular=False)
Return the offset and the distance from the polygon start where the distance to the point is minimal
polygonOffsetWithMinimumDistanceToPoint(point, polygon, perpendicular=False)
Return the offset from the polygon start where the distance to the point is minimal
positionAtOffset(p1, p2, offset)
positionAtShapeOffset(shape, offset)

 
Data
        INVALID_DISTANCE = -1
absolute_import = _Feature((2, 5, 0, 'alpha', 1), (3, 0, 0, 'alpha', 0), 16384)