Click or drag to resize

Matrix4 Structure

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

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

The Matrix4 type exposes the following members.

Constructors
  NameDescription
Public methodMatrix4
Initializes a new instance of the Matrix4 struct with the given values.
Top
Properties
Methods
  NameDescription
Public methodEquals(Object)
Gets a value indicating whether the components of this Matrix4 are the same as the components of the second specified Matrix4.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Matrix4)
Indicates whether the current Matrix4 is equal to another Matrix4.
Public methodEquals(Matrix4)
Indicates whether the current Matrix4 is equal to another Matrix4. 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 methodStatic memberGetOrthographicMatrix
Gets a Matrix4 for an orthographic camera to transform vertices to normalized device coordinates.
Public methodStatic memberGetRotationXMatrix
Gets a Matrix4 for a rotation around the X axis in 3-dimensional space.
Public methodStatic memberGetRotationYMatrix
Gets a Matrix4 for a rotation around the Y axis in 3-dimensional space.
Public methodStatic memberGetRotationZMatrix
Gets a Matrix4 for a rotation around the Z axis in 3-dimensional space.
Public methodStatic memberGetScalingMatrix(Vector3F)
Gets a Matrix4 for a scaling of vectors in 3-dimensional space.
Public methodStatic memberGetScalingMatrix(Single, Single, Single)
Gets a Matrix4 for a scaling of vectors in 3-dimensional space.
Public methodStatic memberGetTranslationMatrix(Vector3F)
Gets a Matrix4 for a translation of vectors in 3-dimensional space.
Public methodStatic memberGetTranslationMatrix(Single, Single, Single)
Gets a Matrix4 for a translation of vectors in 3-dimensional space.
Public methodNearlyEquals(Matrix4)
Indicates whether the current Matrix4 is nearly equal to another Matrix4.
Public methodNearlyEquals(Matrix4)
Indicates whether the current Matrix4 is nearly equal to another Matrix4. Structures are passed by reference to avoid stack structure copying.
Public methodToString
Gets a string describing the components of this Matrix4.
(Overrides ValueTypeToString.)
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Gets a value indicating whether the components of Matrix4 first specified Matrix4 are the same as the components of the second specified Matrix4.
Public operatorStatic memberInequality
Gets a value indicating whether the components of the first specified Matrix4 are not the same as the components of the second specifiedMatrix4.
Public operatorStatic memberMultiply
Multiplicates the first Matrix4 with the second one.
Top
Fields
  NameDescription
Public fieldStatic memberColumns
Gets the number of columns.
Public fieldStatic memberIdentity
The identity Matrix4 which causes no transformations to happen.
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 fieldM13
The value in the first row and the third column.
Public fieldM14
The value in the first row and the fourth 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 fieldM23
The value in the second row and the third column.
Public fieldM24
The value in the second row and the fourth column.
Public fieldM31
The value in the third row and the first column.
Public fieldM32
The value in the third row and the second column.
Public fieldM33
The value in the third row and the third column.
Public fieldM34
The value in the third row and the fourth column.
Public fieldM41
The value in the fourth row and the first column.
Public fieldM42
The value in the fourth row and the second column.
Public fieldM43
The value in the fourth row and the third column.
Public fieldM44
The value in the fourth row and the fourth 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 Matrix4 with all components being 0f.
Top
See Also