Click or drag to resize

PointFDistance Method (PointF, PointF)

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(
	PointF point1,
	PointF point2
)

Parameters

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

Return Value

Type: Single
The distance between the two points
See Also