public final class ConstantTransform4 extends AConstantTransform implements ISpecialisedTransform
| Constructor and Description |
|---|
ConstantTransform4(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
|
void |
transform(AVector source,
AVector dest)
Transforms the source vector, storing the result in the given destination vector
|
void |
transform(AVector source,
Vector4 dest) |
compose, getMatrixComponent, inputDimensions, inverse, isIdentitycompose, copyOfMatrix, copyOfTranslationVector, equals, equals, hashCode, isInvertible, isLinear, toAffineTransform, transformInPlace, transformNormalclone, composeWith, isSquare, takeComponents, takeComponents, takeComponents, transform, transformpublic ConstantTransform4(int inputDimensions,
AVector value)
inputDimensions - value - public double calculateElement(int i,
AVector inputVector)
ATransformcalculateElement in class AAffineTransformpublic int outputDimensions()
ATransformoutputDimensions in interface ITransformoutputDimensions in class ATransformpublic void transform(AVector source, AVector dest)
ATransformtransform in interface ITransformtransform in class AAffineTransformpublic ATranslation getTranslationComponent()
getTranslationComponent in class AAffineTransformpublic AVector getConstantValue()
getConstantValue in class AConstantTransformCopyright © 2013. All Rights Reserved.