Документ взят из кэша поисковой машины. Адрес
оригинального документа
: http://www.apo.nmsu.edu/Telescopes/coordConv/html/classcoord_conv_1_1_p_v_t.html
Дата изменения: Thu May 7 21:42:47 2015 Дата индексирования: Sun Apr 10 04:33:28 2016 Кодировка: Поисковые слова: equinox |
lsst.coordConv
unknown
|
#include <pvt.h>
Public Member Functions | |
PVT (double pos, double vel, double t) | |
PVT () | |
PVT | copy () const |
Return a copy. More... | |
PVT | copy (double t) const |
Return a copy with a specified time. More... | |
double | getPos (double t) const |
Return the position at the specified time; return NaN if unknown. More... | |
void | invalidate (double t=DoubleNaN) |
Set PVT invalid at the specified time (which defaults to NaN) More... | |
bool | isfinite () const |
Are all values finite? (Does it have finite pos, vel and t)? More... | |
PVT & | operator+= (PVT const &rhs) |
PVT & | operator-= (PVT const &rhs) |
PVT & | operator+= (double const &rhs) |
PVT & | operator-= (double const &rhs) |
PVT & | operator*= (double const &rhs) |
PVT & | operator/= (double const &rhs) |
PVT | operator+ (PVT const &rhs) const |
PVT | operator- (PVT const &rhs) const |
PVT | operator+ (double const &rhs) const |
PVT | operator- (double const &rhs) const |
PVT | operator* (double const &rhs) const |
PVT | operator/ (double const &rhs) const |
PVT | operator- () const |
bool | operator== (PVT const &rhs) |
bool | operator!= (PVT const &rhs) |
std::string | __repr__ () const |
void | setFromPair (double const posPair[2], double t, double deltaT, bool isAngle) |
Public Attributes | |
double | pos |
double | vel |
double | t |
Position, velocity and time
Requirements: position is in degrees (though that is only required by setFromPair with isAngle=true). velocity is in degrees/unit of time. However, as used within this package, time is always TAI (MJD, seconds).
|
inlineexplicit |
std::string coordConv::PVT::__repr__ | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Set from a pair of positions or angles computed at different times
[in] | posPair | pair of positions, where: posPair[0] is computed at time t posPair[1] is computed at time t + deltaT |
[in] | t | time at which posPair[0] is computed |
[in] | deltaT | time difference between the two positions |
[in] | isAngle | if true then posPair values are treated as angles, in degrees, and the resulting velocity is computed using: posPair[1] - posPair[0] wrapped into the range [-180, 180) |