public final class ConstantTransform3 extends AConstantTransform implements ISpecialisedTransform
| Constructor and Description |
|---|
ConstantTransform3(int inputDimensions,
AVector value)
Creates a new constant transform, using the provided vector as the constant value
Does *not* take a defensive copy
|
| Modifier and Type | Method and Description |
|---|---|
double |
calculateElement(int i,
AVector inputVector)
Calculates a single element of the output.
|
AVector |
getConstantValue() |
ATranslation |
getTranslationComponent() |
int |
outputDimensions()
Returns the number of dimensions required for output vectors
|
Vector3 |
transform(AVector source)
Transforms a vector, returning a new transformed vector
|
void |
transform(AVector source,
AVector dest)
Transforms the source vector, storing the result in the given destination vector
|
void |
transform(AVector source,
Vector3 dest) |
compose, getMatrixComponent, inputDimensions, inverse, isIdentitycompose, copyOfMatrix, copyOfTranslationVector, equals, equals, hashCode, isInvertible, isLinear, toAffineTransform, transformInPlace, transformNormalclone, composeWith, isSquare, takeComponents, takeComponents, takeComponentspublic ConstantTransform3(int inputDimensions,
AVector value)
inputDimensions - value - public double calculateElement(int i,
AVector inputVector)
ATransformcalculateElement in class AAffineTransformpublic int outputDimensions()
ATransformoutputDimensions in class ATransformpublic void transform(AVector source, AVector dest)
ATransformtransform in class AAffineTransformpublic Vector3 transform(AVector source)
ATransformtransform in class ATransformpublic ATranslation getTranslationComponent()
getTranslationComponent in class AAffineTransformpublic AVector getConstantValue()
getConstantValue in class AConstantTransformCopyright © 2013. All Rights Reserved.