前段时间在项目实践过程中遇到xmin,ymin,width,height 和 xmin,ymin,xmax,ymax相互转换的问题,请看https://blog.csdn.net/AugustMe/article/details/116643384
1 最近又遇到一个新问题
已知top, left, bottom, right 求 xmin,ymin,xmax,ymax
2 解决方案
xmin = left
ymin = top
xmax = right
ymax = bottom
其中(xmin , ymin )是这个矩形区域的左上角,(xmax , ymax )是这个矩形区域的右下角。只要这两个点确定了,这个矩形区域就被唯一确定下来。
参考
https://zhidao.baidu.com/question/40372241.html