Ray-casting algorithm: Difference between revisions
Content added Content deleted
m (comment: edges not corners) |
|||
Line 1,836: | Line 1,836: | ||
-- --- or - |
-- --- or - |
||
-- ^ \ |
-- ^ \ |
||
-- In both cases it touches both |
-- In both cases it touches both edges, but ends up outside in the |
||
-- top case, whereas it ends up inside in the left case. Just move |
-- top case, whereas it ends up inside in the left case. Just move |
||
-- the y co-ordinate down a smidge and it'll work properly, by |
-- the y co-ordinate down a smidge and it'll work properly, by |