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 |
calculateComponent(int i,
AVector v)
Calculates a single component 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, transformInPlaceclone, composeWith, takeComponents, takeComponents, takeComponents, transformpublic ConstantTransform(int inputDimensions,
AVector value)
inputDimensions - value - public double calculateComponent(int i,
AVector v)
ATransformcalculateComponent in class AAffineTransformpublic int outputDimensions()
ATransformoutputDimensions in class ATransformpublic void transform(AVector source, AVector dest)
ATransformtransform in class AAffineTransformpublic ATranslation getTranslationComponent()
getTranslationComponent in class AAffineTransformpublic AVector getConstantValue()
getConstantValue in class AConstantTransformCopyright © 2012. All Rights Reserved.