[JAVA2D] Finding intersection points
I have two queries. The first is, I want to be able to draw lines
connecting circles, but I can't seem to find the point of intersection
between the lines and circles. I want to have the lines begin at the
point of intersection of the circle, that is, not have any trace of the
line inside the circle. I have tried using intersecting areas, but I
don't think this idea works with lines and shapes. I also tried using
composite rules (DstOver, SrcOut) but the lines don't appear when drawn.
Right now the lines are being drawn from the center of the circles,
which poses my next query. This one is a bit complicated.
I have tried and tried to see how to do this, but to no avail. As I
said, I currently have lines drawn from one center of a circle to
another. The desired outcome is to be able to have two lines drawn from
one circle to another, with a given offset from the line connecting the
centers. Well I have tried to use geometric equations to find out how to
calculate the points of the other lines, but the constraint of having it
worked for any sloped line is giving me troubles.
Thanks in advance,
To unsubscribe, send email to firstname.lastname@example.org and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
email@example.com and include in the body of the message "help".