aboutsummaryrefslogtreecommitdiff
path: root/src/modules/mathlib/math/Vector3.hpp
diff options
context:
space:
mode:
authorLorenz Meier <lm@inf.ethz.ch>2013-07-04 15:43:38 +0200
committerLorenz Meier <lm@inf.ethz.ch>2013-07-04 15:43:38 +0200
commitf42b3ecd962a355081d36a62924e8ae9ecc05639 (patch)
tree57f94b62191af19d6df448763de694ea0fc599d8 /src/modules/mathlib/math/Vector3.hpp
parent3686431231af3dbbc3ca65417e9d1ca2dcd9d1de (diff)
downloadpx4-firmware-f42b3ecd962a355081d36a62924e8ae9ecc05639.tar.gz
px4-firmware-f42b3ecd962a355081d36a62924e8ae9ecc05639.tar.bz2
px4-firmware-f42b3ecd962a355081d36a62924e8ae9ecc05639.zip
Substantial improvements to math lib
Diffstat (limited to 'src/modules/mathlib/math/Vector3.hpp')
-rw-r--r--src/modules/mathlib/math/Vector3.hpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/modules/mathlib/math/Vector3.hpp b/src/modules/mathlib/math/Vector3.hpp
index 8c36ac134..568d9669a 100644
--- a/src/modules/mathlib/math/Vector3.hpp
+++ b/src/modules/mathlib/math/Vector3.hpp
@@ -53,7 +53,7 @@ public:
Vector3(float x, float y, float z);
Vector3(const float *data);
virtual ~Vector3();
- Vector3 cross(const Vector3 &b);
+ Vector3 cross(const Vector3 &b) const;
/**
* accessors
@@ -65,6 +65,11 @@ public:
const float &getY() const { return (*this)(1); }
const float &getZ() const { return (*this)(2); }
};
+
+class __EXPORT Vector3f :
+ public Vector3
+{
+};
int __EXPORT vector3Test();
} // math