view python/tests/extrapolation.txt @ 255:13ec22bec5d4

corrected typos and bugs and added a test
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Mon, 23 Jul 2012 23:07:19 -0400
parents
children dc1faa7287bd
line wrap: on
line source

>>> import extrapolation
>>> import moving

>>> et = extrapolation.ExtrapolatedTrajectoryConstant(moving.Point(0,0), moving.Point(1,0))
>>> et.predictPosition(4) # doctest:+ELLIPSIS
(0.0...,4.0...)
>>> et.predictPosition(1) # doctest:+ELLIPSIS
(0.0...,1.0...)