GoDiagram Web Reference
GetNearestIntersectionPoint(RectangleF,PointF,PointF,PointF) Method

the point we are looking to be closest to, on the line formed with p2
forms a line with p1
the point of this object that is closest to p1 and that is on the infinite line from p1 to p2
Find the closest point of a rectangle to a given point that is on a line from that point.
Syntax
'Declaration
 
Public Overloads Shared Function GetNearestIntersectionPoint( _
   ByVal rect As RectangleF, _
   ByVal p1 As PointF, _
   ByVal p2 As PointF, _
   ByRef result As PointF _
) As Boolean
public static bool GetNearestIntersectionPoint( 
   RectangleF rect,
   PointF p1,
   PointF p2,
   out PointF result
)

Parameters

rect
p1
the point we are looking to be closest to, on the line formed with p2
p2
forms a line with p1
result
the point of this object that is closest to p1 and that is on the infinite line from p1 to p2

Return Value

true if the infinite line does intersect with this object; false otherwise
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

Reference

GoObject Class
GoObject Members
Overload List

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback