Mercurial Hosting > traffic-intelligence
diff python/tests/moving.txt @ 253:44704f53ffc8
Fusion
author | Jeep-Tour@Jeep-Tour-PC |
---|---|
date | Mon, 23 Jul 2012 12:35:35 -0400 |
parents | 99173da7afae |
children | 13ec22bec5d4 |
line wrap: on
line diff
--- a/python/tests/moving.txt Mon Jul 23 12:30:09 2012 -0400 +++ b/python/tests/moving.txt Mon Jul 23 12:35:35 2012 -0400 @@ -37,8 +37,8 @@ 2 >>> TimeInterval(20,30).distance(TimeInterval(3,15)) 5 ->>> Interval.union([TimeInterval(3,6), TimeInterval(8,10),TimeInterval(11,15)]) -[3,15] +>>> unionIntervals([TimeInterval(3,6), TimeInterval(8,10),TimeInterval(11,15)]) +[3, 15] >>> Point(3,4)-Point(1,7) (2.000000,-3.000000) @@ -54,6 +54,9 @@ >>> Point(3,2).inPolygon([Point(0,0),Point(4,0),Point(4,3),Point(0,3)]) True +>>> predictPosition(10, Point(0,0), Point(1,1)) # doctest:+ELLIPSIS +(10...,10...) + >>> 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))