Skip to main content

DOMMatrix-1

DOMMatrix: {
(init?): DOMMatrix;
prototype: DOMMatrix;
fromFloat32Array: DOMMatrix;
fromFloat64Array: DOMMatrix;
fromMatrix: DOMMatrix;
};

Type Declaration

Parameters

ParameterType
init?string | number[]

Returns

DOMMatrix

prototype

prototype: DOMMatrix;

fromFloat32Array()

fromFloat32Array(array32): DOMMatrix;

The fromFloat32Array() static method of the DOMMatrix interface creates a new DOMMatrix object given an array of single-precision (32-bit) floating-point values.

MDN Reference

Parameters

ParameterType
array32Float32Array<ArrayBuffer>

Returns

DOMMatrix

fromFloat64Array()

fromFloat64Array(array64): DOMMatrix;

The fromFloat64Array() static method of the DOMMatrix interface creates a new DOMMatrix object given an array of double-precision (64-bit) floating-point values.

MDN Reference

Parameters

ParameterType
array64Float64Array<ArrayBuffer>

Returns

DOMMatrix

fromMatrix()

fromMatrix(other?): DOMMatrix;

The fromMatrix() static method of the DOMMatrix interface creates a new DOMMatrix object given an existing matrix or an object which provides the values for its properties.

MDN Reference

Parameters

ParameterType
other?DOMMatrixInit

Returns

DOMMatrix