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
With great success, i used this approach:
Area a = new Area(shape1); Area b = new Area(shape2); b.intersect(a); if (!b.isEmpty()) { //Shapes have non-empty intersection, so do you actions. //In case of need, actual intersection is in Area b. (its destructive operation) }