DMatrix2x2
public double M00
Language: C#
The element at row 0, column 0.
public double M01
Language: C#
The element at row 0, column 1.
public double M10
Language: C#
The element at row 1, column 0.
public double M11
Language: C#
The element at row 1, column 1.
public DMatrix2x2(double m00, double m01, double m10, double m11)
Language: C#
Initializes a new instance of the [
] struct.
public DMatrix2x2(DMatrix2x2 other)
Language: C#
Initializes a new instance of the [
] struct as copy of another matrix.
public static readonly DMatrix2x2 Identity = new(1, 0, 0, 1)
Language: C#
Return Value: new(1, 0, 0, 1)
Identity matrix.
public double Determinant { get; }
Language: C#
Determinant of the matrix.
public DMatrix2x2 Inverse { get; }
Language: C#
Inverse of the matrix.
public static void Scale(ref DMatrix2x2 matrix, double scale)
Language: C#
Scale matrix by a scalar.
public static DMatrix3x3 Expand(DMatrix2x2 matrix)
Language: C#
Expands matrix to 2x2 by inserting axis for homogeneous coordinates.
public DMatrix2x2 Transpose
Language: C#
Transposes this matrix.
public override string ToString()
Language: C#
Returns a string representation of the matrix.
public static operator DMatrix2x2 +(DMatrix2x2 a, DMatrix2x2 b)
Language: C#
Adds two matrices.
public static operator DMatrix2x2 -(DMatrix2x2 a, DMatrix2x2 b)
Language: C#
Subtracts two matrices.
public static operator DMatrix2x2 *(DMatrix2x2 matrix, double scalar)
Language: C#
Multiplies matrix by a scalar.
public static operator DMatrix2x2 *(double scalar, DMatrix2x2 matrix)
Language: C#
Multiplies matrix by a scalar.
public static operator DMatrix2x2 /(DMatrix2x2 matrix, double scalar)
Language: C#
Divides matrix by a scalar.
public static operator DMatrix2x2 /(double scalar, DMatrix2x2 matrix)
Language: C#
Divides scalar by a matrix.
public static operator DVector2 *(DMatrix2x2 matrix, DVector2 vector)
Language: C#
Multiplies matrix by vector.
public static operator DVector2 *(DVector2 vector, DMatrix2x2 matrix)
Language: C#
Multiplies vector by matrix.
public static operator DMatrix2x2 *(DMatrix2x2 a, DMatrix2x2 b)
Language: C#
Multiplies a DMatrix2x2 by a DMatrix2x2.
public static operator bool ==(DMatrix2x2 a, DMatrix2x2 b)
Language: C#
Checks if two matrices are equal.
public static operator bool !=(DMatrix2x2 a, DMatrix2x2 b)
Language: C#
Checks if two matrices are not equal.