DOMMatrix

open external class DOMMatrix : DOMMatrixReadOnly (source)

Platform and version requirements: JS

Exposes the JavaScript DOMMatrix to Kotlin

Constructors

<init>

DOMMatrix(transformList: String)
DOMMatrix(other: DOMMatrixReadOnly)
DOMMatrix(array32: Float32Array)
DOMMatrix(array64: Float64Array)
DOMMatrix(numberSequence: Array<Double>)
DOMMatrix()

Exposes the JavaScript DOMMatrix to Kotlin

Properties

a

open var a: Double

b

open var b: Double

c

open var c: Double

d

open var d: Double

e

open var e: Double

f

open var f: Double

m11

open var m11: Double

m12

open var m12: Double

m13

open var m13: Double

m14

open var m14: Double

m21

open var m21: Double

m22

open var m22: Double

m23

open var m23: Double

m24

open var m24: Double

m31

open var m31: Double

m32

open var m32: Double

m33

open var m33: Double

m34

open var m34: Double

m41

open var m41: Double

m42

open var m42: Double

m43

open var m43: Double

m44

open var m44: Double

Inherited Properties

is2D

open val is2D: Boolean

isIdentity

open val isIdentity: Boolean

Functions

invertSelf

fun invertSelf(): DOMMatrix

multiplySelf

fun multiplySelf(other: DOMMatrix): DOMMatrix

preMultiplySelf

fun preMultiplySelf(other: DOMMatrix): DOMMatrix

rotateAxisAngleSelf

fun rotateAxisAngleSelf(
    x: Double,
    y: Double,
    z: Double,
    angle: Double
): DOMMatrix

rotateFromVectorSelf

fun rotateFromVectorSelf(x: Double, y: Double): DOMMatrix

rotateSelf

fun rotateSelf(
    angle: Double,
    originX: Double = definedExternally,
    originY: Double = definedExternally
): DOMMatrix

scale3dSelf

fun scale3dSelf(
    scale: Double,
    originX: Double = definedExternally,
    originY: Double = definedExternally,
    originZ: Double = definedExternally
): DOMMatrix

scaleNonUniformSelf

fun scaleNonUniformSelf(
    scaleX: Double,
    scaleY: Double = definedExternally,
    scaleZ: Double = definedExternally,
    originX: Double = definedExternally,
    originY: Double = definedExternally,
    originZ: Double = definedExternally
): DOMMatrix

scaleSelf

fun scaleSelf(
    scale: Double,
    originX: Double = definedExternally,
    originY: Double = definedExternally
): DOMMatrix

setMatrixValue

fun setMatrixValue(transformList: String): DOMMatrix

skewXSelf

fun skewXSelf(sx: Double): DOMMatrix

skewYSelf

fun skewYSelf(sy: Double): DOMMatrix

translateSelf

fun translateSelf(
    tx: Double,
    ty: Double,
    tz: Double = definedExternally
): DOMMatrix

Inherited Functions

flipX

fun flipX(): DOMMatrix

flipY

fun flipY(): DOMMatrix

inverse

fun inverse(): DOMMatrix

multiply

fun multiply(other: DOMMatrix): DOMMatrix

rotate

fun rotate(
    angle: Double,
    originX: Double = definedExternally,
    originY: Double = definedExternally
): DOMMatrix

rotateAxisAngle

fun rotateAxisAngle(
    x: Double,
    y: Double,
    z: Double,
    angle: Double
): DOMMatrix

rotateFromVector

fun rotateFromVector(x: Double, y: Double): DOMMatrix

scale

fun scale(
    scale: Double,
    originX: Double = definedExternally,
    originY: Double = definedExternally
): DOMMatrix

scale3d

fun scale3d(
    scale: Double,
    originX: Double = definedExternally,
    originY: Double = definedExternally,
    originZ: Double = definedExternally
): DOMMatrix

scaleNonUniform

fun scaleNonUniform(
    scaleX: Double,
    scaleY: Double = definedExternally,
    scaleZ: Double = definedExternally,
    originX: Double = definedExternally,
    originY: Double = definedExternally,
    originZ: Double = definedExternally
): DOMMatrix

skewX

fun skewX(sx: Double): DOMMatrix

skewY

fun skewY(sy: Double): DOMMatrix

toFloat32Array

fun toFloat32Array(): Float32Array

toFloat64Array

fun toFloat64Array(): Float64Array

transformPoint

fun transformPoint(
    point: DOMPointInit = definedExternally
): DOMPoint

translate

fun translate(
    tx: Double,
    ty: Double,
    tz: Double = definedExternally
): DOMMatrix