displayTransform
Returns an affine transform [Matrix] that maps normalized image coordinates into a coordinate space suitable for rendering the camera image in the given viewport and orientation.
Declaration
fun displayTransform( orientation: Orientation, viewportSize: Size, imageSize: Size ): Matrix
Summary
Returns
A [Matrix] that converts normalized image coordinates (origin top-left, range 0.0–1.0) into the coordinate space of the viewport.
Returns an affine transform [Matrix] that maps normalized image coordinates into a coordinate space suitable for rendering the camera image in the given viewport and orientation.