aboutsummaryrefslogtreecommitdiff
path: root/src/modules/mathlib/math/Vector3.cpp
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.cpp
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.cpp')
-rw-r--r--src/modules/mathlib/math/Vector3.cpp4
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);