Intersection of Line and Polygon and the Area of Polygon
It seems that the intersct() of Line2D will only return a boolean value. I'm looking for some sample code to calculate the intersection of a line and a polygon (or 2 lines) and return the point. In addition, I need to calculate the area of a regular polygon. I guess the the source files of Line2D.intersect() and Graphics2D.fill() will help a lot. I'll look into those files later in the afternoon. But I hope I can get some suggestions from you. Thank you in advance.