Click or drag to resize

MathAlgorithmsIntersectRectangleLine Method (RectangleF, Vector2F, Vector2F, Vector2F, Vector2F)

Namespace:  NeoAxis
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public static int IntersectRectangleLine(
	RectangleF rectangle,
	Vector2F pt1,
	Vector2F pt2,
	out Vector2F intersectPoint1,
	out Vector2F intersectPoint2
)

Parameters

rectangle
Type: NeoAxisRectangleF
pt1
Type: NeoAxisVector2F
pt2
Type: NeoAxisVector2F
intersectPoint1
Type: NeoAxisVector2F
intersectPoint2
Type: NeoAxisVector2F

Return Value

Type: Int32
See Also