Table of Contents

Method GetDistance

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

GetDistance(double, double, double, double)

Calculates distance between two points.

public static double GetDistance(double x1, double y1, double x2, double y2)

Parameters

x1 double

X coordinate of the first point.

y1 double

Y coordinate of the first point.

x2 double

X coordinate of the second point.

y2 double

Y coordinate of the second point.

Returns

double

double value with distance between point (x1, y1) and point (x2, y2).