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