public class Latitude
extends java.lang.Object
| Constructor and Description |
|---|
Latitude(double degrees)
Class constructor, given the latitude in decimal format
|
Latitude(double degrees,
double minutes,
double seconds)
Class constructor, given the latitude in mixed format.
|
Latitude(double degrees,
double minutes,
double seconds,
int north_south)
Class constructor, given the latitude in mixed format WITH North/South identifier
|
| Modifier and Type | Method and Description |
|---|---|
double |
convertToDecimalDegrees()
Gets the latitude in decimal degrees
|
java.lang.String |
toString()
Gets a string representation of the longitude.
|
public static final int NORTH
public static final int SOUTH
public Latitude(double degrees,
double minutes,
double seconds)
degrees - minutes - seconds - public Latitude(double degrees,
double minutes,
double seconds,
int north_south)
degrees - the degrees partminutes - the minutes partseconds - the seconds partnorth_south - the NORTH or SOUTH identifierpublic Latitude(double degrees)
degrees - the latitude