Click or drag to resize

LineToolsLineSegmentAABBIntersect Method

Get all intersections between a line segment and an AABB.

Namespace:  Internal.tainicom.Aether.Physics2D.Common
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
public static Vertices LineSegmentAABBIntersect(
	ref Vector2 point1,
	ref Vector2 point2,
	AABB aabb
)

Parameters

point1
Type: Internal.tainicom.Aether.Physics2D.CommonVector2
The first point of the line segment to test
point2
Type: Internal.tainicom.Aether.Physics2D.CommonVector2
The second point of the line segment to test.
aabb
Type: Internal.tainicom.Aether.Physics2D.CollisionAABB
The AABB that is used for testing intersection.

Return Value

Type: Vertices
See Also