Mercurial Hosting > traffic-intelligence
comparison python/tests/moving.txt @ 96:9928c2fa72cc
added equal method to intervals
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Mon, 13 Jun 2011 16:50:40 -0400 |
parents | a5ef9e40688e |
children | 13187af8622d |
comparison
equal
deleted
inserted
replaced
95:857bcd41e9a2 | 96:9928c2fa72cc |
---|---|
14 | 14 |
15 >>> TimeInterval(0,1).length() | 15 >>> TimeInterval(0,1).length() |
16 2.0 | 16 2.0 |
17 >>> TimeInterval(10,8).length() | 17 >>> TimeInterval(10,8).length() |
18 0.0 | 18 0.0 |
19 | |
20 >>> TimeInterval(2,5).equal(TimeInterval(2,5)) | |
21 True | |
22 >>> TimeInterval(2,5).equal(TimeInterval(2,4)) | |
23 False | |
24 >>> TimeInterval(2,5).equal(TimeInterval(5,2)) | |
25 False | |
19 | 26 |
20 >>> Point(3,4)-Point(1,7) | 27 >>> Point(3,4)-Point(1,7) |
21 (2.000000,-3.000000) | 28 (2.000000,-3.000000) |
22 | 29 |
23 >>> Point(3,2).norm2Squared() | 30 >>> Point(3,2).norm2Squared() |