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
)
Public Shared Function Distance (
point1 As PointF,
point2 As PointF
) As Single
static member Distance :
point1 : PointF *
point2 : PointF -> float32
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:
SingleThe distance between the two points
See Also