Skip to content
Snippets Groups Projects
Commit 46d9296d authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

fix uninitialized var

parent 9bfb769d
No related branches found
No related tags found
No related merge requests found
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
class Quaternion; class Quaternion;
class XYZ { class XYZ {
public: public:
XYZ(){}; XYZ() : x(0.), y(0.), z(0.){};
~XYZ(){}; ~XYZ(){};
XYZ(double _x,double _y,double _z); XYZ(double _x,double _y,double _z);
double x, y, z; double x, y, z;
...@@ -22,7 +22,7 @@ public: ...@@ -22,7 +22,7 @@ public:
double length(XYZ &p); double length(XYZ &p);
void normalize(XYZ &p); void normalize(XYZ &p);
void rotate(Quaternion omega,XYZ axe) ; void rotate(Quaternion omega,XYZ axe) ;
XYZ operator* (const double &a,const XYZ &T); XYZ operator* (const double &a,const XYZ &T);
XYZ operator+ (const XYZ &L,const XYZ &R); XYZ operator+ (const XYZ &L,const XYZ &R);
XYZ operator- (const XYZ &L,const XYZ &R); XYZ operator- (const XYZ &L,const XYZ &R);
...@@ -31,9 +31,9 @@ XYZ operator- (const XYZ &R); ...@@ -31,9 +31,9 @@ XYZ operator- (const XYZ &R);
class Quaternion{ class Quaternion{
public: public:
double x,y,z,w; double x,y,z,w;
Quaternion(); Quaternion();
Quaternion(const XYZ &R); Quaternion(const XYZ &R);
Quaternion(const XYZ &R, const double &A); Quaternion(const XYZ &R, const double &A);
~Quaternion(); ~Quaternion();
}; };
...@@ -54,7 +54,7 @@ class Camera { ...@@ -54,7 +54,7 @@ class Camera {
XYZ right; /* View right direction */ XYZ right; /* View right direction */
XYZ target; /* center of rotation and screen */ XYZ target; /* center of rotation and screen */
double focallength; /* Focal Length along vd */ double focallength; /* Focal Length along vd */
double focallength_ratio; double focallength_ratio;
double aperture; /* Camera aperture */ double aperture; /* Camera aperture */
double eyesep; /* Eye separation */ double eyesep; /* Eye separation */
int screenwidth,screenheight; int screenwidth,screenheight;
...@@ -85,7 +85,7 @@ class Camera { ...@@ -85,7 +85,7 @@ class Camera {
void upZ(); void upZ();
void tiltHeadLeft(); void tiltHeadLeft();
void tiltHeadRight(); void tiltHeadRight();
}; };
class mouseAndKeyboard { class mouseAndKeyboard {
public: public:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment