Skip to content

Commit

Permalink
Trying to identify why they say these lines are not tested
Browse files Browse the repository at this point in the history
  • Loading branch information
Godzil committed Feb 22, 2020
1 parent 9c35cfc commit 1d685de
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions source/include/tuple.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,13 @@ class Tuple
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,
Expand Down

0 comments on commit 1d685de

Please sign in to comment.