Click or drag to resize

MathHelperFindLineCircleIntersections Method

Calculates the intersection points of a line and a circle.

Namespace:  DXFReaderNET
Assembly:  DXFReaderNET (in DXFReaderNET.dll) Version: 20.10.54
Syntax
public static int FindLineCircleIntersections(
	Line line,
	Circle circle,
	out Vector2 intersection1,
	out Vector2 intersection2
)

Parameters

line
Type: DXFReaderNET.EntitiesLine
The line.
circle
Type: DXFReaderNET.EntitiesCircle
The circle.
intersection1
Type: DXFReaderNETVector2
First intersection point.
intersection2
Type: DXFReaderNETVector2
Second intersection point.

Return Value

Type: Int32
0 if there are no intersection, 1 if there are only one intersection, 2 if there are two intersections.
See Also