Check if a point is in a rotated rectangle (C#)

前端 未结 7 1462
囚心锁ツ
囚心锁ツ 2021-01-07 22:20

I have a program in C# (Windows Forms) which draws some rectangles on a picturebox. They can be drawn at an angle too (rotated).

I know each of the rectangles\' star

7条回答
  •  隐瞒了意图╮
    2021-01-07 22:49

    Would the rectangles be allowed to overlap? If so, would you want all the rectangles in a point, or just the one in the top layer?

提交回复
热议问题