Table of Contents

Method GetDistance

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

GetDistance(float, float, float, float)

Calculates distance between two points.

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

Parameters

x1 float

X coordinate of the first point.

y1 float

Y coordinate of the first point.

x2 float

X coordinate of the second point.

y2 float

Y coordinate of the second point.

Returns

float

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