Package org.orekit.bodies
Class SexagesimalAngle
java.lang.Object
org.orekit.bodies.SexagesimalAngle
Container for sexagesimal angle.
Instance of this class are guaranteed to be immutable.
- Since:
- 13.0
- Author:
- Luc Maisonobe
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSexagesimalAngle(double angle) Simple constructor.SexagesimalAngle(int sign, int degree, int arcMinute, double arcSecond) Simple constructor. -
Method Summary
-
Constructor Details
-
SexagesimalAngle
public SexagesimalAngle(int sign, int degree, int arcMinute, double arcSecond) Simple constructor.- Parameters:
sign- signdegree- degree part of the anglearcMinute- arc-minute part of the anglearcSecond- arc-second part of the angle
-
SexagesimalAngle
public SexagesimalAngle(double angle) Simple constructor.- Parameters:
angle- angle in radians
-
-
Method Details
-
getSign
public int getSign()Get sign.- Returns:
- sign
-
getDegree
public int getDegree()Get degree part of the angle.- Returns:
- degree part of the angle
-
getArcMinute
public int getArcMinute()Get arc-minute part of the angle.- Returns:
- arc-minute part of the angle
-
getArcSecond
public double getArcSecond()Get arc-second part of the angle.- Returns:
- arc-second part of the angle
-
getAngle
public double getAngle()Get the corresponding angle in radians.- Returns:
- angle in radians
-