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

Namespace:  AForge.Math
Assembly:  AForge.Math (in AForge.Math.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public static Matrix4x4 CreateDiagonal(
	Vector4 vector
)

Parameters

vector
Type: AForge.Math..::.Vector4
Vector to use for diagonal elements of the matrix.

Return Value

Returns a diagonal matrix.

See Also