Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jason Chemin
hpp-rbprm-corba
Commits
79eb524f
Commit
79eb524f
authored
Mar 30, 2018
by
Pierre Fernbach
Browse files
add max() method in polyBezier python class
parent
52645b4a
Changes
1
Hide whitespace changes
Inline
Side-by-side
script/tools/polyBezier.py
View file @
79eb524f
...
...
@@ -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
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment