Документ взят из кэша поисковой машины. Адрес оригинального документа : 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
Кодировка:

Поисковые слова: п р п р п р п р п р п р п
lsst.coordConv: coordConv::PVT Class Reference
lsst.coordConv  unknown
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | Public Attributes | List of all members
coordConv::PVT Class Reference

#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...
 
PVToperator+= (PVT const &rhs)
 
PVToperator-= (PVT const &rhs)
 
PVToperator+= (double const &rhs)
 
PVToperator-= (double const &rhs)
 
PVToperator*= (double const &rhs)
 
PVToperator/= (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
 

Detailed Description

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).

Definition at line 18 of file pvt.h.

Constructor & Destructor Documentation

coordConv::PVT::PVT ( double  pos,
double  vel,
double  t 
)
inlineexplicit

Construct from specified position, velocity and time

Parameters
posposition (deg)
velvelocity (deg/sec)
tTAI date (MJD, sec)

Definition at line 29 of file pvt.h.

coordConv::PVT::PVT ( )
inlineexplicit

Construct a null PVT

Definition at line 39 of file pvt.h.

Member Function Documentation

std::string coordConv::PVT::__repr__ ( ) const

Return a string representation

Definition at line 11 of file pvt.cc.

PVT coordConv::PVT::copy ( ) const
inline

Return a copy.

Definition at line 47 of file pvt.h.

PVT coordConv::PVT::copy ( double  t) const
inline

Return a copy with a specified time.

Definition at line 52 of file pvt.h.

double coordConv::PVT::getPos ( double  t) const
inline

Return the position at the specified time; return NaN if unknown.

Definition at line 57 of file pvt.h.

void coordConv::PVT::invalidate ( double  t = DoubleNaN)
inline

Set PVT invalid at the specified time (which defaults to NaN)

Definition at line 62 of file pvt.h.

bool coordConv::PVT::isfinite ( ) const
inline

Are all values finite? (Does it have finite pos, vel and t)?

Definition at line 69 of file pvt.h.

bool coordConv::PVT::operator!= ( PVT const &  rhs)
inline

Definition at line 152 of file pvt.h.

PVT coordConv::PVT::operator* ( double const &  rhs) const
inline

Definition at line 132 of file pvt.h.

PVT& coordConv::PVT::operator*= ( double const &  rhs)
inline

Definition at line 95 of file pvt.h.

PVT coordConv::PVT::operator+ ( PVT const &  rhs) const
inline

Definition at line 108 of file pvt.h.

PVT coordConv::PVT::operator+ ( double const &  rhs) const
inline

Definition at line 120 of file pvt.h.

PVT& coordConv::PVT::operator+= ( PVT const &  rhs)
inline

Definition at line 73 of file pvt.h.

PVT& coordConv::PVT::operator+= ( double const &  rhs)
inline

Definition at line 85 of file pvt.h.

PVT coordConv::PVT::operator- ( PVT const &  rhs) const
inline

Definition at line 114 of file pvt.h.

PVT coordConv::PVT::operator- ( double const &  rhs) const
inline

Definition at line 126 of file pvt.h.

PVT coordConv::PVT::operator- ( ) const
inline

Definition at line 144 of file pvt.h.

PVT& coordConv::PVT::operator-= ( PVT const &  rhs)
inline

Definition at line 79 of file pvt.h.

PVT& coordConv::PVT::operator-= ( double const &  rhs)
inline

Definition at line 90 of file pvt.h.

PVT coordConv::PVT::operator/ ( double const &  rhs) const
inline

Definition at line 138 of file pvt.h.

PVT& coordConv::PVT::operator/= ( double const &  rhs)
inline

Definition at line 101 of file pvt.h.

bool coordConv::PVT::operator== ( PVT const &  rhs)
inline

Definition at line 148 of file pvt.h.

void coordConv::PVT::setFromPair ( double const  posPair[2],
double  t,
double  deltaT,
bool  isAngle 
)
inline

Set from a pair of positions or angles computed at different times

Parameters
[in]posPairpair of positions, where: posPair[0] is computed at time t posPair[1] is computed at time t + deltaT
[in]ttime at which posPair[0] is computed
[in]deltaTtime difference between the two positions
[in]isAngleif 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)
Warning
if isAngle true then posPair must be in degrees

Definition at line 175 of file pvt.h.

Member Data Documentation

double coordConv::PVT::pos

Definition at line 20 of file pvt.h.

double coordConv::PVT::t

Definition at line 20 of file pvt.h.

double coordConv::PVT::vel

Definition at line 20 of file pvt.h.


The documentation for this class was generated from the following files: