Commit d31c3ba8 authored by Joseph Mirabel's avatar Joseph Mirabel Committed by GitHub
Browse files

Merge pull request #18 from fvalenza/devel

Provide operator== for DistanceResult
parents 78d3fc70 aaa4659e
......@@ -465,6 +465,16 @@ public:
b1 = NONE;
b2 = NONE;
}
/// @brief whether two DistanceResult are the same or not
inline bool operator ==(const DistanceResult& other) const
{
return min_distance == other.min_distance
&& o1 == other.o1
&& o2 == other.o2
&& nearest_points[0] == other.nearest_points[0]
&& nearest_points[1] == other.nearest_points[1];
}
};
}
......
Supports Markdown
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