typedef struct SurfacePointType { float height; float vel; float acc; } SurfacePointType; #define RESOLUTION 20 /* to define a RES by RES grid */ class SurfaceClass { private: float Phase; SurfacePointType MySurf [RESOLUTION] [RESOLUTION]; void Init (void) { int i,j; for (i=0; i