Point: Intersection (deterministic)
point_intersectionComputes the intersection of two AutoCAD LINE or CIRCLE entities, returning coordinates and flags for whether the point lies on each drawn segment; ref_x/ref_y picks between candidates.
Instructions
Compute the intersection of two geometry entities (LINE-LINE, LINE-CIRCLE, CIRCLE-CIRCLE). When two candidates exist, ref_x/ref_y selects the nearest.
Returns {x, y, on_first, on_second, on_both, candidates}. A LINE is
intersected as the infinite line through it, so the point can lie beyond
a drawn end: on_first / on_second say whether it lies on each drawn
segment (a CIRCLE always holds its own intersection points) and on_both
whether on both - check it before using the point as a corner.
candidates is how many intersections existed. Refused, with the case
named: parallel or coincident lines, a line that misses the circle,
concentric circles, circles that do not meet, any other entity pair.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref_x | No | Reference X to pick nearest candidate when multiple exist | |
| ref_y | No | Reference Y | |
| handle1 | Yes | First entity handle (LINE or CIRCLE) | |
| handle2 | Yes | Second entity handle (LINE or CIRCLE) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||