Package edu.wpi.first.math.spline
Class QuinticHermiteSpline
java.lang.Object
edu.wpi.first.math.spline.Spline
edu.wpi.first.math.spline.QuinticHermiteSpline
- All Implemented Interfaces:
ProtobufSerializable
,StructSerializable
,WPISerializable
public class QuinticHermiteSpline
extends Spline
implements ProtobufSerializable, StructSerializable
Represents a hermite spline of degree 5.
-
Nested Class Summary
Nested classes/interfaces inherited from class edu.wpi.first.math.spline.Spline
Spline.ControlVector
-
Field Summary
Modifier and TypeFieldDescriptionstatic final QuinticHermiteSplineProto
QuinticHermiteSpline struct for serialization.static final QuinticHermiteSplineStruct
QuinticHermiteSpline protobuf for serialization.final double[]
The control vector for the final point in the x dimension.final double[]
The control vector for the initial point in the x dimension.final double[]
The control vector for the final point in the y dimension.final double[]
The control vector for the initial point in the y dimension. -
Constructor Summary
ConstructorDescriptionQuinticHermiteSpline
(double[] xInitialControlVector, double[] xFinalControlVector, double[] yInitialControlVector, double[] yFinalControlVector) Constructs a quintic hermite spline with the specified control vectors. -
Method Summary
Modifier and TypeMethodDescriptionorg.ejml.simple.SimpleMatrix
Returns the coefficients matrix.Returns the final control vector that created this spline.Returns the initial control vector that created this spline.
-
Field Details
-
xInitialControlVector
The control vector for the initial point in the x dimension. DO NOT MODIFY THIS ARRAY! -
xFinalControlVector
The control vector for the final point in the x dimension. DO NOT MODIFY THIS ARRAY! -
yInitialControlVector
The control vector for the initial point in the y dimension. DO NOT MODIFY THIS ARRAY! -
yFinalControlVector
The control vector for the final point in the y dimension. DO NOT MODIFY THIS ARRAY! -
proto
QuinticHermiteSpline struct for serialization. -
struct
QuinticHermiteSpline protobuf for serialization.
-
-
Constructor Details
-
QuinticHermiteSpline
public QuinticHermiteSpline(double[] xInitialControlVector, double[] xFinalControlVector, double[] yInitialControlVector, double[] yFinalControlVector) Constructs a quintic hermite spline with the specified control vectors. Each control vector contains into about the location of the point, its first derivative, and its second 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.
-
-
Method Details
-
getCoefficients
Returns the coefficients matrix.- Specified by:
getCoefficients
in classSpline
- Returns:
- The coefficients matrix.
-
getInitialControlVector
Returns the initial control vector that created this spline.- Specified by:
getInitialControlVector
in classSpline
- Returns:
- The initial control vector that created this spline.
-
getFinalControlVector
Returns the final control vector that created this spline.- Specified by:
getFinalControlVector
in classSpline
- Returns:
- The final control vector that created this spline.
-