Finding Top Left and Bottom Right Points (C++)

后端 未结 2 431
难免孤独
难免孤独 2021-01-24 05:33

I\'m looking for some help with a project I\'m working on.

What I\'m doing is a polygon approximation algorithm. I\'ve got all of the points of my boundary, but in orde

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-24 06:04

    Top left: min(x+max(y)-y)

    Bottom right: min(max(x)-x+y)

    Where the inner max is a constant.

提交回复
热议问题