www.piclist.com/techref/method/math.htm?key=math

BY : Peter Todd email (remove spam text)

-----BEGIN PGP SIGNED MESSAGE-----

Hash: SHA1

On Mon, Jul 23, 2007 at 11:44:10AM +0100, Michael Rigby-Jones wrote:

> Point Google to "Bresenham line algorithm" and you should have more information than you could ever need. e.g.

>

> http://en.wikipedia.org/wiki/Bresenham's_line_algorithm

>

> This is a simple algorithm that avoids any multiplication or division, so runs quickly on small micros. Bresenham also developed a circle drawing algorithm that might be useful to to you.

I did up an implementation of that algorithm in my Orthographic Cube

project. You can download the C source code at:

http://www.petertodd.org/art/source-code/bin/io.pkt.art.orthographic-cube-20070620.tar.bz2

The line drawing code is in line.[ch] if I recall.

- --

http://petertodd.org

-----BEGIN PGP SIGNATURE-----

Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGpTX+3bMhDbI9xWQRAi2xAKCXY6KsKq3lP6Kph8DF1Rp50SK2qgCcDI57

1rRN45v0nqkZ5uW5otcPkQs=

=0LZN

-----END PGP SIGNATURE-----

In reply to: <BAC9B53D3316E9419514CB5DB2AF275D024796@pai-smx-01.BOOKHAM.ENTERPRISE.PRI>

See also: www.piclist.com/techref/method/math.htm?key=math