public final class Translation3 extends ATranslation implements ISpecialisedTransform
| Constructor and Description |
|---|
Translation3(ATranslation t) |
Translation3(AVector v) |
Translation3(double dx,
double dy,
double dz) |
| Modifier and Type | Method and Description |
|---|---|
double |
calculateElement(int i,
AVector v)
Calculates a single element of the output.
|
void |
composeWith(ATransform t)
Composes this transformation with a given transformation,
mutating the transformation to represent the combined transform
|
void |
composeWith(Translation t) |
void |
composeWith(Translation3 t) |
Matrix33 |
copyOfMatrix()
Returns a deep copy of the transformation matrix for this affine transform
|
Vector3 |
copyOfTranslationVector()
Returns a deep copy of the translation vector for this affine transform
|
int |
dimensions()
Returns the number of dimensions of this translation
|
AMatrix |
getMatrixComponent() |
ATranslation |
getTranslationComponent() |
double |
getTranslationComponent(int i) |
Vector3 |
getTranslationVector()
Gets the vector offset that this translation represents.
|
int |
inputDimensions()
Returns the number of dimensions required for input vectors
|
Translation3 |
inverse()
Return the inverse of this transformation if possible
|
boolean |
isIdentity()
Returns true if this transform is an identity transform
|
int |
outputDimensions()
Returns the number of dimensions required for output vectors
|
void |
transform(AVector source,
AVector dest)
Transforms the source vector, storing the result in the given destination vector
|
void |
transform(Vector3 source,
Vector3 dest) |
void |
transformInPlace(AVector v)
Transforms a vector destructively.
|
void |
transformInPlace(Vector3 v) |
void |
transformNormal(Vector3 source,
Vector3 dest) |
equals, equals, hashCode, isInvertible, isSquare, toAffineTransform, toMutableTranslation, transformNormalcompose, compose, equals, isLinearclone, takeComponents, takeComponents, takeComponents, transform, transformpublic Translation3(AVector v)
public Translation3(ATranslation t)
public Translation3(double dx,
double dy,
double dz)
public double calculateElement(int i,
AVector v)
ATransformcalculateElement in class ATranslationpublic double getTranslationComponent(int i)
getTranslationComponent in class ATranslationpublic Vector3 getTranslationVector()
ATranslationgetTranslationVector in class ATranslationpublic AMatrix getMatrixComponent()
getMatrixComponent in class AAffineTransformpublic Vector3 copyOfTranslationVector()
AAffineTransformcopyOfTranslationVector in class AAffineTransformpublic Matrix33 copyOfMatrix()
AAffineTransformcopyOfMatrix in class AAffineTransformpublic ATranslation getTranslationComponent()
getTranslationComponent in class AAffineTransformpublic int dimensions()
ATranslationdimensions in class ATranslationpublic int inputDimensions()
ATransforminputDimensions in interface ITransforminputDimensions in class ATransformpublic int outputDimensions()
ATransformoutputDimensions in interface ITransformoutputDimensions in class ATransformpublic boolean isIdentity()
ATranslationisIdentity in class ATranslationpublic void transform(AVector source, AVector dest)
ATransformtransform in interface ITransformtransform in class ATranslationpublic void transformInPlace(AVector v)
ATransformtransformInPlace in class ATranslationpublic void transformInPlace(Vector3 v)
public void composeWith(ATransform t)
ATransformcomposeWith in class ATransformpublic void composeWith(Translation t)
public void composeWith(Translation3 t)
public Translation3 inverse()
ATransforminverse in class ATranslationCopyright © 2013. All Rights Reserved.