From b9bacd3ac94a487557f443f2418a3ceac6cff2dc Mon Sep 17 00:00:00 2001 From: Godzil Date: Sat, 22 Feb 2020 18:51:03 +0000 Subject: [PATCH] Don't really understand why this code is marked as not being tested where it should. --- source/include/tuple.h | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/source/include/tuple.h b/source/include/tuple.h index 18b1e19..5b1f337 100644 --- a/source/include/tuple.h +++ b/source/include/tuple.h @@ -22,13 +22,10 @@ public: bool isPoint() { return (this->w == 1.0); }; bool isVector() { return (this->w == 0.0); }; - bool operator==(const Tuple &b) const - { - return double_equal(this->x, b.x) && - double_equal(this->y, b.y) && - double_equal(this->z, b.z) && - double_equal(this->w, b.w); - }; + bool operator==(const Tuple &b) const { return double_equal(this->x, b.x) && + double_equal(this->y, b.y) && + double_equal(this->z, b.z) && + double_equal(this->w, b.w); }; bool operator!=(const Tuple &b) const { return !(*this == b); }; Tuple operator+(const Tuple &b) const { return Tuple(this->x + b.x, this->y + b.y,