Nevron .NET Vision
Nevron.Diagram Namespace / NModel Class / GetNearestContourLocation Method
start vector point (in scene coordinates)
end vector point (in scene coordinates)


In This Topic
    GetNearestContourLocation Method (NModel)
    In This Topic
    Gets the nearest intersection point of the model contour with the vector defined by the specified start and end points
    Syntax
    'Declaration
     
    
    Public Overridable Function GetNearestContourLocation( _
       ByVal vectorStart As NPointF, _
       ByVal vectorEnd As NPointF _
    ) As NPointF
    'Usage
     
    
    Dim instance As NModel
    Dim vectorStart As NPointF
    Dim vectorEnd As NPointF
    Dim value As NPointF
     
    value = instance.GetNearestContourLocation(vectorStart, vectorEnd)
    public virtual NPointF GetNearestContourLocation( 
       NPointF vectorStart,
       NPointF vectorEnd
    )

    Parameters

    vectorStart
    start vector point (in scene coordinates)
    vectorEnd
    end vector point (in scene coordinates)

    Return Value

    vector start point if there are not intersection points, otherwise nearest intersection point to vector end point
    Remarks
    This implementation returns the result of the GetNearestRotatedBoundsLocation method, since by default the model contour is its rotated bounds
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also