Java- Intersection point of a Polygon and Line

前端 未结 5 1292
轮回少年
轮回少年 2020-12-01 14:51

Is there any function that will give me the intersection point of a Polygon and Line2D ?

I have a Polygon and a line segment that I know

5条回答
  •  情书的邮戳
    2020-12-01 15:25

    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.

提交回复
热议问题