geometry-challenged

Richard Gaskin ambassador at fourthworld.com
Sat Jan 24 16:26:05 EST 2004


It seems I'm geometry-challenged today -- I know this should be simple, but
I'm stumped:

I can draw a line object from the loc of one object to the loc of another.
But if I want to draw only in the space _between_ objects rather than
intersect them, how do I get the points for the location where a line object
would meet the edge of the other objects if drawn all the way to their
centers, as indicated by the "X"s below:


    -----------------
   |                 |
   |     button1     |
   |         \       |
    ----------X------
               \
                \ 
           ------X----------
          |       \         |
          |     button2     |
          |                 |
           -----------------


Hint:  the diagram above with drawn with a tool I'm working on to make ASCII
diagrams for email.  If we solve this I'll finish it next week and put it in
RevNet.

-- 
 Richard Gaskin 
 Fourth World Media Corporation
 ___________________________________________________________
 Ambassador at FourthWorld.com       http://www.FourthWorld.com



More information about the use-livecode mailing list