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
Guilhem Saurel
ndcurves
Commits
0b850548
Commit
0b850548
authored
Nov 28, 2017
by
t steve
Browse files
added zero spline
parent
abf60b19
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/spline/bezier_curve.h
View file @
0b850548
...
...
@@ -301,7 +301,13 @@ struct bezier_curve : public curve_abc<Time, Numeric, Dim, Safe, Point>
private:
t_point_t
pts_
;
//storing bernstein polynoms, even in low dimension
public:
static
bezier_curve_t
zero
(
const
time_t
T
=
1.
)
{
std
::
vector
<
point_t
>
ts
;
ts
.
push_back
(
point_t
::
Zero
());
return
bezier_curve_t
(
ts
.
begin
(),
ts
.
end
(),
T
);
}
};
}
#endif //_CLASS_BEZIERCURVE
...
...
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