public abstract class AbstractWritableBox extends AbstractRealInterval implements WritableBox
WritableBox
.max, min
n
Constructor and Description |
---|
AbstractWritableBox(double[] min,
double[] max)
Creates an n-d rectangular
RealMask . |
Modifier and Type | Method and Description |
---|---|
RealLocalizableRealPositionable |
center()
Returns the center of the Box.
|
boolean |
equals(Object obj)
Determines whether this box describes the same region as another one.
|
int |
hashCode() |
void |
setSideLength(int d,
double length)
Updates the length of the side in dimension d.
|
double |
sideLength(int d)
Returns side length of Box in dimension d.
|
realMax, realMax, realMax, realMin, realMin, realMin, toString
numDimensions
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
and, isEmpty, minus, or, realMax, realMax, realMin, realMin, transform, xor
boundaryType, isAll, knownConstant
numDimensions
maxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint, realMax, realMin
public AbstractWritableBox(double[] min, double[] max)
RealMask
. The dimensionality is
dictated by the length of the min array.min
- An array containing the minimum position in each dimension. A
copy of this array is stored.max
- An array containing maximum position in each dimension. A copy
of this array is stored.public double sideLength(int d)
Box
sideLength
in interface Box
public RealLocalizableRealPositionable center()
Box
center
in interface Box
center
in interface WritableBox
public void setSideLength(int d, double length)
WritableBox
setSideLength
in interface WritableBox
public boolean equals(Object obj)
Box
equals
in interface Box
equals
in interface MaskPredicate<RealLocalizable>
equals
in class Object
obj
- The box to compare with this one.MaskPredicate.equals(Object)
,
Box.equals(Box, Box)
Copyright © 2015–2022 ImgLib2. All rights reserved.