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