get coordinate in N-dim space by N-dim size and line index
get index of element in 1-dim array by N-dim coordinate
get line index in origin array by layer line index and layer number
checks all components
See Source File