struct Transform
source · line 26public
public struct Transform(val a: Double = 1.0, val b: Double = 0.0, val c: Double = 0.0, val d: Double = 1.0, val tx: Double = 0.0, val ty: Double = 0.0)
Maps (x,y) to (ax+cy+tx,bx+dy+ty).
field b
source · line 28public
val b: Double = 0.0
function map
source · line 34public
public fun map(point: Point): Point
parameter point
source · line 34public
point: Point
field tx
source · line 31public
val tx: Double = 0.0
field a
source · line 27public
val a: Double = 1.0
field c
source · line 29public
val c: Double = 0.0
field d
source · line 30public
val d: Double = 1.0
function then
source · line 42public
public fun then(other: Transform): Transform
Applies this transform, followed by other.
parameter other
source · line 42public
other: Transform
field ty
source · line 32public
val ty: Double = 0.0
function inverse
source · line 57public
public fun inverse(): Transform?
constructor constructor
source · line 26public
constructor(val a: Double = 1.0, val b: Double = 0.0, val c: Double = 0.0, val d: Double = 1.0, val tx: Double = 0.0, val ty: Double = 0.0)
parameter tx
source · line 31public
val tx: Double = 0.0
parameter c
source · line 29public
val c: Double = 0.0
parameter d
source · line 30public
val d: Double = 1.0
parameter b
source · line 28public
val b: Double = 0.0
parameter ty
source · line 32public
val ty: Double = 0.0
parameter a
source · line 27public
val a: Double = 1.0
function equals
source · line 26publiccompiler-derived
operator fun equals(other: Transform): Boolean
This derived operation is available when each field or payload type supports same-type equality. Required types: Double.