Class Matrix
A four by four, float based matrix providing methods for spatial transformations in three dimensions. The matrix data is arranged in column-major order.
Inheritance
System.Object
Matrix
Namespace: wikitude.sdk.uwp
Assembly: wikitude.sdk.dll
Syntax
public sealed class Matrix
Constructors
Matrix()
Constructs an identity matrix.
Declaration
public Matrix()
Matrix(Matrix4x4)
Declaration
public Matrix(Matrix4x4 matrix_)
Parameters
Type | Name | Description |
---|---|---|
System.Numerics.Matrix4x4 | matrix_ |
Matrix(Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single, Single)
Initializes the matrix using 16 distinct float values
Declaration
public Matrix(float m00, float m01, float m02, float m03, float m04, float m05, float m06, float m07, float m08, float m09, float m10, float m11, float m12, float m13, float m14, float m15)
Parameters
Type | Name | Description |
---|---|---|
System.Single | m00 | |
System.Single | m01 | |
System.Single | m02 | |
System.Single | m03 | |
System.Single | m04 | |
System.Single | m05 | |
System.Single | m06 | |
System.Single | m07 | |
System.Single | m08 | |
System.Single | m09 | |
System.Single | m10 | |
System.Single | m11 | |
System.Single | m12 | |
System.Single | m13 | |
System.Single | m14 | |
System.Single | m15 |
Methods
get()
Returns a WinRT representation of the matrix data.
Declaration
public Matrix4x4 get()
Returns
Type | Description |
---|---|
System.Numerics.Matrix4x4 |
multiply(Matrix)
Performs multiplication using this matrix and another. The state of this matrix is unchanged. Returns a copy of the result.
Declaration
public Matrix multiply(Matrix rhs)
Parameters
Type | Name | Description |
---|---|---|
Matrix | rhs | A reference to the other operand. |
Returns
Type | Description |
---|---|
Matrix | The product of the two matrices. |
scale(Single, Single, Single)
Scales the matrix using the scale values. Returns a reference to itself.
Declaration
public Matrix scale(float sx, float sy, float sz)
Parameters
Type | Name | Description |
---|---|---|
System.Single | sx | The scale value used for the X axis. |
System.Single | sy | The scale value used for the Y axis. |
System.Single | sz | The scale value used for the Z axis. |
Returns
Type | Description |
---|---|
Matrix | The reference to *this. |