簡單DDA算法

原理 dydx=常數 或者 ΔyΔx=y2−y1x2−x1 web yi+1=yi+Δy yi+1=yi+y2−y1x2−x1Δx svg 代碼 void DDALine(int x0,int y0,int x1,int y1) { HWND myconsole = GetConsoleWindow(); HDC mydc = GetDC(myconsole); COLOR
相關文章
相關標籤/搜索