45 #ifndef _VRENDER_NVECTOR3_H
46 #define _VRENDER_NVECTOR3_H
60 inline NVector3(
double x,
double y,
double z,
bool normalization=
true)
62 setXYZ(x,y,z,normalization);
67 inline double x()
const {
return _n[0];}
68 inline double y()
const {
return _n[1];}
69 inline double z()
const {
return _n[2];}
70 void setXYZ(
double x,
double y,
double z,
bool normalization=
true);
99 inline double norm()
const {
return 1.0;}
100 inline double squareNorm()
const {
return 1.0;}
103 double operator[](
int i)
const
106 throw std::runtime_error(
"Out of bounds in NVector3::operator[]") ;
120 #endif // _NVECTOR3_H