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