#include <Triple.hpp>
Inheritance diagram for Triple:

This class provides mathematical functions for 3D vectors, including some functions specific to orbital tracking.
Definition at line 69 of file Triple.hpp.
Public Member Functions | |
| Triple () | |
| Default constructor, initialize as triple. | |
| Triple (const Triple &right) | |
| Copy constructor. | |
| Triple (double a, double b, double c) | |
| Construct from three doubles. | |
| virtual | ~Triple () |
| Destructor. | |
| Triple & | operator= (const Triple &right) |
| Assignment operator. | |
| Triple & | operator= (const std::valarray< double > &right) throw (GeometryException) |
| Assign from valarray. | |
| double | dot (const Triple &right) const throw () |
| Computes the Dot Product of two vectors. | |
| Triple | cross (const Triple &right) const throw () |
| Computes the Cross Product of two vectors. | |
| double | mag () const throw () |
| Computes the Magnigude of this vector. | |
| Triple | unitVector () const throw (GeometryException) |
| Returns the unit vector of this vector. | |
| double | cosVector (const Triple &right) const throw (GeometryException) |
| Computes the Cosine of the Angle Between this vector and another. | |
| double | slantRange (const Triple &right) const throw () |
| Computes the slant range between this vector and another. | |
| double | elvAngle (const Triple &right) const throw (GeometryException) |
| Computes the elevation of a point with respect to this point. | |
| double | azAngle (const Triple &right) const throw (GeometryException) |
| Computes an azimuth from this point. | |
| Triple | R1 (const double &angle) const throw () |
| Computes rotation about axis X. | |
| Triple | R2 (const double &angle) const throw () |
| Computes rotation about axis Y. | |
| Triple | R3 (const double &angle) const throw () |
| Computes rotation about axis Z. | |
| double & | operator[] (const size_t index) |
| Return a reference to the element at /a index. | |
| double | operator[] (const size_t index) const |
| Return the value of the element at /a index. | |
| bool | operator== (const Triple &right) const |
| Equality Operator. | |
| Triple | operator- (const Triple &right) const |
| Difference Operator. | |
| Triple | operator+ (const Triple &right) const |
| Sum Operator. | |
| size_t | size (void) const |
| Return the size of this object. | |
Public Attributes | |
| std::valarray< double > | theArray |
Friends | |
| Triple | operator * (double right, const Triple &rhs) |
| Multiplication Operator. | |
| std::ostream & | operator<< (std::ostream &s, const gpstk::Triple &v) |
| Output operator for dvec. | |
|
|
Default constructor, initialize as triple.
Definition at line 57 of file Triple.cpp. |
|
|
Copy constructor.
Definition at line 62 of file Triple.cpp. |
|
||||||||||||||||
|
Construct from three doubles.
Definition at line 67 of file Triple.cpp. References Triple::theArray. |
|
|
Destructor.
Definition at line 84 of file Triple.hpp. |
|
|
Computes an azimuth from this point.
Definition at line 187 of file Triple.cpp. References GPSTK_THROW. Referenced by Position::azimuth(), and main(). |
|
|
Computes the Cosine of the Angle Between this vector and another.
Definition at line 139 of file Triple.cpp. References Triple::dot(), gpstk::dot(), and GPSTK_THROW. Referenced by Triple::elvAngle(). |
|
|
Computes the Cross Product of two vectors.
Definition at line 107 of file Triple.cpp. Referenced by RACRotation::compute(), gpstk::doSatAtt(), and gpstk::PhaseWindup(). |
|
|
Computes the Dot Product of two vectors.
Definition at line 96 of file Triple.cpp. References Triple::theArray. Referenced by Position::azimuthGeodetic(), PreciseRange::ComputeAtTransmitTime(), Triple::cosVector(), gpstk::doSatAtt(), Position::elevationGeodetic(), Triple::mag(), gpstk::PhaseWindup(), CorrectObservables::Process(), and Triple::unitVector(). |
|
|
Computes the elevation of a point with respect to this point.
Definition at line 176 of file Triple.cpp. References Triple::cosVector(), and Triple::theArray. Referenced by Position::elevation(), and main(). |
|
|
Computes the Magnigude of this vector.
Definition at line 118 of file Triple.cpp. References Triple::dot(), and gpstk::sqrt(). Referenced by Position::azimuthGeodetic(), gpstk::doSatAtt(), Position::elevationGeodetic(), gpstk::PhaseWindup(), GravitationalDelay::Process(), gpstk::SatelliteNadirAzimuthAngles(), Triple::slantRange(), and Triple::unitVector(). |
|
|
Sum Operator.
Definition at line 304 of file Triple.cpp. References Triple::theArray. |
|
|
Difference Operator.
Definition at line 297 of file Triple.cpp. References Triple::theArray. |
|
|
Assign from valarray.
Definition at line 83 of file Triple.cpp. References GPSTK_THROW. |
|
|
Assignment operator.
Definition at line 77 of file Triple.cpp. References Triple::theArray. |
|
|
Equality Operator.
Definition at line 292 of file Triple.cpp. |
|
|
Return the value of the element at /a index.
Definition at line 192 of file Triple.hpp. |
|
|
Return a reference to the element at /a index.
Definition at line 184 of file Triple.hpp. Referenced by ECEF::asGeodetic(). |
|
|
Computes rotation about axis X.
Definition at line 242 of file Triple.cpp. |
|
|
Computes rotation about axis Y.
Definition at line 260 of file Triple.cpp. Referenced by CorrectObservables::Process(). |
|
|
Computes rotation about axis Z.
Definition at line 278 of file Triple.cpp. Referenced by CorrectObservables::Process(). |
|
|
Return the size of this object.
Definition at line 227 of file Triple.hpp. Referenced by RinexObsHeader::dump(), Antenna::getAntennaDataSize(), Antenna::getAntennaEccMapSize(), Antenna::getNoAziMapSize(), Antenna::getPCMapSize(), and gpstk::operator<<(). |
|
|
Computes the slant range between this vector and another.
Definition at line 164 of file Triple.cpp. References Triple::mag(), and Triple::theArray. Referenced by CorrectedEphemerisRange::ComputeAtTransmitSvTime(), and Xvt::preciseRho(). |
|
|
Returns the unit vector of this vector.
Definition at line 123 of file Triple.cpp. References Triple::dot(), GPSTK_THROW, Triple::mag(), and gpstk::sqrt(). Referenced by RACRotation::compute(), EclipsedSatFilter::Process(), and CorrectObservables::Process(). |
|
||||||||||||
|
Multiplication Operator. the scale by which to multiply a Triple the Triple to scale
Definition at line 311 of file Triple.cpp. |
|
||||||||||||
|
Output operator for dvec.
Definition at line 318 of file Triple.cpp. |
|
1.3.9.1