Function: artist-vap-find-endpoints
artist-vap-find-endpoints is a byte-compiled function defined in
artist.el.gz.
Signature
(artist-vap-find-endpoints X Y)
Documentation
Given a point X1, Y1, return a list of endpoints of lines through X, Y.
An endpoint is a cons pair, (ENDPOINT-X . ENDPOINT-Y).
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/artist.el.gz
(defun artist-vap-find-endpoints (x y)
"Given a point X1, Y1, return a list of endpoints of lines through X, Y.
An endpoint is a cons pair, (ENDPOINT-X . ENDPOINT-Y)."
(if artist-line-char-set
nil
(let ((c (artist-get-char-at-xy-conv x y)))
(cond ((eq c ?-) (artist-vap-find-endpoints-horiz x y))
((eq c ?|) (artist-vap-find-endpoints-vert x y))
((eq c ?/) (artist-vap-find-endpoints-swne x y))
((eq c ?\\) (artist-vap-find-endpoints-nwse x y))
((eq c ?+) (append (artist-vap-find-endpoints-horiz x y)
(artist-vap-find-endpoints-vert x y)))
((eq c ?X) (append (artist-vap-find-endpoints-swne x y)
(artist-vap-find-endpoints-nwse x y)))
;; We don't know how to find directions when we are on
;; another character
(t nil)))))