Core 1.0
Public Member Functions | Protected Attributes | List of all members
CubicSet Class Reference

Piecewise cubics. More...

#include <cubicset.h>

Public Member Functions

 CubicSet ()
 Creates an empty piecewise cubic.
 
 CubicSet (const Cubic &, int)
 Split a cubic into several cubics. More...
 
 CubicSet (const QVector< Cubic > &)
 Creates the piecewise cubic. More...
 
 CubicSet (const QVector< double > &, const double &=0.0, const double &=0.0)
 Creates the piecewise cubic. More...
 
 ~CubicSet ()
 Empty.
 
int Size () const
 Return the number of elements of the piecewise cubic curve.
 
Cubic operator() (int) const
 Access to the i-th cubic. More...
 

Protected Attributes

QVector< Cubiccu
 Set of cubics.
 

Detailed Description

Piecewise cubics.

Constructor & Destructor Documentation

◆ CubicSet() [1/3]

CubicSet::CubicSet ( const Cubic c,
int  n 
)
explicit

Split a cubic into several cubics.

Parameters
nSubdivision.
cCubic.

◆ CubicSet() [2/3]

CubicSet::CubicSet ( const QVector< Cubic > &  control)
explicit

Creates the piecewise cubic.

Parameters
controlSet of cubics.

◆ CubicSet() [3/3]

CubicSet::CubicSet ( const QVector< double > &  control,
const double &  ta = 0.0,
const double &  tb = 0.0 
)
explicit

Creates the piecewise cubic.

Parameters
controlSet of values.
ta,tbEnd derivatives.

Member Function Documentation

◆ operator()()

Cubic CubicSet::operator() ( int  i) const
inline

Access to the i-th cubic.

Parameters
iIndex.