diff options
author | jgoppert <james.goppert@gmail.com> | 2013-01-06 15:33:55 -0500 |
---|---|---|
committer | jgoppert <james.goppert@gmail.com> | 2013-01-06 15:33:55 -0500 |
commit | d9491b20cc5fc8b683eb0f60a50da6b322b55e57 (patch) | |
tree | 48d44accf2ccff88766bca351c78be06bb9fa4a0 /apps/systemlib/math/EulerAngles.hpp | |
parent | 4f3b17f53b120cd54112097f4217a90863013c1f (diff) | |
download | px4-firmware-d9491b20cc5fc8b683eb0f60a50da6b322b55e57.tar.gz px4-firmware-d9491b20cc5fc8b683eb0f60a50da6b322b55e57.tar.bz2 px4-firmware-d9491b20cc5fc8b683eb0f60a50da6b322b55e57.zip |
Reformat of math library with astyle.
Diffstat (limited to 'apps/systemlib/math/EulerAngles.hpp')
-rw-r--r-- | apps/systemlib/math/EulerAngles.hpp | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/apps/systemlib/math/EulerAngles.hpp b/apps/systemlib/math/EulerAngles.hpp index 59e5500ad..399eecfa7 100644 --- a/apps/systemlib/math/EulerAngles.hpp +++ b/apps/systemlib/math/EulerAngles.hpp @@ -41,7 +41,8 @@ #include "Vector.hpp" -namespace math { +namespace math +{ class Quaternion; class Dcm; @@ -49,21 +50,21 @@ class Dcm; class __EXPORT EulerAngles : public Vector { public: - EulerAngles(); - EulerAngles(float phi, float theta, float psi); - EulerAngles(const Quaternion & q); - EulerAngles(const Dcm & dcm); - virtual ~EulerAngles(); + EulerAngles(); + EulerAngles(float phi, float theta, float psi); + EulerAngles(const Quaternion &q); + EulerAngles(const Dcm &dcm); + virtual ~EulerAngles(); - // alias - void setPhi(float phi) { (*this)(0) = phi; } - void setTheta(float theta) { (*this)(1) = theta; } - void setPsi(float psi) { (*this)(2) = psi; } + // alias + void setPhi(float phi) { (*this)(0) = phi; } + void setTheta(float theta) { (*this)(1) = theta; } + void setPsi(float psi) { (*this)(2) = psi; } - // const accessors - const float & getPhi() const { return (*this)(0); } - const float & getTheta() const { return (*this)(1); } - const float & getPsi() const { return (*this)(2); } + // const accessors + const float &getPhi() const { return (*this)(0); } + const float &getTheta() const { return (*this)(1); } + const float &getPsi() const { return (*this)(2); } }; |