Click or drag to resize

Matrix Structure

Represents the right-handed 4x4 floating point matrix, which can store translation, scale and rotation information.

Namespace:  SampSharp.GameMode
Assembly:  SampSharp.GameMode (in SampSharp.GameMode.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax
C#
public struct Matrix : IEquatable<Matrix>

The Matrix type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyBackward
Gets the backward vector formed from the second row -M21, -M22, -M23 elements.
Public propertyDown
Gets the down vector formed from the third row -M31, -M32, -M33 elements.
Public propertyForward
Gets the forward vector formed from the second row M21, M22, M23 elements.
Public propertyStatic memberIdentity
Returns the identity matrix.
Public propertyItemInt32
Gets the value at the specified index.
Public propertyItemInt32, Int32
Gets the value at the specified column and row.
Public propertyLeft
The left vector formed from the first row -M11, -M12, -M13 elements.
Public propertyM11
Gets the first row and first column value.
Public propertyM12
Gets the first row and second column value.
Public propertyM13
Gets the first row and third column value.
Public propertyM14
Gets the first row and fourth column value.
Public propertyM21
Gets the second row and first column value.
Public propertyM22
Gets the second row and second column value.
Public propertyM23
Gets the second row and third column value.
Public propertyM24
Gets the second row and fourth column value.
Public propertyM31
Gets the third row and first column value.
Public propertyM32
Gets the third row and second column value.
Public propertyM33
Gets the third row and third column value.
Public propertyM34
Gets the third row and fourth column value.
Public propertyM41
Gets the fourth row and first column value.
Public propertyM42
Gets the fourth row and second column value.
Public propertyM43
Gets the fourth row and third column value.
Public propertyM44
Gets the fourth row and fourth column value.
Public propertyRight
Gets the right vector formed from the first row M11, M12, M13 elements.
Public propertyRotation
Gets the rotation stored in this matrix.
Public propertyScale
Gets the scale stored in this matrix.
Public propertyTranslation
Gets the position stored in this matrix.
Public propertyUp
Gets the upper vector formed from the third row M31, M32, M33 elements.
Top
Methods
  NameDescription
Public methodStatic memberCreateFromAxisAngle
Creates a new Matrix which contains the rotation moment around specified axis.
Public methodStatic memberCreateFromQuaternion
Creates a new rotation Matrix from a Quaternion.
Public methodStatic memberCreateFromYawPitchRoll
Creates a new rotation Matrix from the specified yaw, pitch and roll values.
Public methodStatic memberCreateLookAt
Creates a new viewing Matrix.
Public methodStatic memberCreateRotationX
Creates a new rotation Matrix around X axis.
Public methodStatic memberCreateRotationY
Creates a new rotation Matrix around Y axis.
Public methodStatic memberCreateRotationZ
Creates a new rotation Matrix around Z axis.
Public methodStatic memberCreateTranslation
Creates a new translation Matrix.
Public methodDeterminant
Returns a determinant of this Matrix.
Public methodEquals(Object)
Compares whether current instance is equal to specified Object without any tolerance.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Matrix)
Compares whether current instance is equal to specified Matrix without any tolerance.
Public methodGetHashCode
Returns a hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberInvert
Creates a new Matrix which contains inversion of the specified matrix.
Public methodStatic memberLerp
Creates a new Matrix that contains linear interpolation of the values in specified matrixes.
Public methodToString
Returns a String that represents this instance.
(Overrides ValueTypeToString.)
Public methodStatic memberTranspose
Swap the matrix rows and columns.
Top
Operators
  NameDescription
Public operatorStatic memberAddition
Adds two matrixes.
Public operatorStatic memberDivision(Matrix, Matrix)
Divides the elements of a Matrix by the elements of another Matrix.
Public operatorStatic memberDivision(Matrix, Single)
Divides the elements of a Matrix by a scalar.
Public operatorStatic memberEquality
Compares whether two Matrix instances are equal without any tolerance.
Public operatorStatic memberInequality
Compares whether two Matrix instances are not equal without any tolerance.
Public operatorStatic memberMultiply(Matrix, Matrix)
Multiplies two matrixes.
Public operatorStatic memberMultiply(Matrix, Single)
Multiplies the elements of matrix by a scalar.
Public operatorStatic memberSubtraction
Subtracts the values of one Matrix from another Matrix.
Public operatorStatic memberUnaryNegation
Inverts values in the specified Matrix.
Top
See Also