#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 76 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. | |
| Vector< double > | toVector () |
| Return the data as a Vector<double> object. | |
| std::vector< double > | toStdVector () |
| Return the data as a std::vector object. | |
| 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 91 of file Triple.hpp. |
|
|
Computes an azimuth from this point.
Definition at line 204 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 156 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 124 of file Triple.cpp. Referenced by RACRotation::compute(), gpstk::doSatAtt(), and gpstk::PhaseWindup(). |
|
|
Computes the Dot Product of two vectors.
Definition at line 113 of file Triple.cpp. References Triple::theArray. Referenced by Position::azimuthGeodetic(), PreciseRange::ComputeAtTransmitTime(), computeSolidEarthTides(), 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 193 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 135 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 321 of file Triple.cpp. References Triple::theArray. |
|
|
Difference Operator.
Definition at line 314 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 309 of file Triple.cpp. |
|
|
Return the value of the element at /a index.
Definition at line 207 of file Triple.hpp. |
|
|
Return a reference to the element at /a index.
Definition at line 199 of file Triple.hpp. |
|
|
Computes rotation about axis X.
Definition at line 259 of file Triple.cpp. |
|
|
Computes rotation about axis Y.
Definition at line 277 of file Triple.cpp. Referenced by CorrectObservables::Process(). |
|
|
Computes rotation about axis Z.
Definition at line 295 of file Triple.cpp. Referenced by CorrectObservables::Process(). |
|
|
Return the size of this object.
Definition at line 242 of file Triple.hpp. Referenced by RinexObsHeader::dump(), Antenna::getAntennaDataSize(), Antenna::getAntennaEccMapSize(), Antenna::getNoAziMapSize(), Antenna::getPCMapSize(), gpstk::operator<<(), and PRSolution::SimplePRSolution(). |
|
|
Computes the slant range between this vector and another.
Definition at line 181 of file Triple.cpp. References Triple::mag(), and Triple::theArray. Referenced by Xvt::preciseRho(). |
|
|
Return the data as a std::vector object.
Definition at line 105 of file Triple.cpp. |
|
|
Return the data as a Vector<double> object.
Definition at line 96 of file Triple.cpp. References Triple::theArray. |
|
|
Returns the unit vector of this vector.
Definition at line 140 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 328 of file Triple.cpp. |
|
||||||||||||
|
Output operator for dvec.
Definition at line 335 of file Triple.cpp. |
|
1.3.9.1