public class Floor<LocalizablePositionable extends Localizable & Positionable> extends AbstractPositionableTransform<LocalizablePositionable>
RealPositionable
that drives a Positionable
to its floor
discrete coordinates. For practical useage, the floor operation is defined as
the integer smaller than the real value:
f = r < 0 ? (long)r - 1 : (long)r
discrete, position, target
n
Constructor and Description |
---|
Floor(LocalizablePositionable target) |
Floor(RealLocalizable origin,
LocalizablePositionable target) |
Modifier and Type | Method and Description |
---|---|
static long |
floor(double r) |
static void |
floor(double[] r,
long[] f) |
static long |
floor(float r) |
static void |
floor(float[] r,
long[] f) |
static void |
floor(RealLocalizable r,
long[] f) |
void |
move(double[] distance)
Move the element relative to its current location using a float[] as
distance vector.
|
void |
move(double distance,
int d)
Move the element in one dimension for some distance.
|
void |
move(float[] distance)
Move the element relative to its current location using a float[] as
distance vector.
|
void |
move(float distance,
int d)
Move the element in one dimension for some distance.
|
void |
move(RealLocalizable localizable)
Move the element relative to its current location using a
RealLocalizable as distance vector. |
void |
setPosition(double[] position)
Set the position of the element.
|
void |
setPosition(double position,
int dim)
Set the position of the element for one dimension.
|
void |
setPosition(float[] pos)
Set the position of the element.
|
void |
setPosition(float position,
int dim)
Set the position of the element for one dimension.
|
void |
setPosition(RealLocalizable localizable)
Place the element at the same location as a given
RealLocalizable |
bck, fwd, getDoublePosition, getFloatPosition, localize, localize, move, move, move, move, move, setPosition, setPosition, setPosition, setPosition, setPosition, toString
numDimensions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
numDimensions
localize, positionAsDoubleArray, positionAsRealPoint
public Floor(LocalizablePositionable target)
public Floor(RealLocalizable origin, LocalizablePositionable target)
public static final long floor(double r)
public static final long floor(float r)
public static final void floor(double[] r, long[] f)
public static final void floor(float[] r, long[] f)
public static final void floor(RealLocalizable r, long[] f)
public void move(float distance, int d)
RealPositionable
public void move(double distance, int d)
RealPositionable
public void move(RealLocalizable localizable)
RealPositionable
RealLocalizable
as distance vector.localizable
- relative offset, EuclideanSpace.numDimensions()
must
be ≥ EuclideanSpace.numDimensions()
public void move(float[] distance)
RealPositionable
public void move(double[] distance)
RealPositionable
public void setPosition(RealLocalizable localizable)
RealPositionable
RealLocalizable
localizable
- absolute position, EuclideanSpace.numDimensions()
must be ≥ EuclideanSpace.numDimensions()
public void setPosition(float[] pos)
RealPositionable
pos
- absolute position, length must be ≥
EuclideanSpace.numDimensions()
public void setPosition(double[] position)
RealPositionable
position
- absolute position, length must be ≥
EuclideanSpace.numDimensions()
public void setPosition(float position, int dim)
RealPositionable
public void setPosition(double position, int dim)
RealPositionable
Copyright © 2015–2022 ImgLib2. All rights reserved.