{
for (let index = 0; index < coordinates.length; index++) {
let z = parseInt(index / (width * height));
let subtracted = parseInt(index - (z * width * height));
let y = parseInt(subtracted % height);
let x = parseInt(subtracted / width);
const coordinate = coordinates[index];
if (coordinate.z !== z) throw new Error(`z deviates from ${coordinate.z} at ${index} with ${z}`);
if (coordinate.x !== x) throw new Error(`x deviates from ${coordinate.x} at ${index} with ${x}`);
if (coordinate.y !== y) throw new Error(`y deviates from ${coordinate.y} at ${index} with ${y}`);
}
return "SUCCESS!"
}