public class AbstractRealInterval extends AbstractEuclideanSpace implements RealInterval
RealInterval interface.| Modifier and Type | Field and Description |
|---|---|
protected double[] |
max |
protected double[] |
min |
n| Constructor and Description |
|---|
AbstractRealInterval(double[] min,
double[] max)
Creates a new
AbstractRealInterval from min and max coordinates |
AbstractRealInterval(double[] min,
double[] max,
boolean copy)
Creates a new
AbstractRealInterval from min and max coordinates |
AbstractRealInterval(int n)
Creates an n-dimensional
AbstractInterval with min and
max = 0n. |
AbstractRealInterval(RealInterval interval)
Creates a new
AbstractRealInterval using an existing
RealInterval |
AbstractRealInterval(RealLocalizable min,
RealLocalizable max)
Creates a new
AbstractRealInterval from min and max coordinates |
| Modifier and Type | Method and Description |
|---|---|
void |
realMax(double[] realMax)
Write the maximum of each dimension into double[].
|
double |
realMax(int d)
Get the maximum in dimension d.
|
void |
realMax(RealPositionable realMax)
Sets a
RealPositionable to the maximum of this Interval |
void |
realMin(double[] realMin)
Write the minimum of each dimension into double[].
|
double |
realMin(int d)
Get the minimum in dimension d.
|
void |
realMin(RealPositionable realMin)
Sets a
RealPositionable to the minimum of this Interval |
String |
toString() |
numDimensionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitmaxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPointnumDimensionspublic AbstractRealInterval(int n)
AbstractInterval with min and
max = 0n.n - number of dimensionspublic AbstractRealInterval(RealInterval interval)
AbstractRealInterval using an existing
RealIntervalinterval - public AbstractRealInterval(double[] min,
double[] max,
boolean copy)
AbstractRealInterval from min and max coordinatesmin - max - copy - flag indicating whether min and max arrays should be duplicated.public AbstractRealInterval(double[] min,
double[] max)
AbstractRealInterval from min and max coordinatesmin - max - public AbstractRealInterval(RealLocalizable min, RealLocalizable max)
AbstractRealInterval from min and max coordinatesmin - max - public double realMin(int d)
RealIntervalrealMin in interface RealIntervald - dimensionpublic void realMin(double[] realMin)
RealIntervalrealMin in interface RealIntervalpublic void realMin(RealPositionable realMin)
RealIntervalRealPositionable to the minimum of this IntervalrealMin in interface RealIntervalpublic double realMax(int d)
RealIntervalrealMax in interface RealIntervald - dimensionpublic void realMax(double[] realMax)
RealIntervalrealMax in interface RealIntervalpublic void realMax(RealPositionable realMax)
RealIntervalRealPositionable to the maximum of this IntervalrealMax in interface RealIntervalCopyright © 2015–2022 ImgLib2. All rights reserved.