public interface Box extends RealMaskRealInterval
RealMaskRealInterval which defines an n-d box, cuboid,
hyperrectangle, etc.| Modifier and Type | Method and Description |
|---|---|
RealLocalizable |
center()
Returns the center of the Box.
|
static boolean |
equals(Box box1,
Box box2)
Determines whether two boxes describe the same region.
|
boolean |
equals(Object obj)
Determines whether this box describes the same region as another one.
|
static int |
hashCode(Box box)
Computes a hash code for a box.
|
default Class<?> |
maskType()
Returns the type of the mask.
|
double |
sideLength(int d)
Returns side length of Box in dimension d.
|
and, isEmpty, minus, or, realMax, realMax, realMin, realMin, transform, xorboundaryType, isAll, knownConstantnumDimensionsmaxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint, realMax, realMindouble sideLength(int d)
RealLocalizable center()
default Class<?> maskType()
MaskPredicateequality and
hashing.maskType in interface MaskPredicate<RealLocalizable>boolean equals(Object obj)
equals in interface MaskPredicate<RealLocalizable>equals in class Objectobj - The box to compare with this one.MaskPredicate.equals(Object),
equals(Box, Box)static int hashCode(Box box)
box - The box for which to compute the hash code.static boolean equals(Box box1, Box box2)
Two boxes are equal iff they have the same dimensionality, boundary type, lengths and position.
box1 - The first box to compare.box2 - The second box to compare.Copyright © 2015–2022 ImgLib2. All rights reserved.