General Purpose Geodetic Library
Sg3dVector.h File Reference
#include <math.h>
#include <stdio.h>
#include <ostream>
#include <SgMathSupport.h>

Go to the source code of this file.

Classes

class  Sg3dVector
 

Functions

Sg3dVector operator- (const Sg3dVector &v)
 
Sg3dVector operator+ (const Sg3dVector &v1, const Sg3dVector &v2)
 
Sg3dVector operator- (const Sg3dVector &v1, const Sg3dVector &v2)
 
Sg3dVector operator/ (const Sg3dVector &v, double d)
 
Sg3dVector operator* (const Sg3dVector &v, double d)
 
Sg3dVector operator* (double d, const Sg3dVector &v)
 
double operator* (const Sg3dVector &v1, const Sg3dVector &v2)
 
Sg3dVector operator% (const Sg3dVector &v1, const Sg3dVector &v2)
 
std::ostream & operator<< (std::ostream &s, const Sg3dVector &v)
 

Function Documentation

◆ operator%()

Sg3dVector operator% ( const Sg3dVector v1,
const Sg3dVector v2 
)
inline

Makes a vector product of two vectors (because "%" has a priority of "*")

Definition at line 330 of file Sg3dVector.h.

◆ operator*() [1/3]

Sg3dVector operator* ( const Sg3dVector v,
double  d 
)
inline

Returns a vector multiplied by scalar.

Definition at line 306 of file Sg3dVector.h.

◆ operator*() [2/3]

double operator* ( const Sg3dVector v1,
const Sg3dVector v2 
)
inline

Makes a scalar product of two vectors.

Definition at line 322 of file Sg3dVector.h.

◆ operator*() [3/3]

Sg3dVector operator* ( double  d,
const Sg3dVector v 
)
inline

Returns a vector multiplied by scalar.

Definition at line 314 of file Sg3dVector.h.

◆ operator+()

Sg3dVector operator+ ( const Sg3dVector v1,
const Sg3dVector v2 
)
inline

Returns a sum of two vectors.

Parameters
V1is a first term,
V2is a second term in the sum.

Definition at line 282 of file Sg3dVector.h.

◆ operator-() [1/2]

Sg3dVector operator- ( const Sg3dVector v)
inline

Returns a vector with an inverted sign.

Parameters
Vis a original vector.

Definition at line 274 of file Sg3dVector.h.

◆ operator-() [2/2]

Sg3dVector operator- ( const Sg3dVector v1,
const Sg3dVector v2 
)
inline

Returns a difference of two vectors.

Definition at line 290 of file Sg3dVector.h.

◆ operator/()

Sg3dVector operator/ ( const Sg3dVector v,
double  d 
)
inline

Returns a vector divided by scalar.

Definition at line 298 of file Sg3dVector.h.

◆ operator<<()

std::ostream& operator<< ( std::ostream &  s,
const Sg3dVector v 
)
inline

Makes output to std::ostream, standard text formatted output.

Definition at line 340 of file Sg3dVector.h.