Class Longitude
java.lang.Object
ch.tocco.nice2.types.spi.geolocation.RadianCoordinate
ch.tocco.nice2.types.spi.geolocation.Longitude
- 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) static Longitude
Creates a longitude object from the specified degree value.static Longitude
degree
(BigDecimal degree) Creates a longitude object from the specified degree value.Returns the minimum value for this coordinate.static boolean
greaterMaximumRange
(BigDecimal value) boolean
boolean
static boolean
lowerMinimumRange
(BigDecimal value) static Longitude
Creates a longitude object from the specified radian value.static Longitude
radian
(BigDecimal radian) Creates a longitude object from the specified radian value.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
-
Longitude
-
Longitude
-
-
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 longitude object from the specified degree value.The argument must be within the longitude value range, which is [-180,180].
- Parameters:
degree
- the longitude degree value- Returns:
- a Longitude object
-
degree
Creates a longitude object from the specified degree value.The argument must be within the longitude value range, which is [-180,180].
- Parameters:
degree
- the longitude degree value- Returns:
- a Longitude object
-
radian
Creates a longitude object from the specified radian value.The argument must be within the longitude value range, which is [-pi,pi].
- Parameters:
radian
- the longitude radian value- Returns:
- a Longitude object
-
radian
Creates a longitude object from the specified radian value.The argument must be within the longitude value range, which is [-pi,pi].
- Parameters:
radian
- the longitude radian value- Returns:
- a Longitude object
-
greaterMaximumRange
-
lowerMinimumRange
-
isMinimum
public boolean isMinimum() -
isMaximum
public boolean isMaximum() -
add
-
toString
-