Returns the distance between the two points

Namespace:  C1.Silverlight
Assembly:  C1.Silverlight (in C1.Silverlight.dll)

Syntax

C#
public static double Distance(
	this Point p1,
	Point p2
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function Distance ( _
	p1 As Point, _
	p2 As Point _
) As Double

Parameters

p1
Type: System.Windows..::..Point
One point.
p2
Type: System.Windows..::..Point
Another point.

Return Value

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Point. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also