Click or drag to resize
DigitalRuneMatrix22F Structure
Defines a 2 x 2 matrix (single-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 Matrix22F : IEquatable<Matrix22F>

The Matrix22F type exposes the following members.

Constructors
Methods
  NameDescription
Public methodAbsolute
Sets each matrix element to its absolute value.
Public methodStatic memberAbsolute(Matrix22F)
Returns a matrix with the absolute values of the elements of the given matrix.
Public methodStatic memberAdd
Adds two matrices.
Public methodStatic memberAreNumericallyEqual(Matrix22F, Matrix22F)
Determines whether two matrices are equal (regarding the tolerance EpsilonF).
Public methodStatic memberAreNumericallyEqual(Matrix22F, Matrix22F, Single)
Determines whether two matrices are equal (regarding a specific tolerance).
Public methodClampToZero
Clamps near-zero matrix elements to zero.
Public methodClampToZero(Single)
Clamps near-zero matrix elements to zero.
Public methodStatic memberClampToZero(Matrix22F)
Returns a matrix with the matrix elements clamped to the range [min, max].
Public methodStatic memberClampToZero(Matrix22F, Single)
Returns a matrix with the matrix elements clamped to the range [min, max].
Public methodStatic memberCreateRotation
Creates a rotation matrix.
Public methodStatic memberCreateScale(Single)
Creates a uniform scaling matrix.
Public methodStatic memberCreateScale(Vector2F)
Creates a scaling matrix.
Public methodStatic memberCreateScale(Single, Single)
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(Matrix22F)
Indicates whether the current object is equal to another object of the same type.
Public methodGetColumn
Gets a column as Vector2F.
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetRow
Gets a row as Vector2F.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInvert
Inverts the matrix.
Public methodStatic memberMultiply(Single, Matrix22F)
Multiplies a matrix by a scalar.
Public methodStatic memberMultiply(Matrix22F, Matrix22F)
Multiplies two matrices.
Public methodStatic memberMultiply(Matrix22F, Vector2F)
Multiplies a matrix with a column vector.
Public methodStatic memberNegate
Negates a matrix.
Public methodSetColumn
Sets a column from a Vector2F.
Public methodSetRow
Sets a row from a Vector2F.
Public methodStatic memberSubtract
Subtracts two matrices.
Public methodToArray1D
Converts this matrix to an array of float values.
Public methodToArray2D
Converts this Matrix22F to a 2-dimensional float array.
Public methodToArrayJagged
Converts this Matrix22F to a jagged float array.
Public methodToList
Converts this matrix to a list of float values.
Public methodToMatrix22D
Converts this Matrix22F to Matrix22D.
Public methodToMatrixF
Converts this Matrix22F to MatrixF.
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(Matrix22F to Single)
Performs an explicit conversion from Matrix22F to a 2-dimensional float array.
Public operatorStatic member(Matrix22F to Single)
Performs an explicit conversion from Matrix22F to a jagged float array.
Public operatorStatic member(Matrix22F to MatrixF)
Performs an implicit conversion from Matrix22F to MatrixF.
Public operatorStatic member(Matrix22F to Matrix22D)
Performs an implicit conversion from Matrix22F to Matrix22D.
Public operatorStatic memberInequality
Tests if two matrices are not equal.
Public operatorStatic memberMultiply(Single, Matrix22F)
Multiplies a matrix by a scalar.
Public operatorStatic memberMultiply(Matrix22F, Matrix22F)
Multiplies two matrices.
Public operatorStatic memberMultiply(Matrix22F, Vector2F)
Multiplies a matrix with a column vector.
Public operatorStatic memberMultiply(Matrix22F, Single)
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 Matrix22F with all of its components set to one.
Public fieldStatic memberZero
Returns a Matrix22F 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