Distance(Vector2Int, Vector2Int)
Calculates the distance between two vectors.
읽는 시간 1분최근 업데이트: 한 달 전
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public static float Distance(Vector2Int a, Vector2Int b)
Parameters
Returns
Type | Description |
|---|---|
| float | The distance between |
Remarks
Vector2.Distance(a,b)(a-b).magnitude