public class Longitude
extends java.lang.Object
| Constructor and Description |
|---|
Longitude(double degrees)
Class constructor, given the longitude in decimal format
|
Longitude(double degrees,
double minutes,
double seconds)
Class constructor, given the longitude in mixed format
|
Longitude(double degrees,
double minutes,
double seconds,
int east_west)
Class constructor, given the longitude in mixed format WITH East/West identifier
|
| Modifier and Type | Method and Description |
|---|---|
double |
convertToDecimalDegrees()
Gets the longitude in decimal degrees
|
java.lang.String |
toString()
Gets a string representation of the longitude.
|
public static final int EAST
public static final int WEST
public Longitude(double degrees,
double minutes,
double seconds)
degrees - minutes - seconds - public Longitude(double degrees,
double minutes,
double seconds,
int east_west)
degrees - the degrees partminutes - the minutes partseconds - the seconds parteast_west - the EAST or WEST identifierpublic Longitude(double degrees)
degrees - the longitude (positive or negative identifies WEST or EAST respectively)