////////////////////////////////////////////////////////////////////// // // Grid // // File: grid.h // Description : Grid class declaration and inlined implementation // // History: // -:Created by Anton Knyazev // ////////////////////////////////////////////////////////////////////// #ifndef grid_h #define grid_h #pragma once #include "vector3d.h" #include "vector2d.h" struct grid { vector_tpl ax; vectorf org; vector2df step,stepr; vector2d_tpl sz; float parity; float scale; unsigned short *pflags; unsigned short holeflag; int holepower; int inrange(unsigned int ix, unsigned int iy) { return ix