Mercurial > hg > nsaunier > traffic-intelligence
comparison python/tests/moving.txt @ 451:cd342a774806
Point/CurvilinearTrajectory/Interaction utiles
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Thu, 13 Feb 2014 01:24:27 -0500 |
| parents | 349eb1e09f45 |
| children | a40c75f04903 |
comparison
equal
deleted
inserted
replaced
| 450:c0786fe4ad94 | 451:cd342a774806 |
|---|---|
| 40 >>> unionIntervals([TimeInterval(3,6), TimeInterval(8,10),TimeInterval(11,15)]) | 40 >>> unionIntervals([TimeInterval(3,6), TimeInterval(8,10),TimeInterval(11,15)]) |
| 41 [3, 15] | 41 [3, 15] |
| 42 | 42 |
| 43 >>> Point(3,4)-Point(1,7) | 43 >>> Point(3,4)-Point(1,7) |
| 44 (2.000000,-3.000000) | 44 (2.000000,-3.000000) |
| 45 >>> -Point(1,2) | |
| 46 (-1.000000,-2.000000) | |
| 45 | 47 |
| 46 >>> Point(3,2).norm2Squared() | 48 >>> Point(3,2).norm2Squared() |
| 47 13 | 49 13 |
| 48 | 50 |
| 49 >>> Point.distanceNorm2(Point(3,4),Point(1,7)) | 51 >>> Point.distanceNorm2(Point(3,4),Point(1,7)) |
