diff options
author | Ian C <ianc@noddybox.co.uk> | 2010-08-18 14:38:34 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2010-08-18 14:38:34 +0000 |
commit | 19bbd5822593c7198dd54eb0f5d38fa1ed8d8fb7 (patch) | |
tree | 97f7f8849c3a8282ba571a64ff2a655cdf5d41aa /camera.h | |
parent | 0d2f672482fee91a9642a7cb6eb01fcdded79159 (diff) |
Reformatted code and altered the attraction rule to something a bit more
correct. Also added two tests to prove it works.
Diffstat (limited to 'camera.h')
-rw-r--r-- | camera.h | 42 |
1 files changed, 21 insertions, 21 deletions
@@ -31,27 +31,27 @@ #include "matrix.h" class Camera - { - public: - Camera(); - virtual ~Camera(); - - // Initially the camera always looks along the Z axis - // - void setPos(GLfloat x, GLfloat y, GLfloat z); - - void addSpeed(GLfloat speed); - void roll(double angle); - void pitch(double angle); - - void setView() const; - - private: - GLfloat px,py,pz; - Matrix direction; - Matrix left; - Matrix up; - }; +{ +public: + Camera(); + virtual ~Camera(); + + // Initially the camera always looks along the Z axis + // + void setPos(GLfloat x, GLfloat y, GLfloat z); + + void addSpeed(GLfloat speed); + void roll(double angle); + void pitch(double angle); + + void setView() const; + +private: + GLfloat px,py,pz; + Matrix direction; + Matrix left; + Matrix up; +}; #endif |