Package org.orekit.orbits
Record Class KeplerianParameters
java.lang.Object
java.lang.Record
org.orekit.orbits.KeplerianParameters
- Record Components:
a- semi-major axise- eccentricityi- inclinationpa- position angleraan- right ascension of ascending nodeanomaly- anomaly corresponding to angle typepositionAngleType- 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 Summary
ConstructorsConstructorDescriptionKeplerianParameters(double a, double e, double i, double pa, double raan, double anomaly, PositionAngleType positionAngleType) Creates an instance of aKeplerianParametersrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoublea()Returns the value of thearecord component.doubleanomaly()Returns the value of theanomalyrecord component.doublee()Returns the value of theerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doublei()Returns the value of theirecord component.doublepa()Returns the value of theparecord component.Returns the value of thepositionAngleTyperecord component.doubleraan()Returns the value of theraanrecord 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
-
KeplerianParameters
public KeplerianParameters(double a, double e, double i, double pa, double raan, double anomaly, PositionAngleType positionAngleType) Creates an instance of aKeplerianParametersrecord class.- Parameters:
a- the value for thearecord componente- the value for theerecord componenti- the value for theirecord componentpa- the value for theparecord componentraan- the value for theraanrecord componentanomaly- the value for theanomalyrecord 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:
- Keplerian 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
-
e
public double e()Returns the value of theerecord component.- Returns:
- the value of the
erecord component
-
i
public double i()Returns the value of theirecord component.- Returns:
- the value of the
irecord component
-
pa
public double pa()Returns the value of theparecord component.- Returns:
- the value of the
parecord component
-
raan
public double raan()Returns the value of theraanrecord component.- Returns:
- the value of the
raanrecord component
-
anomaly
public double anomaly()Returns the value of theanomalyrecord component.- Returns:
- the value of the
anomalyrecord component
-
positionAngleType
Returns the value of thepositionAngleTyperecord component.- Returns:
- the value of the
positionAngleTyperecord component
-