aboutsummaryrefslogtreecommitdiff
path: root/apps/mathlib/math/Dcm.cpp
diff options
context:
space:
mode:
authorJames Goppert <james.goppert@gmail.com>2013-01-13 19:23:59 -0500
committerJames Goppert <james.goppert@gmail.com>2013-01-13 19:23:59 -0500
commit0ccdbd78f69444c3084b927f3e6fd2fe80549d28 (patch)
tree051f59bb1d271447737893e7b188dd54220db956 /apps/mathlib/math/Dcm.cpp
parente02791ee8e56cbe913751cbb279cb66ab5919202 (diff)
downloadpx4-firmware-0ccdbd78f69444c3084b927f3e6fd2fe80549d28.tar.gz
px4-firmware-0ccdbd78f69444c3084b927f3e6fd2fe80549d28.tar.bz2
px4-firmware-0ccdbd78f69444c3084b927f3e6fd2fe80549d28.zip
More formatting.
Diffstat (limited to 'apps/mathlib/math/Dcm.cpp')
-rw-r--r--apps/mathlib/math/Dcm.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/apps/mathlib/math/Dcm.cpp b/apps/mathlib/math/Dcm.cpp
index 25f4913a6..df0f09b20 100644
--- a/apps/mathlib/math/Dcm.cpp
+++ b/apps/mathlib/math/Dcm.cpp
@@ -53,20 +53,20 @@ Dcm::Dcm() :
}
Dcm::Dcm(float c00, float c01, float c02,
- float c10, float c11, float c12,
- float c20, float c21, float c22) :
+ float c10, float c11, float c12,
+ float c20, float c21, float c22) :
Matrix(3, 3)
{
Dcm &dcm = *this;
- dcm(0,0) = c00;
- dcm(0,1) = c01;
- dcm(0,2) = c02;
- dcm(1,0) = c10;
- dcm(1,1) = c11;
- dcm(1,2) = c12;
- dcm(2,0) = c20;
- dcm(2,1) = c21;
- dcm(2,2) = c22;
+ dcm(0, 0) = c00;
+ dcm(0, 1) = c01;
+ dcm(0, 2) = c02;
+ dcm(1, 0) = c10;
+ dcm(1, 1) = c11;
+ dcm(1, 2) = c12;
+ dcm(2, 0) = c20;
+ dcm(2, 1) = c21;
+ dcm(2, 2) = c22;
}
Dcm::Dcm(const float *data) :
@@ -138,16 +138,16 @@ int __EXPORT dcmTest()
Matrix::identity(3)));
// quaternion ctor
ASSERT(matrixEqual(
- Dcm(Quaternion(0.983347f, 0.034271f, 0.106021f, 0.143572f)),
- Dcm( 0.9362934f, -0.2750958f, 0.2183507f,
- 0.2896295f, 0.9564251f, -0.0369570f,
- -0.1986693f, 0.0978434f, 0.9751703f)));
+ Dcm(Quaternion(0.983347f, 0.034271f, 0.106021f, 0.143572f)),
+ Dcm(0.9362934f, -0.2750958f, 0.2183507f,
+ 0.2896295f, 0.9564251f, -0.0369570f,
+ -0.1986693f, 0.0978434f, 0.9751703f)));
// euler angle ctor
ASSERT(matrixEqual(
- Dcm(EulerAngles(0.1f, 0.2f, 0.3f)),
- Dcm( 0.9362934f, -0.2750958f, 0.2183507f,
- 0.2896295f, 0.9564251f, -0.0369570f,
- -0.1986693f, 0.0978434f, 0.9751703f)));
+ Dcm(EulerAngles(0.1f, 0.2f, 0.3f)),
+ Dcm(0.9362934f, -0.2750958f, 0.2183507f,
+ 0.2896295f, 0.9564251f, -0.0369570f,
+ -0.1986693f, 0.0978434f, 0.9751703f)));
// rotations
Vector3 vB(1, 2, 3);
ASSERT(vectorEqual(Vector3(-2.0f, 1.0f, 3.0f),