public class Translation3D extends AbstractTranslation implements Concatenable<TranslationGet>, PreConcatenable<TranslationGet>
Modifier and Type | Field and Description |
---|---|
protected static RealPoint[] |
constDs |
protected Translation3D |
inverse |
ds, t
Modifier | Constructor and Description |
---|---|
|
Translation3D() |
|
Translation3D(double... t) |
protected |
Translation3D(double[] t,
Translation3D inverse) |
|
Translation3D(double tx,
double ty,
double tz) |
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 . |
Translation3D |
concatenate(TranslationGet a)
Concatenate this object with a.
|
Translation3D |
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.
|
Translation3D |
inverse()
Get the inverse transform.
|
boolean |
isIdentity()
Check if the
RealTransform is identity. |
Translation3D |
preConcatenate(TranslationGet a)
Pre-concatenate this object with a.
|
void |
set(double... t)
Set the translation vector.
|
void |
set(double tx,
double ty,
double tz) |
void |
set(double t,
int d)
Set one value of the translation vector.
|
d, get, getScale, getScaleCopy, getTranslation, getTranslationCopy, numDimensions, numSourceDimensions, numTargetDimensions
protected static final RealPoint[] constDs
protected final Translation3D inverse
protected Translation3D(double[] t, Translation3D inverse)
public Translation3D()
public Translation3D(double tx, double ty, double tz)
public Translation3D(double... t)
public void set(double tx, double ty, double tz)
public void set(double... t)
set
in class AbstractTranslation
t
- t.length <= the number of dimensions of this
Translation3D
public void set(double t, int d)
AbstractTranslation
set
in class AbstractTranslation
t
- t.length <= the number of dimensions of this
AbstractTranslation
d
- the dimensionpublic void apply(double[] source, double[] target)
RealTransform
RealTransform
to a source vector to obtain a target
vector.apply
in interface RealTransform
apply
in class AbstractTranslation
source
- 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)
RealTransform
RealTransform
to a source vector to obtain a target
vector.apply
in interface RealTransform
apply
in class AbstractTranslation
source
- 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)
RealTransform
apply
in interface RealTransform
apply
in class AbstractTranslation
source
- 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)
InvertibleRealTransform
applyInverse
in interface InvertibleRealTransform
applyInverse
in class AbstractTranslation
source
- set this to the source coordinates.target
- target coordinates.public void applyInverse(float[] source, float[] target)
InvertibleRealTransform
applyInverse
in interface InvertibleRealTransform
applyInverse
in class AbstractTranslation
source
- set this to the source coordinates.target
- target coordinates.public void applyInverse(RealPositionable source, RealLocalizable target)
InvertibleRealTransform
RealLocalizable
to obtain
a source RealPositionable
.applyInverse
in interface InvertibleRealTransform
applyInverse
in class AbstractTranslation
source
- set this to the source coordinates.target
- target coordinates.public Translation3D copy()
RealTransform
RealTransform
.
Deep copying is required to make sure that stateful RealTransforms
can be duplicated for concurrent code.
copy
in interface AffineGet
copy
in interface InvertibleRealTransform
copy
in interface RealTransform
copy
in interface ScaleAndTranslationGet
copy
in interface TranslationGet
copy
in class AbstractTranslation
public double[] getRowPackedCopy()
AffineGet
getRowPackedCopy
in interface AffineGet
getRowPackedCopy
in class AbstractTranslation
public Translation3D inverse()
InvertibleRealTransform
inverse
in interface AffineGet
inverse
in interface InvertibleRealTransform
inverse
in interface ScaleAndTranslationGet
inverse
in interface TranslationGet
inverse
in class AbstractTranslation
public Translation3D preConcatenate(TranslationGet a)
PreConcatenable
preConcatenate
in interface PreConcatenable<TranslationGet>
public Class<TranslationGet> getPreConcatenableClass()
getPreConcatenableClass
in interface PreConcatenable<TranslationGet>
public Translation3D concatenate(TranslationGet a)
Concatenable
concatenate
in interface Concatenable<TranslationGet>
public Class<TranslationGet> getConcatenableClass()
getConcatenableClass
in interface Concatenable<TranslationGet>
public boolean isIdentity()
RealTransform
RealTransform
is identity.isIdentity
in interface RealTransform
Copyright © 2015–2022 ImgLib2. All rights reserved.