#include <NVector3.h>
Public Member Functions | |
NVector3 () | |
Default constructor (the default normalized vector is (1,0,0)) More... | |
NVector3 (const NVector3 &u) | |
Copy constructor. More... | |
NVector3 (double x, double y, double z, bool normalization=true) | |
NVector3 (const Vector3 &u, bool normalization=true) | |
double | x () const |
double | y () const |
double | z () const |
void | setXYZ (double x, double y, double z, bool normalization=true) |
Writing X,Y and Z coordinates. More... | |
NVector3 & | operator= (const NVector3 &u) |
Assignment. More... | |
double | norm () const |
double | squareNorm () const |
double | operator[] (int i) const |
Friends | |
NVector3 | operator- (const NVector3 &u) |
double | operator* (const NVector3 &u, const Vector3 &v) |
double | operator* (const Vector3 &u, const NVector3 &v) |
std::ostream & | operator<< (std::ostream &out, const NVector3 &u) |
Out stream override: prints the 3 normalized vector components. More... | |
NVector3::NVector3 | ( | ) |
Default constructor (the default normalized vector is (1,0,0))
NVector3::NVector3 | ( | const NVector3 & | u | ) |
Copy constructor.
|
inline |
|
inline |
|
inline |
void NVector3::setXYZ | ( | double | x, |
double | y, | ||
double | z, | ||
bool | normalization = true |
||
) |
Writing X,Y and Z coordinates.
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
Out stream override: prints the 3 normalized vector components.