Difference between revisions of "Notes:Grid iteration"

From Maths
Jump to: navigation, search
(Created page with "See Modulus operator for a definition of {{M|\text{Mod}(a,b)}} ==2D grid== * {{MM|\text{Mix}_x(k,m,n):\eq \text{Floor}\left(\text{Mod}\big(\text{Mod}(k,mn),m\big)\right)}}...")
(No difference)

Revision as of 17:44, 7 January 2018

See Modulus operator for a definition of Mod(a,b)

2D grid

  • Mixx(k,m,n):=Floor(Mod(Mod(k,mn),m))
  • Mixy(k,m,n):=Mod(k,mn)Mod(Mod(k,mn),m)m

Then

  • Points of the form:
    • (Mixx(k,m,n),Mixy(k,m,n)) span an m×n grid, for k from 0 to mn1

3D grid

Suppose we have an ×m×n grid,