Skip to content

Instantly share code, notes, and snippets.

@amygoodchild
Created January 12, 2020 00:06
Show Gist options
  • Save amygoodchild/40bce500193965a34387d7e957254c42 to your computer and use it in GitHub Desktop.
Save amygoodchild/40bce500193965a34387d7e957254c42 to your computer and use it in GitHub Desktop.
neighborhood0 = new Vector4[] {
new Vector4(-1,-14), new Vector4(0,-14), new Vector4(1, -14),
new Vector4(-4,-13), new Vector4(-3,-13), new Vector4(-2, -13), new Vector4(2,-13), new Vector4(3,-13), new Vector4(4, -13),
new Vector4(-6,-12), new Vector4(-5,-12), new Vector4(5, -12), new Vector4(6, -12),
new Vector4(-8,-11), new Vector4(-7,-11), new Vector4(7, -11), new Vector4(8, -11),
new Vector4(-9, -10), new Vector4(9, -10), new Vector4(-1,-10), new Vector4(0,-10), new Vector4(1, -10),
new Vector4(-10, -9), new Vector4(10, -9), new Vector4(-4,-9), new Vector4(-3,-9), new Vector4(-2, -9), new Vector4(2,-9), new Vector4(3,-9), new Vector4(4, -9),
new Vector4(-11, -8), new Vector4(11, -8), new Vector4(-6,-8), new Vector4(-5,-8), new Vector4(5, -8), new Vector4(6, -8),
new Vector4(-11, -7), new Vector4(-6, -7), new Vector4(-2, -7), new Vector4(-1, -7), new Vector4(-0, -7), new Vector4(1, -7), new Vector4(2, -7), new Vector4(11, -7), new Vector4(6, -7),
new Vector4(-12, -6), new Vector4(-8, -6), new Vector4(-4, -6), new Vector4(-3, -6), new Vector4(12, -6), new Vector4(8, -6), new Vector4(4, -6), new Vector4(3, -6),
new Vector4(-12, -5), new Vector4(-8, -5), new Vector4(-5, -5), new Vector4(-1, -5), new Vector4(0, -5), new Vector4(12, -5), new Vector4(8, -5), new Vector4(5, -5), new Vector4(1, -5),
new Vector4(-13, -4), new Vector4(-9, -4), new Vector4(-6, -4), new Vector4(-3, -4), new Vector4(-2, -4), new Vector4(13, -4), new Vector4(9, -4), new Vector4(6, -4), new Vector4(3, -4), new Vector4(2, -4),
new Vector4(-13, -3), new Vector4(-9, -3), new Vector4(-6, -3), new Vector4(-4, -3), new Vector4(-1, -3), new Vector4(0, -3), new Vector4(13, -3), new Vector4(9, -3), new Vector4(6, -3), new Vector4(4, -3), new Vector4(1, -3),
new Vector4(-13, -2), new Vector4(-9, -2), new Vector4(-7, -2), new Vector4(-4, -2), new Vector4(-2, -2), new Vector4(13, -2), new Vector4(9, -2), new Vector4(7, -2), new Vector4(4, -2), new Vector4(2, -2),
new Vector4(-14, -1), new Vector4(-10, -1), new Vector4(-7, -1), new Vector4(-5, -1), new Vector4(-3, -1), new Vector4(-1, -1), new Vector4(0, -1), new Vector4(14, -1), new Vector4(10, -1), new Vector4(7, -1), new Vector4(5, -1), new Vector4(3, -1), new Vector4(1, -1),
new Vector4(-14, 0), new Vector4(-10, 0), new Vector4(-7, 0), new Vector4(-5, 0), new Vector4(-3, 0), new Vector4(-1, 0), new Vector4(0, 0), new Vector4(14, 0), new Vector4(10, 0), new Vector4(7, 0), new Vector4(5, 0), new Vector4(3, 0), new Vector4(1, 0),
new Vector4(-1,14), new Vector4(0, 14), new Vector4(1, 14),
new Vector4(-4,13), new Vector4(-3, 13), new Vector4(-2, 13), new Vector4(2,13), new Vector4(3,13), new Vector4(4, 13),
new Vector4(-6,12), new Vector4(-5, 12), new Vector4(5, 12), new Vector4(6, 12),
new Vector4(-8,11), new Vector4(-7, 11), new Vector4(7, 11), new Vector4(8, 11),
new Vector4(-9, 10), new Vector4(9, 10), new Vector4(-1,10), new Vector4(0,10), new Vector4(1, 10),
new Vector4(-10, 9), new Vector4(10, 9), new Vector4(-4,9), new Vector4(-3,9), new Vector4(-2, 9), new Vector4(2, 9), new Vector4(3, 9), new Vector4(4, 9),
new Vector4(-11, 8), new Vector4(11, 8), new Vector4(-6,8), new Vector4(-5,8), new Vector4(5, 8), new Vector4(6, 8),
new Vector4(-11, 7), new Vector4(-6, 7), new Vector4(-2, 7), new Vector4(-1, 7), new Vector4(-0, 7), new Vector4(1, 7), new Vector4(2, 7), new Vector4(11, 7), new Vector4(6, 7),
new Vector4(-12, 6), new Vector4(-8, 6), new Vector4(-4, 6), new Vector4(-3, 6), new Vector4(12, 6), new Vector4(8, 6), new Vector4(4, 6), new Vector4(3, 6),
new Vector4(-12, 5), new Vector4(-8, 5), new Vector4(-5, 5), new Vector4(-1, 5), new Vector4(0, 5), new Vector4(12, 5), new Vector4(8, 5), new Vector4(5, 5), new Vector4(1, 5),
new Vector4(-13, 4), new Vector4(-9, 4), new Vector4(-6, 4), new Vector4(-3, 4), new Vector4(-2, 4), new Vector4(13, 4), new Vector4(9, 4), new Vector4(6, 4), new Vector4(3, 4), new Vector4(2, 4),
new Vector4(-13, 3), new Vector4(-9, 3), new Vector4(-6, 3), new Vector4(-4, 3), new Vector4(-1, 3), new Vector4(0, 3), new Vector4(13, 3), new Vector4(9, 3), new Vector4(6, 3), new Vector4(4, 3), new Vector4(1, 3),
new Vector4(-13, 2), new Vector4(-9, 2), new Vector4(-7, 2), new Vector4(-4, 2), new Vector4(-2, 2), new Vector4(13, 2), new Vector4(9, 2), new Vector4(7, 2), new Vector4(4, 2), new Vector4(2, 2),
new Vector4(-14, 1), new Vector4(-10, 1), new Vector4(-7, 1), new Vector4(-5, 1), new Vector4(-3, 1), new Vector4(-1, 1), new Vector4(0, 1), new Vector4(14, 1), new Vector4(10, 1), new Vector4(7, 1), new Vector4(5, 1), new Vector4(3, -1), new Vector4(1, 1)
};
neighborhood1 = new Vector4[] {
new Vector4(-1,-3), new Vector4(0,-3), new Vector4(1,-3),
new Vector4(-2,-2), new Vector4(2,-2),
new Vector4(-3,-1), new Vector4(-1,-1), new Vector4(0,-1), new Vector4(1,-1), new Vector4(3,-1),
new Vector4(-3,-0), new Vector4(-1,0), new Vector4(1,-0), new Vector4(3,0),
new Vector4(-1,3), new Vector4(0,3), new Vector4(1,3),
new Vector4(-2,2), new Vector4(2,2),
new Vector4(-3,1), new Vector4(-1,1), new Vector4(0,1), new Vector4(1,1), new Vector4(3,1)
};
neighborhood2 = new Vector4[] {
new Vector4(-1,-6), new Vector4(0,-6), new Vector4(1,-6),
new Vector4(-3,-5), new Vector4(-2,-5), new Vector4(-1,-5), new Vector4(0,-5), new Vector4(1,-5), new Vector4(2,-5), new Vector4(3,-5),
new Vector4(-4,-4), new Vector4(-3,-4), new Vector4(-2,-4), new Vector4(-1,-4), new Vector4(0,-4), new Vector4(1,-4), new Vector4(2,-4), new Vector4(3,-4), new Vector4(4,-4),
new Vector4(-5,-3), new Vector4(-4,-3), new Vector4(-3,-3), new Vector4(-2,-3), new Vector4(2,-3), new Vector4(3,-3), new Vector4(4,-3), new Vector4(5,-3),
new Vector4(-5,-2), new Vector4(-4,-2), new Vector4(-3,-2), new Vector4(3,-2), new Vector4(4,-2), new Vector4(5,-2),
new Vector4(-6,-1), new Vector4(-5,-1), new Vector4(-4,-1), new Vector4(4,-1), new Vector4(5,-1), new Vector4(6,-1),
new Vector4(-6, 0), new Vector4(-5, 0), new Vector4(-4, 0), new Vector4(4,0), new Vector4(5,0), new Vector4(6,0),
new Vector4(-1, 6), new Vector4(0,6), new Vector4(1,6),
new Vector4(-3, 5), new Vector4(-2,5), new Vector4(-1,5), new Vector4(0,5), new Vector4(1,5), new Vector4(2,5), new Vector4(3,5),
new Vector4(-4, 4), new Vector4(-3,4), new Vector4(-2,4), new Vector4(-1,4), new Vector4(0,4), new Vector4(1,4), new Vector4(2,4), new Vector4(3,4), new Vector4(4,4),
new Vector4(-5, 3), new Vector4(-4,3), new Vector4(-3,3), new Vector4(-2,3), new Vector4(2,3), new Vector4(3,3), new Vector4(4,3), new Vector4(5,3),
new Vector4(-5, 2), new Vector4(-4,2), new Vector4(-3,2), new Vector4(3,2), new Vector4(4,2), new Vector4(5,2),
new Vector4(-6, 1), new Vector4(-5,1), new Vector4(-4,1), new Vector4(4,1), new Vector4(5,1), new Vector4(6,1)
};
neighborhood3 = new Vector4[] {
new Vector4(-3,-14), new Vector4(-2,-14), new Vector4(-1,-14), new Vector4(0,-14), new Vector4(3,-14), new Vector4(2,-14), new Vector4(1,-14),
new Vector4(-6,-13), new Vector4(-5,-13), new Vector4(-4,-13), new Vector4(-3,-13), new Vector4(-2,-13), new Vector4(-1,-13), new Vector4(0,-13), new Vector4(3,-13), new Vector4(2,-13), new Vector4(1,-13), new Vector4(4,-13), new Vector4(5,-13), new Vector4(6,-13),
new Vector4(-8,-12), new Vector4(-7,-12), new Vector4(-6,-12), new Vector4(-5,-12), new Vector4(-4,-12), new Vector4(-3,-12), new Vector4(-2,-12), new Vector4(-1,-12), new Vector4(0,-12), new Vector4(3,-12), new Vector4(2,-12), new Vector4(1,-12), new Vector4(4,-12), new Vector4(5,-12), new Vector4(6,-12),new Vector4(7,-12), new Vector4(8,-12),
new Vector4(-9,-11), new Vector4(-8,-11), new Vector4(-7,-11), new Vector4(-6,-11), new Vector4(-5,-11), new Vector4(-4,-11), new Vector4(-3,-11), new Vector4(-2,-11), new Vector4(-1,-11), new Vector4(0,-11), new Vector4(3,-11), new Vector4(2,-11), new Vector4(1,-11), new Vector4(4,-11), new Vector4(5,-11), new Vector4(6,-11),new Vector4(7,-11), new Vector4(8,-11), new Vector4(9,-11),
new Vector4(-10,-10), new Vector4(-9,-10), new Vector4(-8,-10), new Vector4(-7,-10), new Vector4(-6,-10), new Vector4(-5,-10), new Vector4(5,-10), new Vector4(6,-10),new Vector4(7,-10), new Vector4(8,-10), new Vector4(9,-10),new Vector4(10,-10),
new Vector4(-11,-9), new Vector4(-10,-9), new Vector4(-9,-9), new Vector4(-8,-9), new Vector4(-7,-9), new Vector4(7,-9), new Vector4(8,-9), new Vector4(9,-9), new Vector4(10,-9), new Vector4(11,-9),
new Vector4(-12,-8), new Vector4(-11,-8), new Vector4(-10,-8), new Vector4(-9,-8), new Vector4(-8,-8), new Vector4(8,-8), new Vector4(9,-8), new Vector4(10,-8), new Vector4(11,-8), new Vector4(12,-8),
new Vector4(-12,-7), new Vector4(-11,-7), new Vector4(-10,-7), new Vector4(-9,-7), new Vector4(9,-7), new Vector4(10,-7),new Vector4(11,-7), new Vector4(12,-7), new Vector4(-2,-7), new Vector4(-1,-7), new Vector4(0,-7), new Vector4(1,-7), new Vector4(2,-7),
new Vector4(-13,-6), new Vector4(-12,-6), new Vector4(-11,-6), new Vector4(-10,-6), new Vector4(-4,-6), new Vector4(-3,-6), new Vector4(13,-6), new Vector4(12,-6), new Vector4(11,-6), new Vector4(10,-6), new Vector4(4,-6), new Vector4(3,-6),
new Vector4(-13,-5), new Vector4(-12,-5), new Vector4(-11,-5), new Vector4(-10,-5), new Vector4(-5,-5), new Vector4(5,-5), new Vector4(13,-5), new Vector4(12,-5), new Vector4(11,-5), new Vector4(10,-5),
new Vector4(-13,-4), new Vector4(-12,-4), new Vector4(-11,-4), new Vector4(-11,-4), new Vector4(-1,-4), new Vector4(0,-4), new Vector4(1,-4), new Vector4(13,-4), new Vector4(12,-4), new Vector4(11,-4), new Vector4(11,-4),
new Vector4(-14,-3), new Vector4(-13,-3), new Vector4(-12,-3), new Vector4(-11,-3), new Vector4(-6,-3), new Vector4(-2,-3), new Vector4(14,-3), new Vector4(13,-3), new Vector4(12,-3), new Vector4(11,-3), new Vector4(6,-3), new Vector4(2,-3),
new Vector4(-14,-2), new Vector4(-13,-2), new Vector4(-12,-2), new Vector4(-11,-2), new Vector4(-7,-2), new Vector4(-3,-2), new Vector4(14,-2), new Vector4(13,-2), new Vector4(12,-2), new Vector4(11,-2), new Vector4(7,-3), new Vector4(3,-3),
new Vector4(-14,-1), new Vector4(-13,-1), new Vector4(-12,-1), new Vector4(-11,-1), new Vector4(-7,-1), new Vector4(-4,-1), new Vector4(-1,-1), new Vector4(0,-1),new Vector4(1,-1), new Vector4(7,-1), new Vector4(4,-1), new Vector4(14,-1), new Vector4(13,-1), new Vector4(12,-1), new Vector4(11,-1),
new Vector4(-14,0), new Vector4(-13,0), new Vector4(-12,0), new Vector4(-11,0), new Vector4(-7,0), new Vector4(-4,0), new Vector4(-1,0), new Vector4(1,0), new Vector4(7,0), new Vector4(4,0), new Vector4(14,0), new Vector4(13,0), new Vector4(12,0), new Vector4(11,0),
new Vector4(-3,14), new Vector4(-2,14), new Vector4(-1,14), new Vector4(0,14), new Vector4(3,14), new Vector4(2,14), new Vector4(1,14),
new Vector4(-6,13), new Vector4(-5,13), new Vector4(-4,13), new Vector4(-3,13), new Vector4(-2,13), new Vector4(-1,13), new Vector4(0,13), new Vector4(3,13), new Vector4(2,13), new Vector4(1,13), new Vector4(4,13), new Vector4(5,13), new Vector4(6,13),
new Vector4(-8,12), new Vector4(-7,12), new Vector4(-6,12), new Vector4(-5,12), new Vector4(-4,12), new Vector4(-3,12), new Vector4(-2,12), new Vector4(-1,12), new Vector4(0,12), new Vector4(3,12), new Vector4(2,12), new Vector4(1,12), new Vector4(4,12), new Vector4(5,12), new Vector4(6,12),new Vector4(7,12), new Vector4(8,12),
new Vector4(-9,11), new Vector4(-8,11), new Vector4(-7,11), new Vector4(-6,11), new Vector4(-5,11), new Vector4(-4,11), new Vector4(-3,11), new Vector4(-2,11), new Vector4(-1,11), new Vector4(0,11), new Vector4(3,11), new Vector4(2,11), new Vector4(1,11), new Vector4(4,11), new Vector4(5,11), new Vector4(6,11),new Vector4(7,11), new Vector4(8,11), new Vector4(9,11),
new Vector4(-10,10), new Vector4(-9,10), new Vector4(-8,10), new Vector4(-7,10), new Vector4(-6,10),new Vector4(-5,10), new Vector4(5,10), new Vector4(6,10),new Vector4(7,10), new Vector4(8,10), new Vector4(9,10),new Vector4(10,10),
new Vector4(-11,9), new Vector4(-10,9), new Vector4(-9,9), new Vector4(-8,9), new Vector4(-7,9), new Vector4(7,9), new Vector4(8,9), new Vector4(9,9), new Vector4(10,9), new Vector4(11,9),
new Vector4(-12,8), new Vector4(-11,8), new Vector4(-10,8), new Vector4(-9,8), new Vector4(-8,8), new Vector4(8,8), new Vector4(9,8), new Vector4(10,8), new Vector4(11,8), new Vector4(12,8),
new Vector4(-12,7), new Vector4(-11,7), new Vector4(-10,7), new Vector4(-9,7), new Vector4(9,7), new Vector4(10,7),new Vector4(11,7), new Vector4(12,7), new Vector4(-2,7), new Vector4(-1,7), new Vector4(0,7), new Vector4(1,7), new Vector4(2,7),
new Vector4(-13,6), new Vector4(-12,6), new Vector4(-11,6), new Vector4(-10,6), new Vector4(-4,6), new Vector4(-3,6), new Vector4(13,6), new Vector4(12,6), new Vector4(11,6), new Vector4(10,6), new Vector4(4,6), new Vector4(3,6),
new Vector4(-13,5), new Vector4(-12,5), new Vector4(-11,5), new Vector4(-10,5), new Vector4(-5,5), new Vector4(5,5), new Vector4(13,5), new Vector4(12,5), new Vector4(11,5), new Vector4(10,5),
new Vector4(-13,4), new Vector4(-12,4), new Vector4(-11,4), new Vector4(-11,4), new Vector4(-1,4), new Vector4(0,4), new Vector4(1,4), new Vector4(13,4), new Vector4(12,4), new Vector4(11,4), new Vector4(11,4),
new Vector4(-14,3), new Vector4(-13,3), new Vector4(-12,3), new Vector4(-11,3), new Vector4(-6,3), new Vector4(-2,3), new Vector4(14,3), new Vector4(13,3), new Vector4(12,3), new Vector4(11,3), new Vector4(6,3), new Vector4(2,3),
new Vector4(-14,2), new Vector4(-13,2), new Vector4(-12,2), new Vector4(-11,2), new Vector4(-7,2), new Vector4(-3,2), new Vector4(14,2), new Vector4(13,2), new Vector4(12,2), new Vector4(11,2), new Vector4(7,3), new Vector4(3,3),
new Vector4(-14,1), new Vector4(-13,1), new Vector4(-12,1), new Vector4(-11,1), new Vector4(-7,1), new Vector4(-4,1), new Vector4(-1,1), new Vector4(0,1),new Vector4(1,1), new Vector4(7,1), new Vector4(4,1), new Vector4(14,1), new Vector4(13,1), new Vector4(12,1), new Vector4(11,1),
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment