Skip to content

Instantly share code, notes, and snippets.

@calebhearth
Created November 7, 2012 15:25
Show Gist options
  • Save calebhearth/4032224 to your computer and use it in GitHub Desktop.
Save calebhearth/4032224 to your computer and use it in GitHub Desktop.
unproject(snapToGrid(project(getHoverPoint())))
hoverPoint = getHoverPoint()
projected = project(point)
gridded = snapToGrid(projected)
unproject(gridded)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment