DOMMatrixReadOnly extension type

The DOMMatrixReadOnly interface represents a read-only 4×4 matrix, suitable for 2D and 3D operations. The DOMMatrix interface — which is based upon DOMMatrixReadOnly—adds mutability, allowing you to alter the matrix after creating it.

This interface should be available inside web workers, though some implementations doesn't allow it yet.


API documentation sourced from MDN Web Docs.

on
Implemented types
Implementers
Available extensions

Constructors

DOMMatrixReadOnly([JSAny init])
factory

Properties

a double
no setter
b double
no setter
c double
no setter
d double
no setter
e double
no setter
f double
no setter
hashCode int
The hash code for this object.
no setterinherited
is2D bool
no setter
isIdentity bool
no setter
m11 double
no setter
m12 double
no setter
m13 double
no setter
m14 double
no setter
m21 double
no setter
m22 double
no setter
m23 double
no setter
m24 double
no setter
m31 double
no setter
m32 double
no setter
m33 double
no setter
m34 double
no setter
m41 double
no setter
m42 double
no setter
m43 double
no setter
m44 double
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

flipX() DOMMatrix
The flipX() method of the DOMMatrixReadOnly interface creates a new matrix being the result of the original matrix flipped about the x-axis.
flipY() DOMMatrix
inverse() DOMMatrix
multiply([DOMMatrixInit other]) DOMMatrix
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rotate([num rotX, num rotY, num rotZ]) DOMMatrix
rotateAxisAngle([num x, num y, num z, num angle]) DOMMatrix
rotateFromVector([num x, num y]) DOMMatrix
scale([num scaleX, num scaleY, num scaleZ, num originX, num originY, num originZ]) DOMMatrix
The scale() method of the DOMMatrixReadOnly interface creates a new matrix being the result of the original matrix with a scale transform applied.
scale3d([num scale, num originX, num originY, num originZ]) DOMMatrix
scaleNonUniform([num scaleX, num scaleY]) DOMMatrix
skewX([num sx]) DOMMatrix
skewY([num sy]) DOMMatrix
toFloat32Array() JSFloat32Array
toFloat64Array() JSFloat64Array
toJSON() JSObject
toString() String
A string representation of this object.
inherited
transformPoint([DOMPointInit point]) DOMPoint
translate([num tx, num ty, num tz]) DOMMatrix
The translate() method of the DOMMatrixReadOnly interface creates a new matrix being the result of the original matrix with a translation applied.

Operators

operator ==(Object other) bool
The equality operator.
inherited