|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--location.Longitude
The longitude value in a physical coordinate system.
Field Summary | |
static int |
EAST
|
static int |
WEST
|
Constructor Summary | |
Longitude(double log)
Creates a Longitude based on its sexagesimal notation. |
|
Longitude(int degrees,
double minutes,
int hemisphere)
Creates a Longitude with the specified degrees, minutes, and direction. |
|
Longitude(Longitude log)
The copy constructor. |
Method Summary | |
void |
changeBy(double delta)
Changes this Longitude 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 Longitude |
int |
getHemisphere()
Accessor method to get the direction of the Longitude |
double |
getMinutes()
Accessor method to get the minutes Longitude |
double |
toSexagesimal()
Returns the sexagesimal notation of this Longitude. |
java.lang.String |
toString()
This method returns a string representation of this Longitude. |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int EAST
public static final int WEST
Constructor Detail |
public Longitude(int degrees, double minutes, int hemisphere)
degrees
- the degrees Longitudeminutes
- the minutes Longitudehemisphere
- the Longitude's hemisphere,
either Longitude.EAST or Longitude.WEST.public Longitude(Longitude log)
public Longitude(double log)
log
- the longitude in sexagesimal unitsMethod Detail |
public double toSexagesimal()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int getDegrees()
public double getMinutes()
public int getHemisphere()
public void changeBy(double delta)
delta
- the amount in sexagesimal units by which to change this
Longitude.public java.lang.String toString()
toString
in class java.lang.Object
public 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 |