Function Entry: INTERS

← Prev | ↑ Chapter | Next → | Index | Symbols

Function Entry: INTERS

Name

inters

Class

Geometric Function

Syntax

(inters pt1 pt2 pt3 pt4 [onseg])

Arguments and Values

  • pt1, pt2, pt3, pt4: points defining two lines
  • onseg: optional segment-only flag

Description

Returns the intersection point of two lines or segments.

Return Values

Point list or nil.

Side Effects

None.

Exceptional Situations

Autodesk explicitly uses inters as an example in error-handling documentation to show that more than one valid error may be reported depending on evaluation/checking order.

Compatibility

This function is useful as a test vehicle for argument evaluation and error-reporting semantics.

Availability

  • AutoCAD 2026: documented (per Autodesk reference page).
  • BricsCAD V26: presumed compatible (no contradicting page found).
  • Status: AutoCAD documented; BricsCAD presumed-both pending Phase 4 verification.