Mercurial > hg > nsaunier > traffic-intelligence
comparison python/tests/moving.txt @ 573:cae4e5f3fe9f
fixed and simplified getSYfromXY
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Tue, 12 Aug 2014 17:47:16 -0400 |
| parents | a9c1d61a89b4 |
| children | 0eff0471f9cb |
comparison
equal
deleted
inserted
replaced
| 572:9c429c7efe89 | 573:cae4e5f3fe9f |
|---|---|
| 71 >>> middle = [(87.211021505376351, 93.390778871978512), (59.032258064516128, 67.540286481647257)] | 71 >>> middle = [(87.211021505376351, 93.390778871978512), (59.032258064516128, 67.540286481647257)] |
| 72 >>> right = [(118.82392473118281, 115.68263205013426), (63.172043010752688, 66.600268576544309)] | 72 >>> right = [(118.82392473118281, 115.68263205013426), (63.172043010752688, 66.600268576544309)] |
| 73 >>> alignments = [left, middle, right] | 73 >>> alignments = [left, middle, right] |
| 74 >>> getSYfromXY(73, 82, alignments) | 74 >>> getSYfromXY(73, 82, alignments) |
| 75 [1, 0, 73.81997726720346, 81.10617000672484, 18.172277808821125, 18.172277808821125, 1.2129694042343868] | 75 [1, 0, 73.81997726720346, 81.10617000672484, 18.172277808821125, 18.172277808821125, 1.2129694042343868] |
| 76 >>> getSYfromXY(78, 83, alignments, 0.5) | |
| 77 [1, 0, 77.03318826883, 84.05388936710071, 13.811799123113715, 13.811799123113715, -1.4301775140225983] | |
| 76 | 78 |
| 77 >>> Trajectory().length() | 79 >>> Trajectory().length() |
| 78 0 | 80 0 |
| 79 >>> t1 = Trajectory([[0.5,1.5,2.5],[0.5,3.5,6.5]]) | 81 >>> t1 = Trajectory([[0.5,1.5,2.5],[0.5,3.5,6.5]]) |
| 80 >>> t1.length() == 3. | 82 >>> t1.length() == 3. |
