Mercurial Hosting > traffic-intelligence
diff trafficintelligence/tests/moving.txt @ 1110:6bbcd9433732
formatting and addition of one method to CurvilinearTrajectory
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Mon, 06 May 2019 16:16:28 -0400 |
parents | 799ef82caa1a |
children | 7135b5eaa6b4 |
line wrap: on
line diff
--- a/trafficintelligence/tests/moving.txt Tue Apr 16 11:58:23 2019 -0400 +++ b/trafficintelligence/tests/moving.txt Mon May 06 16:16:28 2019 -0400 @@ -232,6 +232,11 @@ >>> o.interpolateCurvilinearPositions(10.7) # doctest:+ELLIPSIS [14.09999..., 0.69999..., 'a'] +>>> t1 = CurvilinearTrajectory.generate(3, 1., 10, 'b') +>>> t1.duplicateLastPosition() +>>> t1[-1] == t1[-2] +True + >>> a = Trajectory.generate(Point(0.,0.), Point(10.,0.), 4) >>> t = Trajectory.generate(Point(0.1,-1.), Point(1.,0.), 22) >>> prepareAlignments([a])