My problem is simple. I have to draw a line, anchored at one vertex and drag the other 
vertex by tracking the position of the mouse. The vertex that moves has a terminating 
arrowhead. My question is, what is the correct way for doing the rotation knowing that 
the movable line vertex and the tip of the arrow head need to end up at the same 
location? Here's a simple drawing:

           X2 (draggable, w/ arrowhead)
          /
         /
        /
       /
      /
     X1 (fixed location)


I know how to calculate the angle for the rotation, but I can't figure out how to get 
the arrowhead's tip to end up at the X2 vertex.

Thanks for any help,

John  (using 1.3.1)

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to