Click or drag to resize

Matrix2F Structure

A structure encapsulating a single precision 2x2 matrix.

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

The Matrix2F type exposes the following members.

Constructors
  NameDescription
Public methodMatrix2F(Matrix2F)
Constructs a matrix with another specified Matrix2F object.
Public methodMatrix2F(Vector2F, Vector2F)
Constructs a matrix with the specified Vector2F elements, which are the corresponding rows of the matrix.
Public methodMatrix2F(Single, Single, Single, Single)
Constructs a matrix with the given individual elements.
Top
Properties
Methods
  NameDescription
Public methodStatic memberAdd
Adds two matricies.
Public methodEquals(Object)
Determines whether the specified object is equal to the current instance of Matrix2F.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Matrix2F, Single)
Determines whether the specified matrix is equal to the current instance of Matrix2F with a given precision.
Public methodEquals(Matrix2F, Single)
Determines whether the specified matrix is equal to the current instance of Matrix2F with a given precision.
Public methodStatic memberFromRotate(RadianF)
Creates a rotation matrix.
Public methodStatic memberFromRotate(RadianF, Matrix2F)
Creates a rotation matrix.
Public methodStatic memberFromScale(Vector2F)
Creates a scale matrix with the specified Vector2F object.
Public methodStatic memberFromScale(Vector2F, Matrix2F)
Creates a scale matrix with the specified Vector2F object.
Public methodGetHashCode
Returns a hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetInverse
Inverts the current instance of Matrix2F if it is invertible and returns the result.
Public methodGetInverse(Matrix2F)
Inverts the current instance of Matrix2F if it is invertible.
Public methodGetTrace
Gets the trace of the matrix, the sum of the values along the diagonal.
Public methodGetTranspose
Returns the transpose of the current instance of Matrix2F.
Public methodGetTranspose(Matrix2F)
Calculates the transpose of the current instance of Matrix2F.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInverse
Inverts the current instance of Matrix2F and determines whether the matrix is invertible. Determines whether the current instance of Matrix2F is invertible and, if so, inverts this matrix.
Public methodStatic memberMultiply(Single, Matrix2F, Matrix2F)
Multiplies a matrix by a given value.
Public methodStatic memberMultiply(Matrix2F, Matrix2F, Matrix2F)
Multiplies two matrices.
Public methodStatic memberMultiply(Matrix2F, Vector2F, Vector2F)
Multiplies a matrix by a given Vector2F structure.
Public methodStatic memberMultiply(Matrix2F, Single, Matrix2F)
Multiplies a matrix by a given value.
Public methodStatic memberMultiply(Vector2F, Matrix2F, Vector2F)
Multiplies a matrix by a given Vector2F structure.
Public methodStatic memberNegate
Negates a matrix.
Public methodStatic memberParse
Converts a string representation of a matrix into the equivalent Matrix2F structure.
Public methodStatic memberSubtract
Subtracts two matricies.
Public methodToMatrix2
Converts the current instance of Matrix2F into the equivalent Matrix2 structure.
Public methodToMatrix2(Matrix2)
Converts the current instance of Matrix2F into the equivalent Matrix2 structure.
Public methodToMatrix3F
Converts the current instance of Matrix2F into the equivalent Matrix3F structure.
Public methodToMatrix3F(Matrix3F)
Converts the current instance of Matrix2F into the equivalent Matrix3F structure.
Public methodToString
Returns a String that represents the current instance of Matrix2F.
(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(Matrix2F to Matrix2)
Implicit conversion from Matrix2F type to Matrix2 type for given value.
Public operatorStatic memberInequality
Determines whether two given matricies are unequal.
Public operatorStatic memberMultiply(Single, Matrix2F)
Multiplies a matrix by a given value.
Public operatorStatic memberMultiply(Matrix2F, Matrix2F)
Multiplies two matrices.
Public operatorStatic memberMultiply(Matrix2F, Vector2F)
Multiplies a matrix by a given Vector2F structure.
Public operatorStatic memberMultiply(Matrix2F, Single)
Multiplies a matrix by a given value.
Public operatorStatic memberMultiply(Vector2F, Matrix2F)
Multiplies a matrix by a given Vector2F 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 fieldStatic memberZero
The matrix with all of its components set to zero.
Top
Extension Methods
See Also