diff python/tests/moving.txt @ 571:a9c1d61a89b4

corrected bug for segment intersection
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Thu, 07 Aug 2014 00:05:14 -0400
parents 0057c04f94d5
children cae4e5f3fe9f
line wrap: on
line diff
--- a/python/tests/moving.txt	Wed Aug 06 17:54:01 2014 -0400
+++ b/python/tests/moving.txt	Thu Aug 07 00:05:14 2014 -0400
@@ -44,6 +44,8 @@
 (2.000000,-3.000000)
 >>> -Point(1,2)
 (-1.000000,-2.000000)
+>>> Point(1,2).multiply(0.5)
+(0.500000,1.000000)
 
 >>> Point(3,2).norm2Squared()
 13
@@ -61,7 +63,7 @@
 
 >>> segmentIntersection(Point(0,0), Point(0,1), Point(1,1), Point(2,3))
 >>> segmentIntersection(Point(0,1), Point(0,3), Point(1,0), Point(3,1))
->>> segmentIntersection(Point(0,0), Point(2,2), Point(0,2), Point(2,0))
+>>> segmentIntersection(Point(0.,0.), Point(2.,2.), Point(0.,2.), Point(2.,0.))
 (1.000000,1.000000)
 >>> segmentIntersection(Point(0,1), Point(1,2), Point(2,0), Point(3,2))