|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--location.Latitude
The latitude value in a physical coordinate system.
| Field Summary | |
static int |
NORTH
|
static int |
SOUTH
|
| Constructor Summary | |
Latitude(double lat)
Creates a Latitude based on its sexagesimal notation. |
|
Latitude(int degrees,
double minutes,
int hemisphere)
Creates a Latitude with the specified degrees, minutes, and direction. |
|
Latitude(Latitude lat)
The copy constructor. |
|
| Method Summary | |
void |
changeBy(double delta)
Changes this latitude by the specifiec amount. |
java.lang.Object |
clone()
This method returns a deep copy of this object. |
boolean |
equals(java.lang.Object o)
Determines if another object is equal to this one. |
int |
getDegrees()
Accessor method to get the degrees latitude |
int |
getHemisphere()
Accessor method to get the direction of the latitude |
double |
getMinutes()
Accessor method to get the minutes latitude |
double |
toSexagesimal()
Returns the sexagesimal notation of this coordinate. |
java.lang.String |
toString()
This method returns a string representation of the latitude |
| Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int NORTH
public static final int SOUTH
| Constructor Detail |
public Latitude(int degrees,
double minutes,
int hemisphere)
degrees - the degrees latitudeminutes - the minutes latitudehemisphere - the latitude's hemisphere,
either Latitude.NORTH or Latitude.SOUTH.public Latitude(Latitude lat)
public Latitude(double lat)
lat - the latitude in sexagesimal units| Method Detail |
public double toSexagesimal()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int getDegrees()
public double getMinutes()
public int getHemisphere()
public void changeBy(double delta)
delta - the amount in sexagesimal units by which to change this
Latitude.public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Object clone()
clone in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||