Function: artist-set-arrow-points-for-poly
artist-set-arrow-points-for-poly is a byte-compiled function defined
in artist.el.gz.
Signature
(artist-set-arrow-points-for-poly POINT-LIST)
Documentation
Generic function for setting arrow-points for poly-shapes from POINT-LIST.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/artist.el.gz
(defun artist-set-arrow-points-for-poly (point-list)
"Generic function for setting arrow-points for poly-shapes from POINT-LIST."
(let* ((ep1 (elt point-list 0))
(ep2 (elt point-list 1))
(x1 (artist-endpoint-get-x ep1))
(y1 (artist-endpoint-get-y ep1))
(x2 (artist-endpoint-get-x ep2))
(y2 (artist-endpoint-get-y ep2))
(dir1 (artist-find-direction x2 y2 x1 y1))
(epn (car (last point-list)))
(epn-1 (car (last point-list 2)))
(xn (artist-endpoint-get-x epn))
(yn (artist-endpoint-get-y epn))
(xn-1 (artist-endpoint-get-x epn-1))
(yn-1 (artist-endpoint-get-y epn-1))
(dirn (artist-find-direction xn-1 yn-1 xn yn)))
(setq artist-arrow-point-1 (artist-make-arrow-point x1 y1 dir1))
(setq artist-arrow-point-2 (artist-make-arrow-point xn yn dirn))))