Record Class KeplerianParameters

java.lang.Object
java.lang.Record
org.orekit.orbits.KeplerianParameters
Record Components:
a - semi-major axis
e - eccentricity
i - inclination
pa - position angle
raan - right ascension of ascending node
anomaly - anomaly corresponding to angle type
positionAngleType - angle type

public record KeplerianParameters(double a, double e, double i, double pa, double raan, double anomaly, PositionAngleType positionAngleType) extends Record
Data container for Keplerian orbital elements.
Since:
14.0
Author:
Romain Serra
See Also:
  • Constructor Details

    • KeplerianParameters

      public KeplerianParameters(double a, double e, double i, double pa, double raan, double anomaly, PositionAngleType positionAngleType)
      Creates an instance of a KeplerianParameters record class.
      Parameters:
      a - the value for the a record component
      e - the value for the e record component
      i - the value for the i record component
      pa - the value for the pa record component
      raan - the value for the raan record component
      anomaly - the value for the anomaly record component
      positionAngleType - the value for the positionAngleType record component
  • Method Details

    • withPositionAngleType

      public KeplerianParameters withPositionAngleType(PositionAngleType angleType)
      Builds a new instance with the specified position angle type.
      Parameters:
      angleType - angle type for the output
      Returns:
      Keplerian elements with the specified position angle type
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • a

      public double a()
      Returns the value of the a record component.
      Returns:
      the value of the a record component
    • e

      public double e()
      Returns the value of the e record component.
      Returns:
      the value of the e record component
    • i

      public double i()
      Returns the value of the i record component.
      Returns:
      the value of the i record component
    • pa

      public double pa()
      Returns the value of the pa record component.
      Returns:
      the value of the pa record component
    • raan

      public double raan()
      Returns the value of the raan record component.
      Returns:
      the value of the raan record component
    • anomaly

      public double anomaly()
      Returns the value of the anomaly record component.
      Returns:
      the value of the anomaly record component
    • positionAngleType

      public PositionAngleType positionAngleType()
      Returns the value of the positionAngleType record component.
      Returns:
      the value of the positionAngleType record component