Is there any function that will give me the intersection point of a Polygon and Line2D ?
Polygon
Line2D
I have a Polygon and a line segment that I know
There is java.awt.geom.Area.intersect(Area) using the constructor Area(Shape) with your Polygon and passing your Line2D as an Area to intersect will give you the Area which is intersected.
java.awt.geom.Area.intersect(Area)
Area(Shape)