mikera.transformz
Class AffineMN
- java.lang.Object
-
- mikera.transformz.ATransform
-
- mikera.transformz.AAffineTransform
-
- mikera.transformz.AffineMN
-
- All Implemented Interfaces:
- java.lang.Cloneable, ITransform
public final class AffineMN extends AAffineTransform
General purpose MxN affine transformation, composed of a matrix and translation.
-
-
Constructor Summary
Constructors Constructor and Description AffineMN(AAffineTransform at)AffineMN(AMatrix matrix, ATranslation translation)AffineMN(AMatrix m, AVector v)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidcomposeWith(AffineMN trans)voidcomposeWith(ATransform trans)Composes this transformation with a given transformation, mutating the transformation to represent the combined transformAMatrixgetMatrix()ATranslationgetTranslation()intinputDimensions()Returns the number of dimensions required for input vectorsintoutputDimensions()Returns the number of dimensions required for output vectorsvoidtransform(AVector source, AVector dest)Transforms the source vector, storing the result in the given destination vector-
Methods inherited from class mikera.transformz.AAffineTransform
calculateElement, compose, compose, copyOfMatrix, copyOfTranslationVector, equals, equals, getMatrixTransform, getTranslationVector, hashCode, inverse, isIdentity, isInvertible, isLinear, toAffineTransform, transformInPlace, transformNormal
-
Methods inherited from class mikera.transformz.ATransform
clone, isSquare, takeComponents, takeComponents, takeComponents, transform, transform
-
-
-
-
Constructor Detail
-
AffineMN
public AffineMN(AMatrix matrix, ATranslation translation)
-
AffineMN
public AffineMN(AAffineTransform at)
-
-
Method Detail
-
composeWith
public void composeWith(ATransform trans)
Description copied from class:ATransformComposes this transformation with a given transformation, mutating the transformation to represent the combined transform- Overrides:
composeWithin classATransform
-
composeWith
public void composeWith(AffineMN trans)
-
getMatrix
public AMatrix getMatrix()
- Specified by:
getMatrixin classAAffineTransform
-
getTranslation
public ATranslation getTranslation()
- Specified by:
getTranslationin classAAffineTransform
-
transform
public void transform(AVector source, AVector dest)
Description copied from interface:ITransformTransforms the source vector, storing the result in the given destination vector- Specified by:
transformin interfaceITransform- Overrides:
transformin classAAffineTransform
-
inputDimensions
public int inputDimensions()
Description copied from interface:ITransformReturns the number of dimensions required for input vectors- Specified by:
inputDimensionsin interfaceITransform- Specified by:
inputDimensionsin classATransform- Returns:
-
outputDimensions
public int outputDimensions()
Description copied from interface:ITransformReturns the number of dimensions required for output vectors- Specified by:
outputDimensionsin interfaceITransform- Specified by:
outputDimensionsin classATransform- Returns:
-
-
DMelt 3.0 © DataMelt by jWork.ORG