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() |
numDimensions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
maxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint
numDimensions
public AbstractRealInterval(int n)
AbstractInterval
with min and
max = 0n.n
- number of dimensionspublic AbstractRealInterval(RealInterval interval)
AbstractRealInterval
using an existing
RealInterval
interval
- 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)
RealInterval
realMin
in interface RealInterval
d
- dimensionpublic void realMin(double[] realMin)
RealInterval
realMin
in interface RealInterval
public void realMin(RealPositionable realMin)
RealInterval
RealPositionable
to the minimum of this Interval
realMin
in interface RealInterval
public double realMax(int d)
RealInterval
realMax
in interface RealInterval
d
- dimensionpublic void realMax(double[] realMax)
RealInterval
realMax
in interface RealInterval
public void realMax(RealPositionable realMax)
RealInterval
RealPositionable
to the maximum of this Interval
realMax
in interface RealInterval
Copyright © 2015–2022 ImgLib2. All rights reserved.