Represents a hermite spline of degree 3.
More...
#include <CubicHermiteSpline.h>
|
| | CubicHermiteSpline (std::array< double, 2 > xInitialControlVector, std::array< double, 2 > xFinalControlVector, std::array< double, 2 > yInitialControlVector, std::array< double, 2 > yFinalControlVector) |
| | Constructs a cubic hermite spline with the specified control vectors. More...
|
| |
|
| Spline (const Spline &)=default |
| |
|
| Spline (Spline &&)=default |
| |
|
Spline & | operator= (const Spline &)=default |
| |
|
Spline & | operator= (Spline &&)=default |
| |
| PoseWithCurvature | GetPoint (double t) const |
| | Gets the pose and curvature at some point t on the spline. More...
|
| |
|
| Eigen::Matrix< double, 6, 3+1 > | Coefficients () const override |
| | Returns the coefficients matrix. More...
|
| |
Represents a hermite spline of degree 3.
◆ CubicHermiteSpline()
| frc::CubicHermiteSpline::CubicHermiteSpline |
( |
std::array< double, 2 > |
xInitialControlVector, |
|
|
std::array< double, 2 > |
xFinalControlVector, |
|
|
std::array< double, 2 > |
yInitialControlVector, |
|
|
std::array< double, 2 > |
yFinalControlVector |
|
) |
| |
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()
| Eigen::Matrix<double, 6, 3 + 1> frc::CubicHermiteSpline::Coefficients |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
Returns the coefficients matrix.
- Returns
- The coefficients matrix.
Implements frc::Spline< 3 >.
The documentation for this class was generated from the following file: