- (defun inters->nil (p1 p2 p3 p4 / dum)
- (if (inters p1 p2 p3 p4)
- (setq
- dum p2
- p2 p4
- p4 dum
- )
- )
- (list p2 p4)
- )
- (setq
- p1 '(-50.0 -50.0 0.0)
- p2 '(50.0 50.0 0.0)
- p3 '(-50.0 50.0 0.0)
- p4 '(50.0 -50.0 0.0)
- )
- (setq p2p4 (inters->nil p1 p2 p3 p4))
- (mapcar 'set '(p2 p4) p2p4)
- (print (list p2 p4))
- (princ)
|