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.cpp | |
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.cpp')
-rw-r--r-- | src/modules/mathlib/math/Vector3.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/mathlib/math/Vector3.cpp b/src/modules/mathlib/math/Vector3.cpp index 61fcc442f..dcb85600e 100644 --- a/src/modules/mathlib/math/Vector3.cpp +++ b/src/modules/mathlib/math/Vector3.cpp @@ -74,9 +74,9 @@ Vector3::~Vector3() { } -Vector3 Vector3::cross(const Vector3 &b) +Vector3 Vector3::cross(const Vector3 &b) const { - Vector3 &a = *this; + const Vector3 &a = *this; Vector3 result; result(0) = a(1) * b(2) - a(2) * b(1); result(1) = a(2) * b(0) - a(0) * b(2); |