Commit 8033e2da authored by Martin Heistermann's avatar Martin Heistermann

QuadricT: implement Q+Q and Q*scalar operators for convenience.

parent f50a138e
Pipeline #4033 passed with stage
in 41 minutes and 40 seconds
......@@ -180,6 +180,12 @@ public:
return *this;
}
QuadricT<Scalar> operator+(const QuadricT<Scalar>& _other ) const
{
QuadricT<Scalar> result = *this;
return result += _other;
}
/// multiply by scalar
QuadricT<Scalar>& operator*=( Scalar _s)
......@@ -191,6 +197,11 @@ public:
return *this;
}
QuadricT<Scalar> operator*(Scalar _s) const
{
QuadricT<Scalar> result = *this;
return result *= _s;
}
/// multiply 4D vector from right: Q*v
template <class _Vec4>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment