Declaration
func Vector2Distance(valueA Vector2, valueB Vector2) float
go
Parameters
Input
Return
| Type | Description |
|---|---|
| Float | After subtracting two vectors, the modulus of the resulting vector |
Calculate the Euclidean distance between two 2D vectors
func Vector2Distance(valueA Vector2, valueB Vector2) float
go
| Type | Description |
|---|---|
| Float | After subtracting two vectors, the modulus of the resulting vector |