Package org.orekit.orbits
Record Class EquinoctialParameters
java.lang.Object
java.lang.Record
org.orekit.orbits.EquinoctialParameters
- Record Components:
a- semi-major axisex- first component of the eccentricity vectorey- second component of the eccentricity vectorhx- first component of the inclination vectorhy- second component of the inclination vectorlongitudeArgument- argument of longitude corresponding to angle typepositionAngleType- angle type
public record EquinoctialParameters(double a, double ex, double ey, double hx, double hy, double longitudeArgument, PositionAngleType positionAngleType)
extends Record
Data container for equinoctial orbital elements.
- Since:
- 14.0
- Author:
- Romain Serra
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEquinoctialParameters(double a, double ex, double ey, double hx, double hy, double longitudeArgument, PositionAngleType positionAngleType) Creates an instance of aEquinoctialParametersrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoublea()Returns the value of thearecord component.final booleanIndicates whether some other object is "equal to" this one.doubleex()Returns the value of theexrecord component.doubleey()Returns the value of theeyrecord component.final inthashCode()Returns a hash code value for this object.doublehx()Returns the value of thehxrecord component.doublehy()Returns the value of thehyrecord component.doubleReturns the value of thelongitudeArgumentrecord component.Returns the value of thepositionAngleTyperecord component.final StringtoString()Returns a string representation of this record class.withPositionAngleType(PositionAngleType angleType) Builds a new instance with the specified position angle type.
-
Constructor Details
-
EquinoctialParameters
public EquinoctialParameters(double a, double ex, double ey, double hx, double hy, double longitudeArgument, PositionAngleType positionAngleType) Creates an instance of aEquinoctialParametersrecord class.- Parameters:
a- the value for thearecord componentex- the value for theexrecord componentey- the value for theeyrecord componenthx- the value for thehxrecord componenthy- the value for thehyrecord componentlongitudeArgument- the value for thelongitudeArgumentrecord componentpositionAngleType- the value for thepositionAngleTyperecord component
-
-
Method Details
-
withPositionAngleType
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
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
a
public double a()Returns the value of thearecord component.- Returns:
- the value of the
arecord component
-
ex
public double ex()Returns the value of theexrecord component.- Returns:
- the value of the
exrecord component
-
ey
public double ey()Returns the value of theeyrecord component.- Returns:
- the value of the
eyrecord component
-
hx
public double hx()Returns the value of thehxrecord component.- Returns:
- the value of the
hxrecord component
-
hy
public double hy()Returns the value of thehyrecord component.- Returns:
- the value of the
hyrecord component
-
longitudeArgument
public double longitudeArgument()Returns the value of thelongitudeArgumentrecord component.- Returns:
- the value of the
longitudeArgumentrecord component
-
positionAngleType
Returns the value of thepositionAngleTyperecord component.- Returns:
- the value of the
positionAngleTyperecord component
-