equals method
Returns true
if other
has the same values for
the x and y ordinates.
Since Coordinates are 2.5D, this routine ignores the z value when making the comparison.
@param other a Coordinate
with which to do the comparison.
@return true
if other
is a Coordinate
with the same values for the x and y ordinates.
Implementation
bool equals(Object other) {
if (!(other is Coordinate)) {
return false;
}
return equals2D(other);
}