Main Page
Namespaces
Classes
Files
File List
File Members
include
robotis_math
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
32
namespace
robotis_framework
33
{
34
35
class
BezierCurve
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_ */
robotis_framework::BezierCurve::control_points_
std::vector< Point2D > control_points_
Definition:
bezier_curve.h:46
robotis_math_base.h
robotis_linear_algebra.h
robotis_framework::BezierCurve::BezierCurve
BezierCurve()
Definition:
bezier_curve.cpp:28
robotis_framework::BezierCurve::getPoint
Point2D getPoint(double t)
Definition:
bezier_curve.cpp:44
robotis_framework::BezierCurve::~BezierCurve
~BezierCurve()
Definition:
bezier_curve.cpp:33
robotis_framework
Definition:
bezier_curve.h:32
robotis_framework::BezierCurve
Definition:
bezier_curve.h:35
robotis_framework::BezierCurve::setBezierControlPoints
void setBezierControlPoints(const std::vector< Point2D > &points)
Definition:
bezier_curve.cpp:38
robotis_framework::Point2D
Definition:
robotis_math_base.h:48
robotis_math
Author(s): SCH
, Kayman
, Jay Song
autogenerated on Fri Jul 17 2020 03:17:50