|
| Coord (double equatAng, double polarAng, double parallax=0) |
|
| Coord (double equatAng, double polarAng, double parallax, double equatPM, double polarPM, double radVel) |
|
| Coord (Eigen::Vector3d const &pos) |
|
| Coord (Eigen::Vector3d const &pos, Eigen::Vector3d const &pm) |
|
| Coord () |
|
| ~Coord () |
|
bool | atInfinity () const |
|
bool | atPole () const |
|
double | getDistance () const |
|
double | getParallax () const |
|
bool | getSphPos (double &equatAng, double &polarAng) const |
|
bool | getPM (double &equatPM, double &polarPM) const |
|
double | getRadVel () const |
|
Eigen::Vector3d const | getVecPos () const |
|
Eigen::Vector3d const | getVecPM () const |
|
bool | isfinite () const |
|
double | angularSeparation (Coord const &coord) const |
|
double | orientationTo (Coord const &coord) const |
|
Coord | offset (double &toOrient, double fromOrient, double dist) const |
|
bool | operator== (Coord const &rhs) |
|
bool | operator!= (Coord const &rhs) |
|
std::string | __repr__ () const |
|
Coordinates represent target position and proper motion.
The coordinate system is always right handed, so azimuth is 0 south, 90 east (and hour angle is negated, though it is not visible in very much of the API).
Access is available as spherical coordinates and cartesian vectors.
If parallax < MinParallax / 0.9 then isInfinity() returns true and parallax is reported as 0. Having a lower limit prevents vector operations from overflowing.
Definition at line 27 of file coord.h.
Coord coordConv::Coord::offset |
( |
double & |
toOrient, |
|
|
double |
fromOrient, |
|
|
double |
dist |
|
) |
| const |
Compute a new coord offset from this coord along the arc of a great circle
- Parameters
-
[out] | toOrient | orientation of offset arc at offset position (deg) |
[in] | fromOrient | orientation of offset arc at this position (deg) |
[in] | dist | offset distance as the length of the arc of a great circle (deg) |
- Returns
- offset coord
- Exceptions
-
runtime_error | if this coord is too near a pole |
This diagram may help:
.
. тОЮ toOrient
--------------> dir. of increasing equatorial angle at offset coord
. offset coord
.
.
. тОЮ fromOrient
-------------—> dir. of increasing equatorial angle at this coord this coord
Definition at line 172 of file coord.cc.
double coordConv::Coord::orientationTo |
( |
Coord const & |
coord | ) |
const |
Compute the orientation of a great circle offset to another coord
In detail: computes the orientation at this point of a great circle connecting this coord to another coord. The orientation is 0 if the great circle lies along the direction of increasing equatorial angle, 90 if it lies along the direction increasing polar angle.
- Returns
- orientation (deg), or NaN if the angular separation is noo near 0 or 180 degrees
Definition at line 156 of file coord.cc.