Class CubicHermiteSpline

java.lang.Object
edu.wpi.first.math.spline.Spline
edu.wpi.first.math.spline.CubicHermiteSpline
All Implemented Interfaces:
ProtobufSerializable, StructSerializable, WPISerializable

Represents a hermite spline of degree 3.
  • Field Details

    • xInitialControlVector

      public final double[] xInitialControlVector
      The control vector for the initial point in the x dimension. DO NOT MODIFY THIS ARRAY!
    • xFinalControlVector

      public final double[] xFinalControlVector
      The control vector for the final point in the x dimension. DO NOT MODIFY THIS ARRAY!
    • yInitialControlVector

      public final double[] yInitialControlVector
      The control vector for the initial point in the y dimension. DO NOT MODIFY THIS ARRAY!
    • yFinalControlVector

      public final double[] yFinalControlVector
      The control vector for the final point in the y dimension. DO NOT MODIFY THIS ARRAY!
    • proto

      public static final CubicHermiteSplineProto proto
      CubicHermiteSpline struct for serialization.
    • struct

      public static final CubicHermiteSplineStruct struct
      CubicHermiteSpline protobuf for serialization.
  • Constructor Details

    • CubicHermiteSpline

      public CubicHermiteSpline(double[] xInitialControlVector, double[] xFinalControlVector, double[] yInitialControlVector, double[] 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.
  • Method Details