mikera.transformz
Class Affine34
- java.lang.Object
-
- mikera.transformz.ATransform
-
- mikera.transformz.AAffineTransform
-
- mikera.transformz.Affine34
-
- All Implemented Interfaces:
- java.lang.Cloneable, ITransform, ISpecialisedTransform
public final class Affine34 extends AAffineTransform implements ISpecialisedTransform
Specialised 3*4 affine transformation class Intended for composing 3d affine transformations.
-
-
Field Summary
Fields Modifier and Type Field and Description doublem00doublem01doublem02doublem10doublem11doublem12doublem20doublem21doublem22doubletr0doubletr1doubletr2
-
Constructor Summary
Constructors Constructor and Description Affine34()Affine34(AMatrix matrix, ATranslation trans)Affine34(AMatrix m, AVector v)Affine34(double m00, double m01, double m02, double tr0, double m10, double m11, double m12, double tr1, double m20, double m21, double m22, double tr2)Affine34(Matrix33 m, AVector v)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidcomposeWith(Affine34 a)voidcomposeWith(ATransform a)Composes this transformation with a given transformation, mutating the transformation to represent the combined transformvoidcomposeWith(Matrix33 a)voidcomposeWith(Translation3 a)Matrix33copyOfMatrix()Returns a deep copy of the transformation matrix for this affine transformVector3copyOfTranslationVector()Returns a deep copy of the translation vector for this affine transformbooleanequals(Affine34 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(Vector3 source, Vector3 dest)voidtransformInPlace(AVector dest)Transforms a vector destructively.voidtransformInPlace(Vector3 dest)voidtransformNormal(AVector source, AVector dest)voidtransformNormal(Vector3 source, Vector3 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
-
m02
public double m02
-
tr0
public double tr0
-
m10
public double m10
-
m11
public double m11
-
m12
public double m12
-
tr1
public double tr1
-
m20
public double m20
-
m21
public double m21
-
m22
public double m22
-
tr2
public double tr2
-
-
Constructor Detail
-
Affine34
public Affine34()
-
Affine34
public Affine34(double m00, double m01, double m02, double tr0, double m10, double m11, double m12, double tr1, double m20, double m21, double m22, double tr2)
-
Affine34
public Affine34(AMatrix matrix, ATranslation trans)
-
-
Method Detail
-
getMatrix
public AMatrix getMatrix()
- Specified by:
getMatrixin classAAffineTransform
-
getTranslation
public ATranslation getTranslation()
- Specified by:
getTranslationin classAAffineTransform
-
copyOfMatrix
public Matrix33 copyOfMatrix()
Description copied from class:AAffineTransformReturns a deep copy of the transformation matrix for this affine transform- Overrides:
copyOfMatrixin classAAffineTransform
-
copyOfTranslationVector
public Vector3 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(Vector3 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(Affine34 a)
-
composeWith
public void composeWith(Matrix33 a)
-
composeWith
public void composeWith(Translation3 a)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classAAffineTransform
-
equals
public boolean equals(Affine34 m)
-
-
DMelt 3.0 © DataMelt by jWork.ORG