Location of astrophysical source in Galactic coordinates.
More...
#include <JAstronomy.hh>
Location of astrophysical source in Galactic coordinates.
Definition at line 639 of file JAstronomy.hh.
◆ JGalacticCoordinates() [1/4]
JASTRONOMY::JGalacticCoordinates::JGalacticCoordinates |
( |
| ) |
|
|
inline |
◆ JGalacticCoordinates() [2/4]
JASTRONOMY::JGalacticCoordinates::JGalacticCoordinates |
( |
const double | latitude, |
|
|
const double | longitude ) |
|
inline |
Constructor.
- Parameters
-
latitude | Galactic latitude [rad] |
longitude | Galactic longitude [rad] |
Definition at line 655 of file JAstronomy.hh.
656 :
658 {}
angle_type_rad()
Default constructor.
◆ JGalacticCoordinates() [3/4]
Constructor.
- Parameters
-
Definition at line 739 of file JAstronomy.hh.
740 {
741 double dec = location.getDeclination();
742 double ra = location.getRightAscension();
743
745 }
◆ JGalacticCoordinates() [4/4]
JASTRONOMY::JGalacticCoordinates::JGalacticCoordinates |
( |
const JAngle3D & | angle | ) |
|
|
inline |
◆ getGalacticCoordinates()
Get Galactic coordinates.
- Returns
- Galactic coordinates
Definition at line 684 of file JAstronomy.hh.
685 {
687 }
JGalacticCoordinates()
Default constructor.
◆ operator JAngle3D()
JASTRONOMY::JGalacticCoordinates::operator JAngle3D |
( |
| ) |
const |
|
inline |
Type conversion operator.
- Returns
- polar angles [rad]
Definition at line 695 of file JAstronomy.hh.
◆ getLatitude()
double JASTRONOMY::JGalacticCoordinates::getLatitude |
( |
| ) |
const |
|
inline |
◆ getLongitude()
double JASTRONOMY::JGalacticCoordinates::getLongitude |
( |
| ) |
const |
|
inline |
◆ getDot()
Dot product.
- Parameters
-
- Returns
- dot product
Definition at line 711 of file JAstronomy.hh.
712 {
713 return
714 cos(this->
_theta_) * cos(location._theta_) * cos(this->
_phi_ - location._phi_) +
715 sin(this->
_theta_) * sin(location._theta_);
716 }
◆ set()
◆ equals()
bool JASTRONOMY::angle_type::equals |
( |
const angle_type & | angle, |
|
|
const double | precision = std::numeric_limits<double>::min() ) const |
|
inlineinherited |
Check equality.
- Parameters
-
angle | pair of angles |
precision | precision |
- Returns
- true if angles are equal; else false
Definition at line 194 of file JAstronomy.hh.
196 {
197 return (fabs(this->
_theta_ - angle._theta_) <= precision &&
198 fabs(this->
_phi_ - angle._phi_) <= precision);
199 }
◆ _theta_
double JASTRONOMY::angle_type::_theta_ |
|
protectedinherited |
◆ _phi_
double JASTRONOMY::angle_type::_phi_ |
|
protectedinherited |
The documentation for this struct was generated from the following file: