georegression.struct.affine
Class Affine2D_F32
- java.lang.Object
-
- georegression.struct.affine.Affine2D_F32
-
- All Implemented Interfaces:
- Affine<Affine2D_F32>, InvertibleTransform<Affine2D_F32>, java.io.Serializable
public class Affine2D_F32 extends java.lang.Object implements Affine<Affine2D_F32>
2D affine transform for 64-bit floats.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description floata11floata12floata21floata22floattxfloatty
-
Constructor Summary
Constructors Constructor and Description Affine2D_F32()Affine2D_F32(float a11, float a12, float a21, float a22, float tx, float ty)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description Affine2D_F32concat(Affine2D_F32 second, Affine2D_F32 ret)Computes a transform which is the equivalent to applying 'this' then the 'second' transform.Affine2D_F32copy()Affine2D_F32createInstance()Creates a new instance of the same SpecialEuclidean as this class.intgetDimension()Returns the dimension of the space which this transform operates on.Affine2D_F32invert(Affine2D_F32 inverse)Computes a transform which is the inverse of this transform.voidreset()Sets the transform to its initial state of no transform.voidset(Affine2D_F32 target)Assigns 'this' to the value of target.voidset(float a11, float a12, float a21, float a22, float tx, float ty)java.lang.StringtoString()
-
-
-
Field Detail
-
a11
public float a11
-
a12
public float a12
-
a21
public float a21
-
a22
public float a22
-
tx
public float tx
-
ty
public float ty
-
-
Constructor Detail
-
Affine2D_F32
public Affine2D_F32(float a11, float a12, float a21, float a22, float tx, float ty)
-
Affine2D_F32
public Affine2D_F32()
-
-
Method Detail
-
set
public void set(float a11, float a12, float a21, float a22, float tx, float ty)
-
getDimension
public int getDimension()
Description copied from interface:InvertibleTransformReturns the dimension of the space which this transform operates on.- Specified by:
getDimensionin interfaceInvertibleTransform<Affine2D_F32>- Returns:
- space's dimension
-
createInstance
public Affine2D_F32 createInstance()
Description copied from interface:InvertibleTransformCreates a new instance of the same SpecialEuclidean as this class.- Specified by:
createInstancein interfaceInvertibleTransform<Affine2D_F32>- Returns:
- A new instance.
-
set
public void set(Affine2D_F32 target)
Description copied from interface:InvertibleTransformAssigns 'this' to the value of target.- Specified by:
setin interfaceInvertibleTransform<Affine2D_F32>- Parameters:
target- The new value of 'this'.
-
concat
public Affine2D_F32 concat(Affine2D_F32 second, Affine2D_F32 ret)
Description copied from interface:InvertibleTransformComputes a transform which is the equivalent to applying 'this' then the 'second' transform.
For example:
Point A = tran2( tran1( A ) );
Point A = tran12( A );
where tran12 = tran1.concat( tran2 , null );NOTE: 'second', 'result', and 'this' must all be unique instances.
- Specified by:
concatin interfaceInvertibleTransform<Affine2D_F32>- Parameters:
second- The second transform which is applied. Not modified.ret- A transform which is equivalent to applying the first then the second. If null then a new instance is declared. Modified.- Returns:
- The equivalent transform.
-
invert
public Affine2D_F32 invert(Affine2D_F32 inverse)
Description copied from interface:InvertibleTransformComputes a transform which is the inverse of this transform. The 'this' matrix can be passed in as an input.
Example:
Point A = tran(B);
Point B = inv(A);
where inv = invert( tran );- Specified by:
invertin interfaceInvertibleTransform<Affine2D_F32>- Parameters:
inverse- Where the inverse will be stored. If null a new instance is created. Modified.- Returns:
- The inverse transform.
-
reset
public void reset()
Description copied from interface:InvertibleTransformSets the transform to its initial state of no transform.- Specified by:
resetin interfaceInvertibleTransform<Affine2D_F32>
-
copy
public Affine2D_F32 copy()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-
DataMelt 3.0 © DataMelt by jWork.ORG