Fix the spacing, and while we're at it, change tabs to spaces.

This commit is contained in:
Andrzej Kapolka 2013-05-22 15:22:05 -07:00
parent d89939e0bd
commit c97b4f5e1d

View file

@ -19,36 +19,36 @@ const glm::vec3 IDENTITY_FRONT = glm::vec3( 0.0f, 0.0f, 1.0f);
class Orientation class Orientation
{ {
public: public:
Orientation(); Orientation();
void set(Orientation); void set(Orientation);
void setToPitchYawRoll(float pitch_change, float yaw_change, float roll_change); void setToPitchYawRoll(float pitch_change, float yaw_change, float roll_change);
void setToIdentity(); void setToIdentity();
void pitch(float pitch_change); void pitch(float pitch_change);
void yaw (float yaw_change); void yaw (float yaw_change);
void roll (float roll_change); void roll (float roll_change);
void rotate(float pitch, float yaw, float roll); void rotate(float pitch, float yaw, float roll);
void rotate(glm::vec3 EulerAngles); void rotate(glm::vec3 EulerAngles);
void rotate(glm::quat quaternion); void rotate(glm::quat quaternion);
const glm::quat & getQuat() const {return quat;} const glm::quat& getQuat() const {return quat;}
const glm::vec3 & getRight() const {return right;} const glm::vec3& getRight() const {return right;}
const glm::vec3 & getUp () const {return up; } const glm::vec3& getUp () const {return up; }
const glm::vec3 & getFront() const {return front;} const glm::vec3& getFront() const {return front;}
const glm::vec3 & getIdentityRight() const {return IDENTITY_RIGHT;} const glm::vec3& getIdentityRight() const {return IDENTITY_RIGHT;}
const glm::vec3 & getIdentityUp () const {return IDENTITY_UP;} const glm::vec3& getIdentityUp () const {return IDENTITY_UP;}
const glm::vec3 & getIdentityFront() const {return IDENTITY_FRONT;} const glm::vec3& getIdentityFront() const {return IDENTITY_FRONT;}
private: private:
glm::quat quat; glm::quat quat;
glm::vec3 right; glm::vec3 right;
glm::vec3 up; glm::vec3 up;
glm::vec3 front; glm::vec3 front;
void rotateAndGenerateDirections(glm::quat rotation); void rotateAndGenerateDirections(glm::quat rotation);
}; };