Data structures for game programming learning notes (四)――multi-dimensional array
Thegeneralformulaforconvertinga2Dcoordinateintoa1Dcoordinateis:Y*width+xIfyouwanttoconvert3Darrayinto1Darray,then(z*width*height)+(y*width)+(x) Passingmulti-dimensionalarraystofunctions1)Themostpopula