Version

FindLineCircleCollisions Method

Finds the collisions of a line with a circle
Syntax
'Declaration
 
Public Shared Function FindLineCircleCollisions( _
   ByVal cx As Double, _
   ByVal cy As Double, _
   ByVal radius As Double, _
   ByVal point1 As Point, _
   ByVal point2 As Point, _
   ByRef intersection1 As Point, _
   ByRef intersection2 As Point _
) As Integer
public static int FindLineCircleCollisions( 
   double cx,
   double cy,
   double radius,
   Point point1,
   Point point2,
   out Point intersection1,
   out Point intersection2
)

Parameters

cx
Circle x
cy
Circle y
radius
Circle radius
point1
First point of line
point2
Second point of line
intersection1
First intersection
intersection2
Second intersection
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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