Skip to content

Commit 9bbee82

Browse files
Added != operator for Color struct
1 parent 5f11856 commit 9bbee82

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/Utils.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ bool operator==(const Color &lhs, const Color &rhs) {
55
return lhs.r == rhs.r && lhs.g == rhs.g && lhs.b == rhs.b && lhs.a == rhs.a;
66
}
77

8+
bool operator!=(const Color &lhs, const Color &rhs) { return !(lhs == rhs); }
9+
810
bool operator==(const Pixel &lhs, const Pixel &rhs) {
911
return lhs.x == rhs.x && lhs.y == rhs.y && lhs.color == rhs.color;
1012
}

0 commit comments

Comments
 (0)