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

Indicates whether or not line AB intersects line BC. (Integer version.)

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(
	int ax,
	int ay,
	int bx,
	int by,
	int cx,
	int cy,
	int dx,
	int dy
)
Public Shared Function LinesIntersect ( _
	ax As Integer, _
	ay As Integer, _
	bx As Integer, _
	by As Integer, _
	cx As Integer, _
	cy As Integer, _
	dx As Integer, _
	dy As Integer _
) As Boolean
public:
static bool LinesIntersect(
	int ax, 
	int ay, 
	int bx, 
	int by, 
	int cx, 
	int cy, 
	int dx, 
	int dy
)

Parameters

ax
Int32
The x-value for point A on line AB.
ay
Int32
The y-value for point A on line AB.
bx
Int32
The x-value for point B on line AB.
by
Int32
The y-value for point B on line AB.
cx
Int32
The x-value for point C on line CD.
cy
Int32
The y-value for point C on line CD.
dx
Int32
The x-value for point D on line CD.
dy
Int32
The y-value for point D on line CD.

Return Value

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

See Also