public boolean equals2D ( final Coordinate c , final double tolerance ) { if ( ! equalsWithTolerance ( this . getX ( ) , c . getX ( ) , tolerance ) ) { return false ; } if ( ! equalsWithTolerance ( this . getY ( ) , c . getY ( ) , tolerance ) ) { return false ; } return true ; }
Tests if another coordinate has the same values for the X and Y ordinates . The Z ordinate is ignored .