int w_BezierCurve_rotate(lua_State *L) { BezierCurve *curve = luax_checkbeziercurve(L, 1); double phi = luaL_checknumber(L, 2); float ox = (float) luaL_optnumber(L, 3, 0); float oy = (float) luaL_optnumber(L, 4, 0); curve->rotate(phi, Vector(ox,oy)); return 0; }