#include <NVector3.h>
|
double | norm () const |
|
| 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) |
|
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 |
|
Definition at line 55 of file NVector3.h.
Default constructor (the default normalized vector is (1,0,0))
Definition at line 134 of file NVector3.cpp.
NVector3::NVector3 |
( |
const NVector3 & |
u | ) |
|
vrender::NVector3::NVector3 |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
z, |
|
|
bool |
normalization = true |
|
) |
| |
|
inline |
NVector3::NVector3 |
( |
const Vector3 & |
u, |
|
|
bool |
normalization = true |
|
) |
| |
double vrender::NVector3::norm |
( |
| ) |
const |
|
inline |
void NVector3::normalize |
( |
| ) |
|
|
private |
Normalization Private method to do normalization (using Norm() method of the Vector class) when it is necessary (construction of a normalized vector for exemple).
Definition at line 183 of file NVector3.cpp.
double vrender::NVector3::operator[] |
( |
int |
i | ) |
const |
|
inline |
void NVector3::setXYZ |
( |
double |
x, |
|
|
double |
y, |
|
|
double |
z, |
|
|
bool |
normalization = true |
|
) |
| |
Writing X,Y and Z coordinates.
Definition at line 151 of file NVector3.cpp.
double vrender::NVector3::squareNorm |
( |
| ) |
const |
|
inline |
double vrender::NVector3::x |
( |
| ) |
const |
|
inline |
double vrender::NVector3::y |
( |
| ) |
const |
|
inline |
double vrender::NVector3::z |
( |
| ) |
const |
|
inline |
std::ostream& operator<< |
( |
std::ostream & |
out, |
|
|
const NVector3 & |
u |
|
) |
| |
|
friend |
Out stream override: prints the 3 normalized vector components.
Definition at line 173 of file NVector3.cpp.
double vrender::NVector3::_n[3] |
|
private |
The documentation for this class was generated from the following files: