public class Translation2D extends AbstractTranslation implements Concatenable<TranslationGet>, PreConcatenable<TranslationGet>
| Modifier and Type | Field and Description |
|---|---|
protected static RealPoint[] |
constDs |
protected Translation2D |
inverse |
ds, t| Modifier | Constructor and Description |
|---|---|
|
Translation2D() |
|
Translation2D(double... t) |
protected |
Translation2D(double[] t,
Translation2D inverse) |
|
Translation2D(double tx,
double ty) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(double[] source,
double[] target)
Apply the
RealTransform to a source vector to obtain a target
vector. |
void |
apply(float[] source,
float[] target)
Apply the
RealTransform to a source vector to obtain a target
vector. |
void |
apply(RealLocalizable source,
RealPositionable target)
|
void |
applyInverse(double[] source,
double[] target)
Apply the inverse transform to a target vector to obtain a source vector.
|
void |
applyInverse(float[] source,
float[] target)
Apply the inverse transform to a target vector to obtain a source vector.
|
void |
applyInverse(RealPositionable source,
RealLocalizable target)
Apply the inverse transform to a target
RealLocalizable to obtain
a source RealPositionable. |
Translation2D |
concatenate(TranslationGet a)
Concatenate this object with a.
|
Translation2D |
copy()
Create a deep copy of this
RealTransform. |
Class<TranslationGet> |
getConcatenableClass() |
Class<TranslationGet> |
getPreConcatenableClass() |
double[] |
getRowPackedCopy()
Get a copy of the n×(n+1) affine transformation
matrix as a row packed array similar to Jama.
|
Translation2D |
inverse()
Get the inverse transform.
|
boolean |
isIdentity()
Check if the
RealTransform is identity. |
Translation2D |
preConcatenate(TranslationGet a)
Pre-concatenate this object with a.
|
void |
set(double... t)
Set the translation vector.
|
void |
set(double tx,
double ty) |
void |
set(double t,
int d)
Set one value of the translation vector.
|
d, get, getScale, getScaleCopy, getTranslation, getTranslationCopy, numDimensions, numSourceDimensions, numTargetDimensionsprotected static final RealPoint[] constDs
protected final Translation2D inverse
protected Translation2D(double[] t,
Translation2D inverse)
public Translation2D()
public Translation2D(double tx,
double ty)
public Translation2D(double... t)
public void set(double tx,
double ty)
public void set(double... t)
set in class AbstractTranslationt - t.length <= the number of dimensions of this
Translation2Dpublic void set(double t,
int d)
AbstractTranslationset in class AbstractTranslationt - t.length <= the number of dimensions of this
AbstractTranslationd - the dimensionpublic void apply(double[] source,
double[] target)
RealTransformRealTransform to a source vector to obtain a target
vector.apply in interface RealTransformapply in class AbstractTranslationsource - source coordinates, length must be >=
RealTransform.numSourceDimensions()target - set this to the target coordinates, length must be >=
RealTransform.numTargetDimensions()public void apply(float[] source,
float[] target)
RealTransformRealTransform to a source vector to obtain a target
vector.apply in interface RealTransformapply in class AbstractTranslationsource - source coordinates, length must be >=
RealTransform.numSourceDimensions()target - set this to the target coordinates, length must be >=
RealTransform.numTargetDimensions()public void apply(RealLocalizable source, RealPositionable target)
RealTransformapply in interface RealTransformapply in class AbstractTranslationsource - source coordinates, numDimensions() must be >=
RealTransform.numSourceDimensions()target - set this to the target coordinates,
numDimensions() must
be >= RealTransform.numTargetDimensions()public void applyInverse(double[] source,
double[] target)
InvertibleRealTransformapplyInverse in interface InvertibleRealTransformapplyInverse in class AbstractTranslationsource - set this to the source coordinates.target - target coordinates.public void applyInverse(float[] source,
float[] target)
InvertibleRealTransformapplyInverse in interface InvertibleRealTransformapplyInverse in class AbstractTranslationsource - set this to the source coordinates.target - target coordinates.public void applyInverse(RealPositionable source, RealLocalizable target)
InvertibleRealTransformRealLocalizable to obtain
a source RealPositionable.applyInverse in interface InvertibleRealTransformapplyInverse in class AbstractTranslationsource - set this to the source coordinates.target - target coordinates.public Translation2D copy()
RealTransformRealTransform.
Deep copying is required to make sure that stateful RealTransforms can be duplicated for concurrent code.
copy in interface AffineGetcopy in interface InvertibleRealTransformcopy in interface RealTransformcopy in interface ScaleAndTranslationGetcopy in interface TranslationGetcopy in class AbstractTranslationpublic double[] getRowPackedCopy()
AffineGetgetRowPackedCopy in interface AffineGetgetRowPackedCopy in class AbstractTranslationpublic Translation2D inverse()
InvertibleRealTransforminverse in interface AffineGetinverse in interface InvertibleRealTransforminverse in interface ScaleAndTranslationGetinverse in interface TranslationGetinverse in class AbstractTranslationpublic Translation2D preConcatenate(TranslationGet a)
PreConcatenablepreConcatenate in interface PreConcatenable<TranslationGet>public Class<TranslationGet> getPreConcatenableClass()
getPreConcatenableClass in interface PreConcatenable<TranslationGet>public Translation2D concatenate(TranslationGet a)
Concatenableconcatenate in interface Concatenable<TranslationGet>public Class<TranslationGet> getConcatenableClass()
getConcatenableClass in interface Concatenable<TranslationGet>public boolean isIdentity()
RealTransformRealTransform is identity.isIdentity in interface RealTransformCopyright © 2015–2022 ImgLib2. All rights reserved.