Declaration
func Vector2Normalize(value Vector2) Vector2
go
Parameters
Input
| Name | Type | Description |
|---|---|---|
| Value | Vector2 | 2D vector |
Return
| Type | Description |
|---|---|
| Vector2 | The normalized result is a vector with a length of 1 in the same direction. |
Normalize a 2D vector
func Vector2Normalize(value Vector2) Vector2
go
| Name | Type | Description |
|---|---|---|
| Value | Vector2 | 2D vector |
| Type | Description |
|---|---|
| Vector2 | The normalized result is a vector with a length of 1 in the same direction. |