Click or drag to resize

PointDistance Method (Point, Point)

Gets the distance between two points using pythagoras theorem

Namespace:  Eto.Drawing
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public static float Distance(
	Point point1,
	Point point2
)

Parameters

point1
Type: Eto.DrawingPoint
First point to calculate the distance from
point2
Type: Eto.DrawingPoint
Second point to calculate the distance to

Return Value

Type: Single
The distance between the two points
See Also