dilevin / computer-graphics-csc317

Course Page for Computer Graphics course
130 stars 26 forks source link

Why is the top right nx-1/2, ny - 1/2? #79

Closed Kevinktv closed 1 month ago

Kevinktv commented 1 month ago
Screenshot 2024-10-14 at 12 02 23 PM

Hello!

Maybe I am misunderstanding something, but why exactly is the top right corner nx - 1/2 and ny-1/2? Shouldn't it be nx + 1/2, ny + 1/2?

Thanks!

Kevinktv commented 1 month ago

Nevermind, I realised that nx is no of pixels which is 1 more than the index. My bad