ComponentOne FinancialChart for WPF
C1.WPF Namespace / Extensions Class / Distance Method
One point.
Another point.



In This Topic
    Distance Method (Extensions)
    In This Topic
    Returns the distance between the two points
    Syntax
    'Declaration
     
    
    <ExtensionAttribute()>
    Public Shared Function Distance( _
       ByVal p1 As Point, _
       ByVal p2 As Point _
    ) As Double
    'Usage
     
    
    Dim p1 As Point
    Dim p2 As Point
    Dim value As Double
     
    value = Extensions.Distance(p1, p2)
    [Extension()]
    public static double Distance( 
       Point p1,
       Point p2
    )
    [Extension()]
    public:
    static double Distance( 
       Point p1,
       Point p2
    ) 

    Parameters

    p1
    One point.
    p2
    Another point.
    See Also