Mat

Description

static class Tinman.Core.Math.Vectors.Mat

Helper class for conversions between matrix structs.

Public / Methods

To2D

6 overloads


[Pure]
public static method To2D1 → (4)

values in : float64 [ ]

[not-null]
An array that holds the matrix values.

offset opt : int32 = 0

Offset into values in to top-left matrix element.

strideRow opt : int32 = 2

Array index distance between matrix rows.

strideCol opt : int32 = 1

Array index distance between matrix columns.

returns → Mat2D

The Mat2D value.

Creates a new Mat2D from the given values.

The method uses the following indexing scheme to read values from values in:

matrix[row, col] := values[offset + (row - 1) * strideRow + (col - 1) * strideCol;

where row and col depict the matrix row and column number (starting at 1).


[Pure]
public static method To2D2 → (1)

in : Mat2F

The input matrix.

returns → Mat2D

The resulting matrix.

Converts the given matrix to a 2x2 matrix.


[Pure]
public static method To2D3 → (1)

in : Mat3D

The input matrix.

returns → Mat2D

The resulting matrix.

Converts the given matrix to a 2x2 matrix.


[Pure]
public static method To2D4 → (1)

in : Mat3F

The input matrix.

returns → Mat2D

The resulting matrix.

Converts the given matrix to a 2x2 matrix.


[Pure]
public static method To2D5 → (1)

in : Mat4D

The input matrix.

returns → Mat2D

The resulting matrix.

Converts the given matrix to a 2x2 matrix.


[Pure]
public static method To2D6 → (1)

in : Mat4F

The input matrix.

returns → Mat2D

The resulting matrix.

Converts the given matrix to a 2x2 matrix.

To2F

6 overloads


[Pure]
public static method To2F1 → (4)

values in : float32 [ ]

[not-null]
An array that holds the matrix values.

offset opt : int32 = 0

Offset into values in to top-left matrix element.

strideRow opt : int32 = 2

Array index distance between matrix rows.

strideCol opt : int32 = 1

Array index distance between matrix columns.

returns → Mat2F

The Mat2F value.

Creates a new Mat2F from the given values.

The method uses the following indexing scheme to read values from values in:

matrix[row, col] := values[offset + (row - 1) * strideRow + (col - 1) * strideCol;

where row and col depict the matrix row and column number (starting at 1).


[Pure]
public static method To2F2 → (1)

in : Mat2D

The input matrix.

returns → Mat2F

The resulting matrix.

Converts the given matrix to a 2x2 matrix.


[Pure]
public static method To2F3 → (1)

in : Mat3D

The input matrix.

returns → Mat2F

The resulting matrix.

Converts the given matrix to a 2x2 matrix.


[Pure]
public static method To2F4 → (1)

in : Mat3F

The input matrix.

returns → Mat2F

The resulting matrix.

Converts the given matrix to a 2x2 matrix.


[Pure]
public static method To2F5 → (1)

in : Mat4D

The input matrix.

returns → Mat2F

The resulting matrix.

Converts the given matrix to a 2x2 matrix.


[Pure]
public static method To2F6 → (1)

in : Mat4F

The input matrix.

returns → Mat2F

The resulting matrix.

Converts the given matrix to a 2x2 matrix.

To3D

6 overloads


[Pure]
public static method To3D1 → (4)

values in : float64 [ ]

[not-null]
An array that holds the matrix values.

offset opt : int32 = 0

Offset into values in to top-left matrix element.

strideRow opt : int32 = 3

Array index distance between matrix rows.

strideCol opt : int32 = 1

Array index distance between matrix columns.

returns → Mat3D

The Mat3D value.

Creates a new Mat3D from the given values.

The method uses the following indexing scheme to read values from values in:

matrix[row, col] := values[offset + (row - 1) * strideRow + (col - 1) * strideCol;

where row and col depict the matrix row and column number (starting at 1).


[Pure]
public static method To3D2 → (1)

in : Mat3F

The input matrix.

returns → Mat3D

The resulting matrix.

Converts the given matrix to a 3x3 matrix.


[Pure]
public static method To3D3 → (1)

in : Mat2D

The input matrix.

returns → Mat3D

The resulting matrix.

Converts the given matrix to a 3x3 matrix.


[Pure]
public static method To3D4 → (1)

in : Mat2F

The input matrix.

returns → Mat3D

The resulting matrix.

Converts the given matrix to a 3x3 matrix.


[Pure]
public static method To3D5 → (1)

in : Mat4D

The input matrix.

returns → Mat3D

The resulting matrix.

Converts the given matrix to a 3x3 matrix.


[Pure]
public static method To3D6 → (1)

in : Mat4F

The input matrix.

returns → Mat3D

The resulting matrix.

Converts the given matrix to a 3x3 matrix.

To3F

6 overloads


[Pure]
public static method To3F1 → (4)

values in : float32 [ ]

[not-null]
An array that holds the matrix values.

offset opt : int32 = 0

Offset into values in to top-left matrix element.

strideRow opt : int32 = 3

Array index distance between matrix rows.

strideCol opt : int32 = 1

Array index distance between matrix columns.

returns → Mat3F

The Mat3F value.

Creates a new Mat3F from the given values.

The method uses the following indexing scheme to read values from values in:

matrix[row, col] := values[offset + (row - 1) * strideRow + (col - 1) * strideCol;

where row and col depict the matrix row and column number (starting at 1).


[Pure]
public static method To3F2 → (1)

in : Mat3D

The input matrix.

returns → Mat3F

The resulting matrix.

Converts the given matrix to a 3x3 matrix.


[Pure]
public static method To3F3 → (1)

in : Mat2D

The input matrix.

returns → Mat3F

The resulting matrix.

Converts the given matrix to a 3x3 matrix.


[Pure]
public static method To3F4 → (1)

in : Mat2F

The input matrix.

returns → Mat3F

The resulting matrix.

Converts the given matrix to a 3x3 matrix.


[Pure]
public static method To3F5 → (1)

in : Mat4D

The input matrix.

returns → Mat3F

The resulting matrix.

Converts the given matrix to a 3x3 matrix.


[Pure]
public static method To3F6 → (1)

in : Mat4F

The input matrix.

returns → Mat3F

The resulting matrix.

Converts the given matrix to a 3x3 matrix.

To4D

6 overloads


[Pure]
public static method To4D1 → (4)

values in : float64 [ ]

[not-null]
An array that holds the matrix values.

offset opt : int32 = 0

Offset into values in to top-left matrix element.

strideRow opt : int32 = 4

Array index distance between matrix rows.

strideCol opt : int32 = 1

Array index distance between matrix columns.

returns → Mat4D

The Mat4D value.

Creates a new Mat4D from the given values.

The method uses the following indexing scheme to read values from values in:

matrix[row, col] := values[offset + (row - 1) * strideRow + (col - 1) * strideCol;

where row and col depict the matrix row and column number (starting at 1).


[Pure]
public static method To4D2 → (1)

in : Mat4F

The input matrix.

returns → Mat4D

The resulting matrix.

Converts the given matrix to a 4x4 matrix.


[Pure]
public static method To4D3 → (1)

in : Mat2D

The input matrix.

returns → Mat4D

The resulting matrix.

Converts the given matrix to a 4x4 matrix.


[Pure]
public static method To4D4 → (1)

in : Mat2F

The input matrix.

returns → Mat4D

The resulting matrix.

Converts the given matrix to a 4x4 matrix.


[Pure]
public static method To4D5 → (1)

in : Mat3D

The input matrix.

returns → Mat4D

The resulting matrix.

Converts the given matrix to a 4x4 matrix.


[Pure]
public static method To4D6 → (1)

in : Mat3F

The input matrix.

returns → Mat4D

The resulting matrix.

Converts the given matrix to a 4x4 matrix.

To4F

6 overloads


[Pure]
public static method To4F1 → (4)

values in : float32 [ ]

[not-null]
An array that holds the matrix values.

offset opt : int32 = 0

Offset into values in to top-left matrix element.

strideRow opt : int32 = 4

Array index distance between matrix rows.

strideCol opt : int32 = 1

Array index distance between matrix columns.

returns → Mat4F

The Mat4F value.

Creates a new Mat4F from the given values.

The method uses the following indexing scheme to read values from values in:

matrix[row, col] := values[offset + (row - 1) * strideRow + (col - 1) * strideCol;

where row and col depict the matrix row and column number (starting at 1).


[Pure]
public static method To4F2 → (1)

in : Mat4D

The input matrix.

returns → Mat4F

The resulting matrix.

Converts the given matrix to a 4x4 matrix.


[Pure]
public static method To4F3 → (1)

in : Mat2D

The input matrix.

returns → Mat4F

The resulting matrix.

Converts the given matrix to a 4x4 matrix.


[Pure]
public static method To4F4 → (1)

in : Mat2F

The input matrix.

returns → Mat4F

The resulting matrix.

Converts the given matrix to a 4x4 matrix.


[Pure]
public static method To4F5 → (1)

in : Mat3D

The input matrix.

returns → Mat4F

The resulting matrix.

Converts the given matrix to a 4x4 matrix.


[Pure]
public static method To4F6 → (1)

in : Mat3F

The input matrix.

returns → Mat4F

The resulting matrix.

Converts the given matrix to a 4x4 matrix.

Configuration

Config2


public static attribute Config2 → (get)

value : IConfigurator<Mat2D>

[not-null]
The configurator object.

The configurator object for Mat2D values.

Config3


public static attribute Config3 → (get)

value : IConfigurator<Mat3D>

[not-null]
The configurator object.

The configurator object for Mat3D values.

Config4


public static attribute Config4 → (get)

value : IConfigurator<Mat4D>

[not-null]
The configurator object.

The configurator object for Mat4D values.