java.lang.Object
java.lang.Number
io.jenetics.jpx.Latitude
- All Implemented Interfaces:
Serializable
The latitude of the point. Decimal degrees, WGS84 datum, which must be within
the range of
[-90..90].- Since:
- 1.0
- Version:
- 2.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doubleA constant holding the maximum value aLatitudevalue can have, 90 inclusively.static final LatitudeA constant holding the maximum value aLatitudevalue can have, 90 inclusively.static final doubleA constant holding the maximum value aLatitudevalue can have, -90 inclusively.static final LatitudeA constant holding the maximum value aLatitudevalue can have, -90 inclusively. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturn the latitude value in decimal degrees.booleanfloatinthashCode()intintValue()longstatic LatitudeofDegrees(double degrees) Create a new (decimal degrees)Latitudeobject.static LatitudeofRadians(double radians) Create a newLatitudevalue for the givenradians.doubleReturn the latitude in decimal degree.doubleReturn the latitude value in radians.toString()Methods inherited from class java.lang.Number
byteValue, shortValue
-
Field Details
-
MIN_DEGREES
A constant holding the maximum value aLatitudevalue can have, -90 inclusively.- Since:
- 2.0
- See Also:
-
MIN_VALUE
A constant holding the maximum value aLatitudevalue can have, -90 inclusively.- Since:
- 1.4
-
MAX_DEGREES
A constant holding the maximum value aLatitudevalue can have, 90 inclusively.- Since:
- 2.0
- See Also:
-
MAX_VALUE
A constant holding the maximum value aLatitudevalue can have, 90 inclusively.- Since:
- 1.4
-
-
Method Details
-
doubleValue
Return the latitude value in decimal degrees.- Specified by:
doubleValuein classNumber- Returns:
- the latitude value in decimal degrees
-
toRadians
Return the latitude value in radians.- Returns:
- the latitude value in radians
-
toDegrees
Return the latitude in decimal degree.- Returns:
- the latitude in decimal degree
-
intValue
-
longValue
-
floatValue
- Specified by:
floatValuein classNumber
-
hashCode
-
equals
-
toString
-
ofDegrees
Create a new (decimal degrees)Latitudeobject.- Parameters:
degrees- the latitude value in decimal degrees- Returns:
- a new (decimal degrees)
Latitudeobject - Throws:
IllegalArgumentException- if the given value is not within the range of[-90..90]
-
ofRadians
Create a newLatitudevalue for the givenradians.- Parameters:
radians- the latitude value in radians- Returns:
- a new
Latitudevalue for the givenradians - Throws:
IllegalArgumentException- if the given radians is not within the range of[-Pi..Pi]
-