home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.graphics
- Path: sparky!uunet!news.smith.edu!orourke
- From: orourke@sophia.smith.edu (Joseph O'Rourke)
- Subject: Re: How many dots in a circle?
- Message-ID: <1992Dec23.172722.9713@sophia.smith.edu>
- Organization: Smith College, Northampton, MA, US
- References: <1992Dec23.031735.13264@proto.com> <1992Dec23.161707.22424@unocal.com> <1992Dec23.170712.9468@sophia.smith.edu>
- Date: Wed, 23 Dec 1992 17:27:22 GMT
- Lines: 13
-
- In article <1992Dec23.170712.9468@sophia.smith.edu> orourke@sophia.smith.edu (Joseph O'Rourke) writes:
- >The total number of pixels n is therefore
- >
- > n = 8 Floor[ (Sqrt[2]/2) r ] + 4
- >
- >Example: r=17, n = 100.
-
- I am in error here: my calculation double-counts the four pixels on the
- x- and y-axes. So the formula should be
-
- n = 8 Floor[ (Sqrt[2]/2) r ]
-
- Example: r = 17, n = 96.
-