Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!asuvax!stjhmc!f14.n15.z1.fidonet.org!Dave.Harris From: Dave.Harris@f14.n15.z1.fidonet.org (Dave Harris) Newsgroups: comp.lang.c Subject: Re: Help w/Plotting a circle... Message-ID: <14466.2860B4F0@stjhmc.fidonet.org> Date: 20 Jun 91 13:57:20 GMT Sender: ufgate@stjhmc.fidonet.org (newsout1.26) Organization: FidoNet node 1:15/14 - Nibbles 'n Bits, Orem UT Lines: 27 >From: joe@proto.com (Joe Huffman) >Dave.Harris@f14.n15.z1.fidonet.org (Dave Harris) writes: >Now if you need some real speed, use the Brezenheim circle alogithm. It >reduces the problem such that you do not need to call the sqrt() function. >The real problem with everything I have seen so far is plotting just an >arc. >Like from 10 degrees to 25 degrees. The start and end points are a pain >without trig functions (which are slow). Nothing good comes to mind immediately. It does look like you at least need to calculate the end points, then you should be able to use the standard circle function covered with condition statements. If you need to plot many arcs then you can store the trig values in tables. The tables can get big though if you a granularity of .01 or more. -- Uucp: ...{gatech,ames,rutgers}!ncar!asuvax!stjhmc!15!14!Dave.Harris Internet: Dave.Harris@f14.n15.z1.fidonet.org