home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / next / programm / 8077 < prev    next >
Encoding:
Text File  |  1993-01-11  |  884 b   |  26 lines

  1. Newsgroups: comp.sys.next.programmer
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!swrinde!emory!wa4mei!nanovx!drefla!matt
  3. From: matt@drefla.mese.com (Matt Brandt)
  4. Subject: Arcs and circles from curveto
  5. Message-ID: <1993Jan11.014246.4735@drefla.mese.com>
  6. Sender: matt@drefla.mese.com
  7. Organization: Applied Engineering
  8. Date: Mon, 11 Jan 1993 01:42:46 GMT
  9. Lines: 15
  10.  
  11. I've been able to come up with a pretty good approximation of a circle
  12. using curveto that works like this:
  13.  
  14.     x y rad 0 180 arc
  15.  
  16. is approximately equivalent to:
  17.  
  18.     x-rad y x-rad y+2*rad/3 x+rad y+2*rad/3 x+rad y curveto
  19.  
  20. of course, you can repeat for the bottom of the circle. Like I said though,
  21. this is only an approximation. Does anybody out there have a better  
  22. approximation of circle drawing using curveto? I need to do it this way for  
  23. bizarre reasons and I would like to improve the accuracy a little bit.
  24.  
  25. matt
  26.