WebPredict

WebPredict / GetNthLatticePoint / 0.1.0

README.md

Produces the Nth lattice point (starting at 0), for spiral square lattice points on an integer grid.

  • Point 0 is (0,0)
  • Point 1 is (1,0)
  • Point 2 is (1, -1)
  • Point 3 is (0, -1)
  • Point 4 is (-1, -1)
  • Point 5 is (-1, 0)
  • Point 6 is (-1, 1)
  • ...