public boolean equals3D ( final Coordinate other ) { return getX ( ) == other . getX ( ) && getY ( ) == other . getY ( ) && ( getZ ( ) == other . getZ ( ) || Double . isNaN ( getZ ( ) ) && Double . isNaN ( other . getZ ( ) ) ) ; }
Tests if another coordinate has the same values for the X Y and Z ordinates .