Package org.orekit.orbits
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 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 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 Summary
ConstructorsConstructorDescriptionFieldEquinoctialParameters(Field<T> field, EquinoctialParameters elements) Constructor from non-Field.FieldEquinoctialParameters(T a, T ex, T ey, T hx, T hy, T longitudeArgument, PositionAngleType positionAngleType) Creates an instance of aFieldEquinoctialParametersrecord class. -
Method Summary
Modifier and TypeMethodDescriptiona()Returns the value of thearecord component.final booleanIndicates whether some other object is "equal to" this one.ex()Returns the value of theexrecord component.ey()Returns the value of theeyrecord component.final inthashCode()Returns a hash code value for this object.hx()Returns the value of thehxrecord component.hy()Returns the value of thehyrecord component.Returns the value of thelongitudeArgumentrecord component.Returns the value of thepositionAngleTyperecord 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
-
FieldEquinoctialParameters
Constructor from non-Field.- Parameters:
field- fieldelements- equinoctial elements
-
FieldEquinoctialParameters
public FieldEquinoctialParameters(T a, T ex, T ey, T hx, T hy, T longitudeArgument, PositionAngleType positionAngleType) Creates an instance of aFieldEquinoctialParametersrecord 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
-
toEquinoctialElements
Convert Field elements to non-Field ones.- Returns:
- equinoctial 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
-
ex
Returns the value of theexrecord component.- Returns:
- the value of the
exrecord component
-
ey
Returns the value of theeyrecord component.- Returns:
- the value of the
eyrecord component
-
hx
Returns the value of thehxrecord component.- Returns:
- the value of the
hxrecord component
-
hy
Returns the value of thehyrecord component.- Returns:
- the value of the
hyrecord component
-
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
-