Mercurial > hg > nsaunier > traffic-intelligence
comparison python/tests/moving.txt @ 674:01b89182891a
corrected bug for intersection of lines (thanks to Paul for finding)
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Tue, 26 May 2015 18:16:51 +0200 |
| parents | dc70d9e711f5 |
| children | fbe29be25501 |
comparison
equal
deleted
inserted
replaced
| 673:5505f9dbb28e | 674:01b89182891a |
|---|---|
| 64 | 64 |
| 65 >>> segmentIntersection(Point(0,0), Point(0,1), Point(1,1), Point(2,3)) | 65 >>> segmentIntersection(Point(0,0), Point(0,1), Point(1,1), Point(2,3)) |
| 66 >>> segmentIntersection(Point(0,1), Point(0,3), Point(1,0), Point(3,1)) | 66 >>> segmentIntersection(Point(0,1), Point(0,3), Point(1,0), Point(3,1)) |
| 67 >>> segmentIntersection(Point(0.,0.), Point(2.,2.), Point(0.,2.), Point(2.,0.)) | 67 >>> segmentIntersection(Point(0.,0.), Point(2.,2.), Point(0.,2.), Point(2.,0.)) |
| 68 (1.000000,1.000000) | 68 (1.000000,1.000000) |
| 69 >>> segmentIntersection(Point(0,0), Point(4,4), Point(0,4), Point(4,0)) | |
| 70 (2.000000,2.000000) | |
| 69 >>> segmentIntersection(Point(0,1), Point(1,2), Point(2,0), Point(3,2)) | 71 >>> segmentIntersection(Point(0,1), Point(1,2), Point(2,0), Point(3,2)) |
| 70 | 72 |
| 71 >>> left = Trajectory.fromPointList([(92.291666666666686, 102.99239033124439), (56.774193548387103, 69.688898836168306)]) | 73 >>> left = Trajectory.fromPointList([(92.291666666666686, 102.99239033124439), (56.774193548387103, 69.688898836168306)]) |
| 72 >>> middle = Trajectory.fromPointList([(87.211021505376351, 93.390778871978512), (59.032258064516128, 67.540286481647257)]) | 74 >>> middle = Trajectory.fromPointList([(87.211021505376351, 93.390778871978512), (59.032258064516128, 67.540286481647257)]) |
| 73 >>> right = Trajectory.fromPointList([(118.82392473118281, 115.68263205013426), (63.172043010752688, 66.600268576544309)]) | 75 >>> right = Trajectory.fromPointList([(118.82392473118281, 115.68263205013426), (63.172043010752688, 66.600268576544309)]) |
