Represent a 3D homogeneous Bezier curves with a set of control points.
More...
#include <NRE_BezierCurve4D.hpp>
Represent a 3D homogeneous Bezier curves with a set of control points.
NRE::Math::BezierCurve4D::BezierCurve4D |
( |
| ) |
|
|
default |
Curve with no control point
NRE::Math::BezierCurve4D::BezierCurve4D |
( |
std::initializer_list< Point4D< float >> |
points | ) |
|
|
inline |
Construct the curve from a set of control points
- Parameters
-
points | the set of control points |
NRE::Math::BezierCurve4D::BezierCurve4D |
( |
Utility::Vector< Point4D< float >> && |
c | ) |
|
|
inline |
Construct the curve from a set of control points
- Parameters
-
c | the set of control points |
NRE::Math::BezierCurve4D::BezierCurve4D |
( |
BezierCurve4D const & |
c | ) |
|
|
default |
Copy c into this
- Parameters
-
Move c into this
- Parameters
-
NRE::Math::BezierCurve4D::~BezierCurve4D |
( |
| ) |
|
|
default |
Point4D<float> const& NRE::Math::BezierCurve4D::getPoint |
( |
std::size_t |
index | ) |
const |
|
inline |
Control point getter
- Parameters
-
- Returns
- the corresponding point
std::size_t NRE::Math::BezierCurve4D::getSize |
( |
| ) |
const |
|
inline |
Size getter
- Returns
- the number of control points
Copy c into this
- Parameters
-
c | the object to copy into this |
- Returns
- the reference of himself
Move c into this
- Parameters
-
c | the object to move into this |
- Returns
- the reference of himself
Point4D<float>& NRE::Math::BezierCurve4D::operator[] |
( |
std::size_t |
index | ) |
|
|
inline |
Return a reference on a curve's object
- Warning
- No range check performed
- Parameters
-
- Returns
- the object's reference
Point4D<float> const& NRE::Math::BezierCurve4D::operator[] |
( |
std::size_t |
index | ) |
const |
|
inline |
Return a const reference on a curve's object
- Warning
- No range check performed
- Parameters
-
- Returns
- the object's reference
Utility::String NRE::Math::BezierCurve4D::toString |
( |
| ) |
const |
Convert the curve into a string
- Returns
- the converted curve
The documentation for this class was generated from the following file: