Mercurial Hosting > traffic-intelligence
diff python/tests/moving.txt @ 152:74b1fc68d4df
re-organized code to avoid cyclic python module dependencies
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Tue, 06 Sep 2011 18:44:23 -0400 |
parents | 606010d1d9a4 |
children | 571ba5ed22e2 |
line wrap: on
line diff
--- a/python/tests/moving.txt Tue Sep 06 17:55:06 2011 -0400 +++ b/python/tests/moving.txt Tue Sep 06 18:44:23 2011 -0400 @@ -43,6 +43,12 @@ >>> Point(3,2).inPolygon([Point(0,0),Point(4,0),Point(4,3),Point(0,3)]) True +>>> segmentIntersection(Point(0,0),Point(1,1), Point(0,1), Point(1,2)) +>>> segmentIntersection(Point(0,1),Point(1,0), Point(0,2), Point(2,1)) +>>> segmentIntersection(Point(0,0),Point(2,0), Point(1,-1),Point(1,1)) +(1.000000,0.000000) +>>> segmentIntersection(Point(0,1),Point(2,0),Point(1,1),Point(1,2)) + >>> Trajectory().length() 0 >>> t1 = Trajectory([[0.5,1.5,2.5],[0.5,3.5,6.5]])