NRE::Math::BezierCurve4D Class Reference

Represent a 3D homogeneous Bezier curves with a set of control points. More...

#include <NRE_BezierCurve4D.hpp>

Inheritance diagram for NRE::Math::BezierCurve4D:

Public Member Functions

 BezierCurve4D ()=default
 
 BezierCurve4D (std::initializer_list< Point4D< float >> points)
 
 BezierCurve4D (Utility::Vector< Point4D< float >> &&c)
 
 BezierCurve4D (BezierCurve4D const &c)=default
 
 BezierCurve4D (BezierCurve4D &&c)=default
 
 ~BezierCurve4D ()=default
 
Point4D< float > const & getPoint (std::size_t index) const
 
std::size_t getSize () const
 
Point4D< float > & operator[] (std::size_t index)
 
Point4D< float > const & operator[] (std::size_t index) const
 
BezierCurve4Doperator= (BezierCurve4D const &c)=default
 
BezierCurve4Doperator= (BezierCurve4D &&c)=default
 
Utility::String toString () const
 

Detailed Description

Represent a 3D homogeneous Bezier curves with a set of control points.

Constructor & Destructor Documentation

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
pointsthe set of control points
NRE::Math::BezierCurve4D::BezierCurve4D ( Utility::Vector< Point4D< float >> &&  c)
inline

Construct the curve from a set of control points

Parameters
cthe set of control points
NRE::Math::BezierCurve4D::BezierCurve4D ( BezierCurve4D const &  c)
default

Copy c into this

Parameters
cthe object to copy
NRE::Math::BezierCurve4D::BezierCurve4D ( BezierCurve4D &&  c)
default

Move c into this

Parameters
cthe object to move
NRE::Math::BezierCurve4D::~BezierCurve4D ( )
default

BezierCurve4D Deconstructor

Member Function Documentation

Point4D<float> const& NRE::Math::BezierCurve4D::getPoint ( std::size_t  index) const
inline

Control point getter

Parameters
indexthe point's index
Returns
the corresponding point
std::size_t NRE::Math::BezierCurve4D::getSize ( ) const
inline

Size getter

Returns
the number of control points
BezierCurve4D& NRE::Math::BezierCurve4D::operator= ( BezierCurve4D const &  c)
default

Copy c into this

Parameters
cthe object to copy into this
Returns
the reference of himself
BezierCurve4D& NRE::Math::BezierCurve4D::operator= ( BezierCurve4D &&  c)
default

Move c into this

Parameters
cthe 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
indexthe object's index
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
indexthe object's index
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: