阅读背景:

在Java中以特定角度绘制一条线

来源:互联网 

Let's say I have an (x,y) that is always the same for the start point of a line and an (x,y) that changes for the end point of that same line. The line is also always 40px long. At the start of the program the line originates in a vertical orientation (lets call it 0 degrees). Based on a user input I need the line to be redrawn a specific number of degrees from its origin by changing only the end (x,y).Let's say I have an (x,y) that is always the sa




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: