Package com.banuba.sdk.types
Interface Transformation
- All Known Implementing Classes:
Transformation.CppProxy
public interface Transformation
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionApplies transform t after this e.g.cloneJ()Clone the transformationbooleangetMatJ()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
-
chainRight
Applies transform t after this e.g. {rotate >> translate;} rotates first: (initial -> rotated) >> (rotated -> translated) = (initial -> translated) -
transformPoint
Apply transform to point -
transformRect
-
equals
-
inverseJ
Get the inverse of the transformation -
cloneJ
Clone the transformation -
getMatJ
Returns 3x3 row-maj transform matrix -
makeIdentity
Constructs identity transform -
makeData
Constructs from mat_t -
makeRot
Constructs rotate transformation -
makeAffine
@Nullable static Transformation makeAffine(float scaleX, float scaleY, float tX, float tY, @NonNull Rotation rot, boolean flipX, boolean flipY) Constructs affine transformation -
makeRects
@Nullable static Transformation makeRects(@NonNull PixelRect sourceRect, @NonNull PixelRect targetRect, @NonNull Rotation rot, boolean flipX, boolean flipY) Constructs transformation from source to target rectangle Rotation and flips are around rectangles' center
-