Resources:


Functions defining primitives often need a lot of computation to determine the next pixel. However we can use the forward difference of the function at to save operations.

Examples

Implicit line function

Given . Instead of finding the next value by calculating (which requires two multiplications and two additions), we can use the functions.

We can then increment the line function by computing

Reducing it to only one addition for , and one addition for .