Commit 79eb524f authored by Pierre Fernbach's avatar Pierre Fernbach
Browse files

add max() method in polyBezier python class

parent 52645b4a
......@@ -44,6 +44,9 @@ class PolyBezier:
def length(self):
return self.times[-1]
def max(self):
return self.length()
def lengthNonZero(self):
length = 0
......@@ -123,4 +126,4 @@ class PolyBezier:
if len(self.jerk_curves) == len(self.curves):
return self.jerk_curves[id](t)
else :
return self.curves[id].derivate(t,3)
\ No newline at end of file
return self.curves[id].derivate(t,3)
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