Project

General

Profile

$intersect » History » Version 1

Per Amundsen, 12/29/2018 02:21 AM

1 1 Per Amundsen
_Added in 3.3_
2
3
*$intersect(x1,y1,x2,y2,x3,y3,x4,y4,method)*
4
5
Returns the point at which two lines/rays intersect.
6
7
*Parameters*
8
9
x1 - The first X coordinate.
10
y1 - The first y coordinate.
11
x2 - The second X coordinate.
12
y2 - The second y coordinate.
13
x3 - The third X coordinate.
14
y3 - The third y coordinate.
15
x4 - The fourth X coordinate.
16
y4 - The fourth y coordinate.
17
method - If not specified, two lines are compared. If specified, it can be lr, rl, rr = line/ray, ray/line, ray/ray. (optional)