Class Transformation.CppProxy

java.lang.Object
com.banuba.sdk.types.Transformation.CppProxy
All Implemented Interfaces:
Transformation
Enclosing interface:
Transformation

public static final class Transformation.CppProxy
extends java.lang.Object
implements Transformation
  • Method Details

    • _djinni_private_destroy

      public void _djinni_private_destroy()
    • finalize

      protected void finalize() throws java.lang.Throwable
      Overrides:
      finalize in class java.lang.Object
      Throws:
      java.lang.Throwable
    • chainRight

      public Transformation chainRight​(Transformation t)
      Description copied from interface: Transformation
      Applies transform t after this e.g. {rotate >> translate;} rotates first: (initial -> rotated) >> (rotated -> translated) = (initial -> translated)
      Specified by:
      chainRight in interface Transformation
    • transformPoint

      public Point2d transformPoint​(Point2d p)
      Description copied from interface: Transformation
      Apply transform to point
      Specified by:
      transformPoint in interface Transformation
    • transformRect

      public PixelRect transformRect​(PixelRect rect)
      Specified by:
      transformRect in interface Transformation
    • equals

      public boolean equals​(Transformation t)
      Specified by:
      equals in interface Transformation
    • inverseJ

      public Transformation inverseJ()
      Description copied from interface: Transformation
      Get the inverse of the transformation
      Specified by:
      inverseJ in interface Transformation
    • cloneJ

      public Transformation cloneJ()
      Description copied from interface: Transformation
      Clone the transformation
      Specified by:
      cloneJ in interface Transformation
    • getMatJ

      public java.util.ArrayList<java.lang.Float> getMatJ()
      Description copied from interface: Transformation
      Returns 3x3 row-maj transform matrix
      Specified by:
      getMatJ in interface Transformation
    • makeIdentity

      @Nullable public static Transformation makeIdentity()
      Description copied from interface: Transformation
      Constructs identity transform
    • makeData

      @Nullable public static Transformation makeData​(@NonNull java.util.ArrayList<java.lang.Float> mat)
      Description copied from interface: Transformation
      Constructs from mat_t
    • makeRot

      @Nullable public static Transformation makeRot​(@NonNull Rotation rot)
      Description copied from interface: Transformation
      Constructs rotate transformation
    • makeAffine

      @Nullable public static Transformation makeAffine​(float scaleX, float scaleY, float tX, float tY, @NonNull Rotation rot, boolean flipX, boolean flipY)
      Description copied from interface: Transformation
      Constructs affine transformation
    • makeRects

      @Nullable public static Transformation makeRects​(@NonNull PixelRect sourceRect, @NonNull PixelRect targetRect, @NonNull Rotation rot, boolean flipX, boolean flipY)
      Description copied from interface: Transformation
      Constructs transformation from source to target rectangle Rotation and flips are around rectangles' center