static int l_uc_ggc(lua_State* L) { UnitCell* uc = lua_tounitcell(L, 1); if(!uc) return 0; Vector v; lua_makevector(L, 2, v); Vector b = uc->reducedToGlobal(v); lua_pushvector(L, new Vector(b)); return 1; }