Browse Source

AP_Math: Using const references in matrix3

Signed-off-by: Daniel Frenzel <dgdanielf@gmail.com>
master
Daniel Frenzel 11 years ago committed by Andrew Tridgell
parent
commit
b1a9d6bbcc
  1. 4
      libraries/AP_Math/matrix3.h

4
libraries/AP_Math/matrix3.h

@ -56,7 +56,7 @@ public: @@ -56,7 +56,7 @@ public:
}
// setting ctor
Matrix3<T>(const Vector3<T> a0, const Vector3<T> b0, const Vector3<T> c0) : a(a0), b(b0), c(c0) {
Matrix3<T>(const Vector3<T> &a0, const Vector3<T> &b0, const Vector3<T> &c0) : a(a0), b(b0), c(c0) {
}
// setting ctor
@ -64,7 +64,7 @@ public: @@ -64,7 +64,7 @@ public:
}
// function call operator
void operator () (const Vector3<T> a0, const Vector3<T> b0, const Vector3<T> c0)
void operator () (const Vector3<T> &a0, const Vector3<T> &b0, const Vector3<T> &c0)
{
a = a0; b = b0; c = c0;
}

Loading…
Cancel
Save