Package org.orekit.orbits
Record Class CircularParameters
java.lang.Object
java.lang.Record
org.orekit.orbits.CircularParameters
- Record Components:
a- semi-major axisex- first component of the eccentricity vectorey- second component of the eccentricity vectori- inclinationraan- right ascension of ascending nodelatitudeArgument- argument of latitude corresponding to angle typepositionAngleType- angle type
public record CircularParameters(double a, double ex, double ey, double i, double raan, double latitudeArgument, PositionAngleType positionAngleType)
extends Record
Data container for circular orbital elements.
- Since:
- 14.0
- Author:
- Romain Serra
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCircularParameters(double a, double ex, double ey, double i, double raan, double latitudeArgument, PositionAngleType positionAngleType) Creates an instance of aCircularParametersrecord 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.doublei()Returns the value of theirecord component.doubleReturns the value of thelatitudeArgumentrecord 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
-
CircularParameters
public CircularParameters(double a, double ex, double ey, double i, double raan, double latitudeArgument, PositionAngleType positionAngleType) Creates an instance of aCircularParametersrecord class.- Parameters:
a- the value for thearecord componentex- the value for theexrecord componentey- the value for theeyrecord componenti- the value for theirecord componentraan- the value for theraanrecord componentlatitudeArgument- the value for thelatitudeArgumentrecord 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:
- circular 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
-
i
public double i()Returns the value of theirecord component.- Returns:
- the value of the
irecord component
-
raan
public double raan()Returns the value of theraanrecord component.- Returns:
- the value of the
raanrecord component
-
latitudeArgument
public double latitudeArgument()Returns the value of thelatitudeArgumentrecord component.- Returns:
- the value of the
latitudeArgumentrecord component
-
positionAngleType
Returns the value of thepositionAngleTyperecord component.- Returns:
- the value of the
positionAngleTyperecord component
-