DomMatrix Class

https://drafts.fxtf.org/geometry/#dommatrix

public class DomMatrix : DomMatrixReadOnly
Inheritance
DomMatrixReadOnly DomMatrix

Constructors

NameDescription
DomMatrix()Creates the 2D identity matrix.
DomMatrix(IReadOnlyList<double>)Creates a matrix from a sequence of 6 (2D) or 16 (3D) values.
DomMatrix(string)Creates a matrix by parsing the given CSS transform list.

DomMatrix overloads

DomMatrix()

DomMatrix.cs

Creates the 2D identity matrix.

public DomMatrix()

DomMatrix(IReadOnlyList<double>)

DomMatrix.cs

Creates a matrix from a sequence of 6 (2D) or 16 (3D) values.

public DomMatrix(IReadOnlyList<double> init)

DomMatrix(string)

DomMatrix.cs

Creates a matrix by parsing the given CSS transform list.

public DomMatrix(string init)

Properties

NameDescription
AGets or sets the a component of the matrix, an alias of m11.
BGets or sets the b component of the matrix, an alias of m12.
CGets or sets the c component of the matrix, an alias of m21.
DGets or sets the d component of the matrix, an alias of m22.
EGets or sets the e component of the matrix, an alias of m41.
FGets or sets the f component of the matrix, an alias of m42.
M11Gets or sets the m11 component of the matrix.
M12Gets or sets the m12 component of the matrix.
M13Gets or sets the m13 component of the matrix.
M14Gets or sets the m14 component of the matrix.
M21Gets or sets the m21 component of the matrix.
M22Gets or sets the m22 component of the matrix.
M23Gets or sets the m23 component of the matrix.
M24Gets or sets the m24 component of the matrix.
M31Gets or sets the m31 component of the matrix.
M32Gets or sets the m32 component of the matrix.
M33Gets or sets the m33 component of the matrix.
M34Gets or sets the m34 component of the matrix.
M41Gets or sets the m41 component of the matrix.
M42Gets or sets the m42 component of the matrix.
M43Gets or sets the m43 component of the matrix.
M44Gets or sets the m44 component of the matrix.

Gets or sets the a component of the matrix, an alias of m11.

public new double A { get; set; }

Gets or sets the b component of the matrix, an alias of m12.

public new double B { get; set; }

Gets or sets the c component of the matrix, an alias of m21.

public new double C { get; set; }

Gets or sets the d component of the matrix, an alias of m22.

public new double D { get; set; }

Gets or sets the e component of the matrix, an alias of m41.

public new double E { get; set; }

Gets or sets the f component of the matrix, an alias of m42.

public new double F { get; set; }

Gets or sets the m11 component of the matrix.

public new double M11 { get; set; }

Gets or sets the m12 component of the matrix.

public new double M12 { get; set; }

Gets or sets the m13 component of the matrix.

public new double M13 { get; set; }

Gets or sets the m14 component of the matrix.

public new double M14 { get; set; }

Gets or sets the m21 component of the matrix.

public new double M21 { get; set; }

Gets or sets the m22 component of the matrix.

public new double M22 { get; set; }

Gets or sets the m23 component of the matrix.

public new double M23 { get; set; }

Gets or sets the m24 component of the matrix.

public new double M24 { get; set; }

Gets or sets the m31 component of the matrix.

public new double M31 { get; set; }

Gets or sets the m32 component of the matrix.

public new double M32 { get; set; }

Gets or sets the m33 component of the matrix.

public new double M33 { get; set; }

Gets or sets the m34 component of the matrix.

public new double M34 { get; set; }

Gets or sets the m41 component of the matrix.

public new double M41 { get; set; }

Gets or sets the m42 component of the matrix.

public new double M42 { get; set; }

Gets or sets the m43 component of the matrix.

public new double M43 { get; set; }

Gets or sets the m44 component of the matrix.

public new double M44 { get; set; }

Methods

