From 19bbd5822593c7198dd54eb0f5d38fa1ed8d8fb7 Mon Sep 17 00:00:00 2001 From: Ian C Date: Wed, 18 Aug 2010 14:38:34 +0000 Subject: Reformatted code and altered the attraction rule to something a bit more correct. Also added two tests to prove it works. --- camera.h | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'camera.h') diff --git a/camera.h b/camera.h index d1c39c0..7bb42f9 100644 --- a/camera.h +++ b/camera.h @@ -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 -- cgit v1.2.3