<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Use the one from the book.&nbsp; These are all found in
    /pub/pounds/CSC315/raster2dalgorithms.<br>
    <br>
    You will find the MidpointLine and MidpointLineReal functions in
    Prog3.02.c and Prog3.07.c<br>
    <br>
    <br>
    On 09/20/12 16:45, wrote:
    <blockquote
cite="mid:CA765D0D95A04D449667AFA14377899C5560D747F9@MERCERMAIL.MercerU.local"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
      <div style="direction: ltr;font-family: Tahoma;color:
        #000000;font-size: 10pt;">Hi Dr. Pounds,<br>
        For Program&nbsp; 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:<br>
        <br>
        if (acccept)<br>
        &nbsp;&nbsp;&nbsp; MidpointLineReal(x0,y0,x1,y1,value); /* Version for float
        coordinates*/<br>
        &nbsp;<br>
        I would like to know what the MidpointLine() function is
        supposed to do? Is&nbsp; it used to draw the line segment like the
        way writePixel() function does but just uses floats as its
        parameters instead of integers?<br>
        <br>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Regards,<br>
        &nbsp; <br>
      </div>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Andrew J. Pounds, Ph.D.  (<a class="moz-txt-link-abbreviated" href="mailto:pounds@theochem.mercer.edu">pounds@theochem.mercer.edu</a>)
Associate Professor of Chemistry and Computer Science
Mercer University,  Macon, GA 31207   (478) 301-5627
</pre>
  </body>
</html>