Skip to content

Commit

Permalink
centroid_t: operator!=
Browse files Browse the repository at this point in the history
  • Loading branch information
giuliomoro committed Sep 2, 2024
1 parent 7ef8293 commit 7c14b4a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions centroid.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ struct centroid_t {
float location;
float size;
bool operator== (const centroid_t& other) { return !memcmp(this, &other, sizeof(other)); }
bool operator!= (const centroid_t& other) { return !(*this == other); }
};

0 comments on commit 7c14b4a

Please sign in to comment.