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
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionadd(BigDecimal alpha) Adds the given angle value to this latitude.static LatitudeCreates a latitude value of the given degree value.static Latitudedegree(BigDecimal degree) Creates a latitude value of the given degree value.protected BigDecimalReturns the minimum value for this coordinate.static booleangreaterMaximumRange(BigDecimal value) Returns true if the given value is greater than the allowed maximum value for a latitude.booleanbooleanstatic booleanlowerMinimumRange(BigDecimal value) Returns true if the given value is below the minimum value for a latitude.static Latitudestatic Latituderadian(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:RadianCoordinateReturns the minimum value for this coordinate.- Specified by:
 getMinValuein classRadianCoordinate- Returns:
 - minimum coordinate value
 
 - 
getMaxValue
- Specified by:
 getMaxValuein 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
 
 -