已知X1 = 320 , Y1 = 0
X2 = 200 ,Y2 = 50
窗體總大小:X = 640 , y=260
求:延長至窗體大小承受范圍的xy坐標
![圖片說明](https://www.aspphp.online/bianchen/UploadFiles_4619/201701/2017010614024488.png)
1、根據兩點算出直線方程,Y=KX+B
2、循環根據X值【X大於多少,小於多少】,算出Y,就是坐標了