public abstract class ATransform extends Object implements Cloneable, ITransform
| Constructor and Description |
|---|
ATransform() |
| Modifier and Type | Method and Description |
|---|---|
double |
calculateElement(int i,
AVector inputVector)
Calculates a single element of the output.
|
ATransform |
clone()
Clones the transform, performing a deep copy where needed
|
ATransform |
compose(ATransform trans)
Composes this transformation with another transformation, returning
a new combined transformation
|
void |
composeWith(ATransform trans)
Composes this transformation with a given transformation,
mutating the transformation to represent the combined transform
|
abstract int |
inputDimensions()
Returns the number of dimensions required for input vectors
|
AAffineTransform |
inverse()
Return the inverse of this transformation if possible
|
boolean |
isIdentity()
Returns true if this transform is known to be the identity function, i.e.
|
boolean |
isInvertible()
Returns true if this transform is invertible
|
boolean |
isLinear()
Returns true if this transformation is guaranteed to be linear
|
boolean |
isSquare()
Returns true if the transform is square (same number of input and output dimensions)
|
abstract int |
outputDimensions()
Returns the number of dimensions required for output vectors
|
ATransform |
takeComponents(Index components)
Returns a wrapper transform that returns a subset of this transform's output components
|
ATransform |
takeComponents(int length)
Returns a wrapper transform that returns a subset of this transform's output components
|
ATransform |
takeComponents(int start,
int length)
Returns a wrapper transform that returns a subset of this transform's output components
|
Vector |
transform(AVector v)
Transforms a vector, returning a new transformed vector
|
abstract void |
transform(AVector source,
AVector dest)
Transforms the source vector, storing the result in the given destination vector
|
void |
transformInPlace(AVector v)
Transforms a vector destructively.
|
public abstract void transform(AVector source, AVector dest)
transform in interface ITransformsource - dest - public abstract int inputDimensions()
inputDimensions in interface ITransformpublic abstract int outputDimensions()
outputDimensions in interface ITransformpublic ATransform clone()
public ATransform compose(ATransform trans)
public void composeWith(ATransform trans)
public boolean isLinear()
public boolean isSquare()
public Vector transform(AVector v)
v - public double calculateElement(int i,
AVector inputVector)
public void transformInPlace(AVector v)
v - public boolean isIdentity()
public ATransform takeComponents(int length)
public ATransform takeComponents(int start, int length)
public ATransform takeComponents(Index components)
public AAffineTransform inverse()
public boolean isInvertible()
Copyright © 2013. All Rights Reserved.