public class Longitude extends Object
| Constructor and Description |
|---|
Longitude(double value)
Constructor
|
Longitude(double value,
char direction)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Longitude |
clone() |
boolean |
equals(Object other) |
double |
get()
Get the longitude value.
|
double |
getAbsolute()
Get the absolute longitude value.
|
char |
getDirection()
Get the longitude direction.
|
int |
hashCode() |
String |
toString() |
String |
toStringWithUnits()
Format the longitude value as a String.
|
public Longitude(double value)
value - the longitude (signed number between -180 and 180; +ve is east)public Longitude(double value,
char direction)
value - the longitude (positive number between 0 and 180)direction - the direction ('E' or 'W')public double get()
public double getAbsolute()
public char getDirection()
public String toStringWithUnits()
Copyright © 2017. All rights reserved.