I am drawing an arc within a square or a polygon with the maximum possible radius inside.
When the arc is drawn within the boundary of the square or polygon,
the arc length will intersect at few points on the square or polygon.

How to find the coordinates of the intersecting points of arc at the periphery of the square/ polygon?