Click or drag to resize

MathAlgorithmsIntersectRectangleLine Method (Rectangle, Vector2, Vector2, Vector2, Vector2)

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

Parameters

rectangle
Type: NeoAxisRectangle
pt1
Type: NeoAxisVector2
pt2
Type: NeoAxisVector2
intersectPoint1
Type: NeoAxisVector2
intersectPoint2
Type: NeoAxisVector2

Return Value

Type: Int32
See Also