Click or drag to resize

Vector3ToDiagonalMatrix Method

Returns a diagonal matrix with the vector as main diagonal. This is equivalent to a Basis with no rotation or shearing and this vector's components set as the scale.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public Basis ToDiagonalMatrix()

Return Value

Type: Basis
A Basis with the vector as its main diagonal.
See Also