Package org.orekit.orbits
Record Class FieldKeplerianParameters<T extends CalculusFieldElement<T>>
java.lang.Object
java.lang.Record
org.orekit.orbits.FieldKeplerianParameters<T>
- Record Components:
a- semi-major axise- eccentricityi- inclinationpa- position angleraan- right ascension of ascending nodeanomaly- anomaly corresponding to angle typepositionAngleType- angle type
public record FieldKeplerianParameters<T extends CalculusFieldElement<T>>(T extends CalculusFieldElement<T> a, T extends CalculusFieldElement<T> e, T extends CalculusFieldElement<T> i, T extends CalculusFieldElement<T> pa, T extends CalculusFieldElement<T> raan, T extends CalculusFieldElement<T> anomaly, PositionAngleType positionAngleType)
extends Record
Data container for Keplerian orbital elements (Field version).
- Since:
- 14.0
- Author:
- Romain Serra
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFieldKeplerianParameters(Field<T> field, KeplerianParameters elements) Constructor from non-Field.FieldKeplerianParameters(T a, T e, T i, T pa, T raan, T anomaly, PositionAngleType positionAngleType) Creates an instance of aFieldKeplerianParametersrecord class. -
Method Summary
Modifier and TypeMethodDescriptiona()Returns the value of thearecord component.anomaly()Returns the value of theanomalyrecord component.e()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.i()Returns the value of theirecord component.pa()Returns the value of theparecord component.Returns the value of thepositionAngleTyperecord component.raan()Returns the value of theraanrecord component.Convert Field elements to non-Field ones.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
-
FieldKeplerianParameters
Constructor from non-Field.- Parameters:
field- fieldelements- Keplerian elements
-
FieldKeplerianParameters
public FieldKeplerianParameters(T a, T e, T i, T pa, T raan, T anomaly, PositionAngleType positionAngleType) Creates an instance of aFieldKeplerianParametersrecord 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
-
toKeplerianElements
Convert Field elements to non-Field ones.- Returns:
- Keplerian elements
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
a
Returns the value of thearecord component.- Returns:
- the value of the
arecord component
-
e
Returns the value of theerecord component.- Returns:
- the value of the
erecord component
-
i
Returns the value of theirecord component.- Returns:
- the value of the
irecord component
-
pa
Returns the value of theparecord component.- Returns:
- the value of the
parecord component
-
raan
Returns the value of theraanrecord component.- Returns:
- the value of the
raanrecord component
-
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
-