public final class ConstantTransform extends AConstantTransform
| Constructor and Description |
|---|
ConstantTransform(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 v)
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
|
compose, getMatrixComponent, inputDimensions, inverse, isIdentitycompose, copyOfMatrix, copyOfTranslationVector, equals, equals, hashCode, isInvertible, isLinear, toAffineTransform, transformInPlace, transformNormalclone, composeWith, isSquare, takeComponents, takeComponents, takeComponents, transform, transformpublic ConstantTransform(int inputDimensions,
AVector value)
inputDimensions - value - public double calculateElement(int i,
AVector v)
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.