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

[MathLib] Vector3: Style things.

parent d262f227
No related branches found
No related tags found
No related merge requests found
...@@ -143,17 +143,17 @@ public: ...@@ -143,17 +143,17 @@ public:
{ return this->Dot(pV) / (Length() * pV.Length()); } { return this->Dot(pV) / (Length() * pV.Length()); }
/// Comparison if equal /// Comparison if equal
bool operator==( const TemplateVector3 & pV) const bool operator==(TemplateVector3 const& v) const
{ {
return std::fabs(this->_x[0] - pV[0]) < sqrt(std::numeric_limits<double>::min()) && return std::fabs(this->_x[0] - v[0]) < sqrt(std::numeric_limits<double>::min()) &&
std::fabs(this->_x[1] - pV[1]) < sqrt(std::numeric_limits<double>::min()) && std::fabs(this->_x[1] - v[1]) < sqrt(std::numeric_limits<double>::min()) &&
std::fabs(this->_x[2] - pV[2]) < sqrt(std::numeric_limits<double>::min()); std::fabs(this->_x[2] - v[2]) < sqrt(std::numeric_limits<double>::min());
} }
/// Comparison if not equal /// Comparison if not equal
bool operator!=( const TemplateVector3 & pV) const bool operator!=(const TemplateVector3 & v) const
{ {
return !(pV == this); return !(v == this);
} }
private: private:
......
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