Table of Contents

Class Matrix3DExtensions

Namespace
HelixToolkit.Wpf
Assembly
HelixToolkit.Wpf.dll

Provides extension methods for Matrix3D.

public static class Matrix3DExtensions
Inheritance
Matrix3DExtensions
Inherited Members

Remarks

Note that the Matrix3D contains row vectors.

Methods

Inverse(Matrix3D)

Returns the inverted matrix.

public static Matrix3D Inverse(this Matrix3D m)

Parameters

m Matrix3D

The matrix to invert.

Returns

Matrix3D

The inverted Matrix3D.

ToArray(Matrix3D)

Convert the Matrix3D to a two-dimensional Array.

public static double[,] ToArray(this Matrix3D matrix)

Parameters

matrix Matrix3D

The matrix.

Returns

double[,]

Two-dimensional array, the indexing is Array[row,column]

ToString(Matrix3D, int)

Convert the matrix to a string using invariant culture and '\t' and '\n' as separators.

public static string ToString(this Matrix3D matrix, int columnWidth)

Parameters

matrix Matrix3D

The matrix.

columnWidth int

The column Width.

Returns

string

The to string.

ToString(Matrix3D, string, int)

Convert the matrix to a string

public static string ToString(this Matrix3D matrix, string format, int columnWidth)

Parameters

matrix Matrix3D

The matrix.

format string

The format.

columnWidth int

The column Width.

Returns

string

The to string.

ToString(Matrix3D, string, string, string, int, CultureInfo)

Convert the matrix to a string

public static string ToString(this Matrix3D matrix, string format, string columnSeparator, string lineSeparator, int columnWidth, CultureInfo provider)

Parameters

matrix Matrix3D

The matrix.

format string

The format.

columnSeparator string

The column Separator.

lineSeparator string

The line Separator.

columnWidth int

The column Width.

provider CultureInfo

The provider.

Returns

string

A string.