Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2014
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. -- Layout:
  2. --[[ _
  3. [ ]
  4. V
  5. 1
  6. __ __
  7. 1 1| 3 |2 1
  8. | | | |
  9. | | | |
  10. 2 |__4__| 2
  11. __ __
  12. 1 | _3_ | 1
  13. | 1 2 |
  14. | |
  15. 2 1 1 2
  16. | |
  17. 2 2
  18.  
  19. 1 1
  20. | |
  21. 2 2
  22.  
  23. 1 1
  24. _M_ _M_
  25.  
  26. --]]
  27.  
  28.  
  29.  
  30. --[[ _
  31. _/| (u) direction
  32. (u,v,w) _/ ___
  33. _/ / \
  34. / /1,0,0\
  35. /¯¯¯\ /
  36. /0,0,0\___/
  37. | \ / \
  38. | \___/1,0,1\
  39. \|/ / \0,1,0/
  40. (w) /0,0,1\___/ \_
  41. \ / \_
  42. \___/ \|
  43. ¯(v) direction
  44. That is, to normalize grid positions into rectangular coordinates transform:
  45. <u, v, w> -> <u + v, 0, w + v> -> <i, 0, j> -> <i, j>
  46. (i = u+v, j = w+v)
  47. --]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement