DomMatrix Class
https://drafts.fxtf.org/geometry/#dommatrix
public class DomMatrix : DomMatrixReadOnly- Inheritance
DomMatrixReadOnlyDomMatrix
Constructors
| Name | Description |
|---|---|
| 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.csCreates the 2D identity matrix.
public DomMatrix()DomMatrix(IReadOnlyList<double>)
DomMatrix.csCreates a matrix from a sequence of 6 (2D) or 16 (3D) values.
public DomMatrix(IReadOnlyList<double> init)Parameters
See also
DomMatrix(string)
DomMatrix.csCreates a matrix by parsing the given CSS transform list.
public DomMatrix(string init)Properties
| Name | Description |
|---|---|
| A | Gets or sets the a component of the matrix, an alias of m11. |
| B | Gets or sets the b component of the matrix, an alias of m12. |
| C | Gets or sets the c component of the matrix, an alias of m21. |
| D | Gets or sets the d component of the matrix, an alias of m22. |
| E | Gets or sets the e component of the matrix, an alias of m41. |
| F | Gets or sets the f component of the matrix, an alias of m42. |
| M11 | Gets or sets the m11 component of the matrix. |
| M12 | Gets or sets the m12 component of the matrix. |
| M13 | Gets or sets the m13 component of the matrix. |
| M14 | Gets or sets the m14 component of the matrix. |
| M21 | Gets or sets the m21 component of the matrix. |
| M22 | Gets or sets the m22 component of the matrix. |
| M23 | Gets or sets the m23 component of the matrix. |
| M24 | Gets or sets the m24 component of the matrix. |
| M31 | Gets or sets the m31 component of the matrix. |
| M32 | Gets or sets the m32 component of the matrix. |
| M33 | Gets or sets the m33 component of the matrix. |
| M34 | Gets or sets the m34 component of the matrix. |
| M41 | Gets or sets the m41 component of the matrix. |
| M42 | Gets or sets the m42 component of the matrix. |
| M43 | Gets or sets the m43 component of the matrix. |
| M44 | Gets 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; }M11
DomMatrix.csGets or sets the m11 component of the matrix.
public new double M11 { get; set; }M12
DomMatrix.csGets or sets the m12 component of the matrix.
public new double M12 { get; set; }M13
DomMatrix.csGets or sets the m13 component of the matrix.
public new double M13 { get; set; }M14
DomMatrix.csGets or sets the m14 component of the matrix.
public new double M14 { get; set; }M21
DomMatrix.csGets or sets the m21 component of the matrix.
public new double M21 { get; set; }M22
DomMatrix.csGets or sets the m22 component of the matrix.
public new double M22 { get; set; }M23
DomMatrix.csGets or sets the m23 component of the matrix.
public new double M23 { get; set; }M24
DomMatrix.csGets or sets the m24 component of the matrix.
public new double M24 { get; set; }M31
DomMatrix.csGets or sets the m31 component of the matrix.
public new double M31 { get; set; }M32
DomMatrix.csGets or sets the m32 component of the matrix.
public new double M32 { get; set; }M33
DomMatrix.csGets or sets the m33 component of the matrix.
public new double M33 { get; set; }M34
DomMatrix.csGets or sets the m34 component of the matrix.
public new double M34 { get; set; }M41
DomMatrix.csGets or sets the m41 component of the matrix.
public new double M41 { get; set; }M42
DomMatrix.csGets or sets the m42 component of the matrix.
public new double M42 { get; set; }M43
DomMatrix.csGets or sets the m43 component of the matrix.
public new double M43 { get; set; }M44
DomMatrix.csGets or sets the m44 component of the matrix.
public new double M44 { get; set; }Methods
| Name | Description |
|---|---|
| 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.csCreates a mutable matrix from an array of 6 (2D) or 16 (3D) single-precision values.
Parameters
array32float[]
Returns
See also
FromFloat64Array(double[])
DomMatrix.csCreates a mutable matrix from an array of 6 (2D) or 16 (3D) double-precision values.
Parameters
array64double[]
Returns
See also
FromMatrix(DomMatrixInit?)
DomMatrix.csCreates a mutable matrix from the components of the given dictionary.
public new static DomMatrix FromMatrix(DomMatrixInit? other = null)InvertSelf()
DomMatrix.cshttps://drafts.fxtf.org/geometry/#dom-dommatrix-invertself
public DomMatrix InvertSelf()MultiplySelf(DomMatrixInit?)
DomMatrix.csPost-multiplies this matrix by the given matrix and returns this matrix.
public DomMatrix MultiplySelf(DomMatrixInit? other = null)PreMultiplySelf(DomMatrixInit?)
DomMatrix.csPre-multiplies this matrix by the given matrix and returns this matrix.
public DomMatrix PreMultiplySelf(DomMatrixInit? other = null)RotateAxisAngleSelf(double, double, double, double)
DomMatrix.csRotateFromVectorSelf(double, double)
DomMatrix.csRotateSelf(double, double?, double?)
DomMatrix.csRotates this matrix by the given angles, in degrees, around the X, Y and Z axes and returns this matrix.
Parameters
Returns
See also
Scale3dSelf(double, double, double, double)
DomMatrix.csScaleSelf(double, double?, double, double, double, double)
DomMatrix.csSetMatrixValue(string)
DomMatrix.csReplaces the components of this matrix with the result of parsing the given CSS transform list.
SkewXSelf(double)
DomMatrix.csSkews this matrix along the X axis by the given angle in degrees and returns this matrix.
SkewYSelf(double)
DomMatrix.csSkews this matrix along the Y axis by the given angle in degrees and returns this matrix.