Jpp  18.0.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | List of all members
JASTRONOMY::JGeographicalLocation Class Reference

Location of detector. More...

#include <JAstronomy.hh>

Inheritance diagram for JASTRONOMY::JGeographicalLocation:
JASTRONOMY::JAstronomy

Public Member Functions

 JGeographicalLocation ()
 Default constructor. More...
 
 JGeographicalLocation (const double latitude, const double longitude)
 Constructor. More...
 
 JGeographicalLocation (const int degreesNorth, const int minutesNorth, const int degreesEast, const int minutesEast)
 Constructor. More...
 
const double & getLatitude () const
 
const double & getLongitude () const
 

Protected Attributes

double __latitude
 
double __longitude
 

Detailed Description

Location of detector.

Definition at line 218 of file JAstronomy.hh.

Constructor & Destructor Documentation

JASTRONOMY::JGeographicalLocation::JGeographicalLocation ( )
inline

Default constructor.

Definition at line 224 of file JAstronomy.hh.

224  :
225  __latitude (0.0),
226  __longitude(0.0)
227  {}
JASTRONOMY::JGeographicalLocation::JGeographicalLocation ( const double  latitude,
const double  longitude 
)
inline

Constructor.

Parameters
latitudelatitude
longitudelongitude

Definition at line 236 of file JAstronomy.hh.

237  :
238  __latitude (latitude),
239  __longitude(longitude)
240  {}
JASTRONOMY::JGeographicalLocation::JGeographicalLocation ( const int  degreesNorth,
const int  minutesNorth,
const int  degreesEast,
const int  minutesEast 
)
inline

Constructor.

Parameters
degreesNorthdegrees North
minutesNorthminutes North
degreesEastdegrees East
minutesEastminutes East

Definition at line 251 of file JAstronomy.hh.

255  {
256  __latitude = (degreesNorth + minutesNorth / 60.0) * JMATH::PI / 180.0;
257  __longitude = (degreesEast + minutesEast / 60.0) * JMATH::PI / 180.0;
258  }
static const double PI
Mathematical constants.

Member Function Documentation

const double& JASTRONOMY::JGeographicalLocation::getLatitude ( ) const
inline

Definition at line 260 of file JAstronomy.hh.

260 { return __latitude; }
const double& JASTRONOMY::JGeographicalLocation::getLongitude ( ) const
inline

Definition at line 261 of file JAstronomy.hh.

261 { return __longitude; }

Member Data Documentation

double JASTRONOMY::JGeographicalLocation::__latitude
protected

Definition at line 264 of file JAstronomy.hh.

double JASTRONOMY::JGeographicalLocation::__longitude
protected

Definition at line 265 of file JAstronomy.hh.


The documentation for this class was generated from the following file: