Skip to main content
11 events
when toggle format what by license comment
Feb 20, 2013 at 10:02 comment added Anko @coding I'm happy it's of help. :)
Feb 20, 2013 at 4:49 comment added codinghands Been working on this recently again - thanks once more for the great answer.
Feb 20, 2013 at 4:49 vote accept codinghands
Jan 25, 2013 at 17:48 comment added codinghands I will review when it is not 4am and report back!
Jan 25, 2013 at 16:03 comment added Anko @coding I've edited the answer to cover rectangles, though in less depth. Is it intelligible?
Jan 25, 2013 at 16:02 history edited Anko CC BY-SA 3.0
Updated with details on rectangular quad areas.
Jan 25, 2013 at 12:00 history edited Anko CC BY-SA 3.0
Fixed equality typo. Oh yes, classic.
Jan 25, 2013 at 11:59 comment added Anko @coding Indeed, the inequality is a typo: I meant y <= yVariable < y+n! I'll fix that!
Jan 25, 2013 at 11:44 comment added codinghands Okay, a couple of things after some manic doodling in my pad... is there any way to generalise this for any rectangle shape (3 x 5, 2 x 4)? Also, is there a special case where we're checking grid[0,0] for a 2x2 grid (i.e. n = 1), as yVariable must break the constraint y < yVariable < y+n (y being 0, y+n being 1). Or not even a special case actually - to confirm a quad at grid[0,0], we need to check [0,1] (bottom), [1,0] (right) and [1,1] (bottom right). So yVar must be 0, equalling y... Though my maths is awful :(
Jan 25, 2013 at 11:11 comment added codinghands Thank you for the comprehensive answer! I need some time to work through it, no doubt have some daft follow up questions :) really appreciated!
Jan 25, 2013 at 8:50 history answered Anko CC BY-SA 3.0