Skip to content
Snippets Groups Projects
Commit 7fdb2963 authored by Tom Fischer's avatar Tom Fischer
Browse files

[MathLib] Vector3: operator+= takes Vector3 as arg instead of Point.

parent bbb9ea97
No related branches found
No related tags found
No related merge requests found
......@@ -85,9 +85,9 @@ public:
return TemplateVector3(this->_x[0]-v[0], this->_x[1]-v[1], this->_x[2]-v[2]);
}
TemplateVector3& operator+=(const MathLib::TemplatePoint<T>& pnt)
TemplateVector3& operator+=(TemplateVector3 const& v)
{
for (std::size_t i(0); i < 3; i++) this->_x[i] += pnt[i];
for (std::size_t i(0); i < 3; i++) this->_x[i] += v[i];
return *this;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment