NVector3 Class Reference
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 | norm () const |
NVector3 & | operator= (const NVector3 &u) |
Assignment. More... | |
double | operator[] (int i) const |
void | setXYZ (double x, double y, double z, bool normalization=true) |
Writing X,Y and Z coordinates. More... | |
double | squareNorm () const |
double | x () const |
double | y () const |
double | z () const |
Friends | |
double | operator* (const NVector3 &u, const Vector3 &v) |
double | operator* (const Vector3 &u, const NVector3 &v) |
NVector3 | operator- (const NVector3 &u) |
std::ostream & | operator<< (std::ostream &out, const NVector3 &u) |
Out stream override: prints the 3 normalized vector components. More... | |
Detailed Description
Definition at line 55 of file NVector3.h.
Constructor & Destructor Documentation
NVector3 | ( | ) |
Default constructor (the default normalized vector is (1,0,0))
Definition at line 134 of file NVector3.cpp.
Copy constructor.
Definition at line 143 of file NVector3.cpp.
Member Function Documentation
Assignment.
Definition at line 161 of file NVector3.cpp.
void setXYZ | ( | double | x, |
double | y, | ||
double | z, | ||
bool | normalization = true |
||
) |
Writing X,Y and Z coordinates.
Definition at line 151 of file NVector3.cpp.
Friends And Related Function Documentation
|
friend |
Out stream override: prints the 3 normalized vector components.
Definition at line 173 of file NVector3.cpp.
The documentation for this class was generated from the following files:
- worldsim/3rdParts/qglviewer/VRender/NVector3.h
- worldsim/3rdParts/qglviewer/VRender/NVector3.cpp