Project

General

Profile

$intersect » History » Version 2

Per Amundsen, 02/23/2023 01:55 PM

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 2 Per Amundsen
table(ktable).
10
|*Parameter*|*Description*|
11
| x1 | The first X coordinate. |
12
| y1 | The first y coordinate. |
13
| x2 | The second X coordinate. |
14
| y2 | The second y coordinate. |
15
| x3 | The third X coordinate. |
16
| y3 | The third y coordinate. |
17
| x4 | The fourth X coordinate. |
18
| y4 | The fourth y coordinate. |
19
| method | If not specified, two lines are compared. If specified, it can be lr, rl, rr = line/ray, ray/line, ray/ray. (optional) |