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>
- See Also:
-
Field Summary
Fields inherited from class ch.tocco.nice2.types.spi.geolocation.RadianCoordinate
DEFAULT_RANGE_PRECISION, value
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadd
(BigDecimal alpha) Adds the given angle value to this latitude.static Latitude
Creates a latitude value of the given degree value.static Latitude
degree
(BigDecimal degree) Creates a latitude value of the given degree value.protected BigDecimal
Returns the minimum value for this coordinate.static boolean
greaterMaximumRange
(BigDecimal value) Returns true if the given value is greater than the allowed maximum value for a latitude.boolean
boolean
static boolean
lowerMinimumRange
(BigDecimal value) Returns true if the given value is below the minimum value for a latitude.static Latitude
static Latitude
radian
(BigDecimal radian) toString()
Methods inherited from class ch.tocco.nice2.types.spi.geolocation.RadianCoordinate
checkRange, compareTo, degreeValue, equals, getValue, greaterMaximumRange, hashCode, isInRange, isMaxium, isMinimum, lowerMinimumRange, radianValue, transformPhase, valueEquals
-
Constructor Details
-
Latitude
-
Latitude
-
-
Method Details
-
getMinValue
Description copied from class:RadianCoordinate
Returns the minimum value for this coordinate.- Specified by:
getMinValue
in classRadianCoordinate
- Returns:
- minimum coordinate value
-
getMaxValue
- Specified by:
getMaxValue
in classRadianCoordinate
- Returns:
- the maximum value for this coordinate
-
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
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
-
radian
-
greaterMaximumRange
Returns true if the given value is greater than the allowed maximum value for a latitude. -
lowerMinimumRange
Returns true if the given value is below the minimum value for a latitude. -
isMinimum
public boolean isMinimum() -
isMaximum
public boolean isMaximum() -
add
Adds the given angle value to this latitude.
This simulates moving north.
- Parameters:
alpha
- angle value in RAD (!)
-
toString
-