Method GetDistance
GetDistance(float, float, float, float)
Calculates distance between two points.
public static float GetDistance(float x1, float y1, float x2, float y2)
Parameters
x1floatX coordinate of the first point.
y1floatY coordinate of the first point.
x2floatX coordinate of the second point.
y2floatY coordinate of the second point.