4

I've been working on building a simple 3d graphic engine and I'm trying to find a good integer based line rasterization algorithm. ( I'm not trying to re-invent the wheel, I'm trying to get a deeper understanding of wheels).

Are there any line rasterizing algorithms that don't rely on any floating point math?

Thanks.

Tim Gee
  • 1,062
  • 7
  • 9
Jason Hernandez
  • 2,907
  • 1
  • 19
  • 30

1 Answers1

8

Bresenham's line algorithm is integer only.

cletus
  • 616,129
  • 168
  • 910
  • 942