|
LinesIntersect | |
HitState = LinesIntersect(aX1#, aY1#, aX2#, aY2#, bX1#, bY1#, bX2#, bY2#) | |
Parameters: aX1# = The X1 cord of line A aY1# = The Y1 cord of line A aX2# = The X2 cord of line A aY2# = The Y2 cord of line A bX1# = The X1 cord of line B bY1# = The Y1 cord of line B bX2# = The X2 cord of line B bY2# = The Y2 cord of line B |
|
Returns: HitState = If the lines intersect this function will return a true(1) if not it'll be false (zero) |
|
The LinesIntersect functions checks if two lines are intersecting each other. FACTS: * The intersection point can be read using the GetIntersectX#() /GetIntersectY#() functions. Mini Tutorial: This example draws a line (line A) between a fixed point and the current mouse pointer position. It then checks for an intersect between this line with another fixed line (line B). If the two lines intersect it displays a read circle at the intersection point.
|
Related Info: | CirclesIntersect | GetIntersectX# | GetIntersectY# | LineHitShape | LineIntersectCircle | LineIntersectRect | PointInBox | PointIntersectCircle | RayIntersectWorld : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |