Location of astrophysical source.
More...
#include <JAstronomy.hh>
Location of astrophysical source.
Definition at line 524 of file JAstronomy.hh.
◆ JSourceLocationJ2000() [1/5]
JASTRONOMY::JSourceLocationJ2000::JSourceLocationJ2000 |
( |
| ) |
|
|
inline |
◆ JSourceLocationJ2000() [2/5]
JASTRONOMY::JSourceLocationJ2000::JSourceLocationJ2000 |
( |
const double | dec, |
|
|
const double | ra ) |
|
inline |
Constructor.
- Parameters
-
dec | declination [rad] |
ra | right ascension [rad] |
Definition at line 540 of file JAstronomy.hh.
541 :
543 {}
angle_type_rad()
Default constructor.
◆ JSourceLocationJ2000() [3/5]
JASTRONOMY::JSourceLocationJ2000::JSourceLocationJ2000 |
( |
const double | t1_s, |
|
|
const JSourceLocation & | location ) |
Conversion constructor.
- Parameters
-
t1_s | time since MJD [s] |
location | source location |
Definition at line 631 of file JAstronomy.hh.
631 :
633 {}
static angle_type_rad convert(const double t1_s, const angle_type_rad &location, const J2000::CONVERSION option)
Convert source location according J2000 at given time.
◆ JSourceLocationJ2000() [4/5]
Conversion constructor.
- Parameters
-
Definition at line 725 of file JAstronomy.hh.
726 {
727 double lat = location.getLatitude();
728 double lon = location.getLongitude();
729
731 }
◆ JSourceLocationJ2000() [5/5]
JASTRONOMY::JSourceLocationJ2000::JSourceLocationJ2000 |
( |
const JAngle3D & | angle | ) |
|
|
inline |
◆ getSourceLocation()
Get source location.
- Returns
- source location
Definition at line 578 of file JAstronomy.hh.
579 {
581 }
JSourceLocationJ2000()
Default constructor.
◆ operator JAngle3D()
JASTRONOMY::JSourceLocationJ2000::operator JAngle3D |
( |
| ) |
const |
|
inline |
Type conversion operator.
- Returns
- polar angles [rad]
Definition at line 589 of file JAstronomy.hh.
◆ getDeclination()
double JASTRONOMY::JSourceLocationJ2000::getDeclination |
( |
| ) |
const |
|
inline |
◆ getRightAscension()
double JASTRONOMY::JSourceLocationJ2000::getRightAscension |
( |
| ) |
const |
|
inline |
◆ getDot()
Dot product.
- Parameters
-
- Returns
- dot product
Definition at line 605 of file JAstronomy.hh.
606 {
607 return
608 cos(this->
_theta_) * cos(location._theta_) * cos(this->
_phi_ - location._phi_) +
609 sin(this->
_theta_) * sin(location._theta_);
610 }
◆ 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: