Lecture 2: Drawing Triangles (55)
Songbird94

I’m unsure about the rules here. The point at (8,8) falls out of the triangle either way, but would it be considered as on edge?

Staffi-geng

Here, we're sampling at the center of each pixel, so we would check if the point (8.5, 8.5) lies within the triangle or not. In this case, (8.5, 8.5) is outside the triangle, so we won't consider it as part of the edge!

You must be enrolled in the course to comment