Nevron Open Vision Documentation
Nevron.Nov.Graphics Namespace / NRange2D Structure / FromTwoPoints Method / FromTwoPoints(Double,Double,Double,Double) Method
X coordinate of the first point.
Y coordinate of the first point.
X coordinate of the second point.
Y coordinate of the second point.


In This Topic
    FromTwoPoints(Double,Double,Double,Double) Method
    In This Topic
    Creates a normalized 2D range from two points.
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function FromTwoPoints( _
       ByVal x1 As System.Double, _
       ByVal y1 As System.Double, _
       ByVal x2 As System.Double, _
       ByVal y2 As System.Double _
    ) As NRange2D
    'Usage
     
    
    Dim x1 As System.Double
    Dim y1 As System.Double
    Dim x2 As System.Double
    Dim y2 As System.Double
    Dim value As NRange2D
     
    value = NRange2D.FromTwoPoints(x1, y1, x2, y2)
    public static NRange2D FromTwoPoints( 
       System.double x1,
       System.double y1,
       System.double x2,
       System.double y2
    )

    Parameters

    x1
    X coordinate of the first point.
    y1
    Y coordinate of the first point.
    x2
    X coordinate of the second point.
    y2
    Y coordinate of the second point.

    Return Value

    Returns a normalized 2D range structure.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also