From 52f3539145274db73972b65b4217c9dd29eafb32 Mon Sep 17 00:00:00 2001 From: Thomas Fischer <thomas.fischer@ufz.de> Date: Fri, 7 Mar 2014 07:46:07 +0100 Subject: [PATCH] [MathLib] Vector3: General operator== impl. can be used. --- MathLib/Vector3.h | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/MathLib/Vector3.h b/MathLib/Vector3.h index 2824dc3da26..13799f8d140 100644 --- a/MathLib/Vector3.h +++ b/MathLib/Vector3.h @@ -105,20 +105,6 @@ public: 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. */ -- GitLab