Package edu.wpi.first.math.spline
Class Spline
java.lang.Object
edu.wpi.first.math.spline.Spline
- Direct Known Subclasses:
CubicHermiteSpline
,QuinticHermiteSpline
Represents a two-dimensional parametric spline that interpolates between two points.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Represents a control vector for a spline. -
Method Summary
Modifier and TypeMethodDescriptionabstract org.ejml.simple.SimpleMatrix
Returns the coefficients of the spline.abstract Spline.ControlVector
Returns the final control vector that created this spline.abstract Spline.ControlVector
Returns the initial control vector that created this spline.getPoint
(double t) Gets the pose and curvature at some point t on the spline.
-
Method Details
-
getCoefficients
Returns the coefficients of the spline.- Returns:
- The coefficients of the spline.
-
getInitialControlVector
Returns the initial control vector that created this spline.- Returns:
- The initial control vector that created this spline.
-
getFinalControlVector
Returns the final control vector that created this spline.- Returns:
- The final control vector that created this spline.
-
getPoint
Gets the pose and curvature at some point t on the spline.- Parameters:
t
- The point t- Returns:
- The pose and curvature at that point.
-