What is the "<= checks" referring to? Whether or not each edge pixel should light up?
billiam
E_i(x, y) = 0 when the point is on the edge. So if we use "<=" instead of "<" then the flag holds true for points on an edge.
motoole2
That's right. The exact implementation of inside(sx,sy) requires careful treatment of edges overlapping the centers of pixels, according to the top-left rule discussed earlier in the lecture where E_i(x,y) = 0 for one of the edges.
Ashley
I think if we want to check whether points are inside the triangle using this function, it is important to know the sequence of the points.
What is the "<= checks" referring to? Whether or not each edge pixel should light up?
E_i(x, y) = 0 when the point is on the edge. So if we use "<=" instead of "<" then the flag holds true for points on an edge.
That's right. The exact implementation of
inside(sx,sy)
requires careful treatment of edges overlapping the centers of pixels, according to the top-left rule discussed earlier in the lecture whereE_i(x,y) = 0
for one of the edges.I think if we want to check whether points are inside the triangle using this function, it is important to know the sequence of the points.