piclist 2007\07\23\192218a >
Thread: Mathematics - line drawing
www.piclist.com/techref/method/math.htm?key=math
picon face 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-----
<20070723231303.GA9498@inept> 7bit

In reply to: <BAC9B53D3316E9419514CB5DB2AF275D024796@pai-smx-01.BOOKHAM.ENTERPRISE.PRI>
See also: www.piclist.com/techref/method/math.htm?key=math
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) Mathematics - line drawing

month overview.

new search...