Anark Core SDK
Loading...
Searching...
No Matches
Anark.CoreSdkApi.Math.SdkMatrix4X4 Class Reference

More...

Inheritance diagram for Anark.CoreSdkApi.Math.SdkMatrix4X4:
Anark.CoreSdkApi.Math.ISdkMatrix4X4

Public Member Functions

 SdkMatrix4X4 ()
 Create an identity matrix.
 SdkMatrix4X4 (params double[] values)
 Create a matrix from an array.
 SdkMatrix4X4 (double translationX, double translationY, double translationZ)
 Create a matrix with x, y, and z translation values.
ISdkMatrix4X4 AddTranslation (double translationX, double translationY, double translationZ)
 Adds a translation to the current transform matrix and returns the result as a new matrix.
Parameters
translationXX translation
translationYY translation
translationZZ translation
Returns
A new matrix with the sum of the existing translation and new translation.

double[] ToDoubles ()
 Convert matrix to an array of doubles.
Returns
An array of type double containing all 16 values, row-wise, of the matrix.

Properties

double M11 [get]
 Gets the row 1, column 1 value.
double M12 [get]
 Gets the row 1, column 2 value.
double M13 [get]
 Gets the row 1, column 3 value.
double M14 [get]
 Gets the row 1, column 4 value.
double M21 [get]
 Gets the row 2, column 1 value.
double M22 [get]
 Gets the row 2, column 2 value.
double M23 [get]
 Gets the row 2, column 3 value.
double M24 [get]
 Gets the row 2, column 4 value.
double M31 [get]
 Gets the row 3, column 1 value.
double M32 [get]
 Gets the row 3, column 2 value.
double M33 [get]
 Gets the row 3, column 3 value.
double M34 [get]
 Gets the row 3, column 4 value.
double M41 [get]
 Gets the row 4, column 1 value.
double M42 [get]
 Gets the row 4, column 2 value.
double M43 [get]
 Gets the row 4, column 3 value.
double M44 [get]
 Gets the row 4, column 4 value.

Detailed Description

Constructor & Destructor Documentation

◆ SdkMatrix4X4() [1/3]

Anark.CoreSdkApi.Math.SdkMatrix4X4.SdkMatrix4X4 ( )
inline

Create an identity matrix.

◆ SdkMatrix4X4() [2/3]

Anark.CoreSdkApi.Math.SdkMatrix4X4.SdkMatrix4X4 ( params double[] values)
inline

Create a matrix from an array.

Parameters
valuesAn array of doubles, in this order: M11, M12, M13, M14, M21, M22, M23, M24, M31, M32, M33, M34, M41, M42, M43, M44

◆ SdkMatrix4X4() [3/3]

Anark.CoreSdkApi.Math.SdkMatrix4X4.SdkMatrix4X4 ( double translationX,
double translationY,
double translationZ )
inline

Create a matrix with x, y, and z translation values.

Parameters
translationXX translation
translationYY translation
translationZZ translation

Member Function Documentation

◆ AddTranslation()

ISdkMatrix4X4 Anark.CoreSdkApi.Math.SdkMatrix4X4.AddTranslation ( double translationX,
double translationY,
double translationZ )
inline

Adds a translation to the current transform matrix and returns the result as a new matrix.

Parameters
translationXX translation
translationYY translation
translationZZ translation
Returns
A new matrix with the sum of the existing translation and new translation.

Implements Anark.CoreSdkApi.Math.ISdkMatrix4X4.

◆ ToDoubles()

double[] Anark.CoreSdkApi.Math.SdkMatrix4X4.ToDoubles ( )
inline

Convert matrix to an array of doubles.

Returns
An array of type double containing all 16 values, row-wise, of the matrix.

Implements Anark.CoreSdkApi.Math.ISdkMatrix4X4.

Property Documentation

◆ M11

double Anark.CoreSdkApi.Math.SdkMatrix4X4.M11
get

Gets the row 1, column 1 value.

Implements Anark.CoreSdkApi.Math.ISdkMatrix4X4.

◆ M12

double Anark.CoreSdkApi.Math.SdkMatrix4X4.M12
get

Gets the row 1, column 2 value.

Implements Anark.CoreSdkApi.Math.ISdkMatrix4X4.

◆ M13

double Anark.CoreSdkApi.Math.SdkMatrix4X4.M13
get

Gets the row 1, column 3 value.

Implements Anark.CoreSdkApi.Math.ISdkMatrix4X4.

◆ M14

double Anark.CoreSdkApi.Math.SdkMatrix4X4.M14
get

Gets the row 1, column 4 value.

Implements Anark.CoreSdkApi.Math.ISdkMatrix4X4.

◆ M21

double Anark.CoreSdkApi.Math.SdkMatrix4X4.M21
get

Gets the row 2, column 1 value.

Implements Anark.CoreSdkApi.Math.ISdkMatrix4X4.

◆ M22

double Anark.CoreSdkApi.Math.SdkMatrix4X4.M22
get

Gets the row 2, column 2 value.

Implements Anark.CoreSdkApi.Math.ISdkMatrix4X4.

◆ M23

double Anark.CoreSdkApi.Math.SdkMatrix4X4.M23
get

Gets the row 2, column 3 value.

Implements Anark.CoreSdkApi.Math.ISdkMatrix4X4.

◆ M24

double Anark.CoreSdkApi.Math.SdkMatrix4X4.M24
get

Gets the row 2, column 4 value.

Implements Anark.CoreSdkApi.Math.ISdkMatrix4X4.

◆ M31

double Anark.CoreSdkApi.Math.SdkMatrix4X4.M31
get

Gets the row 3, column 1 value.

Implements Anark.CoreSdkApi.Math.ISdkMatrix4X4.

◆ M32

double Anark.CoreSdkApi.Math.SdkMatrix4X4.M32
get

Gets the row 3, column 2 value.

Implements Anark.CoreSdkApi.Math.ISdkMatrix4X4.

◆ M33

double Anark.CoreSdkApi.Math.SdkMatrix4X4.M33
get

Gets the row 3, column 3 value.

Implements Anark.CoreSdkApi.Math.ISdkMatrix4X4.

◆ M34

double Anark.CoreSdkApi.Math.SdkMatrix4X4.M34
get

Gets the row 3, column 4 value.

Implements Anark.CoreSdkApi.Math.ISdkMatrix4X4.

◆ M41

double Anark.CoreSdkApi.Math.SdkMatrix4X4.M41
get

Gets the row 4, column 1 value.

Implements Anark.CoreSdkApi.Math.ISdkMatrix4X4.

◆ M42

double Anark.CoreSdkApi.Math.SdkMatrix4X4.M42
get

Gets the row 4, column 2 value.

Implements Anark.CoreSdkApi.Math.ISdkMatrix4X4.

◆ M43

double Anark.CoreSdkApi.Math.SdkMatrix4X4.M43
get

Gets the row 4, column 3 value.

Implements Anark.CoreSdkApi.Math.ISdkMatrix4X4.

◆ M44

double Anark.CoreSdkApi.Math.SdkMatrix4X4.M44
get

Gets the row 4, column 4 value.

Implements Anark.CoreSdkApi.Math.ISdkMatrix4X4.