www.cs.ucr.eduhttps://www.cs.ucr.edu/~craigs/courses/2022-fall-cs-130/lectures/rasterization-lines.pdf