Class 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 Detail

      • SexagesimalAngle

        public SexagesimalAngle​(int sign,
                                int degree,
                                int arcMinute,
                                double arcSecond)
        Simple constructor.
        Parameters:
        sign - sign
        degree - degree part of the angle
        arcMinute - arc-minute part of the angle
        arcSecond - 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