Is it just I who think the JavaAPI
support for trigonometry stuff is a bit lame? I often find it hard to do simple stuff with it. Like finding out where two lines meet. Or where any two shapes meet for that matter. This happens to be what I am trying to figure out right now:
- Suppose you have a RoundedRectangle2D? and a Line2D such that the line starts somewhere inside the rounded rectangle and stops somewhere outside it.
- How can I determine the coordinates where the line crosses the rounded rectangle?
He who asked shall have answers it seems. =)
Wow, thank you. I think I will have use for both of the functions. Wonderful approach to the problem Nano
! To answer Tango
's question above; Yes, the rounded nature of the rectangle matters. A lot. -- PEZ