Bezier 0.4.0
Fast and lightweight class for using the Bezier curves of any order in C++
Loading...
Searching...
No Matches
declarations.h
1/*
2 * Copyright 2019 Mirko Kokot
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#ifndef DECLARATIONS_H
18#define DECLARATIONS_H
19
20#include <Eigen/Dense>
21
25namespace Bezier
26{
30class Curve;
31
35class PolyCurve;
36
40using Point = Eigen::Vector2d;
41
45using PointVector = std::vector<Point>;
46
50using ParamVector = std::vector<double>;
51
55using Vector = Eigen::Vector2d;
56
60using BoundingBox = Eigen::AlignedBox2d;
61} // namespace Bezier
62#endif // DECLARATIONS_H
Definition bezier.h:27
Eigen::Vector2d Point
Point in xy plane.
Definition declarations.h:40
std::vector< double > ParamVector
A vector of curve parameters.
Definition declarations.h:50
std::vector< Point > PointVector
A vector of Points.
Definition declarations.h:45
Eigen::AlignedBox2d BoundingBox
Bounding box class.
Definition declarations.h:60
Eigen::Vector2d Vector
A Vector in xy plane.
Definition declarations.h:55