Commit fab62c18 authored by Steve T's avatar Steve T
Browse files

testing elevate for bezier3 type

parent 1155c0f4
......@@ -68,6 +68,12 @@ class TestCurves(unittest.TestCase):
dt = float(i) / 100. * 3.
self.assertTrue(norm(a(dt) - a1(dt)) < __EPS)
a = bezier3(waypoints, 0., 3.)
a1 = a.elevate();
for i in range(100):
dt = float(i) / 100. * 3.
self.assertTrue(norm(a(dt) - a1(dt)) < __EPS)
# self.assertTrue((a.waypoints == waypoints).all())
# Test : Degree, min, max, derivate
# self.print_str(("test 1")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment