Represents a hermite spline of degree 3.
More...
#include <frc/spline/CubicHermiteSpline.h>
Represents a hermite spline of degree 3.
◆ CubicHermiteSpline()
frc::CubicHermiteSpline::CubicHermiteSpline |
( |
wpi::array< double, 2 > | xInitialControlVector, |
|
|
wpi::array< double, 2 > | xFinalControlVector, |
|
|
wpi::array< double, 2 > | yInitialControlVector, |
|
|
wpi::array< double, 2 > | yFinalControlVector ) |
|
inline |
Constructs a cubic hermite spline with the specified control vectors.
Each control vector contains info about the location of the point and its first derivative.
- Parameters
-
xInitialControlVector | The control vector for the initial point in the x dimension. |
xFinalControlVector | The control vector for the final point in the x dimension. |
yInitialControlVector | The control vector for the initial point in the y dimension. |
yFinalControlVector | The control vector for the final point in the y dimension. |
◆ Coefficients()
Matrixd< 6, 3+1 > frc::CubicHermiteSpline::Coefficients |
( |
| ) |
const |
|
inlineoverridevirtual |
Returns the coefficients matrix.
- Returns
- The coefficients matrix.
Implements frc::Spline< 3 >.
◆ GetFinalControlVector()
const ControlVector & frc::CubicHermiteSpline::GetFinalControlVector |
( |
| ) |
const |
|
inlineoverridevirtual |
Returns the final control vector that created this spline.
- Returns
- The final control vector that created this spline.
Implements frc::Spline< 3 >.
◆ GetInitialControlVector()
const ControlVector & frc::CubicHermiteSpline::GetInitialControlVector |
( |
| ) |
const |
|
inlineoverridevirtual |
Returns the initial control vector that created this spline.
- Returns
- The initial control vector that created this spline.
Implements frc::Spline< 3 >.
The documentation for this class was generated from the following file: