Jpp  19.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 426 of file JAstronomy.hh.

Constructor & Destructor Documentation

JASTRONOMY::JGeographicalLocation::JGeographicalLocation ( )
inline

Default constructor.

Definition at line 432 of file JAstronomy.hh.

432  :
433  __latitude (0.0),
434  __longitude(0.0)
435  {}
JASTRONOMY::JGeographicalLocation::JGeographicalLocation ( const double  latitude,
const double  longitude 
)
inline

Constructor.

Parameters
latitudelatitude
longitudelongitude

Definition at line 444 of file JAstronomy.hh.

445  :
446  __latitude (latitude),
447  __longitude(longitude)
448  {}
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 459 of file JAstronomy.hh.

463  {
464  __latitude = (degreesNorth + minutesNorth / 60.0) * JMATH::PI / 180.0;
465  __longitude = (degreesEast + minutesEast / 60.0) * JMATH::PI / 180.0;
466  }
static const double PI
Mathematical constants.

Member Function Documentation

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

Definition at line 468 of file JAstronomy.hh.

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

Definition at line 469 of file JAstronomy.hh.

469 { return __longitude; }

Member Data Documentation

double JASTRONOMY::JGeographicalLocation::__latitude
protected

Definition at line 472 of file JAstronomy.hh.

double JASTRONOMY::JGeographicalLocation::__longitude
protected

Definition at line 473 of file JAstronomy.hh.


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