public boolean isIdentical ( T t , double tol ) { if ( t . getDimension ( ) != getDimension ( ) ) return false ; int N = getDimension ( ) ; for ( int i = 0 ; i < N ; i ++ ) { double diff = Math . abs ( getIdx ( i ) - t . getIdx ( i ) ) ; if ( diff > tol ) return false ; } return true ; }
Checks to see if the two GeoTuple have values which are nearly the same . False is always returned if the dimension is different .