Documentation/Matrix
module

Matrix

Matrix.js:1

Matrix helpers

class

Matrix3x2

Matrix.js:6

Matrix class to provide helper functions for transforming the image in 3 dimensions.
For more information, see: https://learn.microsoft.com/en-us/windows/win32/api/d2d1helper/nl-d2d1helper-matrix3x2f
May be used for SetTransform, ApplyTransform or Effects.AffineTransform

class

Matrix4x4

Matrix.js:158

Matrix class to provide helper functions for transforming the image in 3 dimensions.
For more information, see: https://learn.microsoft.com/en-us/windows/win32/api/d2d1_1helper/nl-d2d1_1helper-matrix4x4f
May be used for Effects.D3DTransform

methodstatic

Determinant

Matrix.js:98
Determinant(m)

Returns determinant for specified matrix.

Parameters

NameTypeDescription
mFloat32Array

Returns

float
methodstatic

Determinant

Matrix.js:428
Determinant(m)

Returns determinant for specified matrix.

Parameters

NameTypeDescription
mFloat32Array

Returns

float
methodstatic

Identity

Matrix.js:16
Identity()

Generates identity matrix.

Returns

Float32Array
methodstatic

Identity

Matrix.js:168
Identity()

Generates identity matrix.

Returns

Float32Array
methodstatic

Multiply

Matrix.js:108
Multiply(...matrices)

Returns product of two or more matrices.

Parameters

NameTypeDescription
matricesArray<Float32Array>

Returns

Float32Array
methodstatic

Multiply

Matrix.js:370
Multiply(...matrices)

Returns product of two or more matrices.

Parameters

NameTypeDescription
matricesArray<Float32Array>

Returns

Float32Array
methodstatic

PerspectiveProjection

Matrix.js:304
PerspectiveProjection(depth)

A perspective transformation with a depth value.

Parameters

NameTypeDescription
depthfloat

Returns

Float32Array
methodstatic

Rotation

Matrix.js:61
Rotation(angle, centerX, centerY)

Creates a rotation transformation that has the specified angle and center point.

Parameters

NameTypeDescription
anglefloat
centerXfloat
centerYfloat

Returns

Float32Array
methodstatic

RotationArbitraryAxis

Matrix.js:327
RotationArbitraryAxis(x, y, z, degree)

Rotates the projection plane about the axis you specify.

Parameters

NameTypeDescription
xfloat
yfloat
zfloat
degreefloat

Returns

Float32Array
methodstatic

RotationX

Matrix.js:216
RotationX(degreeX)

Generates a transform matrix that rotates the projection plane about the X axis.

Parameters

NameTypeDescription
degreeXfloat

Returns

Float32Array
methodstatic

RotationY

Matrix.js:234
RotationY(degreeY)

Generates a transform matrix that rotates the projection plane about the Y axis.

Parameters

NameTypeDescription
degreeYfloat

Returns

Float32Array
methodstatic

RotationZ

Matrix.js:252
RotationZ(degreeZ)

Generates a transform matrix that rotates the projection plane about the Z axis.

Parameters

NameTypeDescription
degreeZfloat

Returns

Float32Array
methodstatic

Scale

Matrix.js:44
Scale(sx, sy, centerX, centerY)

Creates a scale transformation that has the specified scale factors and center point.

Parameters

NameTypeDescription
sxfloat
syfloat
centerXfloat
centerYfloat

Returns

Float32Array
methodstatic

Scale

Matrix.js:199
Scale(sx, sy, sz)

Generates a transform matrix that scales the projection plane in the X, Y, and/or Z direction.

Parameters

NameTypeDescription
xfloat
yfloat
zfloat

Returns

Float32Array
methodstatic

Skew

Matrix.js:80
Skew(angleX, angleY, centerX, centerY)

Creates a skew transformation that has the specified x-axis and y-axis values and center point.

Parameters

NameTypeDescription
degreeXfloat

Returns

Float32Array
methodstatic

SkewX

Matrix.js:270
SkewX(degreeX)

Generates a transform matrix that skews the projection plane in the X direction.

Parameters

NameTypeDescription
degreeXfloat

Returns

Float32Array
methodstatic

SkewY

Matrix.js:287
SkewY(degreeY)

Generates a transform matrix that skews the projection plane in the Y direction.

Parameters

NameTypeDescription
degreeYfloat

Returns

Float32Array
methodstatic

TransformPoint

Matrix.js:144
TransformPoint(pointX, pointY, m)

Uses this matrix m to transform the specified point and returns the result.

Parameters

NameTypeDescription
matricesArray<Float32Array>

Returns

Object(x, y)
methodstatic

Translation

Matrix.js:29
Translation(dx, dy)

Creates a translation transformation that has the specified x and y displacements.

Parameters

NameTypeDescription
dxfloat
dyfloat

Returns

Float32Array
methodstatic

Translation

Matrix.js:182
Translation(x, y, z)

Generates a transform matrix that translates the projection plane in the X, Y, or Z direction.

Parameters

NameTypeDescription
xfloat
yfloat
zfloat

Returns

Float32Array