public abstract class ATransform extends Object implements Cloneable
| Constructor and Description |
|---|
ATransform() |
| Modifier and Type | Method and Description |
|---|---|
double |
calculateComponent(int i,
AVector v)
Calculates a single component 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 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
|
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
|
AVector |
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)
source - dest - public abstract int inputDimensions()
public abstract int outputDimensions()
public ATransform clone()
public ATransform compose(ATransform trans)
public void composeWith(ATransform trans)
public boolean isLinear()
public AVector transform(AVector v)
v - public double calculateComponent(int i,
AVector v)
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 © 2012. All Rights Reserved.