home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.graphics
- Path: sparky!uunet!pmafire!news.dell.com!natinst.com!cs.utexas.edu!zaphod.mps.ohio-state.edu!usc!news.service.uci.edu!unogate!stgprao
- From: stgprao@st.unocal.COM (Richard Ottolini)
- Subject: Re: How many dots in a circle?
- Message-ID: <1992Dec23.161707.22424@unocal.com>
- Sender: news@unocal.com (Unocal USENET News)
- Organization: Unocal Corporation
- References: <1992Dec22.134450.15558@cactus.org> <1992Dec23.031735.13264@proto.com>
- Date: Wed, 23 Dec 1992 16:17:07 GMT
- Lines: 18
-
- In article <1992Dec23.031735.13264@proto.com> joe@proto.com (Joe Huffman) writes:
- >rdd@cactus.org (Robert Dorsett) writes:
- >
- >>Given: - a rectangular coordinate system, raster display.
- >> - A circle, of radius r, and a straightforward drawing algorithm,
- >> assuming averaging elimination of round-off errors.
- >The number of points in a single quadrant is 2 * radius. In the entire
- >circle it follows that it is 8 * radius. I forget the proof for this,
- >but I proved it (to my satisfaction anyway) several years ago when I was
- >trying to draw an arc that started and ended at something other than
- >at 90 degree increments.
-
- Counter example on a piece of graph paper for box edge = 15:
- radius = 7
- Bounding box is 56
- Inner diamond is 28
- A circle is 44
- Your algorithm is for the bounding box.
-