MercuryDPM
Alpha
|
Go to the source code of this file.
Functions | |
std::ostream & | operator<< (std::ostream &os, const Vec3D &a) |
std::istream & | operator>> (std::istream &is, Vec3D &a) |
Vec3D | operator- (const Vec3D &a) |
Vec3D | operator* (const Mdouble a, const Vec3D &b) |
Multiplies each element of a given vector (b) by a given scalar (a). NB: this is a global function and a friend of the Vec3D class. Gets called when a scalar multiplication of the form (Mdouble) * (Vec3D) is performed.
[in] | a | the scalar |
[in] | b | the vector |
Definition at line 483 of file Vector.cc.
References Vec3D::X, Vec3D::Y, and Vec3D::Z.
Returns the negative of a given vector. NB: this is a global function and a friend of the Vec3D class. Gets called when a negation operation of the form - (Vec3D) is performed.
[in] | a | the vector to be negated |
Definition at line 470 of file Vector.cc.
References Vec3D::X, Vec3D::Y, and Vec3D::Z.
std::ostream& operator<< | ( | std::ostream & | os, |
const Vec3D & | a | ||
) |
Adds all elements of the vector to an output stream. NB: this is a global function and a friend of the Vec3D class!
[in] | os | the output stream, |
[in] | a | The vector of interest |
Definition at line 444 of file Vector.cc.
References Vec3D::X, Vec3D::Y, and Vec3D::Z.
std::istream& operator>> | ( | std::istream & | is, |
Vec3D & | a | ||
) |
Reads all elements of a given vector from an input stream. NB: this is a global function and a friend of the Vec3D class!
[in,out] | is | the input stream |
[in,out] | a | the vector to be read in |
Definition at line 457 of file Vector.cc.
References Vec3D::X, Vec3D::Y, and Vec3D::Z.