public final class Latitude extends Number implements Serializable
[-90..90].| Modifier and Type | Method and Description |
|---|---|
double |
doubleValue()
Return the latitude value in decimal degrees.
|
boolean |
equals(Object obj) |
float |
floatValue() |
int |
hashCode() |
int |
intValue() |
long |
longValue() |
static Latitude |
ofDegrees(double degrees)
Create a new (decimal degrees)
Latitude object. |
static Latitude |
ofRadians(double radians)
Create a new
Latitude value for the given radians. |
double |
toDegrees()
Return the latitude in decimal degree.
|
double |
toRadians()
Return the latitude value in radians.
|
String |
toString() |
byteValue, shortValuepublic double doubleValue()
doubleValue in class Numberpublic double toRadians()
public double toDegrees()
public float floatValue()
floatValue in class Numberpublic static Latitude ofDegrees(double degrees)
Latitude object.degrees - the latitude value in decimal degreesLatitude objectIllegalArgumentException - if the given value is not within the
range of [-90..90]public static Latitude ofRadians(double radians)
Latitude value for the given radians.radians - the latitude value in radiansLatitude value for the given radiansIllegalArgumentException - if the given radians is not within the
range of [-Pi..Pi]© 2017-2017 Franz Wilhelmstötter (2017-11-04 19:06)