public abstract class AbstractRealLocalizable extends AbstractEuclideanSpace implements RealLocalizable
RealLocalizable
interface using
an array of doubles to maintain positionModifier and Type | Field and Description |
---|---|
protected double[] |
position
The
RealLocalizable interface is implemented using the position
stored here. |
n
Modifier | Constructor and Description |
---|---|
protected |
AbstractRealLocalizable(double[] position)
Protected constructor that re-uses the passed position array.
|
protected |
AbstractRealLocalizable(int n) |
Modifier and Type | Method and Description |
---|---|
double |
getDoublePosition(int d)
Return the current position in a given dimension.
|
float |
getFloatPosition(int d)
Return the current position in a given dimension.
|
void |
localize(double[] pos)
Write the current position into the passed array.
|
void |
localize(float[] pos)
Write the current position into the passed array.
|
numDimensions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
localize, positionAsDoubleArray, positionAsRealPoint
numDimensions
protected final double[] position
RealLocalizable
interface is implemented using the position
stored here. RealPositionable
subclasses, such as
RealPoint
, modify this array.protected AbstractRealLocalizable(int n)
n
- number of dimensions.protected AbstractRealLocalizable(double[] position)
position
- position array to use.public void localize(float[] pos)
RealLocalizable
localize
in interface RealLocalizable
pos
- receives current positionpublic void localize(double[] pos)
RealLocalizable
localize
in interface RealLocalizable
pos
- receives current positionpublic float getFloatPosition(int d)
RealLocalizable
getFloatPosition
in interface RealLocalizable
d
- dimensionpublic double getDoublePosition(int d)
RealLocalizable
getDoublePosition
in interface RealLocalizable
d
- dimensionCopyright © 2015–2022 ImgLib2. All rights reserved.