back to Table of Contents


LineIntersection (function)

Determines the intersection point of the line defined by points A and B with the line defined by points C and D. If the intersection point was found, then its position is stored in point I. If there is no determinable intersection point, then point I remains unchanged.


SYNTAX:

success% = LineIntersection% (Ax#, Ay#, Bx#, By#, Cx#, Cy#, Dx#, Dy#, Ix#, Iy#)

INPUTS:

Ax#, Ay# (DOUBLEs)

Bx#, By# (DOUBLEs)

Cx#, Cy# (DOUBLEs)

Dx#, Dy# (DOUBLEs)

Ix#, Iy# (DOUBLE variables)


RESULT:

success% (INTEGER)


back to Table of Contents