Commit 950f90b9 authored by Joseph Mirabel's avatar Joseph Mirabel
Browse files

Add Triangle::operator ==

parent bfcd7283
......@@ -102,6 +102,13 @@ public:
static inline size_type size() { return 3; }
bool operator== (const Triangle& other) const
{
return vids[0] == other.vids[0]
&& vids[1] == other.vids[1]
&& vids[2] == other.vids[2];
}
private:
/// @brief indices for each vertex of triangle
index_type vids[3];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment