Click or drag to resize
Accord.NET (logo)

Matrix4x4 Structure

A structure representing 4x4 matrix.

Namespace:  Accord.Math
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax
[SerializableAttribute]
public struct Matrix4x4
Request Example View Source

The Matrix4x4 type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberIdentity
Provides an identity matrix with all diagonal elements set to 1.
Top
Methods
  NameDescription
Public methodStatic memberAdd
Adds corresponding components of two matrices.
Public methodStatic memberCreateDiagonal
Creates a diagonal matrix using the specified vector as diagonal elements.
Public methodStatic memberCreateFromColumns
Creates a matrix from 4 columns specified as vectors.
Public methodStatic memberCreateFromRotation
Creates 4x4 tranformation matrix from 3x3 rotation matrix.
Public methodStatic memberCreateFromRows
Creates a matrix from 4 rows specified as vectors.
Public methodStatic memberCreateFromYawPitchRoll
Creates rotation matrix to rotate an object around X, Y and Z axes.
Public methodStatic memberCreateLookAt
Creates a view matrix for the specified camera position and target point.
Public methodStatic memberCreatePerspective
Creates a perspective projection matrix.
Public methodStatic memberCreateRotationX
Creates rotation matrix around X axis.
Public methodStatic memberCreateRotationY
Creates rotation matrix around Y axis.
Public methodStatic memberCreateRotationZ
Creates rotation matrix around Z axis.
Public methodStatic memberCreateTranslation
Creates translation matrix for the specified movement amount.
Public methodEquals(Object)
Tests whether the matrix equals to the specified object.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Matrix4x4)
Tests whether the matrix equals to the specified one.
Public methodExtractYawPitchRoll
Extract rotation angles from the rotation matrix.
Public methodGetColumn
Get column of the matrix.
Public methodGetHashCode
Returns the hashcode for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetRow
Get row of the matrix.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberMultiply(Matrix4x4, Matrix4x4)
Multiplies two specified matrices.
Public methodStatic memberMultiply(Matrix4x4, Vector4)
Multiplies specified matrix by the specified vector.
Public methodStatic memberSubtract
Subtracts corresponding components of two matrices.
Public methodToArray
Returns array representation of the matrix.
Public methodToString
Returns the fully qualified type name of this instance.
(Inherited from ValueType.)
Top
Operators
  NameDescription
Public operatorStatic memberAddition
Adds corresponding components of two matrices.
Public operatorStatic memberEquality
Tests whether two specified matrices are equal.
Public operatorStatic memberInequality
Tests whether two specified matrices are not equal.
Public operatorStatic memberMultiply(Matrix4x4, Matrix4x4)
Multiplies two specified matrices.
Public operatorStatic memberMultiply(Matrix4x4, Vector4)
Multiplies specified matrix by the specified vector.
Public operatorStatic memberSubtraction
Subtracts corresponding components of two matrices.
Top
Fields
  NameDescription
Public fieldV00
Row 0 column 0 element of the matrix.
Public fieldV01
Row 0 column 1 element of the matrix.
Public fieldV02
Row 0 column 2 element of the matrix.
Public fieldV03
Row 0 column 3 element of the matrix.
Public fieldV10
Row 1 column 0 element of the matrix.
Public fieldV11
Row 1 column 1 element of the matrix.
Public fieldV12
Row 1 column 2 element of the matrix.
Public fieldV13
Row 1 column 3 element of the matrix.
Public fieldV20
Row 2 column 0 element of the matrix.
Public fieldV21
Row 2 column 1 element of the matrix.
Public fieldV22
Row 2 column 2 element of the matrix.
Public fieldV23
Row 2 column 3 element of the matrix.
Public fieldV30
Row 3 column 0 element of the matrix.
Public fieldV31
Row 3 column 1 element of the matrix.
Public fieldV32
Row 3 column 2 element of the matrix.
Public fieldV33
Row 3 column 3 element of the matrix.
Top
Extension Methods
  NameDescription
Public Extension MethodHasMethod
Checks whether an object implements a method with the given name.
(Defined by ExtensionMethods.)
Public Extension MethodIsEqual
Compares two objects for equality, performing an elementwise comparison if the elements are vectors or matrices.
(Defined by Matrix.)
Public Extension MethodTo(Type)Overloaded.
Converts an object into another type, irrespective of whether the conversion can be done at compile time or not. This can be used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.)
Public Extension MethodToTOverloaded.
Converts an object into another type, irrespective of whether the conversion can be done at compile time or not. This can be used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.)
Top
Remarks

The structure incapsulates elements of a 4x4 matrix and provides some operations with it.

See Also