mikera.transformz
Class Affine23
- java.lang.Object
-
- mikera.transformz.ATransform
-
- mikera.transformz.AAffineTransform
-
- mikera.transformz.Affine23
-
- All Implemented Interfaces:
- java.lang.Cloneable, ITransform, ISpecialisedTransform
public final class Affine23 extends AAffineTransform implements ISpecialisedTransform
Specialised 2x3 affine transformation class Intended for composing 2d affine transformations.
-
-
Field Summary
Fields Modifier and Type Field and Description doublem00doublem01doublem10doublem11doubletr0doubletr1
-
Constructor Summary
Constructors Constructor and Description Affine23()Affine23(AMatrix matrix, ATranslation trans)Affine23(AMatrix m, AVector v)Affine23(double m00, double m01, double tr0, double m10, double m11, double tr1)Affine23(Matrix22 m, AVector v)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidcomposeWith(Affine23 a)voidcomposeWith(ATransform a)Composes this transformation with a given transformation, mutating the transformation to represent the combined transformvoidcomposeWith(Matrix22 a)Matrix22copyOfMatrix()Returns a deep copy of the transformation matrix for this affine transformVector2copyOfTranslationVector()Returns a deep copy of the translation vector for this affine transformbooleanequals(Affine23 m)booleanequals(java.lang.Object o)AMatrixgetMatrix()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 vectorvoidtransform(Vector2 source, Vector2 dest)voidtransformInPlace(AVector dest)Transforms a vector destructively.voidtransformInPlace(Vector2 dest)voidtransformNormal(AVector source, AVector dest)voidtransformNormal(Vector2 source, Vector2 dest)-
Methods inherited from class mikera.transformz.AAffineTransform
calculateElement, compose, compose, equals, getMatrixTransform, getTranslationVector, hashCode, inverse, isIdentity, isInvertible, isLinear, toAffineTransform
-
Methods inherited from class mikera.transformz.ATransform
clone, isSquare, takeComponents, takeComponents, takeComponents, transform, transform
-
-
-
-
Field Detail
-
m00
public double m00
-
m01
public double m01
-
tr0
public double tr0
-
m10
public double m10
-
m11
public double m11
-
tr1
public double tr1
-
-
Constructor Detail
-
Affine23
public Affine23()
-
Affine23
public Affine23(double m00, double m01, double tr0, double m10, double m11, double tr1)
-
Affine23
public Affine23(AMatrix matrix, ATranslation trans)
-
-
Method Detail
-
getMatrix
public AMatrix getMatrix()
- Specified by:
getMatrixin classAAffineTransform
-
getTranslation
public ATranslation getTranslation()
- Specified by:
getTranslationin classAAffineTransform
-
copyOfMatrix
public Matrix22 copyOfMatrix()
Description copied from class:AAffineTransformReturns a deep copy of the transformation matrix for this affine transform- Overrides:
copyOfMatrixin classAAffineTransform
-
copyOfTranslationVector
public Vector2 copyOfTranslationVector()
Description copied from class:AAffineTransformReturns a deep copy of the translation vector for this affine transform- Overrides:
copyOfTranslationVectorin 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
-
transformNormal
public void transformNormal(AVector source, AVector dest)
- Overrides:
transformNormalin classAAffineTransform
-
transformInPlace
public void transformInPlace(AVector dest)
Description copied from class:ATransformTransforms a vector destructively. Intended for fast non-allocating transforms- Overrides:
transformInPlacein classAAffineTransform
-
transformInPlace
public void transformInPlace(Vector2 dest)
-
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:
-
composeWith
public void composeWith(ATransform a)
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(Affine23 a)
-
composeWith
public void composeWith(Matrix22 a)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classAAffineTransform
-
equals
public boolean equals(Affine23 m)
-
-
DMelt 3.0 © DataMelt by jWork.ORG