interface CoordinateTransformer

Known direct subclasses
IdentityCoordinateTransformer

CoordinateTransformer where the transformMatrix is the identity matrix.

MutableCoordinateTransformer

CoordinateTransformer where the transformMatrix is mutable.


Coordinate transformer that's used to convert coordinates from one space to another.

transformMatrix must be set by whoever manipulates the coordinate space, otherwise an identity will be used for the coordinate transformations. When used in a Viewfinder, the viewfinder will set this transform matrix.

Summary

Public functions

open Offset

Returns the Offset in the transformed space.

Public properties

Matrix

Matrix that's used for coordinate transformations.

Public functions

open fun Offset.transform(): Offset

Returns the Offset in the transformed space.

Public properties

transformMatrix

Added in 1.4.0-alpha11
val transformMatrixMatrix

Matrix that's used for coordinate transformations.