Class Affine2D_F64

All Implemented Interfaces:
Affine<Affine2D_F64>, InvertibleTransform<Affine2D_F64>, Serializable

public class Affine2D_F64 extends Object implements Affine<Affine2D_F64>
2D affine transform for 64-bit floats.
See Also:
  • 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

      public Affine2D_F64 setTo(double a11, double a12, double a21, double a22, double tx, double ty)
    • getDimension

      public int getDimension()
      Description copied from interface: InvertibleTransform
      Returns the dimension of the space which this transform operates on.
      Specified by:
      getDimension in interface InvertibleTransform<Affine2D_F64>
      space's dimension
    • createInstance

      public Affine2D_F64 createInstance()
      Description copied from interface: InvertibleTransform
      Creates a new instance of the same SpecialEuclidean as this class.
      Specified by:
      createInstance in interface InvertibleTransform<Affine2D_F64>
      A new instance.
    • setTo

      public Affine2D_F64 setTo(Affine2D_F64 target)
      Description copied from interface: InvertibleTransform
      Assigns 'this' to the value of target.
      Specified by:
      setTo in interface InvertibleTransform<Affine2D_F64>
      target - The new value of 'this'.
      A reference to 'this' to enable chaining
    • concat

      public Affine2D_F64 concat(Affine2D_F64 second, @Nullable @Nullable Affine2D_F64 ret)
      Description copied from interface: InvertibleTransform

      Computes 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:
      concat in interface InvertibleTransform<Affine2D_F64>
      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.
      The equivalent transform.
    • invert

      public Affine2D_F64 invert(@Nullable @Nullable Affine2D_F64 inverse)
      Description copied from interface: InvertibleTransform

      Computes a transform which is the inverse of this transform. The 'this' matrix can be passed in as an input.

      Point A = tran(B);
      Point B = inv(A);

      where inv = invert( tran );

      Specified by:
      invert in interface InvertibleTransform<Affine2D_F64>
      inverse - Where the inverse will be stored. If null a new instance is created. Modified.
      The inverse transform.
    • reset

      public void reset()
      Description copied from interface: InvertibleTransform
      Sets the transform to its initial state of no transform.
      Specified by:
      reset in interface InvertibleTransform<Affine2D_F64>
    • copy

      public Affine2D_F64 copy()
    • toString

      public String toString()
      toString in class Object