DistanceMetrics

public final class DistanceMetrics

Methods

chebyshevDistance

public static int chebyshevDistance(int x1, int y1, int x2, int y2)

The core distance metric used by wargus for attacks and such

euclideanDistance

public static double euclideanDistance(int x1, int y1, int x2, int y2)