Digital differential analyzer (graphics algorithm): Revision history

Jump to navigation Jump to search

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

24 July 2024

  • curprev 01:3001:30, 24 July 2024 2601:600:c900:cb34:492b:41a0:682e:525a talk 4,558 bytes +4,558 Program: The DDA algorithm requires rounding the floating point x,y to the nearest integer. The sample code should not depend on the behavior of some specific graphics library's putpixel() (for example if it takes int parameters, float->int uses truncation and will produce the wrong answer)