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

[MathLib] Vector3: General operator== impl. can be used.

parent 6da2532a
No related branches found
No related tags found
No related merge requests found
...@@ -105,20 +105,6 @@ public: ...@@ -105,20 +105,6 @@ public:
return *this; return *this;
} }
/// Comparison if equal
bool operator==(TemplateVector3 const& v) const
{
return std::fabs(this->_x[0] - v[0]) < sqrt(std::numeric_limits<double>::min()) &&
std::fabs(this->_x[1] - v[1]) < sqrt(std::numeric_limits<double>::min()) &&
std::fabs(this->_x[2] - v[2]) < sqrt(std::numeric_limits<double>::min());
}
/// Comparison if not equal
bool operator!=(const TemplateVector3 & v) const
{
return !(v == this);
}
/** /**
* After applying the normalize operator to the vector its length is 1.0. * After applying the normalize operator to the vector its length is 1.0.
*/ */
......
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