gpt-4o-2024-05-13· OpenAI
WildChat-4.8M (AI2)
c# static array consisting of the 27 neighbours of 3d structs called i8vec3 with the…
- User
c# static array consisting of the 27 neighbours of 3d structs called i8vec3 with the following priority: mid > lower left > distance, priority within quadrants should be distance, no explanation
- Assistant
- User
c# static array consisting of the 27 neighbours of 3d structs called i8vec3 with the following priority: mid > lower left > distance, priority within quadrants should be distance, just the array, no code, no explanation
- Assistant
public static readonly i8vec3[] Neighbors = new i8vec3[] { new i8vec3(0, 0, 0), // Mid new i8vec3(-1, -1, -1), // Lower left new i8vec3(-1, -1, 0), new i8vec3(-1, 0, -1), new i8vec3(0, -1, -1), new i8vec3(-1, 0, 0), // Other lower left new i8vec3(0, -1, 0), new i8vec3(0, 0, -1), new i8vec3(-1, -1, 1), // Lower quadrants at distance 2 new i8vec3(-1, 1, -1), new i8vec3(1, -1, -1), new i8vec3(-1, 0, 1), // Remaining neighbors ordered by distance new i8vec3(-1, 1, 0), new i8vec3(0, -1, 1), new i8vec3(0, 1, -1), new i8vec3(1, -1, 0), new i8vec3(1, 0, -1), new i8vec3(-1, 1, 1), // Farther distances new i8vec3(1, -1, 1), new i8vec3(1, 1, -1), new i8vec3(-1, 1, 0), new i8vec3(0, 1, 0), new i8vec3(1, -1, 0), new i8vec3(1, 0, 0), new i8vec3(1, 1, 0), // The rest new i8vec3(1, 0, 1), new i8vec3(0, 1, 1) };