Matrix Structure |
Namespace: SampSharp.Entities.SAMP
public struct Matrix : IEquatable<Matrix>
The Matrix type exposes the following members.
| Name | Description | |
|---|---|---|
| Matrix(Vector4, Vector4, Vector4, Vector4) |
Initializes a new instance of the Matrix struct.
| |
| Matrix(Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single) |
Initializes a new instance of the Matrix struct.
|
| Name | Description | |
|---|---|---|
| Backward |
Gets the backward vector formed from the second row -M21, -M22, -M23 elements.
| |
| Down |
Gets the down vector formed from the third row -M31, -M32, -M33 elements.
| |
| Forward |
Gets the forward vector formed from the second row M21, M22, M23 elements.
| |
| Identity |
Returns the identity matrix.
| |
| ItemInt32 |
Gets the value at the specified index.
| |
| ItemInt32, Int32 |
Gets the value at the specified column and row.
| |
| Left |
The left vector formed from the first row -M11, -M12, -M13 elements.
| |
| M11 |
Gets the first row and first column value.
| |
| M12 |
Gets the first row and second column value.
| |
| M13 |
Gets the first row and third column value.
| |
| M14 |
Gets the first row and fourth column value.
| |
| M21 |
Gets the second row and first column value.
| |
| M22 |
Gets the second row and second column value.
| |
| M23 |
Gets the second row and third column value.
| |
| M24 |
Gets the second row and fourth column value.
| |
| M31 |
Gets the third row and first column value.
| |
| M32 |
Gets the third row and second column value.
| |
| M33 |
Gets the third row and third column value.
| |
| M34 |
Gets the third row and fourth column value.
| |
| M41 |
Gets the fourth row and first column value.
| |
| M42 |
Gets the fourth row and second column value.
| |
| M43 |
Gets the fourth row and third column value.
| |
| M44 |
Gets the fourth row and fourth column value.
| |
| Right |
Gets the right vector formed from the first row M11, M12, M13 elements.
| |
| Rotation |
Gets the rotation stored in this matrix.
| |
| Scale |
Gets the scale stored in this matrix.
| |
| Translation |
Gets the position stored in this matrix.
| |
| Up |
Gets the upper vector formed from the third row M31, M32, M33 elements.
|
| Name | Description | |
|---|---|---|
| CreateFromAxisAngle |
Creates a new Matrix which contains the rotation moment around specified axis.
| |
| CreateFromQuaternion |
Creates a new rotation Matrix from a Quaternion.
| |
| CreateFromYawPitchRoll |
Creates a new rotation Matrix from the specified yaw, pitch and roll values.
| |
| CreateLookAt |
Creates a new viewing Matrix.
| |
| CreateRotationX |
Creates a new rotation Matrix around X axis.
| |
| CreateRotationY |
Creates a new rotation Matrix around Y axis.
| |
| CreateRotationZ |
Creates a new rotation Matrix around Z axis.
| |
| CreateTranslation |
Creates a new translation Matrix.
| |
| Determinant |
Returns a determinant of this Matrix.
| |
| Equals(Object) |
Compares whether current instance is equal to specified Object without any tolerance.
(Overrides ValueTypeEquals(Object).) | |
| Equals(Matrix) |
Compares whether current instance is equal to specified Matrix without any tolerance.
| |
| GetHashCode |
Returns a hash code for this instance.
(Overrides ValueTypeGetHashCode.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| Invert |
Creates a new Matrix which contains inversion of the specified matrix.
| |
| Lerp |
Creates a new Matrix that contains linear interpolation of the values in specified matrices.
| |
| ToString |
Returns a String that represents this instance.
(Overrides ValueTypeToString.) | |
| Transpose |
Swap the matrix rows and columns.
|
| Name | Description | |
|---|---|---|
| Addition |
Adds two matrices.
| |
| Division(Matrix, Matrix) |
Divides the elements of a Matrix by the elements of another Matrix.
| |
| Division(Matrix, Single) |
Divides the elements of a Matrix by a scalar.
| |
| Equality |
Compares whether two Matrix instances are equal without any tolerance.
| |
| Inequality |
Compares whether two Matrix instances are not equal without any tolerance.
| |
| Multiply(Matrix, Matrix) |
Multiplies two matrices.
| |
| Multiply(Matrix, Single) |
Multiplies the elements of matrix by a scalar.
| |
| Subtraction |
Subtracts the values of one Matrix from another Matrix.
| |
| UnaryNegation |
Inverts values in the specified Matrix.
|