Click or drag to resize

Matrix2 Structure

A structure encapsulating a double 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 Matrix2

The Matrix2 type exposes the following members.

Constructors
  NameDescription
Public methodMatrix2(Matrix2)
Constructs a matrix with another specified Matrix2 object.
Public methodMatrix2(Matrix2F)
Constructs a matrix with another specified Matrix2F object.
Public methodMatrix2(Vector2, Vector2)
Constructs a matrix with the specified Vector2 elements, which are the corresponding rows of the matrix.
Public methodMatrix2(Double, Double, Double, Double)
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 Matrix2.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Matrix2, Double)
Determines whether the specified matrix is equal to the current instance of Matrix2 with a given precision.
Public methodEquals(Matrix2, Double)
Determines whether the specified matrix is equal to the current instance of Matrix2 with a given precision.
Public methodStatic memberFromRotate(Radian)
Creates a rotation matrix.
Public methodStatic memberFromRotate(Radian, Matrix2)
Creates a rotation matrix.
Public methodStatic memberFromScale(Vector2)
Creates a scale matrix with the specified Vector2 object.
Public methodStatic memberFromScale(Vector2, Matrix2)
Creates a scale matrix with the specified Vector2 object.
Public methodGetHashCode
Returns a hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetInverse
Inverts the current instance of Matrix2 if it is invertible and returns the result.
Public methodGetInverse(Matrix2)
Inverts the current instance of Matrix2 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 Matrix2.
Public methodGetTranspose(Matrix2)
Calculates the transpose of the current instance of Matrix2.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInverse
Inverts the current instance of Matrix2 and determines whether the matrix is invertible. Determines whether the current instance of Matrix2 is invertible and, if so, inverts this matrix.
Public methodStatic memberMultiply(Double, Matrix2, Matrix2)
Multiplies a matrix by a given value.
Public methodStatic memberMultiply(Matrix2, Matrix2, Matrix2)
Multiplies two matrices.
Public methodStatic memberMultiply(Matrix2, Vector2, Vector2)
Multiplies a matrix by a given Vector2 structure.
Public methodStatic memberMultiply(Matrix2, Double, Matrix2)
Multiplies a matrix by a given value.
Public methodStatic memberMultiply(Vector2, Matrix2, Vector2)
Multiplies a matrix by a given Vector2 structure.
Public methodStatic memberNegate
Negates a matrix.
Public methodStatic memberParse
Converts a string representation of a matrix into the equivalent Matrix2 structure.
Public methodStatic memberSubtract
Subtracts two matricies.
Public methodToMatrix2F
Converts the current instance of Matrix2 into the equivalent Matrix2F structure.
Public methodToMatrix2F(Matrix2F)
Converts the current instance of Matrix2 into the equivalent Matrix2F structure.
Public methodToMatrix3
Converts the current instance of Matrix2 into the equivalent Matrix3 structure.
Public methodToMatrix3(Matrix3)
Converts the current instance of Matrix2 into the equivalent Matrix3 structure.
Public methodToString
Returns a String that represents the current instance of Matrix2.
(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 memberInequality
Determines whether two given matricies are unequal.
Public operatorStatic memberMultiply(Double, Matrix2)
Multiplies a matrix by a given value.
Public operatorStatic memberMultiply(Matrix2, Matrix2)
Multiplies two matrices.
Public operatorStatic memberMultiply(Matrix2, Vector2)
Multiplies a matrix by a given Vector2 structure.
Public operatorStatic memberMultiply(Matrix2, Double)
Multiplies a matrix by a given value.
Public operatorStatic memberMultiply(Vector2, Matrix2)
Multiplies a matrix by a given Vector2 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