Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pierre Fernbach
hpp-spline
Commits
b27a351a
Commit
b27a351a
authored
Apr 16, 2019
by
Pierre Fernbach
Browse files
[bezier] fix evaluation of bezier of degree 0
parent
dfaa680e
Pipeline
#4118
passed with stage
in 2 minutes and 47 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
include/hpp/spline/bezier_curve.h
View file @
b27a351a
...
...
@@ -142,7 +142,11 @@ struct bezier_curve : public curve_abc<Time, Numeric, Dim, Safe, Point>
{
if
(
Safe
&!
(
0
<=
t
&&
t
<=
T_
))
throw
std
::
out_of_range
(
"can't evaluate bezier curve, out of range"
);
// TODO
return
evalHorner
(
t
);
if
(
size_
==
1
){
return
mult_T_
*
pts_
[
0
];
}
else
{
return
evalHorner
(
t
);
}
}
/// \brief Computes the derivative curve at order N.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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