Jpp  18.3.1
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 424 of file JAstronomy.hh.

Constructor & Destructor Documentation

JASTRONOMY::JGeographicalLocation::JGeographicalLocation ( )
inline

Default constructor.

Definition at line 430 of file JAstronomy.hh.

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

Constructor.

Parameters
latitudelatitude
longitudelongitude

Definition at line 442 of file JAstronomy.hh.

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

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

Member Function Documentation

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

Definition at line 466 of file JAstronomy.hh.

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

Definition at line 467 of file JAstronomy.hh.

467 { return __longitude; }

Member Data Documentation

double JASTRONOMY::JGeographicalLocation::__latitude
protected

Definition at line 470 of file JAstronomy.hh.

double JASTRONOMY::JGeographicalLocation::__longitude
protected

Definition at line 471 of file JAstronomy.hh.


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