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
)
Public Shared Function FindLineCircleIntersections (
line As Line,
circle As Circle,
<OutAttribute> ByRef intersection1 As Vector2,
<OutAttribute> ByRef intersection2 As Vector2
) As Integer
public:
static int FindLineCircleIntersections(
Line^ line,
Circle^ circle,
[OutAttribute] Vector2% intersection1,
[OutAttribute] Vector2% intersection2
)
static member FindLineCircleIntersections :
line : Line *
circle : Circle *
intersection1 : Vector2 byref *
intersection2 : Vector2 byref -> int
STATIC METHOD FindLineCircleIntersections(
line AS Line,
circle AS Circle,
intersection1 OUT Vector2,
intersection2 OUT Vector2
) AS LONG
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:
Int320 if there are no intersection, 1 if there are only one intersection, 2 if there are two intersections.
See Also