Checks if grid mode is enabled and snaps a point to the grid if so
function maybeSnapToGrid(point: Vec, editor: Editor): Vec
point
Vec
editor
Editor