: This program provides various geometric utility functions in AutoLISP.
Functions Defined (click button for dispatching to AutoCAD)
(c:demo)
:
(point-in-polygon x y point_list)
: This checks if a given point, (x y) is inside a polygon defined
by point_list, ((x1 y1) (x2 y2) ....) .
If the point is outside, it returns 1.
If the point is inside, it returns -1.
If the point is on a side of the polygon, returns 0.