diff --git a/Graphics/Camera.h b/Graphics/Camera.h index cf1442dbf7c9318f3d6a24d8a2816777e5be0a0d..9bbeadfbfa0cd733de4ffec3bc0297a01f806a7f 100644 --- a/Graphics/Camera.h +++ b/Graphics/Camera.h @@ -11,8 +11,8 @@ class Quaternion; class XYZ { -public: - XYZ(){}; +public: + XYZ() : x(0.), y(0.), z(0.){}; ~XYZ(){}; XYZ(double _x,double _y,double _z); double x, y, z; @@ -22,7 +22,7 @@ public: double length(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 XYZ &L,const XYZ &R); XYZ operator- (const XYZ &L,const XYZ &R); @@ -31,9 +31,9 @@ XYZ operator- (const XYZ &R); class Quaternion{ public: double x,y,z,w; - Quaternion(); + Quaternion(); Quaternion(const XYZ &R); - Quaternion(const XYZ &R, const double &A); + Quaternion(const XYZ &R, const double &A); ~Quaternion(); }; @@ -54,7 +54,7 @@ class Camera { XYZ right; /* View right direction */ XYZ target; /* center of rotation and screen */ double focallength; /* Focal Length along vd */ - double focallength_ratio; + double focallength_ratio; double aperture; /* Camera aperture */ double eyesep; /* Eye separation */ int screenwidth,screenheight; @@ -85,7 +85,7 @@ class Camera { void upZ(); void tiltHeadLeft(); void tiltHeadRight(); -}; +}; class mouseAndKeyboard { public: