Package com.banuba.sdk.types
Class Transformation.CppProxy
java.lang.Object
com.banuba.sdk.types.Transformation.CppProxy
- All Implemented Interfaces:
Transformation
- Enclosing interface:
- Transformation
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.banuba.sdk.types.Transformation
Transformation.CppProxy
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Applies transform t after this e.g.cloneJ()
Clone the transformationboolean
protected void
finalize()
getMatJ()
Returns 3x3 row-maj transform matrixinverseJ()
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
Constructs from mat_tstatic Transformation
Constructs identity transformstatic Transformation
Constructs transformation from source to target rectangle Rotation and flips are around rectangles' centerstatic Transformation
Constructs rotate transformationApply transform to pointtransformRect
(PixelRect rect)
-
Method Details
-
_djinni_private_destroy
public void _djinni_private_destroy() -
finalize
-
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
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
-