|
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
)
Public Shared Function CreateDiagonal (
vector As Vector4
) As Matrix4x4
Request Example
View SourceParameters
- vector
- Type: Accord.MathVector4
Vector to use for diagonal elements of the matrix.
Return Value
Type:
Matrix4x4Returns a diagonal matrix.
See Also