Class KeplerianParametersConverter

java.lang.Object
org.orekit.orbits.KeplerianParametersConverter

public class KeplerianParametersConverter extends Object
Class for converting between Keplerian elements and Cartesian coordinates. It works for all types of orbits (elliptical or not).
Since:
14.0
Author:
Romain Serra
See Also:
  • Constructor Details

    • KeplerianParametersConverter

      public KeplerianParametersConverter(double mu)
      Constructor.
      Parameters:
      mu - central body gravitational parameter
  • Method Details

    • toParameters

      public KeplerianParameters toParameters(PVCoordinates cartesian, PositionAngleType positionAngleType)
      Convert Cartesian coordinates to Keplerian elements.
      Parameters:
      cartesian - position and velocity in inertial frame
      positionAngleType - type of position angle to use
      Returns:
      Keplerian elements
    • toCartesian

      public PVCoordinates toCartesian(KeplerianParameters elements)
      Convert Keplerian elements to Cartesian coordinates.
      Parameters:
      elements - Keplerian elements
      Returns:
      position and velocity in inertial frame