As this is a reference implementation of the Scanline Sweeper algorithm, you are highly encouraged to copy, modify, and adapt these code snippets into your own projects or custom rendering engines.