General Purpose Geodetic Library
|
#include <Sg3dVector.h>
Public Member Functions | |
Sg3dVector () | |
Sg3dVector (double v1, double v2, double v3) | |
Sg3dVector (const Sg3dVector &V) | |
~Sg3dVector () | |
double & | operator() (DIRECTION i) |
double | at (DIRECTION i) const |
double | module () const |
double | phi () const |
double | lambda () const |
Sg3dVector & | unify () |
Sg3dVector | unit () const |
void | clear () |
Sg3dVector & | operator= (const Sg3dVector &v) |
Sg3dVector & | operator+= (const Sg3dVector &v) |
Sg3dVector & | operator-= (const Sg3dVector &v) |
Sg3dVector & | operator*= (double d) |
Sg3dVector & | operator/= (double d) |
bool | operator== (const Sg3dVector &v) const |
bool | operator!= (const Sg3dVector &v) const |
Protected Attributes | |
double | vec [3] |
An array of 3 elements, stores elements of a vector. More... | |
Friends | |
Sg3dVector | operator- (const Sg3dVector &v) |
Sg3dVector | operator+ (const Sg3dVector &v1, const Sg3dVector &v2) |
Sg3dVector | operator- (const Sg3dVector &, const Sg3dVector &) |
Sg3dVector | operator/ (const Sg3dVector &, double) |
Sg3dVector | operator* (const Sg3dVector &, double) |
Sg3dVector | operator* (double, const Sg3dVector &) |
double | operator* (const Sg3dVector &, const Sg3dVector &) |
Sg3dVector | operator% (const Sg3dVector &, const Sg3dVector &) |
Sg3dVector | operator* (const Sg3dMatrix &, const Sg3dVector &) |
std::ostream & | operator<< (std::ostream &s, const Sg3dVector &v) |
A three-dimentional vector. Should be useful for various geometrical calculations.
Definition at line 48 of file Sg3dVector.h.
|
inline |
A constructor. Creates a default copy of the object, fills it with zeros.
Definition at line 60 of file Sg3dVector.h.
References vec.
Referenced by unit().
|
inline |
A constructor. Creates a copy of the object using three elements of the vectors.
v1,v2,v3 | are the values that will be assigned to the vector. |
Definition at line 66 of file Sg3dVector.h.
References vec.
|
inline |
A constructor. Creates a copy of the object from vector V.
V | – vector to be copied. |
Definition at line 72 of file Sg3dVector.h.
References vec.
|
inline |
A destructor. Destroys the object.
Definition at line 77 of file Sg3dVector.h.
|
inline |
Returns value of i-th element of the vector. The function does not change the object.
i | – an index; valid ranges are [0,1,2]. |
Definition at line 91 of file Sg3dVector.h.
References vec.
Referenced by Sg3dMatrix::Sg3dMatrix(), calcLhv(), SgVlbiStationInfo::calcRLF(), SgTaskManager::constrainStcPositionsNNR(), SgKombOb01Record::debugReport(), SgVlbiObservation::evalExtApriori_StnPos(), SgVlbiSession::exportDataIntoNgsFile(), SgAgvDriver::fillBslnVars(), SgAgvDriver::fillSessVars(), SgAgvDriver::fillSttnVars(), SgVlbiSession::putDataIntoDbhImage(), SgVlbiSession::putDataIntoVgosDb(), SgSolutionReporter::reportBaselineVariationsBlock_Output4Spoolfile(), SgSolutionReporter::reportEstimationBlock_Output4Spoolfile(), and SgSolutionReporter::reportStations_Output4AposterioriFiles().
|
inline |
Zerofies a vector.
Definition at line 120 of file Sg3dVector.h.
References vec.
Referenced by SgOceanLoad::calcDisplacement().
|
inline |
Calculates and returns a longitude in spherical coordinate system.
Definition at line 107 of file Sg3dVector.h.
Referenced by SgSolutionReporter::reportEstimationBlock_Output4Spoolfile().
|
inline |
Returns a length of the vector.
Definition at line 99 of file Sg3dVector.h.
References vec.
Referenced by calcLhv(), SgSingleSessionTaskManager::finisRun(), lambda(), phi(), SgSolutionReporter::reportEstimationBlock_Output4Spoolfile(), SgVlbiSession::selfCheck(), SgVlbiStationInfo::setR(), unify(), and unit().
|
inline |
Boolean operator, returns TRUE if two vectors are NOT equal
Definition at line 193 of file Sg3dVector.h.
|
inline |
Returns reference at i-th element of the vector.
i | – an index; valid ranges are [0,1,2]. |
Definition at line 86 of file Sg3dVector.h.
References vec.
|
inline |
Multiplies a vector by the scalar.
d | is a scale. |
Definition at line 245 of file Sg3dVector.h.
References vec.
|
inline |
Increments a meaning of the vector on a value of the given vector.
V | is a vector to be added. |
Definition at line 223 of file Sg3dVector.h.
References vec.
|
inline |
Decrements a meaning of the vector on a value of the given vector.
V | is a vector to be substracted. |
Definition at line 234 of file Sg3dVector.h.
References vec.
|
inline |
Divides a vector by the scalar.
d | is a divider. |
Definition at line 256 of file Sg3dVector.h.
References vec.
|
inline |
Assigns a value of the given vector.
V | is a vector to be copied. |
Definition at line 212 of file Sg3dVector.h.
References vec.
|
inline |
Boolean operator, returns TRUE if two vectors are equal
Definition at line 188 of file Sg3dVector.h.
References vec.
|
inline |
Calculates and returns a latitude in spherical coordinate system.
Definition at line 103 of file Sg3dVector.h.
Referenced by SgSolutionReporter::reportEstimationBlock_Output4Spoolfile().
|
inline |
Unifies the vector, returns a reference on it.
Definition at line 112 of file Sg3dVector.h.
References module().
Referenced by calcLhv().
|
inline |
Returns a unified vector. The function does not change the object.
Definition at line 116 of file Sg3dVector.h.
References Sg3dVector(), and module().
|
friend |
Makes a vector product of two vectors (because "%" has a priority of "*")
Definition at line 330 of file Sg3dVector.h.
|
friend |
Makes a product of matrix and vector
Returns a product of a matrix and a vector.
Definition at line 350 of file Sg3dMatrix.h.
|
friend |
Makes a scalar product of two vectors.
Definition at line 322 of file Sg3dVector.h.
|
friend |
Returns a vector multiplied by scalar.
Definition at line 306 of file Sg3dVector.h.
|
friend |
Returns a vector multiplied by scalar.
Definition at line 314 of file Sg3dVector.h.
|
friend |
Returns a sum of two vectors.
V1 | is a first term, |
V2 | is a second term in the sum. |
Definition at line 282 of file Sg3dVector.h.
|
friend |
Returns a difference of two vectors.
Definition at line 290 of file Sg3dVector.h.
|
friend |
Returns a vector with an inverted sign.
V | is a original vector. |
Definition at line 274 of file Sg3dVector.h.
|
friend |
Returns a vector divided by scalar.
Definition at line 298 of file Sg3dVector.h.
|
friend |
Makes output to std::ostream, standard text formatted output.
Definition at line 340 of file Sg3dVector.h.
|
protected |
An array of 3 elements, stores elements of a vector.
Definition at line 51 of file Sg3dVector.h.
Referenced by Sg3dVector(), at(), SgOceanLoad::calcDisplacement(), clear(), lambda(), module(), operator()(), operator*=(), operator+=(), operator-=(), operator/=(), operator=(), operator==(), and phi().