equalsTopo method
Returns true
if other
is
topologically equal to this LineSegment (e.g. irrespective
of orientation).
@param other a LineSegment
with which to do the comparison.
@return true
if other
is a LineSegment
with the same values for the x and y ordinates.
Implementation
bool equalsTopo(LineSegment other) {
return p0.equals(other.p0) && p1.equals(other.p1) ||
p0.equals(other.p1) && p1.equals(other.p0);
}