NRE::Math::BezierCurve3D Class Reference

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

#include <NRE_BezierCurve3D.hpp>

Inheritance diagram for NRE::Math::BezierCurve3D:

Public Member Functions

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

Detailed Description

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

Constructor & Destructor Documentation

NRE::Math::BezierCurve3D::BezierCurve3D ( )
default

Curve with no control point

NRE::Math::BezierCurve3D::BezierCurve3D ( std::initializer_list< Point3D< float >>  points)
inline

Construct the curve from a set of control points

Parameters
pointsthe set of control points
NRE::Math::BezierCurve3D::BezierCurve3D ( Utility::Vector< Point3D< float >> &&  c)
inline

Construct the curve from a set of control points

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

Copy c into this

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

Move c into this

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

BezierCurve3D Deconstructor

Member Function Documentation

Point3D<float> const& NRE::Math::BezierCurve3D::getPoint ( std::size_t  index) const
inline

Control point getter

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

Size getter

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

Copy c into this

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

Move c into this

Parameters
cthe object to move into this
Returns
the reference of himself
Point3D<float>& NRE::Math::BezierCurve3D::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
Point3D<float> const& NRE::Math::BezierCurve3D::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::BezierCurve3D::toString ( ) const

Convert the curve into a string

Returns
the converted curve

The documentation for this class was generated from the following file: