int Vector2fGetAttrmagnitude(lua_State*L) { Vector2f* self = LuaType<Vector2f>::check(L,1); LUACHECKOBJ(self); lua_pushnumber(L,self->Magnitude()); return 1; }