Click or drag to resize

Matrix44 Structure

Represents the right-handed 4x4 floating point matrix, which can store translation, scale and rotation information.
Inheritance Hierarchy
SystemObject
  SystemValueType
    CFX.Structures.GeometryMatrix44

Namespace: CFX.Structures.Geometry
Assembly: CFX (in CFX.dll) Version: 1.7.3
Syntax
[SerializableAttribute]
public struct Matrix44 : IEquatable<Matrix44>

The Matrix44 type exposes the following members.

Constructors
 NameDescription
Public methodMatrix44 Constructs a matrix.
Top
Properties
 NameDescription
Public propertyBackward The backward vector formed from the third row M31, M32, M33 elements.
Public propertyDown The down vector formed from the second row -M21, -M22, -M23 elements.
Public propertyForward The forward vector formed from the third row -M31, -M32, -M33 elements.
Public propertyStatic memberIdentity Returns the identity matrix.
Public propertyLeft The left vector formed from the first row -M11, -M12, -M13 elements.
Public propertyRight The right vector formed from the first row M11, M12, M13 elements.
Public propertyTranslation Position stored in this matrix.
Public propertyUp The upper vector formed from the second row M21, M22, M23 elements.
Top
Methods
 NameDescription
Public methodStatic memberAdd(Matrix44, Matrix44) Creates a new Matrix44 which contains sum of two matrixes.
Public methodStatic memberAdd(Matrix44, Matrix44, Matrix44) Creates a new Matrix44 which contains sum of two matrixes.
Public methodStatic memberCreateBillboard(Vector3, Vector3, Vector3, NullableVector3) Creates a new Matrix44 for spherical billboarding that rotates around specified object position.
Public methodStatic memberCreateBillboard(Vector3, Vector3, Vector3, NullableVector3, Matrix44) Creates a new Matrix44 for spherical billboarding that rotates around specified object position.
Public methodStatic memberCreateConstrainedBillboard(Vector3, Vector3, Vector3, NullableVector3, NullableVector3) Creates a new Matrix44 for cylindrical billboarding that rotates around specified axis.
Public methodStatic memberCreateConstrainedBillboard(Vector3, Vector3, Vector3, NullableVector3, NullableVector3, Matrix44) Creates a new Matrix44 for cylindrical billboarding that rotates around specified axis.
Public methodStatic memberCreateFromAxisAngle(Vector3, Double) Creates a new Matrix44 which contains the rotation moment around specified axis.
Public methodStatic memberCreateFromAxisAngle(Vector3, Double, Matrix44) Creates a new Matrix44 which contains the rotation moment around specified axis.
Public methodStatic memberCreateFromQuaternion(Quaternion) Creates a new rotation Matrix44 from a Quaternion.
Public methodStatic memberCreateFromQuaternion(Quaternion, Matrix44) Creates a new rotation Matrix44 from a Quaternion.
Public methodStatic memberCreateFromYawPitchRoll(Double, Double, Double) Creates a new rotation Matrix44 from the specified yaw, pitch and roll values.
Public methodStatic memberCreateFromYawPitchRoll(Double, Double, Double, Matrix44) Creates a new rotation Matrix44 from the specified yaw, pitch and roll values.
Public methodStatic memberCreateLookAt(Vector3, Vector3, Vector3) Creates a new viewing Matrix44.
Public methodStatic memberCreateLookAt(Vector3, Vector3, Vector3, Matrix44) Creates a new viewing Matrix44.
Public methodStatic memberCreateOrthographic(Double, Double, Double, Double) Creates a new projection Matrix44 for orthographic view.
Public methodStatic memberCreateOrthographic(Double, Double, Double, Double, Matrix44) Creates a new projection Matrix44 for orthographic view.
Public methodStatic memberCreateOrthographicOffCenter(Double, Double, Double, Double, Double, Double) Creates a new projection Matrix44 for customized orthographic view.
Public methodStatic memberCreateOrthographicOffCenter(Double, Double, Double, Double, Double, Double, Matrix44) Creates a new projection Matrix44 for customized orthographic view.
Public methodStatic memberCreatePerspective(Double, Double, Double, Double) Creates a new projection Matrix44 for perspective view.
Public methodStatic memberCreatePerspective(Double, Double, Double, Double, Matrix44) Creates a new projection Matrix44 for perspective view.
Public methodStatic memberCreatePerspectiveFieldOfView(Double, Double, Double, Double) Creates a new projection Matrix44 for perspective view with field of view.
Public methodStatic memberCreatePerspectiveFieldOfView(Double, Double, Double, Double, Matrix44) Creates a new projection Matrix44 for perspective view with field of view.
Public methodStatic memberCreatePerspectiveOffCenter(Double, Double, Double, Double, Double, Double) Creates a new projection Matrix44 for customized perspective view.
Public methodStatic memberCreatePerspectiveOffCenter(Double, Double, Double, Double, Double, Double, Matrix44) Creates a new projection Matrix44 for customized perspective view.
Public methodStatic memberCreateRotationX(Double) Creates a new rotation Matrix44 around X axis.
Public methodStatic memberCreateRotationX(Double, Matrix44) Creates a new rotation Matrix44 around X axis.
Public methodStatic memberCreateRotationY(Double) Creates a new rotation Matrix44 around Y axis.
Public methodStatic memberCreateRotationY(Double, Matrix44) Creates a new rotation Matrix44 around Y axis.
Public methodStatic memberCreateRotationZ(Double) Creates a new rotation Matrix44 around Z axis.
Public methodStatic memberCreateRotationZ(Double, Matrix44) Creates a new rotation Matrix44 around Z axis.
Public methodStatic memberCreateScale(Double) Creates a new scaling Matrix44.
Public methodStatic memberCreateScale(Vector3) Creates a new scaling Matrix44.
Public methodStatic memberCreateScale(Double, Matrix44) Creates a new scaling Matrix44.
Public methodStatic memberCreateScale(Vector3, Matrix44) Creates a new scaling Matrix44.
Public methodStatic memberCreateScale(Double, Double, Double) Creates a new scaling Matrix44.
Public methodStatic memberCreateScale(Double, Double, Double, Matrix44) Creates a new scaling Matrix44.
Public methodStatic memberCreateTranslation(Vector3) Creates a new translation Matrix44.
Public methodStatic memberCreateTranslation(Vector3, Matrix44) Creates a new translation Matrix44.
Public methodStatic memberCreateTranslation(Double, Double, Double) Creates a new translation Matrix44.
Public methodStatic memberCreateTranslation(Double, Double, Double, Matrix44) Creates a new translation Matrix44.
Public methodStatic memberCreateWorld(Vector3, Vector3, Vector3) Creates a new world Matrix44.
Public methodStatic memberCreateWorld(Vector3, Vector3, Vector3, Matrix44) Creates a new world Matrix44.
Public methodDecompose Decomposes this matrix to translation, rotation and scale elements. Returns true if matrix can be decomposed; false otherwise.
Public methodDeterminant Returns a determinant of this Matrix44.
Public methodStatic memberDivide(Matrix44, Matrix44) Divides the elements of a Matrix44 by the elements of another matrix.
Public methodStatic memberDivide(Matrix44, Double) Divides the elements of a Matrix44 by a scalar.
Public methodStatic memberDivide(Matrix44, Matrix44, Matrix44) Divides the elements of a Matrix44 by the elements of another matrix.
Public methodStatic memberDivide(Matrix44, Double, Matrix44) Divides the elements of a Matrix44 by a scalar.
Public methodEquals(Matrix44) Compares whether current instance is equal to specified Matrix44 without any tolerance.
Public methodEquals(Object) Compares whether current instance is equal to specified Object without any tolerance.
(Overrides ValueTypeEquals(Object))
Public methodGetHashCode Gets the hash code of this Matrix44.
(Overrides ValueTypeGetHashCode)
Public methodStatic memberInvert(Matrix44) Creates a new Matrix44 which contains inversion of the specified matrix.
Public methodStatic memberInvert(Matrix44, Matrix44) Creates a new Matrix44 which contains inversion of the specified matrix.
Public methodStatic memberLerp(Matrix44, Matrix44, Double) Creates a new Matrix44 that contains linear interpolation of the values in specified matrixes.
Public methodStatic memberLerp(Matrix44, Matrix44, Double, Matrix44) Creates a new Matrix44 that contains linear interpolation of the values in specified matrixes.
Public methodStatic memberMultiply(Matrix44, Matrix44) Creates a new Matrix44 that contains a multiplication of two matrix.
Public methodStatic memberMultiply(Matrix44, Double) Creates a new Matrix44 that contains a multiplication of Matrix44 and a scalar.
Public methodStatic memberMultiply(Matrix44, Matrix44, Matrix44) Creates a new Matrix44 that contains a multiplication of two matrix.
Public methodStatic memberMultiply(Matrix44, Double, Matrix44) Creates a new Matrix44 that contains a multiplication of Matrix44 and a scalar.
Public methodStatic memberNegate(Matrix44) Returns a matrix with the all values negated.
Public methodStatic memberNegate(Matrix44, Matrix44) Returns a matrix with the all values negated.
Public methodStatic memberSubtract(Matrix44, Matrix44) Creates a new Matrix44 that contains subtraction of one matrix from another.
Public methodStatic memberSubtract(Matrix44, Matrix44, Matrix44) Creates a new Matrix44 that contains subtraction of one matrix from another.
Public methodToString Returns a String representation of this Matrix44 in the format: {M11:[M11] M12:[M12] M13:[M13] M14:[M14]} {M21:[M21] M12:[M22] M13:[M23] M14:[M24]} {M31:[M31] M32:[M32] M33:[M33] M34:[M34]} {M41:[M41] M42:[M42] M43:[M43] M44:[M44]}
(Overrides ValueTypeToString)
Public methodStatic memberTransform(Matrix44, Quaternion) Applies a rotational transformation to a matrix
Public methodStatic memberTransform(Matrix44, Quaternion, Matrix44) Applies a rotational transformation to a matrix
Public methodStatic memberTranspose(Matrix44) Swap the matrix rows and columns.
Public methodStatic memberTranspose(Matrix44, Matrix44) Swap the matrix rows and columns.
Top
Operators
 NameDescription
