VieSched++
VieVS VLBI Scheduling Software
Vector Struct Reference

Generic vector. More...

#include <Vector.h>

Public Member Functions

 Vector ()
 
 Vector (const double arg_x, const double arg_y, const double arg_z)
 
 Vector (const double arg_x, const double arg_y, const double arg_z, const double arg_w)
 
 Vector (const Vector &v)
 
Vectoroperator= (const Vector &v)
 
Vector operator- (const Vector &v)
 
double Magnitude () const
 
double Dot (const Vector &vec) const
 
std::string ToString () const
 

Public Attributes

double x
 
double y
 
double z
 
double w
 

Detailed Description

Generic vector.

Stores x, y, z, w

Constructor & Destructor Documentation

Vector::Vector ( )
inline

Default constructor

Here is the caller graph for this function:

Vector::Vector ( const double  arg_x,
const double  arg_y,
const double  arg_z 
)
inline

Constructor

Parameters
arg_xx value
arg_yy value
arg_zz value
Vector::Vector ( const double  arg_x,
const double  arg_y,
const double  arg_z,
const double  arg_w 
)
inline

Constructor

Parameters
arg_xx value
arg_yy value
arg_zz value
arg_ww value
Vector::Vector ( const Vector v)
inline

Copy constructor

Parameters
vvalue to copy from

Member Function Documentation

double Vector::Dot ( const Vector vec) const
inline

Calculates the dot product

Returns
dot product
double Vector::Magnitude ( ) const
inline

Calculates the magnitude of the vector

Returns
magnitude of the vector
Vector Vector::operator- ( const Vector v)
inline

Subtract operator

Parameters
vvalue to suctract from

Here is the call graph for this function:

Vector& Vector::operator= ( const Vector v)
inline

Assignment operator

Parameters
vvalue to copy from
std::string Vector::ToString ( ) const
inline

Converts this vector to a string

Returns
this vector as a string

Here is the caller graph for this function:

Member Data Documentation

double Vector::w

w value

double Vector::x

x value

double Vector::y

y value

double Vector::z

z value


The documentation for this struct was generated from the following file: