Geometric Functions

AutoCAD AutoLISP & Visual LISP

 
Geometric Functions
 
 
 

The following table provides summary descriptions of the AutoLISP geometric functions.

Geometric functions

Function

Description

(anglept1 pt2)

Returns an angle in radians of a line defined by two endpoints

(distancept1 pt2)

Returns the 3D distance between two points

(interspt1 pt2 pt3 pt4 [onseg])

Finds the intersection of two lines

(osnappt mode)

Returns a 3D point that is the result of applying an Object Snap mode to a specified point

(polarpt ang dist)

Returns the UCS 3D point at a specified angle and distance from a point

(textbox elist)

Measures a specified text object, and returns the diagonal coordinates of a box that encloses the text