[This is preliminary documentation and is subject to change.]

Indicates whether or not line AB intersects line BC.

Namespace: org.critterai.geom
Assembly: cai-util (in cai-util.dll) Version: 0.5.0.0 (0.5.0.0)

Syntax

         
 C#  Visual Basic  Visual C++ 
public static bool LinesIntersect(
	Vector2 a,
	Vector2 b,
	Vector2 c,
	Vector2 d
)
Public Shared Function LinesIntersect ( _
	a As Vector2, _
	b As Vector2, _
	c As Vector2, _
	d As Vector2 _
) As Boolean
public:
static bool LinesIntersect(
	Vector2 a, 
	Vector2 b, 
	Vector2 c, 
	Vector2 d
)

Parameters

a
Vector2
Point A on line AB.
b
Vector2
Point B on ling AB.
c
Vector2
Point C on line CD.
d
Vector2
Point D on line CD.

Return Value

True if the two lines are either collinear or intersect at one point.

See Also