Skip to content

Instantly share code, notes, and snippets.

@eduardolundgren
Created October 14, 2012 05:07
Show Gist options
  • Save eduardolundgren/3887438 to your computer and use it in GitHub Desktop.
Save eduardolundgren/3887438 to your computer and use it in GitHub Desktop.
var rx1=i+Math.floor(scale*r.x1);
var rx2=i+Math.floor(scale*(r.x1+r.y1));
var ry1=j+Math.floor(scale*r.x2);
var ry2=j+Math.floor(scale*(r.x2+r.y2));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment