Matrix
Matrix helpers
Matrix helpers
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
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
Determinant(m)
Returns determinant for specified matrix.
| Name | Type | Description |
|---|---|---|
m | Float32Array |
Determinant(m)
Returns determinant for specified matrix.
| Name | Type | Description |
|---|---|---|
m | Float32Array |
Identity()
Generates identity matrix.
Float32ArrayIdentity()
Generates identity matrix.
Float32ArrayMultiply(...matrices)
Returns product of two or more matrices.
| Name | Type | Description |
|---|---|---|
matrices | Array<Float32Array> |
Float32ArrayMultiply(...matrices)
Returns product of two or more matrices.
| Name | Type | Description |
|---|---|---|
matrices | Array<Float32Array> |
Float32ArrayPerspectiveProjection(depth)
A perspective transformation with a depth value.
| Name | Type | Description |
|---|---|---|
depth | float |
Float32ArrayRotation(angle, centerX, centerY)
Creates a rotation transformation that has the specified angle and center point.
Float32ArrayRotationArbitraryAxis(x, y, z, degree)
Rotates the projection plane about the axis you specify.
Float32ArrayRotationX(degreeX)
Generates a transform matrix that rotates the projection plane about the X axis.
| Name | Type | Description |
|---|---|---|
degreeX | float |
Float32ArrayRotationY(degreeY)
Generates a transform matrix that rotates the projection plane about the Y axis.
| Name | Type | Description |
|---|---|---|
degreeY | float |
Float32ArrayRotationZ(degreeZ)
Generates a transform matrix that rotates the projection plane about the Z axis.
| Name | Type | Description |
|---|---|---|
degreeZ | float |
Float32ArrayScale(sx, sy, centerX, centerY)
Creates a scale transformation that has the specified scale factors and center point.
Float32ArrayScale(sx, sy, sz)
Generates a transform matrix that scales the projection plane in the X, Y, and/or Z direction.
Float32ArraySkew(angleX, angleY, centerX, centerY)
Creates a skew transformation that has the specified x-axis and y-axis values and center point.
| Name | Type | Description |
|---|---|---|
degreeX | float |
Float32ArraySkewX(degreeX)
Generates a transform matrix that skews the projection plane in the X direction.
| Name | Type | Description |
|---|---|---|
degreeX | float |
Float32ArraySkewY(degreeY)
Generates a transform matrix that skews the projection plane in the Y direction.
| Name | Type | Description |
|---|---|---|
degreeY | float |
Float32ArrayTransformPoint(pointX, pointY, m)
Uses this matrix m to transform the specified point and returns the result.
| Name | Type | Description |
|---|---|---|
matrices | Array<Float32Array> |
Object(x, y)Translation(dx, dy)
Creates a translation transformation that has the specified x and y displacements.
Float32ArrayTranslation(x, y, z)
Generates a transform matrix that translates the projection plane in the X, Y, or Z direction.
Float32Array