Click or drag to resize
Accord.NET (logo)

Matrix3x3CreateDiagonal Method

Creates a diagonal matrix using the specified vector as diagonal elements.

Namespace:  Accord.Math
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax
public static Matrix3x3 CreateDiagonal(
	Vector3 vector
)
Request Example View Source

Parameters

vector
Type: Accord.MathVector3
Vector to use for diagonal elements of the matrix.

Return Value

Type: Matrix3x3
Returns a diagonal matrix.
See Also