There are two objects drawn on the form (for example, a circle and a triangle) and it is necessary when the movement (movement occurs when you press the arrows on the keyboard) of the triangle on the circle, or vice versa, to make the triangle not cross the circle, but do not place it in the pictureBox (so that objects do not have a frame)?

  • one
    Maybe it will be useful - Dred
  • one
    you can find out whether the figures intersect or not, as indicated here - pasha goroshko

1 answer 1

It is necessary to calculate whether there is an intersection.

For example, for a segment (side of a triangle) to find whether there is an intersection with a circle (that is, points that satisfy the condition (x-cx)^2+(y-cy)^2=r^2 )