[CSC 315] Prog2 Help

Andrew J. Pounds pounds_aj at mercer.edu
Thu Sep 20 17:23:09 EDT 2012


Use the one from the book.  These are all found in 
/pub/pounds/CSC315/raster2dalgorithms.

You will find the MidpointLine and MidpointLineReal functions in 
Prog3.02.c and Prog3.07.c


On 09/20/12 16:45, wrote:
> Hi Dr. Pounds,
> For Program  2 could i use the Cohen-Sutherland line clipping 
> algorithm given in the book. Or should i make my own modified version 
> of this algorithm. Also the algorithm in the book has the 
> MidpointLineReal() function on the line:
>
> if (acccept)
>     MidpointLineReal(x0,y0,x1,y1,value); /* Version for float 
> coordinates*/
>
> I would like to know what the MidpointLine() function is supposed to 
> do? Is  it used to draw the line segment like the way writePixel() 
> function does but just uses floats as its parameters instead of integers?
>
>        Regards,
>

-- 
Andrew J. Pounds, Ph.D.  (pounds at theochem.mercer.edu)
Associate Professor of Chemistry and Computer Science
Mercer University,  Macon, GA 31207   (478) 301-5627

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://theochem.mercer.edu/pipermail/csc315/attachments/20120920/44c2038d/attachment.html>


More information about the csc315 mailing list