我有圆X,Y和绘制圆的半径,现在我想从圆x,y,圆的半径计算矩形坐标。我需要帮助。
提前致谢...
答案 0 :(得分:2)
topx = X - radius
topy = Y - radius
bottomx = X + radius
bottomy = Y + radius
答案 1 :(得分:1)
如你所说,X和Y是圆的中心坐标,那么: -
topx = X - radius
topy = Y - radius
bottomx = X + radius
bottomy = Y + radius