AP_Math: Using const references in matrix3

Signed-off-by: Daniel Frenzel <dgdanielf@gmail.com>
This commit is contained in:
Daniel Frenzel 2014-08-07 16:41:52 +02:00 committed by Andrew Tridgell
parent b559e9d331
commit b1a9d6bbcc

View File

@ -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:
}
// 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;
}