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