Click or drag to resize
DigitalRuneMatrix22D Structure
Defines a 2 x 2 matrix (double-precision).

Namespace: DigitalRune.Mathematics.Algebra
Assembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax
[SerializableAttribute]
[TypeConverterAttribute(typeof(ExpandableObjectConverter))]
[DataContractAttribute]
public struct Matrix22D : IEquatable<Matrix22D>

The Matrix22D type exposes the following members.

Constructors
Methods
  NameDescription
Public methodAbsolute
Sets each matrix element to its absolute value.
Public methodStatic memberAbsolute(Matrix22D)
Returns a matrix with the absolute values of the elements of the given matrix.
Public methodStatic memberAdd
Adds two matrices.
Public methodStatic memberAreNumericallyEqual(Matrix22D, Matrix22D)
Determines whether two matrices are equal (regarding the tolerance EpsilonD).
Public methodStatic memberAreNumericallyEqual(Matrix22D, Matrix22D, Double)
Determines whether two matrices are equal (regarding a specific tolerance).
Public methodClampToZero
Clamps near-zero matrix elements to zero.
Public methodClampToZero(Double)
Clamps near-zero matrix elements to zero.
Public methodStatic memberClampToZero(Matrix22D)
Returns a matrix with the matrix elements clamped to the range [min, max].
Public methodStatic memberClampToZero(Matrix22D, Double)
Returns a matrix with the matrix elements clamped to the range [min, max].
Public methodStatic memberCreateRotation
Creates a rotation matrix.
Public methodStatic memberCreateScale(Double)
Creates a uniform scaling matrix.
Public methodStatic memberCreateScale(Vector2D)
Creates a scaling matrix.
Public methodStatic memberCreateScale(Double, Double)
Creates a scaling matrix.
Public methodStatic memberDivide
Divides a matrix by a scalar.
Public methodEquals(Object)
Indicates whether this instance and a specified object are equal.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Matrix22D)
Indicates whether the current object is equal to another object of the same type.
Public methodGetColumn
Gets a column as Vector2D.
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetRow
Gets a row as Vector2D.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInvert
Inverts the matrix.
Public methodStatic memberMultiply(Double, Matrix22D)
Multiplies a matrix by a scalar.
Public methodStatic memberMultiply(Matrix22D, Matrix22D)
Multiplies two matrices.
Public methodStatic memberMultiply(Matrix22D, Vector2D)
Multiplies a matrix with a column vector.
Public methodStatic memberNegate
Negates a matrix.
Public methodSetColumn
Sets a column from a Vector2D.
Public methodSetRow
Sets a row from a Vector2D.
Public methodStatic memberSubtract
Subtracts two matrices.
Public methodToArray1D
Converts this matrix to an array of double values.
Public methodToArray2D
Converts this Matrix22D to a 2-dimensional double array.
Public methodToArrayJagged
Converts this Matrix22D to a jagged double array.
Public methodToList
Converts this matrix to a list of double values.
Public methodToMatrix22F
Converts this Matrix22D to Matrix22F.
Public methodToMatrixD
Converts this Matrix22D to MatrixD.
Public methodToString
Returns the string representation of this matrix.
(Overrides ValueTypeToString.)
Public methodToString(IFormatProvider)
Returns the string representation of this matrix using the specified culture-specific format information.
Public methodTranspose
Transposes this matrix.
Public methodTryInvert
Inverts the matrix if it is invertible.
Top
Operators
  NameDescription
Public operatorStatic memberAddition
Adds two matrices.
Public operatorStatic memberDivision
Divides a matrix by a scalar.
Public operatorStatic memberEquality
Tests if two matrices are equal.
Public operatorStatic member(Matrix22D to Double)
Performs an explicit conversion from Matrix22D to a 2-dimensional double array.
Public operatorStatic member(Matrix22D to Double)
Performs an explicit conversion from Matrix22D to a jagged double array.
Public operatorStatic member(Matrix22D to Matrix22F)
Performs an explicit conversion from Matrix22D to Matrix22F.
Public operatorStatic member(Matrix22D to MatrixD)
Performs an implicit conversion from Matrix22D to MatrixD.
Public operatorStatic memberInequality
Tests if two matrices are not equal.
Public operatorStatic memberMultiply(Double, Matrix22D)
Multiplies a matrix by a scalar.
Public operatorStatic memberMultiply(Matrix22D, Matrix22D)
Multiplies two matrices.
Public operatorStatic memberMultiply(Matrix22D, Vector2D)
Multiplies a matrix with a column vector.
Public operatorStatic memberMultiply(Matrix22D, Double)
Multiplies a matrix and a scalar.
Public operatorStatic memberSubtraction
Subtracts two matrices.
Public operatorStatic memberUnaryNegation
Negates a matrix.
Top
Fields
  NameDescription
Public fieldStatic memberIdentity
Returns the 2 x 2 identity matrix.
Public fieldM00
The element in first row, first column.
Public fieldM01
The element in first row, second column.
Public fieldM10
The element in second row, first column.
Public fieldM11
The element in second row, second column.
Public fieldStatic memberOne
Returns a Matrix22D with all of its components set to one.
Public fieldStatic memberZero
Returns a Matrix22D with all of its components set to zero.
Top
Properties
  NameDescription
Public propertyDeterminant
Returns the determinant of this matrix.
Public propertyInverse
Returns the inverse of this matrix.
Public propertyIsNaN
Gets a value indicating whether an element of the matrix is NaN.
Public propertyIsSymmetric
Gets a value indicating whether this matrix is symmetric.
Public propertyItemInt32
Gets or sets the element at the specified index.
Public propertyItemInt32, Int32
Gets or sets the element at the specified index.
Public propertyTrace
Gets the matrix trace (the sum of the diagonal elements).
Public propertyTransposed
Returns the transposed of this matrix.
Top
Remarks

All indices are zero-based. The matrix looks like this:

M00 M01
M10 M11

See Also