Permalink
Browse files

Modify HyperRectangle contains to not include top and right

  • Loading branch information...
awalter17 committed Jan 13, 2017
1 parent ab9090e commit 2cdb60fb33b1395479ed229e1858af62dc7b3476
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/net/imglib2/roi/geometric/HyperRectangle.java
@@ -84,7 +84,7 @@ public boolean contains( final RealLocalizable l )
boolean isInside = true;
for ( int d = 0; d < n; d++ )
{
isInside = isInside && l.getDoublePosition( d ) >= ( -semiAxisLengths[ d ] + position[ d ] ) && l.getDoublePosition( d ) <= ( semiAxisLengths[ d ] + position[ d ] );
isInside = isInside && l.getDoublePosition( d ) >= ( -semiAxisLengths[ d ] + position[ d ] ) && l.getDoublePosition( d ) < ( semiAxisLengths[ d ] + position[ d ] );
if ( !isInside )
break;
}

0 comments on commit 2cdb60f

Please sign in to comment.