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
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)
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
_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
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
Description copied from interface:Transformation
Apply transform to point- Specified by:
transformPoint
in interfaceTransformation
-
transformRect
- Specified by:
transformRect
in interfaceTransformation
-
equals
- Specified by:
equals
in interfaceTransformation
-
inverseJ
Description copied from interface:Transformation
Get the inverse of the transformation- Specified by:
inverseJ
in interfaceTransformation
-
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
Description copied from interface:Transformation
Constructs identity transform -
makeData
Description copied from interface:Transformation
Constructs from mat_t -
makeRot
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
-