Click or drag to resize

Matrix4F Structure

A structure encapsulating a single precision 4x4 matrix.

Namespace:  NeoAxis
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2022.1.1.0 (2022.1.1.0)
Syntax
C#
public struct Matrix4F

The Matrix4F type exposes the following members.

Constructors
  NameDescription
Public methodMatrix4F(Single)
Constructs a matrix with specified one-dimensional Single array with sixteen elements.
Public methodMatrix4F(Matrix4F)
Constructs a matrix with another specified Matrix4F object.
Public methodMatrix4F(Matrix3F, Vector3F)
Constructs a matrix with the given rotation and translation components.
Public methodMatrix4F(Matrix3F, Vector3F)
Constructs a matrix with the given rotation and translation components.
Public methodMatrix4F(Vector4F, Vector4F, Vector4F, Vector4F)
Constructs a matrix with the specified Vector4F elements, which are the corresponding rows of the matrix.
Public methodMatrix4F(Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single)
Constructs a matrix with the given individual elements.
Top
Properties
Methods
  NameDescription
Public methodStatic memberAdd
Adds two matricies.
Public methodStatic memberConstruct
Constructs a matrix with the given rotation and translation components and returns the resulting Matrix4F.
Public methodDecompose(Vector3F, Matrix3F, Vector3F)
Decomposes a matrix into a scale, rotation, and translation.
Public methodDecompose(Vector3F, QuaternionF, Vector3F)
Decomposes a matrix into a scale, rotation, and translation.
Public methodEquals(Object)
Determines whether the specified object is equal to the current instance of Matrix4F.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Matrix4F, Single)
Determines whether the specified matrix is equal to the current instance of Matrix4F with a given precision.
Public methodStatic memberFromTranslate(Vector3F)
Creates a translation matrix.
Public methodStatic memberFromTranslate(Vector3F, Matrix4F)
Creates a translation matrix.
Public methodGetHashCode
Returns a hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetInverse
Inverts the current instance of Matrix4F if it is invertible and returns the result.
Public methodGetInverse(Matrix4F)
Inverts the current instance of Matrix4F if it is invertible.
Public methodGetTrace
Gets the trace of the matrix, the sum of the values along the diagonal.
Public methodGetTranslation
Returns the translation of the current instance of Matrix4F.
Public methodGetTranslation(Vector3F)
Returns the translation of the current instance of Matrix4F.
Public methodGetTranspose
Returns the transpose of the current instance of Matrix4F.
Public methodGetTranspose(Matrix3x4F)
Calculates the transpose of the current instance of Matrix4F.
Public methodGetTranspose(Matrix4F)
Calculates the transpose of the current instance of Matrix4F.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInverse
Inverts the current instance of Matrix4F and determines whether the matrix is invertible. Determines whether the current instance of Matrix4F is invertible and, if so, inverts this matrix.
Public methodStatic memberLookAt(Vector3F, Vector3F, Vector3F)
Creates a look-at matrix.
Public methodStatic memberLookAt(Vector3F, Vector3F, Vector3F, Matrix4F)
Creates a look-at matrix.
Public methodStatic memberMultiply(Single, Matrix4F, Matrix4F)
Multiplies a matrix by a given value.
Public methodStatic memberMultiply(Matrix4F, Matrix4F, Matrix4F)
Multiplies two matrices.
Public methodStatic memberMultiply(Matrix4F, RayF, RayF)
Translates the ray coordinates to the space defined by a matrix.
Public methodStatic memberMultiply(Matrix4F, Vector3F, Vector3F)
Multiplies a matrix by a given Vector3F structure.
Public methodStatic memberMultiply(Matrix4F, Vector4F, Vector4F)
Multiplies a matrix by a given Vector4F structure.
Public methodStatic memberMultiply(Matrix4F, Single, Matrix4F)
Multiplies a matrix by a given value.
Public methodStatic memberMultiply(RayF, Matrix4F, RayF)
Translates the ray coordinates to the space defined by a matrix.
Public methodStatic memberMultiply(Vector3F, Matrix4F, Vector3F)
Multiplies a matrix by a given Vector3F structure.
Public methodStatic memberMultiply(Vector4F, Matrix4F, Vector4F)
Multiplies a matrix by a given Vector4F structure.
Public methodStatic memberNegate
Negates a matrix.
Public methodStatic memberParse
Converts a string representation of a matrix into the equivalent Matrix4F structure.
Public methodStatic memberPerspective(Single, Single, Single, Single)
Creates a perspective projection matrix.
Public methodStatic memberPerspective(Single, Single, Single, Single, Matrix4F)
Creates a perspective projection matrix.
Public methodSetTranslation(Vector3F)
Sets the translation of the current instance of Matrix4F.
Public methodSetTranslation(Vector3F)
Sets the translation of the current instance of Matrix4F.
Public methodStatic memberSubtract
Subtracts two matricies.
Public methodToMatrix3
Converts the current instance of Matrix4F into the equivalent Matrix3F structure.
Public methodToMatrix3(Matrix3F)
Converts the current instance of Matrix4F into the equivalent Matrix3F structure.
Public methodToMatrix4
Converts the current instance of Matrix4F to the matrix of Matrix4 format.
Public methodToMatrix4(Matrix4)
Converts the current instance of Matrix4F to the matrix of Matrix4 format.
Public methodToMatrix4H
Converts the current instance of Matrix4F to the matrix of Matrix4H format.
Public methodToString
Returns a String that represents the current instance of Matrix4F.
(Overrides ValueTypeToString.)
Public methodTranspose
Transposes the matrix.
Top
Operators
  NameDescription
Public operatorStatic memberAddition
Adds two matricies.
Public operatorStatic memberEquality
Determines whether two given matricies are equal.
Public operatorStatic member(Matrix4F to Matrix4)
Implicit conversion from Matrix4F type to Matrix4 type for given value.
Public operatorStatic memberInequality
Determines whether two given matricies are unequal.
Public operatorStatic memberMultiply(Single, Matrix4F)
Multiplies a matrix by a given value.
Public operatorStatic memberMultiply(Matrix4F, Matrix4F)
Multiplies two matrices.
Public operatorStatic memberMultiply(Matrix4F, RayF)
Translates the ray coordinates to the space defined by a matrix.
Public operatorStatic memberMultiply(Matrix4F, Vector3F)
Multiplies a matrix by a given Vector3F structure.
Public operatorStatic memberMultiply(Matrix4F, Vector4F)
Multiplies a matrix by a given Vector4F structure.
Public operatorStatic memberMultiply(Matrix4F, Single)
Multiplies a matrix by a given value.
Public operatorStatic memberMultiply(RayF, Matrix4F)
Translates the ray coordinates to the space defined by a matrix.
Public operatorStatic memberMultiply(Vector3F, Matrix4F)
Multiplies a matrix by a given Vector3F structure.
Public operatorStatic memberMultiply(Vector4F, Matrix4F)
Multiplies a matrix by a given Vector4F structure.
Public operatorStatic memberSubtraction
Subtracts two matricies.
Public operatorStatic memberUnaryNegation
Negates a matrix.
Top
Fields
  NameDescription
Public fieldStatic memberIdentity
The identity matrix.
Public fieldItem0
The first row of the matrix.
Public fieldItem1
The second row of the matrix.
Public fieldItem2
The third row of the matrix.
Public fieldItem3
The fourth row of the matrix.
Public fieldStatic memberZero
The matrix with all of its components set to zero.
Top
Extension Methods
See Also