Package uk.ac.starlink.pal
Class ObsPosition
- java.lang.Object
-
- uk.ac.starlink.pal.ObsPosition
-
public class ObsPosition extends java.lang.Object
Position of Observer
-
-
Constructor Summary
Constructors Constructor Description ObsPosition(double lon, double lat, double height)
Position of ObserverObsPosition(double lon, double lat, double height, double rad)
Position of Observer
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getHeight()
Get the Heightdouble
getLatitude()
Get the latitudedouble
getLongitude()
Get the longitudedouble
getRad()
Get the radial velocityjava.lang.String
toString()
Get the Observers position as a String
-
-
-
Constructor Detail
-
ObsPosition
public ObsPosition(double lon, double lat, double height)
Position of Observer- Parameters:
lon
- Longitudelat
- Latitudeheight
- Height
-
ObsPosition
public ObsPosition(double lon, double lat, double height, double rad)
Position of Observer- Parameters:
lon
- Longitudelat
- Latitudeheight
- Heightrad
- Radial velocity
-
-
Method Detail
-
getLongitude
public double getLongitude()
Get the longitude- Returns:
- Longitude
-
getLatitude
public double getLatitude()
Get the latitude- Returns:
- Latitude
-
getHeight
public double getHeight()
Get the Height- Returns:
- Height
-
getRad
public double getRad()
Get the radial velocity- Returns:
- Radial velocity
-
toString
public java.lang.String toString()
Get the Observers position as a String- Overrides:
toString
in classjava.lang.Object
-
-