Class Latitude

java.lang.Object
ch.tocco.nice2.types.spi.geolocation.RadianCoordinate
ch.tocco.nice2.types.spi.geolocation.Latitude
All Implemented Interfaces:
Coordinate, Serializable, Comparable<Coordinate>

public class Latitude extends RadianCoordinate
See Also:
  • Constructor Details

  • Method Details

    • getMinValue

      public BigDecimal getMinValue()
      Description copied from class: RadianCoordinate
      Returns the minimum value for this coordinate.
      Specified by:
      getMinValue in class RadianCoordinate
      Returns:
      minimum coordinate value
    • getMaxValue

      protected BigDecimal getMaxValue()
      Specified by:
      getMaxValue in class RadianCoordinate
      Returns:
      the maximum value for this coordinate
    • degree

      public static Latitude degree(String degree)
      Creates a latitude value of the given degree value.

      The argument must be within the latitude value range of [-90.0,90.0].

      Parameters:
      degree - value in decimal degree (old degree measure)
      Returns:
      a Latitude object
    • degree

      public static Latitude degree(BigDecimal degree)
      Creates a latitude value of the given degree value.

      The argument must be within the latitude value range of [-90.0,90.0].

      Parameters:
      degree - latitude value in degree
      Returns:
      Latitude object whose value is set to the argument
    • radian

      public static Latitude radian(String radian)
    • radian

      public static Latitude radian(BigDecimal radian)
    • greaterMaximumRange

      public static boolean greaterMaximumRange(BigDecimal value)
      Returns true if the given value is greater than the allowed maximum value for a latitude.
    • lowerMinimumRange

      public static boolean lowerMinimumRange(BigDecimal value)
      Returns true if the given value is below the minimum value for a latitude.
    • isMinimum

      public boolean isMinimum()
    • isMaximum

      public boolean isMaximum()
    • add

      public Latitude add(BigDecimal alpha)

      Adds the given angle value to this latitude.

      This simulates moving north.

      Parameters:
      alpha - angle value in RAD (!)
    • toString

      public String toString()
      Overrides:
      toString in class Object