AP_Math: Using const references in matrix3
Signed-off-by: Daniel Frenzel <dgdanielf@gmail.com>
This commit is contained in:
parent
b559e9d331
commit
b1a9d6bbcc
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user