bezier_curve.h
Go to the documentation of this file.
1 /*******************************************************************************
2 * Copyright 2018 ROBOTIS CO., LTD.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *******************************************************************************/
16 
17 /*
18  * bezier_curve.h
19  *
20  * Created on: 2016. 8. 12.
21  * Author: Jay Song
22  */
23 
24 #ifndef ROBOTIS_MATH_BEZIER_CURVE_H_
25 #define ROBOTIS_MATH_BEZIER_CURVE_H_
26 
27 #include <vector>
28 
29 #include "robotis_math_base.h"
30 #include "robotis_linear_algebra.h"
31 
33 {
34 
36 {
37 public:
38  BezierCurve();
39  ~BezierCurve();
40 
41  void setBezierControlPoints(const std::vector<Point2D>& points);
42 
43  Point2D getPoint(double t);
44 
45 private:
46  std::vector<Point2D> control_points_;
47 
48 };
49 
50 }
51 
52 
53 #endif /* ROBOTIS_MATH_BEZIER_CURVE_H_ */
std::vector< Point2D > control_points_
Definition: bezier_curve.h:46
void setBezierControlPoints(const std::vector< Point2D > &points)


robotis_math
Author(s): SCH , Kayman , Jay Song
autogenerated on Fri Jul 17 2020 03:17:50