Click or drag to resize

Matrix2 Structure

Represents a matrix with 2 rows and 2 columns in row-major notation.

Namespace:  Syroot.Maths
Assembly:  Syroot.Maths (in Syroot.Maths.dll) Version: 1.5.0-alpha1
Syntax
public struct Matrix2 : IEquatable<Matrix2>, 
	IEquatableByRef<Matrix2>, INearlyEquatable<Matrix2>, INearlyEquatableByRef<Matrix2>

The Matrix2 type exposes the following members.

Constructors
  NameDescription
Public methodMatrix2
Initializes a new instance of the Matrix2 struct with the given values.
Top
Properties
Methods
  NameDescription
Public methodEquals(Object)
Gets a value indicating whether the components of this Matrix2 are the same as the components of the second specified Matrix2.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Matrix2)
Indicates whether the current Matrix2 is equal to another Matrix2.
Public methodEquals(Matrix2)
Indicates whether the current Matrix2 is equal to another Matrix2. Structures are passed by reference to avoid stack structure copying.
Public methodGetHashCode
Gets a hash code as an indication for object equality.
(Overrides ValueTypeGetHashCode.)
Public methodNearlyEquals(Matrix2)
Indicates whether the current Matrix2 is nearly equal to another Matrix2.
Public methodNearlyEquals(Matrix2)
Indicates whether the current Matrix2 is nearly equal to another Matrix2. Structures are passed by reference to avoid stack structure copying.
Public methodToString
Gets a string describing the components of this Matrix2.
(Overrides ValueTypeToString.)
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Gets a value indicating whether the components of Matrix4 first specified Matrix2 are the same as the components of the second specified Matrix2.
Public operatorStatic memberInequality
Gets a value indicating whether the components of the first specified Matrix2 are not the same as the components of the second specifiedMatrix2.
Top
Fields
  NameDescription
Public fieldStatic memberColumns
Gets the number of columns.
Public fieldM11
The value in the first row and the first column.
Public fieldM12
The value in the first row and the second column.
Public fieldM21
The value in the second row and the first column.
Public fieldM22
The value in the second row and the second column.
Public fieldStatic memberRows
Gets the number of rows.
Public fieldStatic memberSizeInBytes
Gets the size of this structure.
Public fieldStatic memberValueCount
Gets the amount of value types required to represent this structure.
Public fieldStatic memberZero
A Matrix2 with all components being 0f.
Top
See Also