DirectedZoom

data class DirectedZoom(ratio: Double, offset: Double)

A Zoom on a specific direction (it could be x, y, radial).

See also

Constructors

DirectedZoom
Link copied to clipboard
common
fun DirectedZoom(ratio: Double = 1.0, offset: Double = .0)

Types

Companion
Link copied to clipboard
common
object Companion
Give access to DirectedZoom.IDENTITY, the default directed zoom.

Functions

scale
Link copied to clipboard
common
fun scale(ratio: Double): DirectedZoom
Compute a new DirectedZoom by applying a zoom ratio to the current one.

Properties

offset
Link copied to clipboard
common
val offset: Double = .0
The translation (in pixels) on this direction.
ratio
Link copied to clipboard
common
val ratio: Double = 1.0
The zoom factor on this direction.