Commit 00a95438 authored by Jan Möbius's avatar Jan Möbius

Merge branch 'QuadricT_operators' into 'master'

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

See merge request !113
parents f50a138e 8033e2da
Pipeline #4035 passed with stage
in 67 minutes and 50 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