Olá estou precisando desenhar arcos com o Java 2D.
Os parâmetros são os seguintes:
x - the x coordinate of the upper-left corner of the arc to be drawn.
y - the y coordinate of the upper-left corner of the arc to be drawn.
width - the width of the arc to be drawn.
height - the height of the arc to be drawn.
startAngle - the beginning angle.
arcAngle - the angular extent of the arc, relative to the start angle.
Acontece que eu preciso desenhar um arco que vai de [x,y] a [x1,y1]…
Alguém sabe como posso calcular os ângulos, a largura e a altura do arco de modo que eu consiga desenhar um arco entre esss dois pontos?
Agradeço desde já.
