Show / Hide Table of Contents

Method Math2.Distance(+ 1 overload)


Overload

Calculates distance between two points.

public static double Distance(POINT p1, POINT p2)
Parameters
p1  (POINT)
p2  (POINT)
Returns
double

Overload(top)

Calculates distance between rectangle and point.

public static double Distance(RECT r, POINT p)
Parameters
r  (RECT)
p  (POINT)
Returns
double

If the point is outside, returns the nearest distance, else 0.