求一矩形算法
如图所示:给出一个矩形的左上点的y坐标和矩形的高,在坐标系中生产矩形,坐标系的X轴最大值是定值
| ____
|| |
|| | _____
||____|| |
| ____ | | _______
|| ||_____||_______|
|| | ______________
||____||______________|
| ____________________
||____________________|
|______________________
------解决方案--------------------
Java code
| ____
|| |
|| | _____
||____|| |
| ____ | | _______
|| ||_____||_______|
|| | ______________
||____||______________|
| ____________________
||____________________|
|______________________