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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(BigDecimal alpha) static LongitudeCreates a longitude object from the specified degree value.static Longitudedegree(BigDecimal degree) Creates a longitude object from the specified degree value.Returns the minimum value for this coordinate.static booleangreaterMaximumRange(BigDecimal value) booleanbooleanstatic booleanlowerMinimumRange(BigDecimal value) static LongitudeCreates a longitude object from the specified radian value.static Longituderadian(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: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 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
-