Calculate order based on coordinates of x and y

48 Views Asked by At

I would like to map coordinates $(x,y)$ to a particular order ID, which will help me track when the coordinates changes.

I need a formula which gets a specific ID based on coordinates.

Here are a few examples for coordinates:

  • 00-1
  • 10-2
  • 01-3
  • 11-4
  • 02-5
  • 12-6
  • 03-7
  • 13-8
  • 04-9
  • 14-10
1

There are 1 best solutions below

0
On

How about This equation: $1+x+2y$?