NameDescription
FromFloat32Array(float[])Creates a mutable matrix from an array of 6 (2D) or 16 (3D) single-precision values.
FromFloat64Array(double[])Creates a mutable matrix from an array of 6 (2D) or 16 (3D) double-precision values.
FromMatrix(DomMatrixInit?)Creates a mutable matrix from the components of the given dictionary.
InvertSelf()https://drafts.fxtf.org/geometry/#dom-dommatrix-invertself
MultiplySelf(DomMatrixInit?)Post-multiplies this matrix by the given matrix and returns this matrix.
PreMultiplySelf(DomMatrixInit?)Pre-multiplies this matrix by the given matrix and returns this matrix.
RotateAxisAngleSelf(double, double, double, double)Rotates this matrix by the given angle, in degrees, around the given axis vector and returns this matrix.
RotateFromVectorSelf(double, double)Rotates this matrix by the angle between the positive X axis and the given vector and returns this matrix.
RotateSelf(double, double?, double?)Rotates this matrix by the given angles, in degrees, around the X, Y and Z axes and returns this matrix.
Scale3dSelf(double, double, double, double)Scales this matrix uniformly in 3D around the given origin and returns this matrix.
ScaleSelf(double, double?, double, double, double, double)Scales this matrix by the given factors around the given origin and returns this matrix.
SetMatrixValue(string)Replaces the components of this matrix with the result of parsing the given CSS transform list.
SkewXSelf(double)Skews this matrix along the X axis by the given angle in degrees and returns this matrix.
SkewYSelf(double)Skews this matrix along the Y axis by the given angle in degrees and returns this matrix.
TranslateSelf(double, double, double)Translates this matrix by the given offsets and returns this matrix.

FromFloat32Array(float[])

DomMatrix.cs

Creates a mutable matrix from an array of 6 (2D) or 16 (3D) single-precision values.

public new static DomMatrix FromFloat32Array(float[] array32)

FromFloat64Array(double[])

DomMatrix.cs

Creates a mutable matrix from an array of 6 (2D) or 16 (3D) double-precision values.

public new static DomMatrix FromFloat64Array(double[] array64)

FromMatrix(DomMatrixInit?)

DomMatrix.cs

Creates a mutable matrix from the components of the given dictionary.

public new static DomMatrix FromMatrix(DomMatrixInit? other = null)

InvertSelf()

DomMatrix.cs

https://drafts.fxtf.org/geometry/#dom-dommatrix-invertself

public DomMatrix InvertSelf()

MultiplySelf(DomMatrixInit?)

DomMatrix.cs

Post-multiplies this matrix by the given matrix and returns this matrix.

public DomMatrix MultiplySelf(DomMatrixInit? other = null)

PreMultiplySelf(DomMatrixInit?)

DomMatrix.cs

Pre-multiplies this matrix by the given matrix and returns this matrix.

public DomMatrix PreMultiplySelf(DomMatrixInit? other = null)

RotateAxisAngleSelf(double, double, double, double)

DomMatrix.cs

Rotates this matrix by the given angle, in degrees, around the given axis vector and returns this matrix.

public DomMatrix RotateAxisAngleSelf(double x = 0d, double y = 0d, double z = 0d, double angle = 0d)

RotateFromVectorSelf(double, double)

DomMatrix.cs

Rotates this matrix by the angle between the positive X axis and the given vector and returns this matrix.

public DomMatrix RotateFromVectorSelf(double x = 0d, double y = 0d)

RotateSelf(double, double?, double?)

DomMatrix.cs

Rotates this matrix by the given angles, in degrees, around the X, Y and Z axes and returns this matrix.

public DomMatrix RotateSelf(double rotX = 0d, double? rotY = null, double? rotZ = null)

Scale3dSelf(double, double, double, double)

DomMatrix.cs

Scales this matrix uniformly in 3D around the given origin and returns this matrix.

public DomMatrix Scale3dSelf(double scale = 1d, double originX = 0d, double originY = 0d, double originZ = 0d)

ScaleSelf(double, double?, double, double, double, double)

DomMatrix.cs

Scales this matrix by the given factors around the given origin and returns this matrix.

public DomMatrix ScaleSelf(double scaleX = 1d, double? scaleY = null, double scaleZ = 1d, double originX = 0d, double originY = 0d, double originZ = 0d)

Parameters

scaleX double
scaleY double?
scaleZ double
originX double
originY double
originZ double

Returns

DomMatrix

See also

SetMatrixValue(string)

DomMatrix.cs

Replaces the components of this matrix with the result of parsing the given CSS transform list.

public DomMatrix SetMatrixValue(string transformList)

SkewXSelf(double)

DomMatrix.cs

Skews this matrix along the X axis by the given angle in degrees and returns this matrix.

public DomMatrix SkewXSelf(double sx = 0d)

SkewYSelf(double)

DomMatrix.cs

Skews this matrix along the Y axis by the given angle in degrees and returns this matrix.

public DomMatrix SkewYSelf(double sy = 0d)

TranslateSelf(double, double, double)

DomMatrix.cs

Translates this matrix by the given offsets and returns this matrix.

public DomMatrix TranslateSelf(double tx = 0d, double ty = 0d, double tz = 0d)