Package com.banuba.sdk.types
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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.banuba.sdk.types.Transformation
Transformation.CppProxy
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
_djinni_private_destroy()
Transformation
chainRight(Transformation t)
Applies transform t after this e.g.Transformation
cloneJ()
Clone the transformationboolean
equals(Transformation t)
protected void
finalize()
java.util.ArrayList<java.lang.Float>
getMatJ()
Returns 3x3 row-maj transform matrixTransformation
inverseJ()
Get the inverse of the transformationstatic Transformation
makeAffine(float scaleX, float scaleY, float tX, float tY, Rotation rot, boolean flipX, boolean flipY)
Constructs affine transformationstatic Transformation
makeData(java.util.ArrayList<java.lang.Float> mat)
Constructs from mat_tstatic Transformation
makeIdentity()
Constructs identity transformstatic Transformation
makeRects(PixelRect sourceRect, PixelRect targetRect, Rotation rot, boolean flipX, boolean flipY)
Constructs transformation from source to target rectangle Rotation and flips are around rectangles' centerstatic Transformation
makeRot(Rotation rot)
Constructs rotate transformationPoint2d
transformPoint(Point2d p)
Apply transform to pointPixelRect
transformRect(PixelRect rect)
-
-
-
Method Detail
-
_djinni_private_destroy
public void _djinni_private_destroy()
-
finalize
protected void finalize() throws java.lang.Throwable
- Overrides:
finalize
in classjava.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 interfaceTransformation
-
transformPoint
public Point2d transformPoint(Point2d p)
Description copied from interface:Transformation
Apply transform to point- Specified by:
transformPoint
in interfaceTransformation
-
transformRect
public PixelRect transformRect(PixelRect rect)
- Specified by:
transformRect
in interfaceTransformation
-
equals
public boolean equals(Transformation t)
- Specified by:
equals
in interfaceTransformation
-
inverseJ
public Transformation inverseJ()
Description copied from interface:Transformation
Get the inverse of the transformation- Specified by:
inverseJ
in interfaceTransformation
-
cloneJ
public Transformation cloneJ()
Description copied from interface:Transformation
Clone the transformation- Specified by:
cloneJ
in interfaceTransformation
-
getMatJ
public java.util.ArrayList<java.lang.Float> getMatJ()
Description copied from interface:Transformation
Returns 3x3 row-maj transform matrix- Specified by:
getMatJ
in interfaceTransformation
-
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
-
-