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
2b3bf942
Commit
2b3bf942
authored
Nov 15, 2018
by
stevet
Browse files
tentative bug fix for extract
parent
55466e8d
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/spline/bezier_curve.h
View file @
2b3bf942
...
...
@@ -325,6 +325,8 @@ struct bezier_curve : public curve_abc<Time, Numeric, Dim, Safe, Point>
bezier_curve_t
extract
(
const
Numeric
t1
,
const
Numeric
t2
){
if
(
t1
<
0.
||
t1
>
T_
||
t2
<
0.
||
t2
>
T_
)
throw
std
::
out_of_range
(
"In Extract curve : times out of bounds"
);
if
(
t1
==
0.
&&
t2
==
T_
)
return
bezier_curve_t
(
waypoints
().
begin
(),
waypoints
().
end
(),
T_
,
mult_T_
);
if
(
t1
==
0.
)
return
split
(
t2
).
first
;
if
(
t2
==
T_
)
...
...
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