| Modifier and Type | Field and Description |
|---|---|
private double |
Elevation
The elevation of this site.
|
private double |
Latitude
The latitude of this site.
|
private double |
Longitude
The longitude of this site.
|
ALTITUDES, LATITUDES, LONGITUDES, OBSERVATORIES| Modifier | Constructor and Description |
|---|---|
protected |
SimpleSite()
Do not use this constructor directly.
|
|
SimpleSite(double lambda,
double phi,
double height)
Constructs a fully qualified site out of the longitude, latitude, and
elevation of this site.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object that)
Two sites are equal, if their geographical position and their height are
identically.
|
double |
getElevation()
Gets the elevation of this site, in meters.
|
double |
getLatitude()
Gets the latitude of this site, in radians.
|
double |
getLongitude()
Returns the longitude of this site, in radians.
|
void |
setElevation(double height)
Sets the elevation of this site, in meters.
|
void |
setLatitude(double phi)
Sets the latitude of this site, in radians.
|
void |
setLongitude(double lambda)
Sets the longitude of this site, in radians.
|
String |
toString()
Returns a simple representation of this site.
|
private double Longitude
private double Latitude
private double Elevation
protected SimpleSite()
public SimpleSite(double lambda,
double phi,
double height)
lambda - The longitude of this site, in radians.phi - The latitude of this site, in radians.height - The elevation, in meters.public double getLongitude()
getLongitude in interface Sitepublic void setLongitude(double lambda)
setLongitude in interface Sitepublic double getLatitude()
getLatitude in interface Sitepublic void setLatitude(double phi)
setLatitude in interface Sitepublic double getElevation()
getElevation in interface Sitepublic void setElevation(double height)
setElevation in interface Sitepublic boolean equals(Object that)