0
我有用於繪製圓的圓X,Y和半徑,現在我想從這個圓x,y,半徑計算矩形座標這個圈子。我需要這方面的幫助。如何從圓形區域計算矩形topx,topy,bottomx,bottomy android
在此先感謝...
我有用於繪製圓的圓X,Y和半徑,現在我想從這個圓x,y,半徑計算矩形座標這個圈子。我需要這方面的幫助。如何從圓形區域計算矩形topx,topy,bottomx,bottomy android
在此先感謝...
topx = X - radius
topy = Y - radius
bottomx = X + radius
bottomy = Y + radius
至於你提到的X和Y圓心cordinates則: -
topx = X - radius
topy = Y - radius
bottomx = X + radius
bottomy = Y + radius
圈X,Y爲中心座標或? – Simas
是的,只有中心共犯 – RajeshVijayakumar