Declaration
func Vector2ToVector3(target Vector2) Vector3
go
Parameters
Input
Name | Type | Description |
---|---|---|
Target | Vector2 | Target 2D vector |
Return
Type | Description |
---|---|
Vector3 | The transformed three-dimensional vector |
Convert a 2D vector to a 3D vector, and set the Z component of the 3D vector to 0
func Vector2ToVector3(target Vector2) Vector3
go
Name | Type | Description |
---|---|---|
Target | Vector2 | Target 2D vector |
Type | Description |
---|---|
Vector3 | The transformed three-dimensional vector |