Location of astrophysical source.
More...
#include <JAstronomy.hh>
Location of astrophysical source.
Definition at line 439 of file JAstronomy.hh.
◆ JSourceLocation() [1/4]
JASTRONOMY::JSourceLocation::JSourceLocation |
( |
| ) |
|
|
inline |
◆ JSourceLocation() [2/4]
JASTRONOMY::JSourceLocation::JSourceLocation |
( |
const double | dec, |
|
|
const double | ra ) |
|
inline |
Constructor.
- Parameters
-
dec | declination [rad] |
ra | right ascension [rad] |
Definition at line 455 of file JAstronomy.hh.
456 :
458 {}
angle_type_rad()
Default constructor.
◆ JSourceLocation() [3/4]
JASTRONOMY::JSourceLocation::JSourceLocation |
( |
const double | t1_s, |
|
|
const JSourceLocationJ2000 & | location ) |
Conversion constructor.
- Parameters
-
t1_s | time since MJD [s] |
location | source location |
Definition at line 620 of file JAstronomy.hh.
620 :
622 {}
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.
◆ JSourceLocation() [4/4]
JASTRONOMY::JSourceLocation::JSourceLocation |
( |
const JAngle3D & | angle | ) |
|
|
inline |
◆ getSourceLocation()
const JSourceLocation & JASTRONOMY::JSourceLocation::getSourceLocation |
( |
| ) |
const |
|
inline |
Get source location.
- Returns
- source location
Definition at line 485 of file JAstronomy.hh.
486 {
488 }
JSourceLocation()
Default constructor.
◆ operator JAngle3D()
JASTRONOMY::JSourceLocation::operator JAngle3D |
( |
| ) |
const |
|
inline |
Type conversion operator.
- Returns
- polar angles [rad]
Definition at line 496 of file JAstronomy.hh.
◆ getDeclination()
double JASTRONOMY::JSourceLocation::getDeclination |
( |
| ) |
const |
|
inline |
◆ getRightAscension()
double JASTRONOMY::JSourceLocation::getRightAscension |
( |
| ) |
const |
|
inline |
◆ getDot()
double JASTRONOMY::JSourceLocation::getDot |
( |
const JSourceLocation & | location | ) |
const |
|
inline |
Dot product.
- Parameters
-
- Returns
- dot product
Definition at line 512 of file JAstronomy.hh.
513 {
514 return
515 cos(this->
_theta_) * cos(location._theta_) * cos(this->
_phi_ - location._phi_) +
516 sin(this->
_theta_) * sin(location._theta_);
517 }
◆ 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: