Commit graph

5 commits

Author SHA1 Message Date
Jordan Eldredge
7ecea310c7 Use implicit return where possible 2016-12-29 19:28:07 -08:00
Jordan Eldredge
785af97700 Add snapWithin() and add snapping to like sides 2016-11-28 20:24:12 -08:00
Jordan Eldredge
b27a9ea1b0 Improve formatting 2016-08-10 18:16:44 -07:00
Jordan Eldredge
9dde8dfc9c Fix snapping for non-overlapping boxes
Boxes were snapping together even if they were not overlapping in the
non-snapping axis:

    ###
    #A#
    ###

        ###
        #B#
        ###

Although A and B are near eachother on the X axis they should not snap
together, since they are far apart on the Y axis. Now they don't.
2016-08-10 18:12:38 -07:00
Jordan Eldredge
ba86f0edc2 Add snapUtils file. These may evolve when actually used. 2016-08-10 18:12:38 -07:00