public
Created — forked from clooth/gist:3439743

  • Download Gist
gistfile1.coffee
CoffeeScript
1 2 3 4 5
class GridBounds
constructor: (bounds) ->
[ 'min', 'max' ].forEach (mm) =>
[ 'x', 'y' ].forEach (xy) =>
@[ mm + xy.toUpperCase() ] = Math[mm] bounds[0][xy], bounds[1][xy]

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.