@Override default double realMax( final int d ) { return getDoublePosition( d ); }
@Override default double realMin( final int d ) { return getDoublePosition( d ); }
@Override public PointRoi convert(final PointMask mask) { return new PointRoi(mask.getDoublePosition(0), mask.getDoublePosition(1)); }
/** * Computes a hash code for a point. The hash code value is based on the * position. * * @param point * The point for which to compute the hash code. * @return Hash code of the point. */ static int hashCode( final PointMask point ) { int result = 301; for ( int i = 0; i < point.numDimensions(); i++ ) result += 43 * point.getDoublePosition( i ); return result; }