Package georegression.struct.affine
Class Affine2D_F64
java.lang.Object
georegression.struct.affine.Affine2D_F64
- All Implemented Interfaces:
Affine<Affine2D_F64>,InvertibleTransform<Affine2D_F64>,Serializable,MapFormattable
2D affine transform for 64-bit floats.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAffine2D_F64(double a11, double a12, double a21, double a22, double tx, double ty) -
Method Summary
Modifier and TypeMethodDescriptionconcat(Affine2D_F64 second, @Nullable Affine2D_F64 ret) Computes a transform which is the equivalent to applying 'this' then the 'second' transform.copy()Creates a new instance of the same SpecialEuclidean as this class.formatMap(MapPrintFormat format) intReturns the dimension of the space which this transform operates on.invert(@Nullable Affine2D_F64 inverse) Computes a transform which is the inverse of this transform.voidreset()Sets the transform to its initial state of no transform.setTo(double a11, double a12, double a21, double a22, double tx, double ty) setTo(Affine2D_F64 target) Assigns 'this' to the value of target.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface georegression.struct.InvertibleTransform
concatInvert, invertConcatMethods inherited from interface org.ejml.MapFormattable
formatMap
-
Field Details
-
a11
public double a11 -
a12
public double a12 -
a21
public double a21 -
a22
public double a22 -
tx
public double tx -
ty
public double ty
-
-
Constructor Details
-
Affine2D_F64
public Affine2D_F64(double a11, double a12, double a21, double a22, double tx, double ty) -
Affine2D_F64
public Affine2D_F64()
-
-
Method Details
-
setTo
-
getDimension
public int getDimension()Description copied from interface:InvertibleTransformReturns the dimension of the space which this transform operates on.- Specified by:
getDimensionin interfaceInvertibleTransform<Affine2D_F64>- Returns:
- space's dimension
-
createInstance
Description copied from interface:InvertibleTransformCreates a new instance of the same SpecialEuclidean as this class.- Specified by:
createInstancein interfaceInvertibleTransform<Affine2D_F64>- Returns:
- A new instance.
-
setTo
Description copied from interface:InvertibleTransformAssigns 'this' to the value of target.- Specified by:
setToin interfaceInvertibleTransform<Affine2D_F64>- Parameters:
target- The new value of 'this'.- Returns:
- A reference to 'this' to enable chaining
-
concat
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_F64>- 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
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_F64>- 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_F64>
-
copy
-
formatMap
- Specified by:
formatMapin interfaceMapFormattable
-
toString
-