StkFloat Mesh2D :: inputTick( StkFloat input ) { if ( counter_ & 1 ) { vxp1_[xInput_][yInput_] += input; vyp1_[xInput_][yInput_] += input; lastFrame_[0] = tick1(); } else { vxp_[xInput_][yInput_] += input; vyp_[xInput_][yInput_] += input; lastFrame_[0] = tick0(); } counter_++; return lastFrame_[0]; }
MY_FLOAT Mesh2D :: tick(MY_FLOAT input) { if ( counter & 1 ) { vxp1[xInput][yInput] += input; vyp1[xInput][yInput] += input; lastOutput = tick1(); } else { vxp[xInput][yInput] += input; vyp[xInput][yInput] += input; lastOutput = tick0(); } counter++; return lastOutput; }