Class AttitudeInterpolator

java.lang.Object
org.orekit.time.AbstractTimeInterpolator<Attitude>
org.orekit.attitudes.AttitudeInterpolator
All Implemented Interfaces:
TimeInterpolator<Attitude>

public class AttitudeInterpolator extends AbstractTimeInterpolator<Attitude>
Class for attitude interpolation.

The type of interpolation used is defined by given time stamped angular coordinates interpolator at construction.

Author:
Vincent Cucchietti
See Also:
  • Constructor Details

    • AttitudeInterpolator

      public AttitudeInterpolator(Frame referenceFrame, TimeInterpolator<TimeStampedAngularCoordinates> interpolator)
      Constructor.
      Parameters:
      referenceFrame - reference frame from which attitude is defined
      interpolator - time stamped angular coordinates interpolator
  • Method Details

    • getReferenceFrame

      public Frame getReferenceFrame()
      Get reference frame from which attitude is defined.
      Returns:
      reference frame from which attitude is defined
    • getAngularInterpolator

      public TimeInterpolator<TimeStampedAngularCoordinates> getAngularInterpolator()
      Get time stamped angular coordinates interpolator.
      Returns:
      time stamped angular coordinates interpolator
    • getSubInterpolators

      public List<TimeInterpolator<? extends TimeStamped>> getSubInterpolators()
      Description copied from class: AbstractTimeInterpolator
      Get all lowest level interpolators implemented by this instance, otherwise return a list with this instance only.

      An example would be the spacecraft state interpolator which can use different interpolators for each of its attributes (orbit, absolute position-velocity-acceleration coordinates, mass...). In this case, it would return the list of all of these interpolators (or possibly all of their sub-interpolators if they were to use multiple interpolators themselves).

      Specified by:
      getSubInterpolators in interface TimeInterpolator<Attitude>
      Overrides:
      getSubInterpolators in class AbstractTimeInterpolator<Attitude>
      Returns:
      list of interpolators
    • interpolate

      protected Attitude interpolate(AbstractTimeInterpolator<Attitude>.InterpolationData interpolationData)
      Interpolate instance from given interpolation data.
      Specified by:
      interpolate in class AbstractTimeInterpolator<Attitude>
      Parameters:
      interpolationData - interpolation data
      Returns:
      interpolated instance from given interpolation data.