Package org.orekit.bodies
Class SexagesimalAngle
- java.lang.Object
-
- org.orekit.bodies.SexagesimalAngle
-
public class SexagesimalAngle extends Object
Container for sexagesimal angle.Instance of this class are guaranteed to be immutable.
- Since:
- 13.0
- Author:
- Luc Maisonobe
- See Also:
GeodeticPoint
-
-
Constructor Summary
Constructors Constructor Description SexagesimalAngle(double angle)Simple constructor.SexagesimalAngle(int sign, int degree, int arcMinute, double arcSecond)Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetAngle()Get the corresponding angle in radians.intgetArcMinute()Get arc-minute part of the angle.doublegetArcSecond()Get arc-second part of the angle.intgetDegree()Get degree part of the angle.intgetSign()Get sign.
-
-
-
Constructor Detail
-
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 Detail
-
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
-
-