ComponentOne Basic Library for WPF and Silverlight
Distance Method (Extensions)


C1.Silverlight Namespace > Extensions Class : Distance Method
One point.
Another point.
Returns the distance between the two points
Syntax
'Declaration
 
<System.Runtime.CompilerServices.ExtensionAttribute()>
Public Shared Function Distance( _
   ByVal p1 As System.Windows.Point, _
   ByVal p2 As System.Windows.Point _
) As System.Double
'Usage
 
Dim p1 As System.Windows.Point
Dim p2 As System.Windows.Point
Dim value As System.Double
 
value = Extensions.Distance(p1, p2)
[System.Runtime.CompilerServices.Extension()]
public static System.double Distance( 
   System.Windows.Point p1,
   System.Windows.Point p2
)

Parameters

p1
One point.
p2
Another point.
See Also

Reference

Extensions Class
Extensions Members