public abstract class ATranslation extends AAffineTransform
| Constructor and Description |
|---|
ATranslation() |
| Modifier and Type | Method and Description |
|---|---|
double |
calculateElement(int i,
AVector v)
Calculates a single element of the output.
|
int |
dimensions()
Returns the number of dimensions of this translation
|
boolean |
equals(AAffineTransform a) |
boolean |
equals(ATranslation a) |
double |
getTranslationComponent(int i) |
abstract AVector |
getTranslationVector()
Gets the vector offset that this translation represents.
|
int |
hashCode() |
ATranslation |
inverse()
Return the inverse of this transformation if possible
|
boolean |
isIdentity()
Returns true if this transform is an identity transform
|
boolean |
isInvertible()
Returns true if this transform is invertible
|
boolean |
isSquare()
Returns true if the transform is square (same number of input and output dimensions)
|
AAffineTransform |
toAffineTransform() |
ATranslation |
toMutableTranslation() |
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.
|
void |
transformNormal(AVector source,
AVector dest) |
compose, compose, copyOfMatrix, copyOfTranslationVector, equals, getMatrixComponent, getTranslationComponent, isLinearclone, composeWith, inputDimensions, outputDimensions, takeComponents, takeComponents, takeComponents, transform, transformpublic abstract AVector getTranslationVector()
public int dimensions()
public double calculateElement(int i,
AVector v)
ATransformcalculateElement in class AAffineTransformpublic double getTranslationComponent(int i)
public void transform(AVector source, AVector dest)
ATransformtransform in interface ITransformtransform in class AAffineTransformpublic void transformNormal(AVector source, AVector dest)
transformNormal in class AAffineTransformpublic void transformInPlace(AVector v)
ATransformtransformInPlace in class AAffineTransformpublic AAffineTransform toAffineTransform()
toAffineTransform in class AAffineTransformpublic ATranslation toMutableTranslation()
public boolean isIdentity()
isIdentity in class AAffineTransformpublic boolean equals(ATranslation a)
public boolean equals(AAffineTransform a)
equals in class AAffineTransformpublic ATranslation inverse()
ATransforminverse in class AAffineTransformpublic boolean isSquare()
ATransformisSquare in class ATransformpublic boolean isInvertible()
ATransformisInvertible in class AAffineTransformpublic int hashCode()
hashCode in class AAffineTransformCopyright © 2013. All Rights Reserved.