equals3D method
Tests if another coordinate has the same values for the X, Y and Z ordinates.
@param other a Coordinate
with which to do the 3D comparison.
@return true if other
is a Coordinate
with the same values for X, Y and Z.
Implementation
bool equals3D(Coordinate other) {
return (x == other.x) &&
(y == other.y) &&
((getZ() == other.getZ()) || (getZ().isNaN && other.getZ().isNaN));
}