TerrainVectort2 extension
A set of functions to calculate the 2D distance between two vectors.
The other alternatives are distanceTo (Euclidean) and distanceToSquared (Euclidean squared).
- on
-
- Vector2
Methods
-
distanceToChebyshev(
Vector2 b) → double -
Available on Vector2, provided by the TerrainVectort2 extension
-
distanceToManhattan(
Vector2 b) → double -
Available on Vector2, provided by the TerrainVectort2 extension
-
distanceToQuadratic(
Vector2 b) → double -
Available on Vector2, provided by the TerrainVectort2 extension