Plotting a Line
Plotting a Line. Discussion 11.5 Rev B 3/30/2006. plot(x,y,color). Example of the need for a stack. int orig_x, orig_y, endp_x, endp_y, midp_x, midp_y; if (orig_x > endp_x) then exchange orig and endp; push endp; push endp while (stack is not empty) // compute midp
181 views • 10 slides