Most code I have just done seems maybe not simple, but clear. Not many days later, when i have look at the same code I think, what is going on...
I think if I dig into your code I would understand how to use it.
But I wish someting like this pseudo code in QB64:
type vector(array)
x(array)
y(array)
z(array)
end type
or the basic I use (not pseudo):
dim vector_{ a(9,9,9), x(9), y(9), z(9) }