diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2013-07-04 15:43:38 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-07-04 15:43:38 +0200 |
commit | f42b3ecd962a355081d36a62924e8ae9ecc05639 (patch) | |
tree | 57f94b62191af19d6df448763de694ea0fc599d8 /src/modules/mathlib/math/Vector3.hpp | |
parent | 3686431231af3dbbc3ca65417e9d1ca2dcd9d1de (diff) | |
download | px4-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.hpp | 7 |
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 |