Public operatorStatic memberAddition(Matrix44, Matrix44) Adds two matrixes.
Public operatorStatic memberDivision(Matrix44, Matrix44) Divides the elements of a Matrix44 by the elements of another Matrix44.
Public operatorStatic memberDivision(Matrix44, Double) Divides the elements of a Matrix44 by a scalar.
Public operatorStatic memberEquality(Matrix44, Matrix44) Compares whether two Matrix44 instances are equal without any tolerance.
Public operatorStatic memberInequality(Matrix44, Matrix44) Compares whether two Matrix44 instances are not equal without any tolerance.
Public operatorStatic memberMultiply(Matrix44, Matrix44) Multiplies two matrixes.
Public operatorStatic memberMultiply(Matrix44, Double) Multiplies the elements of matrix by a scalar.
Public operatorStatic memberSubtraction(Matrix44, Matrix44) Subtracts the values of one Matrix44 from another Matrix44.
Public operatorStatic memberUnaryNegation(Matrix44) Inverts values in the specified Matrix44.
Top
Fields
 NameDescription
Public fieldM11 A first row and first column value.
Public fieldM12 A first row and second column value.
Public fieldM13 A first row and third column value.
Public fieldM14 A first row and fourth column value.
Public fieldM21 A second row and first column value.
Public fieldM22 A second row and second column value.
Public fieldM23 A second row and third column value.
Public fieldM24 A second row and fourth column value.
Public fieldM31 A third row and first column value.
Public fieldM32 A third row and second column value.
Public fieldM33 A third row and third column value.
Public fieldM34 A third row and fourth column value.
Public fieldM41 A fourth row and first column value.
Public fieldM42 A fourth row and second column value.
Public fieldM43 A fourth row and third column value.
Public fieldM44 A fourth row and fourth column value.
Top
See Also