diff --git a/libraries/AP_Math/matrix3.h b/libraries/AP_Math/matrix3.h index da8fb985af..f6494b56b9 100644 --- a/libraries/AP_Math/matrix3.h +++ b/libraries/AP_Math/matrix3.h @@ -56,7 +56,7 @@ public: } // setting ctor - Matrix3(const Vector3 a0, const Vector3 b0, const Vector3 c0) : a(a0), b(b0), c(c0) { + Matrix3(const Vector3 &a0, const Vector3 &b0, const Vector3 &c0) : a(a0), b(b0), c(c0) { } // setting ctor @@ -64,7 +64,7 @@ public: } // function call operator - void operator () (const Vector3 a0, const Vector3 b0, const Vector3 c0) + void operator () (const Vector3 &a0, const Vector3 &b0, const Vector3 &c0) { a = a0; b = b0; c = c0; }