Record Class FieldEquinoctialParameters<T extends CalculusFieldElement<T>>

java.lang.Object
java.lang.Record
org.orekit.orbits.FieldEquinoctialParameters<T>
Type Parameters:
T - type of the field elements
Record Components:
a - semi-major axis
ex - first component of the eccentricity vector
ey - second component of the eccentricity vector
hx - first component of the inclination vector
hy - second component of the inclination vector
longitudeArgument - argument of longitude corresponding to angle type
positionAngleType - angle type

public record FieldEquinoctialParameters<T extends CalculusFieldElement<T>>(T extends CalculusFieldElement<T> a, T extends CalculusFieldElement<T> ex, T extends CalculusFieldElement<T> ey, T extends CalculusFieldElement<T> hx, T extends CalculusFieldElement<T> hy, T extends CalculusFieldElement<T> longitudeArgument, PositionAngleType positionAngleType) extends Record
Data container for equinoctial orbital elements (Field version).
Since:
14.0
Author:
Romain Serra
See Also:
  • Constructor Details

    • FieldEquinoctialParameters

      public FieldEquinoctialParameters(Field<T> field, EquinoctialParameters elements)
      Constructor from non-Field.
      Parameters:
      field - field
      elements - equinoctial elements
    • FieldEquinoctialParameters

      public FieldEquinoctialParameters(T a, T ex, T ey, T hx, T hy, T longitudeArgument, PositionAngleType positionAngleType)
      Creates an instance of a FieldEquinoctialParameters record class.
      Parameters:
      a - the value for the a record component
      ex - the value for the ex record component
      ey - the value for the ey record component
      hx - the value for the hx record component
      hy - the value for the hy record component
      longitudeArgument - the value for the longitudeArgument record component
      positionAngleType - the value for the positionAngleType record component
  • Method Details

    • withPositionAngleType

      public FieldEquinoctialParameters<T> withPositionAngleType(PositionAngleType angleType)
      Builds a new instance with the specified position angle type.
      Parameters:
      angleType - angle type for the output
      Returns:
      equinoctial elements with the specified position angle type
    • toEquinoctialElements

      public EquinoctialParameters toEquinoctialElements()
      Convert Field elements to non-Field ones.
      Returns:
      equinoctial elements
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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 T a()
      Returns the value of the a record component.
      Returns:
      the value of the a record component
    • ex

      public T ex()
      Returns the value of the ex record component.
      Returns:
      the value of the ex record component
    • ey

      public T ey()
      Returns the value of the ey record component.
      Returns:
      the value of the ey record component
    • hx

      public T hx()
      Returns the value of the hx record component.
      Returns:
      the value of the hx record component
    • hy

      public T hy()
      Returns the value of the hy record component.
      Returns:
      the value of the hy record component
    • longitudeArgument

      public T longitudeArgument()
      Returns the value of the longitudeArgument record component.
      Returns:
      the value of the longitudeArgument record component
    • positionAngleType

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