A square diagonal 3d matrix.

Namespace:  ceometric.VectorGeometry
Assembly:  ceometric.VectorGeometry (in ceometric.VectorGeometry.dll) Version: 1.8.0.0 (1.8.0.0)

Syntax

C#
public static Matrix3d DiagonalMatrix3d(
	Vector3d diagonal
)
Visual Basic (Declaration)
Public Shared Function DiagonalMatrix3d ( _
	diagonal As Vector3d _
) As Matrix3d
Visual C++
public:
static Matrix3d^ DiagonalMatrix3d(
	Vector3d^ diagonal
)

Parameters

diagonal
Type: ceometric.VectorGeometry..::.Vector3d
A 3d vector containing the diagonal elements of the matrix.

Return Value

Returns a [3x3] matrix where all elements are zero but the diagonal elements, which are defined by the values of diagonal

See Also