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 TypeMethodDescriptionvoidApplies transform t after this e.g.cloneJ()Clone the transformationbooleanprotected voidfinalize()getMatJ()Returns 3x3 row-maj transform matrixinverseJ()Get the inverse of the transformationstatic TransformationmakeAffine(float scaleX, float scaleY, float tX, float tY, Rotation rot, boolean flipX, boolean flipY) Constructs affine transformationstatic TransformationConstructs from mat_tstatic TransformationConstructs identity transformstatic TransformationConstructs transformation from source to target rectangle Rotation and flips are around rectangles' centerstatic TransformationConstructs rotate transformationApply transform to pointtransformRect(PixelRect rect)
-
Method Details
-
_djinni_private_destroy
public void _djinni_private_destroy() -
finalize
-
chainRight
Description copied from interface:TransformationApplies transform t after this e.g. {rotate >> translate;} rotates first: (initial -> rotated) >> (rotated -> translated) = (initial -> translated)- Specified by:
chainRightin interfaceTransformation
-
transformPoint
Description copied from interface:TransformationApply transform to point- Specified by:
transformPointin interfaceTransformation
-
transformRect
- Specified by:
transformRectin interfaceTransformation
-
equals
- Specified by:
equalsin interfaceTransformation
-
inverseJ
Description copied from interface:TransformationGet the inverse of the transformation- Specified by:
inverseJin interfaceTransformation
-
cloneJ
Description copied from interface:TransformationClone the transformation- Specified by:
cloneJin interfaceTransformation
-
getMatJ
Description copied from interface:TransformationReturns 3x3 row-maj transform matrix- Specified by:
getMatJin interfaceTransformation
-
makeIdentity
Description copied from interface:TransformationConstructs identity transform -
makeData
Description copied from interface:TransformationConstructs from mat_t -
makeRot
Description copied from interface:TransformationConstructs 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:TransformationConstructs 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:TransformationConstructs transformation from source to target rectangle Rotation and flips are around rectangles' center
-