Click or drag to resize
Accord.NET (logo)

Matrix4x4CreateDiagonal 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 Matrix4x4 CreateDiagonal(
	Vector4 vector
)
Request Example View Source

Parameters

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

Return Value

Type: Matrix4x4
Returns a diagonal matrix.
See Also