Class AbstractEncounterLOF

java.lang.Object
org.orekit.frames.encounter.AbstractEncounterLOF
All Implemented Interfaces:
EncounterLOF, LOF
Direct Known Subclasses:
DefaultEncounterLOF, ValsecchiEncounterFrame

public abstract class AbstractEncounterLOF extends Object implements EncounterLOF
Abstract class for encounter frame between two objects.
Since:
12.0
Author:
Vincent Cucchietti
  • Constructor Details

    • AbstractEncounterLOF

      protected AbstractEncounterLOF(PVCoordinates other)
      Constructor with PVCoordinates.
      Parameters:
      other - other object to create the encounter local orbital frame with (not the origin of the frame !)
    • AbstractEncounterLOF

      protected AbstractEncounterLOF(FieldPVCoordinates<T> other)
      Constructor with FieldPVCoordinates.
      Type Parameters:
      T - type of the field elements
      Parameters:
      other - other object to create the encounter frame with (not the origin of the frame !)
  • Method Details

    • rotationFromInertial

      public <T extends CalculusFieldElement<T>> FieldRotation<T> rotationFromInertial(Field<T> field, FieldPVCoordinates<T> origin)
      Get the rotation from inertial to this encounter local orbital frame.

      BEWARE: The given origin's position and velocity coordinates must be given in the frame in which this instance has been expressed in.

      Specified by:
      rotationFromInertial in interface EncounterLOF
      Type Parameters:
      T - type of the field elements
      Parameters:
      field - field to which the elements belong
      origin - position-velocity of the origin in the same inertial frame as the one this instance has been expressed in.
      Returns:
      rotation from inertial to this encounter local orbital frame
    • rotationFromInertial

      public Rotation rotationFromInertial(PVCoordinates origin)
      Get the rotation from inertial to this encounter local orbital frame.

      BEWARE: The given origin's position and velocity coordinates must be given in the frame in which this instance has been expressed in.

      Specified by:
      rotationFromInertial in interface EncounterLOF
      Parameters:
      origin - position-velocity of the origin in some inertial frame
      Returns:
      rotation from inertial to this encounter local orbital frame
    • getFieldOther

      public <T extends CalculusFieldElement<T>> FieldPVCoordinates<T> getFieldOther(Field<T> field)
      Get the field version of other's position and velocity coordinates. If the instance has been created with normal PVCoordinates, then it will build its field equivalent.
      Specified by:
      getFieldOther in interface EncounterLOF
      Type Parameters:
      T - type of the field elements
      Parameters:
      field - field of the elements
      Returns:
      field version of other's position and velocity coordinates
    • getOther

      public PVCoordinates getOther()
      Get the normal version of other's position and velocity coordinates. If the instance has been created with field FieldPVCoordinates, then it will convert it to its PVCoordinates equivalent.
      Specified by:
      getOther in interface EncounterLOF
      Returns:
      normal version of other's position and velocity coordinates