public class Round<LocalizablePositionable extends Localizable & Positionable> extends AbstractPositionableTransform<LocalizablePositionable>
RealPositionable
that drives a Positionable
to its round
discrete coordinates:
f = r < 0 ? (long)( r - 0.5 ) : (long)( r + 0.5 )
discrete, position, target
n
Constructor and Description |
---|
Round(LocalizablePositionable target) |
Round(RealLocalizable origin,
LocalizablePositionable target) |
Modifier and Type | Method and Description |
---|---|
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. |
static long |
round(double r) |
static void |
round(double[] r,
long[] f) |
static long |
round(float r) |
static void |
round(float[] r,
long[] f) |
static void |
round(RealLocalizable r,
long[] f) |
void |
setPosition(double[] pos)
Set the position of the element.
|
void |
setPosition(double position,
int d)
Set the position of the element for one dimension.
|
void |
setPosition(float[] pos)
Set the position of the element.
|
void |
setPosition(float position,
int d)
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
public Round(LocalizablePositionable target)
public Round(RealLocalizable origin, LocalizablePositionable target)
public static final long round(double r)
public static final long round(float r)
public static final void round(double[] r, long[] f)
public static final void round(float[] r, long[] f)
public static final void round(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.public void move(float[] distance)
RealPositionable
public void move(double[] distance)
RealPositionable
public void setPosition(RealLocalizable localizable)
RealPositionable
RealLocalizable
public void setPosition(float[] pos)
RealPositionable
public void setPosition(double[] pos)
RealPositionable
public void setPosition(float position, int d)
RealPositionable
public void setPosition(double position, int d)
RealPositionable
Copyright © 2009–2017 ImgLib2. All rights reserved.