Skip to content
Snippets Groups Projects
test.py 381 B
Newer Older
from spline import bezier, spline

from numpy import matrix

waypoints = matrix([[1.,2.,3.],[4.,5.,6.]]).transpose()

a = bezier(waypoints)
a = bezier(waypoints, -1., 3.)
a.min()
a.max()
a(0.4)


#testing spline function
a = spline(waypoints)
a = spline(waypoints, -1., 3.)
assert((a.derivate(0.4,0) == a(0.4)).all())
a.derivate(0.4,2)