Click or drag to resize

LineToolsLineIntersect2 Method

Check if the lines a0->a1 and b0->b1 cross. If they do, intersectionPoint will be filled with the point of crossing. Grazing lines should not return true.

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 bool LineIntersect2(
	ref Vector2 a0,
	ref Vector2 a1,
	ref Vector2 b0,
	ref Vector2 b1,
	out Vector2 intersectionPoint
)

Parameters

a0
Type: Internal.tainicom.Aether.Physics2D.CommonVector2
a1
Type: Internal.tainicom.Aether.Physics2D.CommonVector2
b0
Type: Internal.tainicom.Aether.Physics2D.CommonVector2
b1
Type: Internal.tainicom.Aether.Physics2D.CommonVector2
intersectionPoint
Type: Internal.tainicom.Aether.Physics2D.CommonVector2

Return Value

Type: Boolean
See Also