Mercurial Hosting > traffic-intelligence
diff python/moving.py @ 659:784298512b60
minor modifications
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Thu, 14 May 2015 23:18:44 +0200 |
parents | 107f1ad02b69 |
children | 994dd644f6ab |
line wrap: on
line diff
--- a/python/moving.py Thu May 14 19:48:09 2015 +0200 +++ b/python/moving.py Thu May 14 23:18:44 2015 +0200 @@ -389,14 +389,16 @@ def getSYfromXY(p, splines, goodEnoughSplineDistance = 0.5): ''' Snap a point p to it's nearest subsegment of it's nearest spline (from the list splines). A spline is a list of points (class Point), most likely a trajectory. - Output: - ======= - [spline index, - subsegment leading point index, - snapped point, - subsegment distance, - spline distance, - orthogonal point offset] + Output: + ======= + [spline index, + subsegment leading point index, + snapped point, + subsegment distance, + spline distance, + orthogonal point offset] + + or None ''' minOffsetY = float('inf') #For each spline