Android 如何从圆形区域计算矩形topx,topy,bottomx,bottomy
我有圆X,Y和半径来画一个圆,现在我想从这个圆X,Y计算矩形坐标,圆的半径。我需要这方面的帮助Android 如何从圆形区域计算矩形topx,topy,bottomx,bottomy,android,android-canvas,android-custom-view,Android,Android Canvas,Android Custom View,我有圆X,Y和半径来画一个圆,现在我想从这个圆X,Y计算矩形坐标,圆的半径。我需要这方面的帮助 提前感谢…正如您提到的,X和Y是圆的中心坐标,那么:- topx = X - radius topy = Y - radius bottomx = X + radius bottomy = Y + radius topx = X - radius topy = Y - radius bottomx = X + radius bottomy = Y + radius 正如你提到的,X和Y是圆的中心
提前感谢…正如您提到的,X和Y是圆的中心坐标,那么:-
topx = X - radius
topy = Y - radius
bottomx = X + radius
bottomy = Y + radius
topx = X - radius
topy = Y - radius
bottomx = X + radius
bottomy = Y + radius
正如你提到的,X和Y是圆的中心坐标,那么:-
topx = X - radius
topy = Y - radius
bottomx = X + radius
bottomy = Y + radius
正如你提到的,X和Y是圆的中心坐标,那么:-
topx = X - radius
topy = Y - radius
bottomx = X + radius
bottomy = Y + radius
正如你提到的,X和Y是圆的中心坐标,那么:-
topx = X - radius
topy = Y - radius
bottomx = X + radius
bottomy = Y + radius
圆心坐标中的圆X,Y或?是,圆心坐标中的圆X,Y或?是,圆心坐标中的圆X,Y或?是,圆心坐标中的圆X,Y或?是,圆心坐标中的圆X,Y或?是,仅圆心坐标中的圆Y