blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
264
content_id
stringlengths
40
40
detected_licenses
sequencelengths
0
85
license_type
stringclasses
2 values
repo_name
stringlengths
5
140
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
905 values
visit_date
timestamp[us]date
2015-08-09 11:21:18
2023-09-06 10:45:07
revision_date
timestamp[us]date
1997-09-14 05:04:47
2023-09-17 19:19:19
committer_date
timestamp[us]date
1997-09-14 05:04:47
2023-09-06 06:22:19
github_id
int64
3.89k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]date
2012-06-07 00:51:45
2023-09-14 21:58:39
gha_created_at
timestamp[us]date
2008-03-27 23:40:48
2023-08-21 23:17:38
gha_language
stringclasses
141 values
src_encoding
stringclasses
34 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
3
10.4M
extension
stringclasses
115 values
content
stringlengths
3
10.4M
authors
sequencelengths
1
1
author_id
stringlengths
0
158
4383b77d50929f3d0ac747da366f049bca700be7
f6484e18382475024230f7e8385d689f9fd021b5
/SDK/CLanTool.cpp
55234dd1efce22677a4eaa4e1e10076798d6572b
[]
no_license
github188/jvsdknet
2272f5f159b526b9a69bb61e958d607c682ab0ed
e405fd68936e797b2d926ad7a3850753a5da8dac
refs/heads/master
2021-05-30T16:42:59.025072
2016-01-05T06:48:51
2016-01-05T06:48:51
null
0
0
null
null
null
null
UTF-8
C++
false
false
24,270
cpp
// CLanTool.cpp: implementation of the CCLanSerch class. // ////////////////////////////////////////////////////////////////////// #include "CLanTool.h" #include "CWorker.h" ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////////////////////////////// CCLanTool::CCLanTool() { } CCLanTool::CCLanTool(int nLPort, int nDesPort, CCWorker *pWorker) { m_bOK = FALSE; m_pWorker = pWorker; m_nLANTPort = 0; m_unLANTID = 1; m_nTimeOut = 0; m_dwBeginTool = 0; m_bTimeOut = 0; m_bLANTooling = FALSE; m_bNewTool = FALSE; m_bStopToolImd = TRUE; m_hLANToolRcvThread = 0; m_hLANToolSndThread = 0; #ifndef WIN32 pthread_mutex_init(&m_ct, NULL); m_bRcvEnd = FALSE; m_bSndEnd = FALSE; #else InitializeCriticalSection(&m_ct); //初始化临界区 m_hLANToolRcvStartEvent = 0; m_hLANToolRcvEndEvent = 0; m_hLANToolSndStartEvent = 0; m_hLANToolSndEndEvent = 0; #endif int err; //套接字 m_SocketLANT = socket(AF_INET, SOCK_DGRAM,0); SOCKADDR_IN addrSrv; #ifndef WIN32 addrSrv.sin_addr.s_addr = htonl(INADDR_ANY); #else addrSrv.sin_addr.S_un.S_addr = htonl(INADDR_ANY); #endif addrSrv.sin_family = AF_INET; addrSrv.sin_port = htons(nLPort); //绑定套接字 err = bind(m_SocketLANT, (SOCKADDR *)&addrSrv, sizeof(SOCKADDR)); if(err != 0) { if(JVN_LANGUAGE_CHINESE == m_pWorker->m_nLanguage) { m_pWorker->m_Log.SetRunInfo(0,"初始化LANToolSOCK失败.原因:绑定端口失败", __FILE__,__LINE__); } else { m_pWorker->m_Log.SetRunInfo(0,"init LANTool sock faild.Info:bind port faild.", __FILE__,__LINE__); } closesocket(m_SocketLANT); return; } // 有效SO_BROADCAST选项 int nBroadcast = 1; ::setsockopt(m_SocketLANT, SOL_SOCKET, SO_BROADCAST, (char*)&nBroadcast, sizeof(int)); #ifndef WIN32 pthread_attr_t attr; pthread_attr_t *pAttr = &attr; unsigned long size = LINUX_THREAD_STACK_SIZE; size_t stacksize = size; pthread_attr_init(pAttr); if ((pthread_attr_setstacksize(pAttr,stacksize)) != 0) { pAttr = NULL; } //创建本地监听线程 if (0 != pthread_create(&m_hLANToolRcvThread, pAttr, LANTRcvProc, this)) { m_hLANToolRcvThread = 0; if(JVN_LANGUAGE_CHINESE == m_pWorker->m_nLanguage) { m_pWorker->m_Log.SetRunInfo(0,"开启LANTool服务失败.原因:创建线程失败",__FILE__,__LINE__); } else { m_pWorker->m_Log.SetRunInfo(0,"start LANTool server failed.Info:create thread faild.",__FILE__,__LINE__); } return; } #else //创建本地命令监听线程 UINT unTheadID; if(m_hLANToolRcvStartEvent > 0) { CloseHandle(m_hLANToolRcvStartEvent); m_hLANToolRcvStartEvent = 0; } if(m_hLANToolRcvEndEvent > 0) { CloseHandle(m_hLANToolRcvEndEvent); m_hLANToolRcvEndEvent = 0; } //创建本地监听线程 m_hLANToolRcvStartEvent = CreateEvent(NULL, FALSE, FALSE, NULL); m_hLANToolRcvEndEvent = CreateEvent(NULL, FALSE, FALSE, NULL); m_hLANToolRcvThread = (HANDLE)_beginthreadex(NULL, 0, LANTRcvProc, (void *)this, 0, &unTheadID); if(m_hLANToolRcvStartEvent > 0) { SetEvent(m_hLANToolRcvStartEvent); } if (m_hLANToolRcvThread == 0)//创建线程失败 { if(m_hLANToolRcvStartEvent > 0) { CloseHandle(m_hLANToolRcvStartEvent); m_hLANToolRcvStartEvent=0; } if(m_hLANToolRcvEndEvent > 0) { CloseHandle(m_hLANToolRcvEndEvent); m_hLANToolRcvEndEvent=0; } if(JVN_LANGUAGE_CHINESE == m_pWorker->m_nLanguage) { m_pWorker->m_Log.SetRunInfo(0,"开启LANTool服务失败.原因:创建线程失败",__FILE__,__LINE__); } else { m_pWorker->m_Log.SetRunInfo(0,"start LANTool server failed.Info:create thread faild.",__FILE__,__LINE__); } return; } #endif m_bOK = TRUE; m_nLANTPort = nLPort; m_nDesPort = nDesPort; GetAdapterInfo(); return; } CCLanTool::~CCLanTool() { #ifndef WIN32 if (0 != m_hLANToolRcvThread) { m_bRcvEnd = TRUE; pthread_join(m_hLANToolRcvThread, NULL); m_hLANToolRcvThread = 0; CCWorker::jvc_sleep(5); } if (0 != m_hLANToolSndThread) { m_bSndEnd = TRUE; pthread_join(m_hLANToolSndThread, NULL); m_hLANToolSndThread = 0; CCWorker::jvc_sleep(5); } #else //结束本地线程 if(m_hLANToolRcvEndEvent > 0) { SetEvent(m_hLANToolRcvEndEvent); CCWorker::jvc_sleep(5); } if(m_hLANToolSndEndEvent > 0) { SetEvent(m_hLANToolSndEndEvent); CCWorker::jvc_sleep(5); } CCChannel::WaitThreadExit(m_hLANToolRcvThread); CCChannel::WaitThreadExit(m_hLANToolSndThread); if(m_hLANToolRcvThread > 0) { CloseHandle(m_hLANToolRcvThread); m_hLANToolRcvThread = 0; } if(m_hLANToolSndThread > 0) { CloseHandle(m_hLANToolSndThread); m_hLANToolSndThread = 0; } #endif m_hLANToolRcvThread = 0; closesocket(m_SocketLANT); m_SocketLANT = 0; m_bOK = FALSE; #ifndef WIN32 pthread_mutex_destroy(&m_ct); #else DeleteCriticalSection(&m_ct); //释放临界区 #endif } void CCLanTool::GetAdapterInfo() { m_IpList.clear(); _Adapter info; memset(&info,0,sizeof(_Adapter)); // NATList LocalIPList; m_pWorker->GetLocalIP(&LocalIPList); if(LocalIPList.size() > 0) { sprintf(info.IP,"%d.%d.%d.%d",LocalIPList[0].ip[0],LocalIPList[0].ip[1],LocalIPList[0].ip[2],LocalIPList[0].ip[3]); unsigned int n[4] = {0}; sscanf(info.IP,"%d.%d.%d.%d",&n[0],&n[1],&n[2],&n[3]); sprintf(info.IpHead,"%d.%d.",n[0],n[1]); info.nIP3 = n[2]; m_IpList.push_back(info); } return; } BOOL CCLanTool::LANToolDevice(char chPName[256], char chPWord[256], int nTimeOut) { if(m_hLANToolRcvThread <= 0 || m_SocketLANT <= 0) { return FALSE; } if(m_hLANToolSndThread <= 0) {//先创建发送线程 #ifndef WIN32 pthread_attr_t attr; pthread_attr_t *pAttr = &attr; unsigned long size = LINUX_THREAD_STACK_SIZE; size_t stacksize = size; pthread_attr_init(pAttr); if ((pthread_attr_setstacksize(pAttr,stacksize)) != 0) { pAttr = NULL; } //创建本地线程 if (0 != pthread_create(&m_hLANToolSndThread, pAttr, LANTSndProc, this)) { m_hLANToolSndThread = 0; if(JVN_LANGUAGE_CHINESE == m_pWorker->m_nLanguage) { m_pWorker->m_Log.SetRunInfo(0,"开启LANToolSnd失败.原因:创建线程失败",__FILE__,__LINE__); } else { m_pWorker->m_Log.SetRunInfo(0,"start LANToolSnd failed.Info:create thread faild.",__FILE__,__LINE__); } return FALSE; } #else //创建本地线程 UINT unTheadID; if(m_hLANToolSndStartEvent > 0) { CloseHandle(m_hLANToolSndStartEvent); m_hLANToolSndStartEvent = 0; } if(m_hLANToolSndEndEvent > 0) { CloseHandle(m_hLANToolSndEndEvent); m_hLANToolSndEndEvent = 0; } //创建本地线程 m_hLANToolSndStartEvent = CreateEvent(NULL, FALSE, FALSE, NULL); m_hLANToolSndEndEvent = CreateEvent(NULL, FALSE, FALSE, NULL); m_hLANToolSndThread = (HANDLE)_beginthreadex(NULL, 0, LANTSndProc, (void *)this, 0, &unTheadID); if(m_hLANToolSndStartEvent > 0) { SetEvent(m_hLANToolSndStartEvent); } if (m_hLANToolSndThread == 0)//创建线程失败 { if(m_hLANToolSndStartEvent > 0) { CloseHandle(m_hLANToolSndStartEvent); m_hLANToolSndStartEvent=0; } if(m_hLANToolSndEndEvent > 0) { CloseHandle(m_hLANToolSndEndEvent); m_hLANToolSndEndEvent=0; } if(JVN_LANGUAGE_CHINESE == m_pWorker->m_nLanguage) { m_pWorker->m_Log.SetRunInfo(0,"开启LANToolSnd失败.原因:创建线程失败",__FILE__,__LINE__); } else { m_pWorker->m_Log.SetRunInfo(0,"start LANToolSnd failed.Info:create thread faild.",__FILE__,__LINE__); } return FALSE; } #endif } m_bNewTool = FALSE;//置为没有新搜索 m_bStopToolImd = TRUE;//停止当前正在进行的搜索操作 if(nTimeOut >= 0) { m_nTimeOut = nTimeOut; } m_unLANTID++; BYTE data[700]={0}; STTOOLPACK sthead; sthead.nPNLen = strlen(chPName); sthead.nPWLen = strlen(chPWord); sthead.uchCType = 1; #ifndef WIN32 time_t now = time(0); tm *tnow = localtime(&now); sprintf(sthead.chCurTime,"%4d-%02d-%02d %02d:%02d:%02d",1900+tnow->tm_year,tnow->tm_mon+1,tnow->tm_mday,tnow->tm_hour,tnow->tm_min,tnow->tm_sec); #else SYSTEMTIME sys; GetLocalTime(&sys); sprintf(sthead.chCurTime,"%4d-%02d-%02d %02d:%02d:%02d ",sys.wYear,sys.wMonth,sys.wDay,sys.wHour,sys.wMinute, sys.wSecond); #endif //类型(1)+长度(4)+STTOOLPACK+用户名(?)+密码(?)+配置内容(?) data[0] = JVN_REQ_TOOL; int nLen = sizeof(STTOOLPACK) + sthead.nPNLen + sthead.nPWLen; memcpy(&data[1], &nLen, 4); memcpy(&data[5], &sthead, sizeof(STTOOLPACK)); memcpy(&data[5+sizeof(STTOOLPACK)], chPName, sthead.nPNLen); memcpy(&data[5+sizeof(STTOOLPACK)+sthead.nPNLen], chPWord, sthead.nPWLen); #ifndef WIN32 pthread_mutex_lock(&m_ct); #else EnterCriticalSection(&m_ct); #endif m_nNeedSend = nLen + 5; memcpy(m_uchData, data, m_nNeedSend); #ifndef WIN32 pthread_mutex_unlock(&m_ct); #else LeaveCriticalSection(&m_ct); #endif SOCKADDR_IN addrBcast; // 设置广播地址,这里的广播端口号 addrBcast.sin_family = AF_INET; addrBcast.sin_addr.s_addr = INADDR_BROADCAST; // ::inet_addr("255.255.255.255"); addrBcast.sin_port = htons(m_nDesPort); int ntmp = CCChannel::sendtoclient(m_SocketLANT,(char *)data, m_nNeedSend, 0,(SOCKADDR *)&addrBcast, sizeof(SOCKADDR),1); m_bTimeOut = FALSE; m_bLANTooling = TRUE; m_dwBeginTool = CCWorker::JVGetTime(); if(ntmp != m_nNeedSend) { return FALSE; } m_bNewTool = TRUE; return TRUE; } #ifndef WIN32 void* CCLanTool::LANTSndProc(void* pParam) #else UINT CCLanTool::LANTSndProc(LPVOID pParam) #endif { CCLanTool *pWorker = (CCLanTool *)pParam; #ifndef WIN32 if(pWorker == NULL) { return NULL; } #else if(pWorker == NULL) { return 0; } WaitForSingleObject(pWorker->m_hLANToolSndStartEvent, INFINITE); if(pWorker->m_hLANToolSndStartEvent > 0) { CloseHandle(pWorker->m_hLANToolSndStartEvent); pWorker->m_hLANToolSndStartEvent = 0; } #endif DWORD dwend = 0; while (TRUE) { #ifndef WIN32 if(pWorker->m_bSndEnd) { break; } #else if(WAIT_OBJECT_0 == WaitForSingleObject(pWorker->m_hLANToolSndEndEvent, 0)) { break; } #endif if(pWorker->m_bNewTool) {//有新的搜索 pWorker->m_bStopToolImd = FALSE; pWorker->m_bNewTool = FALSE; char ip[30] = {0}; SOCKADDR_IN addRemote; addRemote.sin_family = AF_INET; addRemote.sin_addr.s_addr = INADDR_BROADCAST; // ::inet_addr("255.255.255.255"); addRemote.sin_port = htons(pWorker->m_nDesPort); BOOL bstop=FALSE; int ncount = pWorker->m_IpList.size(); // ncount = (ncount>1?1:ncount); for(int k = 0; k < ncount;k ++) { //只检测第一个网卡,网关为空的情况暂时不考虑了 char ip_head[30] = {0}; strcpy(ip_head,pWorker->m_IpList[k].IpHead); //从当前网卡ip段开始广播,与自己最相近的段成功率越高 if(pWorker->m_IpList[k].nIP3 >= 0 && pWorker->m_IpList[k].nIP3 < 256) { int j=0; //从当前ip值向前发送10个段 int n = pWorker->m_IpList[k].nIP3 - 10; n = ((n>=0)?n:0); for(j=n; j<pWorker->m_IpList[k].nIP3; j++) { for(int i = 1;i < 254;i ++) { if(pWorker->m_bStopToolImd) { i=256; j=256; bstop = TRUE; break; } sprintf(ip,"%s%d.%d",ip_head,j,i); addRemote.sin_addr.s_addr = ::inet_addr(ip); CCChannel::sendtoclientm(pWorker->m_SocketLANT,(char *)pWorker->m_uchData,pWorker->m_nNeedSend,0,(SOCKADDR *)&addRemote, sizeof(SOCKADDR),1); if(pWorker->m_nTimeOut > 0) { dwend = CCWorker::JVGetTime(); if(dwend > pWorker->m_dwBeginTool + pWorker->m_nTimeOut || dwend < pWorker->m_dwBeginTool) {//超时 i=256; j=256; bstop = TRUE; break; } } } } if(bstop) { break; } //从当前ip值向后发送10个段 n = pWorker->m_IpList[k].nIP3 + 10; n = ((n<=255)?n:255); for(j=pWorker->m_IpList[k].nIP3+1; j<=n; j++) { for(int i = 1;i < 254;i ++) { if(pWorker->m_bStopToolImd) { i=256; j=256; bstop = TRUE; break; } sprintf(ip,"%s%d.%d",ip_head,j,i); addRemote.sin_addr.s_addr = ::inet_addr(ip); CCChannel::sendtoclientm(pWorker->m_SocketLANT,(char *)pWorker->m_uchData,pWorker->m_nNeedSend,0,(SOCKADDR *)&addRemote, sizeof(SOCKADDR),1); if(pWorker->m_nTimeOut > 0) { dwend = CCWorker::JVGetTime(); if(dwend > pWorker->m_dwBeginTool + pWorker->m_nTimeOut || dwend < pWorker->m_dwBeginTool) {//超时 i=256; j=256; bstop = TRUE; break; } } } } if(bstop) { break; } //向前面剩余段发送 n = pWorker->m_IpList[k].nIP3 - 10; n = ((n>=0)?n:0); for(j=0; j<n; j++) { for(int i = 1;i < 254;i ++) { if(pWorker->m_bStopToolImd) { i=256; j=256; bstop = TRUE; break; } sprintf(ip,"%s%d.%d",ip_head,j,i); addRemote.sin_addr.s_addr = ::inet_addr(ip); CCChannel::sendtoclientm(pWorker->m_SocketLANT,(char *)pWorker->m_uchData,pWorker->m_nNeedSend,0,(SOCKADDR *)&addRemote, sizeof(SOCKADDR),1); if(pWorker->m_nTimeOut > 0) { dwend = CCWorker::JVGetTime(); if(dwend > pWorker->m_dwBeginTool + pWorker->m_nTimeOut || dwend < pWorker->m_dwBeginTool) {//超时 i=256; j=256; bstop = TRUE; break; } } } } if(bstop) { break; } //向后面剩余段发送 n = pWorker->m_IpList[k].nIP3 + 11; n = ((n<=255)?n:255); for(j=n; j<256; j++) { for(int i = 1;i < 254;i ++) { if(pWorker->m_bStopToolImd) { i=256; j=256; bstop = TRUE; break; } sprintf(ip,"%s%d.%d",ip_head,j,i); addRemote.sin_addr.s_addr = ::inet_addr(ip); CCChannel::sendtoclientm(pWorker->m_SocketLANT,(char *)pWorker->m_uchData,pWorker->m_nNeedSend,0,(SOCKADDR *)&addRemote, sizeof(SOCKADDR),1); if(pWorker->m_nTimeOut > 0) { dwend = CCWorker::JVGetTime(); if(dwend > pWorker->m_dwBeginTool + pWorker->m_nTimeOut || dwend < pWorker->m_dwBeginTool) {//超时 i=256; j=256; bstop = TRUE; break; } } } } if(bstop) { break; } } } } else { CCWorker::jvc_sleep(10); } } return 0; } #ifndef WIN32 void* CCLanTool::LANTRcvProc(void* pParam) #else UINT CCLanTool::LANTRcvProc(LPVOID pParam) #endif { CCLanTool *pWorker = (CCLanTool *)pParam; #ifndef WIN32 if(pWorker == NULL) { return NULL; } #else if(pWorker == NULL) { return 0; } WaitForSingleObject(pWorker->m_hLANToolRcvStartEvent, INFINITE); if(pWorker->m_hLANToolRcvStartEvent > 0) { CloseHandle(pWorker->m_hLANToolRcvStartEvent); pWorker->m_hLANToolRcvStartEvent = 0; } #endif SOCKADDR_IN clientaddr; int addrlen = sizeof(SOCKADDR_IN); BYTE recBuf[RC_DATA_SIZE]={0}; BYTE *puchSendBuf = new BYTE[JVN_BAPACKDEFLEN]; int nRecvLen = 0; int nType = 0; int nRLen = 0; DWORD dwEnd = 0; while (TRUE) { #ifndef WIN32 if(pWorker->m_bRcvEnd) { break; } #else if(WAIT_OBJECT_0 == WaitForSingleObject(pWorker->m_hLANToolRcvEndEvent, 0)) { break; } #endif nRecvLen = 0; nRLen = 0; nType = 0; memset(recBuf, 0, RC_DATA_SIZE); nRecvLen = CCChannel::receivefrom(pWorker->m_SocketLANT,(char *)&recBuf, RC_DATA_SIZE, 0, (SOCKADDR*)&clientaddr,&addrlen,1); //接收:类型(1)+长度(4)+数据类型(1)+产品类型(4)+编组号(4)+云视通号码(4)+序列号(4)+生产日期(4)+GUID(?) if( nRecvLen > 0) { if(recBuf[0] == JVN_RSP_TOOL) { memcpy(&nRLen, &recBuf[1], 4);//长度(4) STLANTOOLINFO stinfo; stinfo.uchType = recBuf[5]; memcpy(&stinfo.nCardType, &recBuf[6], 4);//搜索ID(4) memcpy(stinfo.chGroup, &recBuf[10], 4); memcpy(&stinfo.nYSTNUM, &recBuf[14], 4); memcpy(&stinfo.nSerial, &recBuf[18], 4); memcpy(&stinfo.nDate, &recBuf[22], 4); memcpy(&stinfo.guid, &recBuf[26], sizeof(GUID)); sprintf(stinfo.chIP,"%s",inet_ntoa(clientaddr.sin_addr)); stinfo.nPort = ntohs(clientaddr.sin_port); if(pWorker->m_nTimeOut <= 0) {//不需判断超时 int nret = pWorker->m_pWorker->m_pfLANTData(&stinfo); if(nret == 1) {//进行配置 需向设备发送 #ifndef WIN32 time_t now = time(0); tm *tnow = localtime(&now); sprintf(stinfo.chCurTime,"%4d-%02d-%02d %02d:%02d:%02d",1900+tnow->tm_year,tnow->tm_mon+1,tnow->tm_mday,tnow->tm_hour,tnow->tm_min,tnow->tm_sec); #else SYSTEMTIME sys; GetLocalTime(&sys); sprintf(stinfo.chCurTime,"%4d-%02d-%02d %02d:%02d:%02d",sys.wYear,sys.wMonth,sys.wDay,sys.wHour,sys.wMinute, sys.wSecond); #endif //类型(1)+长度(4)+STTOOLPACK+用户名(?)+密码(?)+配置内容(?) puchSendBuf[0] = JVN_REQ_TOOL; if(stinfo.nYSTNUM > 0 && stinfo.pchData !=NULL && stinfo.nDLen >= 0 && stinfo.nDLen < JVN_BAPACKDEFLEN - sizeof(STLANTOOLINFO) - 1000) {//带配置 STTOOLPACK sthead; sthead.uchCType = 2; sthead.nDLen = stinfo.nDLen; sthead.nPNLen = strlen(stinfo.chPName); sthead.nPWLen = strlen(stinfo.chPWord); memcpy(sthead.chGroup, stinfo.chGroup, 4); sthead.nYSTNUM = stinfo.nYSTNUM; memcpy(sthead.chCurTime, stinfo.chCurTime, sizeof(sthead.chCurTime)); puchSendBuf[0] = JVN_REQ_TOOL; int nlen = sizeof(STTOOLPACK) + sthead.nPNLen + sthead.nPWLen + sthead.nDLen; memcpy(&puchSendBuf[1], &nlen, 4); memcpy(&puchSendBuf[5], &sthead, sizeof(STTOOLPACK)); memcpy(&puchSendBuf[5+sizeof(STTOOLPACK)], stinfo.chPName, sthead.nPNLen); memcpy(&puchSendBuf[5+sizeof(STTOOLPACK)+sthead.nPNLen], stinfo.chPWord, sthead.nPWLen); memcpy(&puchSendBuf[5+sizeof(STTOOLPACK)+sthead.nPNLen+sthead.nPWLen], stinfo.pchData, stinfo.nDLen); int nl = CCChannel::sendtoclientm(pWorker->m_SocketLANT,(char *)puchSendBuf,nlen+5,0,(SOCKADDR *)&clientaddr, sizeof(SOCKADDR),100); int ll = nl; } else if(stinfo.nYSTNUM > 0 && stinfo.nDLen == 0) {//无配置 STTOOLPACK sthead; sthead.uchCType = 2; sthead.nDLen = stinfo.nDLen; sthead.nPNLen = strlen(stinfo.chPName); sthead.nPWLen = strlen(stinfo.chPWord); memcpy(sthead.chGroup, stinfo.chGroup, 4); sthead.nYSTNUM = stinfo.nYSTNUM; memcpy(sthead.chCurTime, stinfo.chCurTime, sizeof(sthead.chCurTime)); puchSendBuf[0] = JVN_REQ_TOOL; int nlen = sizeof(STTOOLPACK) + sthead.nPNLen + sthead.nPWLen; memcpy(&puchSendBuf[1], &nlen, 4); memcpy(&puchSendBuf[5], &sthead, sizeof(STTOOLPACK)); memcpy(&puchSendBuf[5+sizeof(STTOOLPACK)], stinfo.chPName, sthead.nPNLen); memcpy(&puchSendBuf[5+sizeof(STTOOLPACK)+sthead.nPNLen], stinfo.chPWord, sthead.nPWLen); int nl = CCChannel::sendtoclientm(pWorker->m_SocketLANT,(char *)puchSendBuf,nlen+5,0,(SOCKADDR *)&clientaddr, sizeof(SOCKADDR),100); int ll = nl; } } } else { dwEnd = CCWorker::JVGetTime(); if(dwEnd <= pWorker->m_dwBeginTool + pWorker->m_nTimeOut && dwEnd >= pWorker->m_dwBeginTool) {//正常结果 int nret = pWorker->m_pWorker->m_pfLANTData(&stinfo); if(nret == 1) {//进行配置 需向设备发送 #ifndef WIN32 time_t now = time(0); tm *tnow = localtime(&now); sprintf(stinfo.chCurTime,"%4d-%02d-%02d %02d:%02d:%02d",1900+tnow->tm_year,tnow->tm_mon+1,tnow->tm_mday,tnow->tm_hour,tnow->tm_min,tnow->tm_sec); #else SYSTEMTIME sys; GetLocalTime(&sys); sprintf(stinfo.chCurTime,"%4d-%02d-%02d %02d:%02d:%02d",sys.wYear,sys.wMonth,sys.wDay,sys.wHour,sys.wMinute, sys.wSecond); #endif //类型(1)+长度(4)+STTOOLPACK+用户名(?)+密码(?)+配置内容(?) puchSendBuf[0] = JVN_REQ_TOOL; if(stinfo.nYSTNUM > 0 && stinfo.pchData !=NULL && stinfo.nDLen >= 0 && stinfo.nDLen < JVN_BAPACKDEFLEN - sizeof(STLANTOOLINFO) - 1000) {//带配置 STTOOLPACK sthead; sthead.uchCType = 2; sthead.nDLen = stinfo.nDLen; sthead.nPNLen = strlen(stinfo.chPName); sthead.nPWLen = strlen(stinfo.chPWord); memcpy(sthead.chGroup, stinfo.chGroup, 4); sthead.nYSTNUM = stinfo.nYSTNUM; memcpy(sthead.chCurTime, stinfo.chCurTime, sizeof(sthead.chCurTime)); puchSendBuf[0] = JVN_REQ_TOOL; int nlen = sizeof(STTOOLPACK) + sthead.nPNLen + sthead.nPWLen + sthead.nDLen; memcpy(&puchSendBuf[1], &nlen, 4); memcpy(&puchSendBuf[5], &sthead, sizeof(STTOOLPACK)); memcpy(&puchSendBuf[5+sizeof(STTOOLPACK)], stinfo.chPName, sthead.nPNLen); memcpy(&puchSendBuf[5+sizeof(STTOOLPACK)+sthead.nPNLen], stinfo.chPWord, sthead.nPWLen); memcpy(&puchSendBuf[5+sizeof(STTOOLPACK)+sthead.nPNLen+sthead.nPWLen], stinfo.pchData, stinfo.nDLen); int nl = CCChannel::sendtoclientm(pWorker->m_SocketLANT,(char *)puchSendBuf,nlen+5,0,(SOCKADDR *)&clientaddr, sizeof(SOCKADDR),100); int ll = nl; } else if(stinfo.nYSTNUM > 0 && stinfo.nDLen == 0) {//无配置 STTOOLPACK sthead; sthead.uchCType = 2; sthead.nDLen = stinfo.nDLen; sthead.nPNLen = strlen(stinfo.chPName); sthead.nPWLen = strlen(stinfo.chPWord); memcpy(sthead.chGroup, stinfo.chGroup, 4); sthead.nYSTNUM = stinfo.nYSTNUM; memcpy(sthead.chCurTime, stinfo.chCurTime, sizeof(sthead.chCurTime)); puchSendBuf[0] = JVN_REQ_TOOL; int nlen = sizeof(STTOOLPACK) + sthead.nPNLen + sthead.nPWLen; memcpy(&puchSendBuf[1], &nlen, 4); memcpy(&puchSendBuf[5], &sthead, sizeof(STTOOLPACK)); memcpy(&puchSendBuf[5+sizeof(STTOOLPACK)], stinfo.chPName, sthead.nPNLen); memcpy(&puchSendBuf[5+sizeof(STTOOLPACK)+sthead.nPNLen], stinfo.chPWord, sthead.nPWLen); int nl = CCChannel::sendtoclientm(pWorker->m_SocketLANT,(char *)puchSendBuf,nlen+5,0,(SOCKADDR *)&clientaddr, sizeof(SOCKADDR),100); int ll = nl; } } } else {//超时结果直接舍弃,判断是否提示超时 if(!pWorker->m_bTimeOut) { //pWorker->m_pWorker->m_pfBCData(unSerchID, &recBuf[9], nRLen-4, stLSResult.chClientIP, FALSE); //pWorker->m_pWorker->m_pfBCData(unSerchID, NULL, 0, "", TRUE); } pWorker->m_bTimeOut = TRUE; pWorker->m_bLANTooling = FALSE; } } } } else { if(pWorker->m_bLANTooling && pWorker->m_nTimeOut > 0 && !pWorker->m_bTimeOut) {//正在执行搜索,有计时要求,还没提示过 dwEnd = CCWorker::JVGetTime(); if(dwEnd >= pWorker->m_dwBeginTool + pWorker->m_nTimeOut || dwEnd < pWorker->m_dwBeginTool) {//超时结果直接舍弃,判断是否提示超时 // pWorker->m_pWorker->m_pfBCData(pWorker->m_unLANTID, NULL, 0, "", TRUE); pWorker->m_bTimeOut = TRUE; pWorker->m_bLANTooling = FALSE; } } CCWorker::jvc_sleep(10); } continue;//是自定义广播只执行到此,不执行设备搜索代码 } if(puchSendBuf != NULL) { delete[] puchSendBuf; } return 0; }
e0066574258172ad88eb1034efc24abf4c0d57cd
0ac4a3db34995825cb972bb3a739d00adf18ce19
/c/c3/c3_11/c3_11.cpp
217f37848512521eec8d2448893fe0ca240623d2
[]
no_license
leearvin/projects
1f0bdd0d8d1eae37ef60e29b9f1e0ca9ea063838
d5afedc8cc0bf2bd57fb37828dba64a16be2b347
refs/heads/master
2021-07-10T20:21:49.218816
2020-09-08T14:59:54
2020-09-08T14:59:54
70,250,030
0
0
null
null
null
null
GB18030
C++
false
false
322
cpp
//输出关系表达式的值 #include <stdio.h> // 1,0 // 0,0 void main() { char c='k'; int i=1,j=2,k=3; printf("%d,%d\n",'a'+5<c,-i-2>=k+1); //'a'的ASCII值是97,'k'的ASCII值是107,97+5<107 True. -1-2>3+1 False printf("%d,%d\n",i+j+k==-2*j,k==j==i+5);//6==-2*2 False , k==j False 故值为0 0==1+5 False }
a0c50c2aec1ba212dea05c26857d0c04d9e6790a
0d709ca306d2182afc0dde344d39fd182df3cc44
/codeforces/lex.cpp
6a9ca87e5583ea585a6b522a0828c3eac5579930
[]
no_license
abhibansal530/Codes
d967dea530f7c0379c12493013c596cc0c472b70
7e2d313e011523375b7613924dccdd5d618842a7
refs/heads/master
2021-11-05T03:38:34.743894
2021-10-31T16:37:37
2021-10-31T16:37:37
54,504,455
0
0
null
null
null
null
UTF-8
C++
false
false
365
cpp
#include<bits/stdc++.h> using namespace std; string next(string s){ int l=s.size(); int i,j; for(i=l-1;i>=0;i--){ if(s[i]!='z'){ s[i]+=1; for(j=i+1;j<l;j++){ s[j]='a'; } return s; } } } int main(){ string s,t; cin>>s>>t; string a; a=next(s); //cout<<a<<endl; if(a<t) cout<<a<<endl; else cout<<"No such string"<<endl; return 0; }
c072e8e7bfdbbf2ffcff817b257d07722a7ba019
dc2f96addc945de3eca2b7413bc1d603fb35a07d
/kernels/geometry/fillcone.h
9d1c9a9a32bb7827f08dc374b969f866f6dbf96f
[ "Apache-2.0", "IJG", "LicenseRef-scancode-generic-cla" ]
permissive
marty1885/embree-arm
cd600afc5bcd042bf7fdfcf0873d5659b643add2
60651db1eb56a5ef2c9c56e49eeca175ff05a112
refs/heads/master
2021-01-13T16:24:37.838967
2017-04-05T14:23:48
2017-04-05T14:23:48
79,805,191
13
3
null
null
null
null
UTF-8
C++
false
false
7,966
h
// ======================================================================== // // Copyright 2009-2016 Intel Corporation // // // // Licensed under the Apache License, Version 2.0 (the "License"); // // you may not use this file except in compliance with the License. // // You may obtain a copy of the License at // // // // http://www.apache.org/licenses/LICENSE-2.0 // // // // Unless required by applicable law or agreed to in writing, software // // distributed under the License is distributed on an "AS IS" BASIS, // // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // // See the License for the specific language governing permissions and // // limitations under the License. // // ======================================================================== // #pragma once #include "../common/ray.h" #include "plane.h" #include "cone.h" namespace embree { namespace isa { struct FillCone { const Vec3fa p0_i; //!< start location const Vec3fa p1_i; //!< end position const Vec3fa n0; //!< start direction const Vec3fa n1; //!< end direction const float r0; //!< start radius const float r1; //!< end radius __forceinline FillCone(const Vec3fa& p0, const Vec3fa& n0, const float r0, const Vec3fa& p1, const Vec3fa& n1, const float r1) : p0_i(p0), n0(n0), r0(r0), p1_i(p1), n1(n1), r1(r1) {} __forceinline float distance_f(const Vec3fa& p,Vec3fa& q0, Vec3fa& q1, Vec3fa& Ng, const Vec3fa& p0, const Vec3fa& n0, const float r0, const Vec3fa& p1, const Vec3fa& n1, const float r1) const { const Vec3fa N = cross(p-p0,p1-p0); #if defined (__AVX__) const vfloat<8> p0p1 = vfloat<8>(vfloat<4>(p0),vfloat<4>(p1)); const vfloat<8> n0n1 = vfloat<8>(vfloat<4>(n0),vfloat<4>(n1)); const vfloat<8> r0r1 = vfloat<8>(vfloat<4>(r0),vfloat<4>(r1)); const vfloat<8> NN = vfloat<8>(vfloat<4>(N)); const vfloat<8> q0q1 = p0p1 + r0r1*normalize(cross(n0n1,NN)); q0 = (Vec3fa)extract4<0>(q0q1); q1 = (Vec3fa)extract4<1>(q0q1); #else q0 = p0+r0*normalize(cross(n0,N)); q1 = p1+r1*normalize(cross(n1,N)); #endif Ng = normalize(cross(q1-q0,N)); float dt = dot(p-q0,Ng); if (unlikely(std::isnan(dt))) return 1.0f; return dt; } __forceinline float distance_f(const Vec3fa& p, const Vec3fa& p0, const Vec3fa& n0, const float r0, const Vec3fa& p1, const Vec3fa& n1, const float r1) const { Vec3fa q0; Vec3fa q1; Vec3fa Ng; return distance_f(p,q0,q1,Ng,p0,n0,r0,p1,n1,r1); } __forceinline Vec3fa grad_distance_f(const Vec3fa& p, const Vec3fa& p0, const Vec3fa& n0, const float r0, const Vec3fa& p1, const Vec3fa& n1, const float r1) const { const Vec3fa N = cross(p-p0,p1-p0); const Vec3fa dNdx = cross(Vec3fa(1,0,0),p1-p0); const Vec3fa dNdy = cross(Vec3fa(0,1,0),p1-p0); const Vec3fa dNdz = cross(Vec3fa(0,0,1),p1-p0); const Vec3fa N0 = cross(n0,N); const Vec3fa dN0dx = cross(n0,dNdx); const Vec3fa dN0dy = cross(n0,dNdy); const Vec3fa dN0dz = cross(n0,dNdz); const Vec3fa N1 = cross(n1,N); const Vec3fa dN1dx = cross(n1,dNdx); const Vec3fa dN1dy = cross(n1,dNdy); const Vec3fa dN1dz = cross(n1,dNdz); const Vec3fa q0 = p0+r0*normalize(N0); const Vec3fa dq0dx = r0*dnormalize(N0,dN0dx); const Vec3fa dq0dy = r0*dnormalize(N0,dN0dy); const Vec3fa dq0dz = r0*dnormalize(N0,dN0dz); const Vec3fa q1 = p1+r1*normalize(N1); const Vec3fa dq1dx = r1*dnormalize(N1,dN1dx); const Vec3fa dq1dy = r1*dnormalize(N1,dN1dy); const Vec3fa dq1dz = r1*dnormalize(N1,dN1dz); const Vec3fa K = cross(q1-q0,N); const Vec3fa dKdx = cross(dq1dx-dq0dx,N) + cross(q1-q0,dNdx); const Vec3fa dKdy = cross(dq1dy-dq0dy,N) + cross(q1-q0,dNdy); const Vec3fa dKdz = cross(dq1dz-dq0dz,N) + cross(q1-q0,dNdz); const Vec3fa Ng = normalize(K); const Vec3fa dNgdx = dnormalize(K,dKdx); const Vec3fa dNgdy = dnormalize(K,dKdy); const Vec3fa dNgdz = dnormalize(K,dKdz); const float f = dot(p-q0,Ng); const float dfdx = dot(Vec3fa(1,0,0)-dq0dx,Ng) + dot(p-q0,dNgdx); const float dfdy = dot(Vec3fa(0,1,0)-dq0dy,Ng) + dot(p-q0,dNgdy); const float dfdz = dot(Vec3fa(0,0,1)-dq0dz,Ng) + dot(p-q0,dNgdz); return Vec3fa(dfdx,dfdy,dfdz); } __forceinline bool intersect(const Ray& ray, float& u, float& t, Vec3fa& Ng) const { STAT(Stat::get().user[0]++); /* move closer to geometry to make intersection stable */ const Vec3fa C = 0.5f*(p0_i+p1_i); const Vec3fa ndir = normalize(ray.dir); const float dirlen = length(ray.dir); const float tb = dot(C-ray.org,ndir); const Vec3fa org = ray.org+tb*ndir; const Vec3fa dir = ray.dir; const Vec3fa p0 = p0_i-org; const Vec3fa p1 = p1_i-org; const float r01 = max(r0,r1); const float eps = 128.0f*1.19209e-07f*abs(tb); /* intersect with bounding cone */ BBox1f tc; const Cone cone(p0,r01,p1,r01); if (!cone.intersect(dir,tc)) { STAT(Stat::get().user[1]++); return false; } /* intersect with cap-planes */ BBox1f tp(ray.tnear-tb,ray.tfar-tb); tp = embree::intersect(tp,HalfPlane(p0,+n0).intersect(zero,dir)); tp = embree::intersect(tp,HalfPlane(p1,-n1)intersect(zero,dir)); const BBox1f td = embree::intersect(tc,tp); if (td.lower > td.upper) { STAT(Stat::get().user[2]++); return false; } tc.lower = tp.lower; tc.upper = min(tc.upper+0.1f*r01,tp.upper); /* shrink stepsize for distorted fill-cones */ const Vec3fa p1p0 = p1-p0; const Vec3fa norm_p1p0 = normalize(p1p0); float A0 = abs(dot(norm_p1p0,normalize(n0))); float A1 = abs(dot(norm_p1p0,normalize(n1))); float rcpMaxDerivative = max(0.01f,min(A0,A1))/dirlen; STAT(Stat::get().user[3]++); t = td.lower; Vec3fa p = t*dir; float inout = 1.0f; for (size_t i=0; i<2000; i++) { STAT(Stat::get().user[4]++); if (unlikely(t > tc.upper)) { STAT(Stat::get().user[6]++); break; } Vec3fa q0,q1,Ng; float dt = distance_f(p,q0,q1,Ng,p0,n0,r0,p1,n1,r1); if (i == 0 && dt < 0.0f) inout = -1.0f; t += rcpMaxDerivative*inout*dt; //if (p == t*d) break; p = t*dir; if (unlikely(abs(dt) < eps)) { STAT(Stat::get().user[7]++); u = dot(p-q0,q1-q0)*rcp_length2(q1-q0); break; } } if (t < tc.lower || t > tc.upper) { return false; } t += tb; Ng = grad_distance_f(p,p0,n0,r0,p1,n1,r1); if (std::isnan(Ng.x) || std::isnan(Ng.y) || std::isnan(Ng.z)) return false; return true; } }; } }
28f4d9f89861247f142f91e645bf309cf3d09eee
e2cc28e162f14551f189390c0896b0334b29eaba
/the_concepts_and_practice_of_math_fin/Project5/ProjectB_7/exotic_options/main.cpp
2757d05a279e2ae160fa38ee06d51ed7e22c05fe
[ "MIT" ]
permissive
calvin456/intro_derivative_pricing
3f3cf4f217e93377a7ade9b9a81cd8a8734177a7
0841fbc0344bee00044d67977faccfd2098b5887
refs/heads/master
2021-01-10T12:59:32.474807
2016-12-27T08:53:12
2016-12-27T08:53:12
46,112,607
8
5
null
null
null
null
UTF-8
C++
false
false
10,507
cpp
// main.cpp //test Asian and discrete barrier option. #include <iostream> #include <BlackScholesFormulas.h> #include <barrier_options_analytical.h> #include<Parameters.h> #include<ParametersPWC.h> #include<MCStatistics.h> #include<ConvergenceTable.h> #include<AntiThetic.h> #include <MersenneTwister.h> #include<PathDependentAsian.h> #include<PathDependentDiscreteDO.h> #include<PathDependentDiscreteDI.h> #include<ExoticBSEngine.h> using namespace std; using namespace BSFunction; int main(){ try{ double Spot(100.0); double Vol(0.1); double r(.05); double d(.03); double Strike(103.0); double Expiry(1.0); unsigned long NumberOfPaths(static_cast<unsigned long>(1e06)); //---------------------------------------------------------- //pricing BSM call and put cout << "BSM call " << Spot << ", " << Vol << ", " << Expiry << ": "; cout << BlackScholesCall(Spot, Strike, r, d, Vol, Expiry) << endl; cout << endl; //---------------------------------------------------------- //pricing Asian options PayOffCall thePayOff(Strike); unsigned long NumberOfDates(12); ParametersConstant VolParam(Vol); ParametersConstant rParam(r); ParametersConstant dParam(d); //Assume flat struture for Vol,r, and d MJArray times(NumberOfDates); for (unsigned long i = 0; i < NumberOfDates; i++) times[i] = (i + 1.0)*Expiry / NumberOfDates; MJArray _Vol(NumberOfDates); MJArray _r(NumberOfDates); MJArray _d(NumberOfDates); for (unsigned long i(0); i < NumberOfDates; ++i){ _Vol[i] = Vol; _r[i] = r; _d[i] = d; } ParametersPWC _VolParam(times, _Vol); ParametersPWC _rParam(times, _r); ParametersPWC _dParam(times, _d); StatisticsMean gatherer_mean; StatisticsSE gatherer_se; vector<Wrapper<StatisticsMC>> stat_vec; stat_vec.resize(2); stat_vec[0] = gatherer_mean; stat_vec[1] = gatherer_se; StatsGatherer gathererOne(stat_vec); //Generate convergence table ConvergenceTable gathererTwo(gathererOne); RandomMersenneTwister generator(NumberOfDates); AntiThetic GenTwo(generator); //(i) maturity 1 year and monthly setting dates PathDependentAsian theOption(times, Expiry, thePayOff); //ExoticBSEngine theEngine(theOption, rParam, dParam, VolParam, GenTwo, Spot); ExoticBSEngine theEngine(theOption, _rParam, _dParam, _VolParam, GenTwo, Spot); theEngine.DoSimulation(gathererTwo, NumberOfPaths); vector<vector<double> > results = gathererTwo.GetResultsSoFar(); cout << "Asian call option - (i) maturity 1 year and monthly setting dates : " << endl; for (unsigned long i = 0; i < results.size(); i++){ for (unsigned long j = 0; j < results[i].size(); j++) cout << results[i][j] << " "; cout << endl; } cout << endl; //(ii) maturity 1 year and three-monthly setting dates NumberOfDates = 3; MJArray times1(NumberOfDates); for (unsigned long i = 0; i < NumberOfDates; i++) times1[i] = (i + 1.0)*Expiry / NumberOfDates; MJArray _Vol1(NumberOfDates); MJArray _r1(NumberOfDates); MJArray _d1(NumberOfDates); for (unsigned long i(0); i < NumberOfDates; ++i){ _Vol1[i] = Vol; _r1[i] = r; _d1[i] = d; } ParametersPWC _VolParam1(times1, _Vol1); ParametersPWC _rParam1(times1, _r1); ParametersPWC _dParam1(times1, _d1); PathDependentAsian theOption1(times1, Expiry, thePayOff); GenTwo.Reset(); //ExoticBSEngine theEngine1(theOption1, rParam, dParam, VolParam, GenTwo, Spot); ExoticBSEngine theEngine1(theOption1, _rParam1, _dParam1, _VolParam1, GenTwo, Spot); ConvergenceTable gathererTwo1(gathererOne); theEngine1.DoSimulation(gathererTwo1, NumberOfPaths); vector<vector<double> > results1 = gathererTwo1.GetResultsSoFar(); cout << "Asian call option - (i) maturity 1 year and three-monthly setting dates : " << endl; for (unsigned long i = 0; i < results1.size(); i++){ for (unsigned long j = 0; j < results1[i].size(); j++) cout << results1[i][j] << " "; cout << endl; } cout << endl; //(iii) maturity 1 year and weekly setting dates NumberOfDates = 52; MJArray times2(NumberOfDates); for (unsigned long i = 0; i < NumberOfDates; i++) times2[i] = (i + 1.0)*Expiry / NumberOfDates; MJArray _Vol2(NumberOfDates); MJArray _r2(NumberOfDates); MJArray _d2(NumberOfDates); for (unsigned long i(0); i < NumberOfDates; ++i){ _Vol2[i] = Vol; _r2[i] = r; _d2[i] = d; } ParametersPWC _VolParam2(times2, _Vol2); ParametersPWC _rParam2(times2, _r2); ParametersPWC _dParam2(times2, _d2); PathDependentAsian theOption2(times2, Expiry, thePayOff); GenTwo.Reset(); //ExoticBSEngine theEngine2(theOption2, rParam, dParam, VolParam, GenTwo, Spot); ExoticBSEngine theEngine2(theOption2, _rParam2, _dParam2, _VolParam2, GenTwo, Spot); ConvergenceTable gathererTwo2(gathererOne); theEngine2.DoSimulation(gathererTwo2, NumberOfPaths); vector<vector<double> > results2 = gathererTwo2.GetResultsSoFar(); cout << "Asian call option - (i) maturity 1 year and weekly setting dates : " << endl; for (unsigned long i = 0; i < results2.size(); i++){ for (unsigned long j = 0; j < results2[i].size(); j++) cout << results2[i][j] << " "; cout << endl; } cout << endl; //----------------------------------------------------------- //Pricing discrete barrier options double BarrierDown(80.0); NumberOfDates = 12; Spot = 90.0; //(i) DOC w/ barrier 80 and monthly barrier dates PathDependentDiscreteDO theOption3(times, Expiry, BarrierDown, thePayOff); GenTwo.Reset(); cout << "BSM call " << Spot << ", " << Vol << ", " << Expiry << ": "; cout << BlackScholesCall(Spot, Strike, r, d, Vol, Expiry) << endl; cout << "Down-and-out call - " << Strike << ", " << BarrierDown << ": "; cout << down_out_call(Spot, Strike, BarrierDown, r, d, Vol, Expiry) << endl; cout << endl; //ExoticBSEngine theEngine3(theOption3, rParam, dParam, VolParam, GenTwo, Spot); ExoticBSEngine theEngine3(theOption3, _rParam, _dParam, _VolParam, GenTwo, Spot); ConvergenceTable gathererTwo3(gathererOne); theEngine3.DoSimulation(gathererTwo3, NumberOfPaths); vector<vector<double> > results3 = gathererTwo3.GetResultsSoFar(); cout << "(i) DOC w/ barrier 80 - maturity 1 year and monthly setting dates : " << endl; for (unsigned long i = 0; i < results3.size(); i++){ for (unsigned long j = 0; j < results3[i].size(); j++) cout << results3[i][j] << " "; cout << endl; } cout << endl; //(ii) DIC w/ barrier 80 and monthly barrier dates cout << "Down-and-in call - " << Strike << ", " << BarrierDown << ": "; cout << down_in_call(Spot, Strike, BarrierDown, r, d, Vol, Expiry) << endl; cout << endl; PathDependentDiscreteDI theOption4(times, Expiry, BarrierDown, thePayOff); GenTwo.Reset(); //ExoticBSEngine theEngine4(theOption4, rParam, dParam, VolParam, GenTwo, Spot); ExoticBSEngine theEngine4(theOption4, _rParam, _dParam, _VolParam, GenTwo, Spot); ConvergenceTable gathererTwo4(gathererOne); theEngine4.DoSimulation(gathererTwo4, NumberOfPaths); vector<vector<double> > results4 = gathererTwo4.GetResultsSoFar(); cout << "(ii) DIC w/ barrier 80 - maturity 1 year and monthly setting dates : " << endl; for (unsigned long i = 0; i < results4.size(); i++){ for (unsigned long j = 0; j < results4[i].size(); j++) cout << results4[i][j] << " "; cout << endl; } cout << endl; //(iii) DOP w/ barrier 80 and monthly barrier dates cout << "BSM put " << Spot << ", " << Vol << ", " << Expiry << ": "; cout << BlackScholesPut(Spot, Strike, r, d, Vol, Expiry) << endl; cout << "Down-and-out put - " << Strike << ", " << BarrierDown << ": "; cout << down_out_put(Spot, Strike, BarrierDown, r, d, Vol, Expiry) << endl; cout << endl; PayOffPut thePayOff1(Strike); PathDependentDiscreteDO theOption5(times, Expiry, BarrierDown, thePayOff1); GenTwo.Reset(); //ExoticBSEngine theEngine5(theOption5, rParam, dParam, VolParam, GenTwo, Spot); ExoticBSEngine theEngine5(theOption5, _rParam, _dParam, _VolParam, GenTwo, Spot); ConvergenceTable gathererTwo5(gathererOne); theEngine5.DoSimulation(gathererTwo5, NumberOfPaths); vector<vector<double> > results5 = gathererTwo5.GetResultsSoFar(); cout << "(iii) DOP w/ barrier 80 - maturity 1 year and monthly setting dates : " << endl; for (unsigned long i = 0; i < results5.size(); i++){ for (unsigned long j = 0; j < results5[i].size(); j++) cout << results5[i][j] << " "; cout << endl; } cout << endl; //(iv) DOP w/ barrier 120 and barrier dates 0.05, 0.15 , ... , .95 double BarrierUp(120.0); Spot = 140.0; Vol = .3; Expiry = .95; NumberOfDates = 19; MJArray times3(NumberOfDates); for (unsigned long i = 0; i < NumberOfDates; i++) times3[i] = (i + 1.0) * .05; MJArray _Vol3(NumberOfDates); MJArray _r3(NumberOfDates); MJArray _d3(NumberOfDates); for (unsigned long i(0); i < NumberOfDates; ++i){ _Vol3[i] = Vol; _r3[i] = r; _d3[i] = d; } ParametersPWC _VolParam3(times3, _Vol3); ParametersPWC _rParam3(times3, _r3); ParametersPWC _dParam3(times3, _d3); PathDependentDiscreteDO theOption6(times3, Expiry, BarrierUp, thePayOff1); cout << "BSM put " << Spot << ", " << Vol << ", " << Expiry << ": "; cout << BlackScholesPut(Spot, Strike, r, d, Vol, Expiry) << endl; cout << endl; cout << "Down-and-out put - " << Strike << ", " << BarrierUp << ": "; cout << down_out_put(Spot, Strike, BarrierUp, r, d, Vol, Expiry) << endl; cout << endl; GenTwo.Reset(); //ExoticBSEngine theEngine6(theOption6, rParam, dParam, VolParam, GenTwo, Spot); ExoticBSEngine theEngine6(theOption6, _rParam3, _dParam3, _VolParam3, GenTwo, Spot); ConvergenceTable gathererTwo6(gathererOne); theEngine6.DoSimulation(gathererTwo6, NumberOfPaths); vector<vector<double> > results6 = gathererTwo6.GetResultsSoFar(); cout << "(iv) DOP w/ barrier 120 - maturity 1 year and barrier dates "; cout << " 0.05, 0.15, ..., .95 : " << endl; for (unsigned long i = 0; i < results6.size(); i++){ for (unsigned long j = 0; j < results6[i].size(); j++) cout << results6[i][j] << " "; cout << endl; } cout << endl; //-------------------------------------------------------------------------------------------------------- double tmp; cin >> tmp; return 0; } catch (std::exception& e) { std::cerr << e.what() << std::endl; return 1; } catch (...) { std::cerr << "unknown error" << std::endl; return 1; } }
5decf0d1cf636613dea940721507f727e248b07a
ef64de4fdabd89683325098626980285b50fe959
/Tank.h
863800e5a5ac0dd2d8debfd810b3d96f98d37a90
[]
no_license
JohnCodd/Year-4-Project-C00208049
441561fed9c3ce84fd2d80cb71f5e292c2930a33
c00bfc10e86045c66fd4d6b871460f2bf9aa2a4e
refs/heads/master
2020-04-02T06:07:37.022013
2019-04-08T13:37:18
2019-04-08T13:37:18
154,110,367
0
0
null
null
null
null
UTF-8
C++
false
false
1,045
h
#pragma once #include "Unit.h" #include "TankMoveChart.h" #include "TankDamageChart.h" class Tank : public Unit { public: Tank() { m_maxHealth = 100; m_health = m_maxHealth; m_power = 50; m_movement = 5; m_remainingMoves = m_movement; m_type = UnitTypes::Tank; m_displayLocation = sf::Vector2f(1, 1); }; Tank(sf::Vector2f location, int p, sf::Texture& tileset, int tSize) { m_maxHealth = 100; m_health = m_maxHealth; m_power = 50; m_movement = 5; m_remainingMoves = m_movement; m_type = UnitTypes::Tank; m_gridLocation = location; m_displayLocation = location; m_player = p; m_tileSize = tSize; m_sprite.setTexture(&tileset); m_sprite.setTextureRect(sf::IntRect(48, 2, 24, 24)); if (m_player == 1) { m_sprite.setFillColor(sf::Color(100, 100, 255)); } else if (m_player == 2) { m_sprite.setFillColor(sf::Color(255, 100, 100)); } m_sprite.setSize(sf::Vector2f(m_tileSize, m_tileSize)); m_moveChart = new TankMoveChart(); m_damageChart = new TankDamageChart(); }; ~Tank() {}; };
5c1204adfdaae2827e636440dba0afe321c37130
aef88785fd7199d5a53409508e9168fd1456285c
/constexpr.hpp
f3d4bee662bdd0ece0f7ddf0df795bcde399d1c3
[]
no_license
hirthwork/assert
52107323f0fb2ae7fef66e909010d3ac8b5a5d9e
a0c477e99ce668db4679e549bd6ce1df573a9b33
refs/heads/master
2020-05-17T23:47:57.068933
2012-05-13T19:39:45
2012-05-13T19:39:45
null
0
0
null
null
null
null
UTF-8
C++
false
false
952
hpp
/* * constexpr.hpp -- constexpr compatibility wrapper * * Copyright (C) 2012 Dmitry Potapov <[email protected]> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifndef __CONSTEXPR_HPP_2012_04_23__ #define __CONSTEXPR_HPP_2012_04_23__ #if __cplusplus >= 201103L #define CONSTEXPR constexpr #else #define CONSTEXPR #endif #endif
b453e1078c0e8a897e76a55532b137ad3a079727
8b855a12c1ba03bbe9ad00af5a4ba16294732efe
/benchmark/benchbpropbatchxor.h
9710cc94f9130f986bc22a7a5dcfcaa8e30bd766
[]
no_license
andudu/neurino
6bf118fd71aa2ca7f177bc82678309339a474753
605e0356758bddfeab8d571c20eb2b711d4868a3
refs/heads/master
2021-01-20T23:37:39.010858
2011-11-29T08:36:21
2011-11-29T08:36:21
null
0
0
null
null
null
null
UTF-8
C++
false
false
228
h
#ifndef BENCHBPROPBATCHXOR_H #define BENCHBPROPBATCHXOR_H #include "bench.h" class BenchBPropBatchXor : public Bench { public: BenchBPropBatchXor(float targetError, int targetIteration); virtual void run(); }; #endif
970d83c830315b54a684049167427f626af19411
7ecc9870c00d95f1065ffff444cff3d1fc9f4295
/kqpa/KQDataEvaluator.h
ddd69fd8c1df6f6ff0f3924f1d3ae47af977d432
[]
no_license
gadamc/kdata
c48ef82ed0880200c8133f5752b682200fe17bd1
177253d9fc62353f1082f541b02176f5f2ad9fff
refs/heads/master
2021-01-19T16:57:08.400126
2018-07-17T20:24:27
2018-07-17T20:24:27
2,298,098
0
0
null
null
null
null
UTF-8
C++
false
false
866
h
//_____________________________________________ // // KQDataEvaluator.h // KDataStructure // // Author: Daniel Wegner <mailto:[email protected]> on 2/18/11. // // * Copyright 2011 Karlsruhe Institute of Technology. All rights reserved. // #include "Rtypes.h" #include "KQDataReader.h" #include "KQHistogramManager.h" class KQDataEvaluator { private: KQDataReader* fQDataReader; KQHistogramManager* fQHistogramManager; public: KQDataEvaluator(); virtual ~KQDataEvaluator(); Bool_t ReadEvents(const Char_t* aSourceFile = "", const Char_t* aBoloConfigFile = "", const Char_t* aBoloName = "ALL", const Char_t* aCategoryName = "fiducial"); Bool_t FillHistograms(Int_t aNumHistograms = 10); ClassDef(KQDataEvaluator,1); };
[ "cox@e4a34bab-3947-0410-866c-ab59ef520b34" ]
cox@e4a34bab-3947-0410-866c-ab59ef520b34
ff405bda9381404748c1c74b9a59a3ca4eb7fb99
60eebd73083dabe8403e932fd252d8ff9b61ba24
/src/daslc/SyncSem.hpp
ad7ddd6fc854c6b336d9e9479757f4c6b717d0e8
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
cps-sei/mcda
10a231421980821b648adf207e678b95b0005062
f74e88682aeb53b009778996a388cc3dd0f4634d
refs/heads/master
2021-03-12T23:32:22.704899
2015-03-14T16:22:43
2015-03-14T16:22:43
32,192,450
2
0
null
null
null
null
UTF-8
C++
false
false
5,873
hpp
/** * Copyright (c) 2014 Carnegie Mellon University. All Rights Reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following acknowledgments * and disclaimers. * 2. Redistributions in binary form must reproduce the above * copyright notice, this list of conditions and the following * disclaimer in the documentation and/or other materials provided * with the distribution. * 3. The names "Carnegie Mellon University," "SEI" and/or "Software * Engineering Institute" shall not be used to endorse or promote * products derived from this software without prior written * permission. For written permission, please contact * [email protected]. * 4. Products derived from this software may not be called "SEI" nor * may "SEI" appear in their names without prior written permission of * [email protected]. * 5. Redistributions of any form whatsoever must retain the following * acknowledgment: * This material is based upon work funded and supported by the * Department of Defense under Contract No. FA8721-05-C-0003 with * Carnegie Mellon University for the operation of the Software * Engineering Institute, a federally funded research and development * center. * Any opinions, findings and conclusions or recommendations expressed * in this material are those of the author(s) and do not necessarily * reflect the views of the United States Department of Defense. * NO WARRANTY. THIS CARNEGIE MELLON UNIVERSITY AND SOFTWARE * ENGINEERING INSTITUTE MATERIAL IS FURNISHED ON AN "AS-IS" * BASIS. CARNEGIE MELLON UNIVERSITY MAKES NO WARRANTIES OF ANY KIND, * EITHER EXPRESSED OR IMPLIED, AS TO ANY MATTER INCLUDING, BUT NOT * LIMITED TO, WARRANTY OF FITNESS FOR PURPOSE OR MERCHANTABILITY, * EXCLUSIVITY, OR RESULTS OBTAINED FROM USE OF THE MATERIAL. CARNEGIE * MELLON UNIVERSITY DOES NOT MAKE ANY WARRANTY OF ANY KIND WITH * RESPECT TO FREEDOM FROM PATENT, TRADEMARK, OR COPYRIGHT * INFRINGEMENT. * This material has been approved for public release and unlimited * distribution. * DM-0001023 **/ //a class for sequentializing DAIG into a C program #ifndef __SYNC_SEM_HPP__ #define __SYNC_SEM_HPP__ #include <iostream> #include "DaigBuilder.hpp" #include "daig/CProgram.h" #include "CopyVisitor.hpp" namespace daig { //forward declaration class SyncSem; //new namespace to avoid name collisions namespace syncsem { /*****************************************************************/ //a visitor that transforms at the global level /*****************************************************************/ struct GlobalTransformer : public CopyVisitor { ///reference to callee class for callbacks SyncSem &syncSeq; //the DASL program being transformed daig::Program &prog; //the number of nodes size_t nodeNum; //map from variables to constants for substitution std::map<std::string,size_t> idMap; //constructors GlobalTransformer(SyncSem &ss,daig::Program &p,size_t n) : syncSeq(ss),prog(p),nodeNum(n) {} //update substitution mapping void addIdMap(const std::string &s,size_t i); void delIdMap(const std::string &s); //dispatchers void exitLval(LvalExpr &expr); void exitComp(CompExpr &expr); void exitAtomic(AtomicStmt &stmt); void exitPrivate(PrivateStmt &stmt); void exitCall(CallStmt &stmt); bool enterFAN(FANStmt &stmt) { return false; } void exitFAN(FANStmt &stmt); bool enterFADNP(FADNPStmt &stmt) { return false; } void exitFADNP(FADNPStmt &stmt); }; /*****************************************************************/ //a visitor that transforms at the node level /*****************************************************************/ struct NodeTransformer : public GlobalTransformer { ///the id of the node being transformed size_t nodeId; //flags to indicate whether we are processing a function call, or //lhs of an assignment bool inCall, inLhs; NodeTransformer(SyncSem &ss,Program &p,size_t n,size_t i) : GlobalTransformer(ss,p,n),nodeId(i),inCall(0),inLhs(0) {} void exitLval(LvalExpr &expr); bool enterCall(CallExpr &expr) { return false; } void exitCall(CallExpr &expr); bool enterEXO(EXOExpr &expr) { return false; } void exitEXO(EXOExpr &expr); bool enterEXH(EXHExpr &expr) { return false; } void exitEXH(EXHExpr &expr); bool enterEXL(EXLExpr &expr) { return false; } void exitEXL(EXLExpr &expr); bool enterAsgn(AsgnStmt &stmt) { return false; } void exitAsgn(AsgnStmt &stmt); bool enterFAO(FAOStmt &stmt) { return false; } void exitFAO(FAOStmt &stmt); bool enterFAOL(FAOLStmt &stmt) { return false; } void exitFAOL(FAOLStmt &stmt); bool enterFAOH(FAOHStmt &stmt) { return false; } void exitFAOH(FAOHStmt &stmt); }; } //namespace syncsem /*******************************************************************/ //sequentializer for synchronous /*******************************************************************/ class SyncSem { public: DaigBuilder &builder; size_t nodeNum; int roundNum; CProgram cprog; SyncSem(DaigBuilder &b,int r); void createGlobVars(); void createCopyStmts(const Variable &var,StmtList &res,ExprList indx); void createGlobalCopier(); void createMainFunc(); void createInit(); void createSafety(); void createNodeFuncs(); Expr createNondetFunc(const Expr &expr); void run(); }; } //namespace daig #endif //__SYNC_SEM_HPP__
5ca88bedbb137b38a760ac26581c9e10654a5fde
0ae17c9f657a52c232f497cf0867ef2b4cc865d4
/Source/PuzzlePlatforms/PlatformTrigger.h
cfd79c88061db75ba671239e6b7feea93e3afc65
[]
no_license
Rappecool/MenuSystem2019
ceb02bd732bedaeb1c702bafd11401252ede0ad9
4b476fcc75c65679b830214d0b62bf570f63d984
refs/heads/master
2020-05-31T11:22:59.948837
2019-08-17T15:02:41
2019-08-17T15:02:41
190,259,660
0
0
null
null
null
null
UTF-8
C++
false
false
1,077
h
// Fill out your copyright notice in the Description page of Project Settings. #pragma once #include "CoreMinimal.h" #include "GameFramework/Actor.h" #include "PlatformTrigger.generated.h" UCLASS() class PUZZLEPLATFORMS_API APlatformTrigger : public AActor { GENERATED_BODY() public: // Sets default values for this actor's properties APlatformTrigger(); protected: // Called when the game starts or when spawned virtual void BeginPlay() override; public: // Called every frame virtual void Tick(float DeltaTime) override; private: UPROPERTY(VisibleAnywhere) class UBoxComponent* TriggerVolume; UPROPERTY(EditAnywhere) TArray<class AMovingPlatform*> PlatformsToTrigger; UFUNCTION() void OnOverlapBegin(class UPrimitiveComponent* OverlappedComp, class AActor* OtherActor, class UPrimitiveComponent* OtherComp, int32 OtherBodyIndex, bool bFromSweep, const FHitResult& SweepResult); UFUNCTION() void OnOverlapEnd(class UPrimitiveComponent* OverlappedComp, class AActor* OtherActor, class UPrimitiveComponent* OtherComp, int32 OtherBodyIndex); };
d921195523415ab4287b82ee1bb657de1b1dea71
66e6360325b781ed0791868765f1fd8a6303726f
/LQSearch/SimpleCutTableFromLQ3Tree/7215_LL_SBMatrix/MakeSimpleCutTable.cpp
45f9ca41d43f18df390143ee0fd4c549e503f6fb
[]
no_license
alintulu/FHead2011PhysicsProject
c969639b212d569198d8fce2f424ce866dcfa881
2568633d349810574354ad61b0abab24a40e510e
refs/heads/master
2022-04-28T14:19:30.534282
2020-04-23T17:17:32
2020-04-23T17:17:32
null
0
0
null
null
null
null
UTF-8
C++
false
false
24,958
cpp
// //--------------------------------------------------------------------------- #include <iostream> #include <vector> using namespace std; //--------------------------------------------------------------------------- #include "TFile.h" #include "TTree.h" #include "TH1D.h" #include "TH2D.h" #include "TStyle.h" #include "TROOT.h" #include "TColor.h" #include "TLegend.h" //--------------------------------------------------------------------------- #include "PlotHelper2.h" #include "ReadLQ3Tree.h" #include "TauHelperFunctions2.h" //--------------------------------------------------------------------------- class SampleCounts; int main(int argc, char *argv[]); SampleCounts ReadSample(PsFileHelper &PsFile, string FileName, string Tag = "", double CrossSection = 1); //--------------------------------------------------------------------------- class SampleCounts { public: string FileName; string Tag; double CrossSection; double AllEvents; double AfterBasicSelections; double AfterJetCut; double AfterBTagCut; double AfterJetAndElectronVeto; double AfterJetAndLeptonVeto; double AfterMRStar200Cut; double AfterRStar020Cut; double AfterMRStar400Cut; double AfterRStar050Cut; TH1D *HMR; TH1D *HMRStar; TH1D *HR; TH1D *HRStar; TH1D *HMR_R020Cut; TH1D *HMRStar_RStar020Cut; TH1D *HMR_R050Cut; TH1D *HMRStar_RStar050Cut; TH2D *HMRR; TH2D *HMRStarRStar; TH2D *HNewMRNewR2Matrix; public: SampleCounts() : HMR(0), HR(0), HMR_R020Cut(0) {} ~SampleCounts() {} void CleanHistograms() { if(HMR != NULL) delete HMR; if(HMRStar != NULL) delete HMRStar; if(HR != NULL) delete HR; if(HRStar != NULL) delete HRStar; if(HMRR != NULL) delete HMRR; if(HMRStarRStar != NULL) delete HMRStarRStar; if(HMR_R020Cut != NULL) delete HMR_R020Cut; if(HMRStar_RStar020Cut != NULL) delete HMRStar_RStar020Cut; if(HMR_R050Cut != NULL) delete HMR_R050Cut; if(HMRStar_RStar050Cut != NULL) delete HMRStar_RStar050Cut; if(HNewMRNewR2Matrix != NULL) delete HNewMRNewR2Matrix; } }; //--------------------------------------------------------------------------- int main(int argc, char *argv[]) { const Int_t NRGBs = 5; const Int_t NCont = 255; Double_t stops[NRGBs] = { 0.00, 0.34, 0.61, 0.84, 1.00 }; Double_t red[NRGBs] = { 0.00, 0.00, 0.87, 1.00, 0.51 }; Double_t green[NRGBs] = { 0.00, 0.81, 1.00, 0.20, 0.00 }; Double_t blue[NRGBs] = { 0.51, 1.00, 0.12, 0.00, 0.00 }; TColor::CreateGradientColorTable(NRGBs, stops, red, green, blue, NCont); gStyle->SetNumberContours(NCont); PsFileHelper PsFile("SimpleCutTable.ps"); PsFile.AddTextPage("Simple Cut Efficiency Table"); vector<SampleCounts> Samples; Samples.push_back(ReadSample(PsFile, "Samples/LQ200.root", "LQ200", 11.9)); Samples.push_back(ReadSample(PsFile, "Samples/LQ250.root", "LQ250", 3.47)); Samples.push_back(ReadSample(PsFile, "Samples/LQ350.root", "LQ350", 0.477)); Samples.push_back(ReadSample(PsFile, "Samples/LQ450.root", "LQ450", 0.0949)); Samples.push_back(ReadSample(PsFile, "Samples/LQ550.root", "LQ550", 0.0236)); Samples.push_back(ReadSample(PsFile, "Samples/TTJets_TuneZ2_7TeV-madgraph-tauola_All.root", "TTbar", 165)); Samples.push_back(ReadSample(PsFile, "Samples/WJetsToLNu_TuneZ2_7TeV-madgraph-tauola_All.root", "W", 31314)); Samples.push_back(ReadSample(PsFile, "Samples/PhotonVJets_7TeV-madgraph_All.root", "GammaVJet", 173)); Samples.push_back(ReadSample(PsFile, "Samples/DYJetsToLL_TuneZ2_M-50_7TeV-madgraph-tauola_All.root", "DY_50", 3048)); Samples.push_back(ReadSample(PsFile, "Samples/ZinvisibleJets_7TeV-madgraph_All.root", "Znunu", 3048 * 6)); // guessed Samples.push_back(ReadSample(PsFile, "Samples/VVJetsTo4L_TuneD6T_7TeV-madgraph-tauola_All.root", "VV", 4.8)); Samples.push_back(ReadSample(PsFile, "Samples/QCD_TuneD6T_HT-50To100_7TeV-madgraph_All.root", "QCD50", 30000000)); Samples.push_back(ReadSample(PsFile, "Samples/QCD_TuneD6T_HT-100To250_7TeV-madgraph_All.root", "QCD100", 7000000)); Samples.push_back(ReadSample(PsFile, "Samples/QCD_TuneD6T_HT-250To500_7TeV-madgraph_All.root", "QCD250", 171000)); Samples.push_back(ReadSample(PsFile, "Samples/QCD_TuneD6T_HT-500To1000_7TeV-madgraph_All.root", "QCD500", 5200)); Samples.push_back(ReadSample(PsFile, "Samples/QCD_TuneD6T_HT-1000_7TeV-madgraph_All.root", "QCD1000", 83)); PsFile.AddTextPage("Summary tables"); TFile F("XD.root", "RECREATE"); for(int i = 0; i < (int)Samples.size(); i++) if(Samples[i].HNewMRNewR2Matrix != NULL) Samples[i].HNewMRNewR2Matrix->Write(); TH2D HExpectedYieldSummary("HExpectedYieldSummary", "Expected yield in 1/fb", Samples.size(), 0, Samples.size(), 10, 0, 10); TH2D HExpectedYieldSummaryTranspose("HExpectedYieldSummaryTranspose", "Expected yield in 1/fb", 10, 0, 10, Samples.size(), 0, Samples.size()); HExpectedYieldSummary.SetStats(0); HExpectedYieldSummaryTranspose.SetStats(0); HExpectedYieldSummary.GetYaxis()->SetBinLabel(1, "All"); HExpectedYieldSummary.GetYaxis()->SetBinLabel(2, "Jet ID"); HExpectedYieldSummary.GetYaxis()->SetBinLabel(3, "Two Jet PT 60"); HExpectedYieldSummary.GetYaxis()->SetBinLabel(4, "B Tag"); HExpectedYieldSummary.GetYaxis()->SetBinLabel(5, "Electron"); HExpectedYieldSummary.GetYaxis()->SetBinLabel(6, "Muon"); HExpectedYieldSummary.GetYaxis()->SetBinLabel(7, "MR* 200"); HExpectedYieldSummary.GetYaxis()->SetBinLabel(8, "R* 0.20"); HExpectedYieldSummary.GetYaxis()->SetBinLabel(9, "MR* 400"); HExpectedYieldSummary.GetYaxis()->SetBinLabel(10, "R* 0.5"); HExpectedYieldSummaryTranspose.GetXaxis()->SetBinLabel(1, "All"); HExpectedYieldSummaryTranspose.GetXaxis()->SetBinLabel(2, "Jet ID"); HExpectedYieldSummaryTranspose.GetXaxis()->SetBinLabel(3, "Two Jet PT 60"); HExpectedYieldSummaryTranspose.GetXaxis()->SetBinLabel(4, "B Tag"); HExpectedYieldSummaryTranspose.GetXaxis()->SetBinLabel(5, "Electron"); HExpectedYieldSummaryTranspose.GetXaxis()->SetBinLabel(6, "Muon"); HExpectedYieldSummaryTranspose.GetXaxis()->SetBinLabel(7, "MR* 200"); HExpectedYieldSummaryTranspose.GetXaxis()->SetBinLabel(8, "R* 0.20"); HExpectedYieldSummaryTranspose.GetXaxis()->SetBinLabel(9, "MR* 400"); HExpectedYieldSummaryTranspose.GetXaxis()->SetBinLabel(10, "R* 0.5"); const double IntegratedLuminosity = 1000; // 1/fb for(int i = 0; i < (int)Samples.size(); i++) { HExpectedYieldSummary.GetXaxis()->SetBinLabel(i + 1, Samples[i].Tag.c_str()); HExpectedYieldSummaryTranspose.GetYaxis()->SetBinLabel(i + 1, Samples[i].Tag.c_str()); double Factor = Samples[i].CrossSection / Samples[i].AllEvents * IntegratedLuminosity; HExpectedYieldSummary.SetBinContent(i + 1, 1, Samples[i].AllEvents * Factor); HExpectedYieldSummary.SetBinContent(i + 1, 2, Samples[i].AfterBasicSelections * Factor); HExpectedYieldSummary.SetBinContent(i + 1, 3, Samples[i].AfterJetCut * Factor); HExpectedYieldSummary.SetBinContent(i + 1, 4, Samples[i].AfterBTagCut * Factor); HExpectedYieldSummary.SetBinContent(i + 1, 5, Samples[i].AfterJetAndElectronVeto * Factor); HExpectedYieldSummary.SetBinContent(i + 1, 6, Samples[i].AfterJetAndLeptonVeto * Factor); HExpectedYieldSummary.SetBinContent(i + 1, 7, Samples[i].AfterMRStar200Cut * Factor); HExpectedYieldSummary.SetBinContent(i + 1, 8, Samples[i].AfterRStar020Cut * Factor); HExpectedYieldSummary.SetBinContent(i + 1, 9, Samples[i].AfterMRStar400Cut * Factor); HExpectedYieldSummary.SetBinContent(i + 1, 10, Samples[i].AfterRStar050Cut * Factor); HExpectedYieldSummaryTranspose.SetBinContent(1, i + 1, Samples[i].AllEvents * Factor); HExpectedYieldSummaryTranspose.SetBinContent(2, i + 1, Samples[i].AfterBasicSelections * Factor); HExpectedYieldSummaryTranspose.SetBinContent(3, i + 1, Samples[i].AfterJetCut * Factor); HExpectedYieldSummaryTranspose.SetBinContent(4, i + 1, Samples[i].AfterBTagCut * Factor); HExpectedYieldSummaryTranspose.SetBinContent(5, i + 1, Samples[i].AfterJetAndElectronVeto * Factor); HExpectedYieldSummaryTranspose.SetBinContent(6, i + 1, Samples[i].AfterJetAndLeptonVeto * Factor); HExpectedYieldSummaryTranspose.SetBinContent(7, i + 1, Samples[i].AfterMRStar200Cut * Factor); HExpectedYieldSummaryTranspose.SetBinContent(8, i + 1, Samples[i].AfterRStar020Cut * Factor); HExpectedYieldSummaryTranspose.SetBinContent(9, i + 1, Samples[i].AfterMRStar400Cut * Factor); HExpectedYieldSummaryTranspose.SetBinContent(10, i + 1, Samples[i].AfterRStar050Cut * Factor); } PsFile.AddPlot(HExpectedYieldSummary, "text90 colz", false, true); // PsFile.AddPlot(HExpectedYieldSummary, "text90"); TCanvas ExpectedYieldCanvas("ExpectedYieldCanvas", "ExpectedYieldCanvas", 1024, 1024); HExpectedYieldSummaryTranspose.Draw("text30 colz"); ExpectedYieldCanvas.SetLogz(); ExpectedYieldCanvas.SaveAs("ExpectedYield.png"); ExpectedYieldCanvas.SaveAs("ExpectedYield.C"); ExpectedYieldCanvas.SaveAs("ExpectedYield.eps"); TCanvas MRStarCurveCanvas; TLegend MRStarCurveLegend(0.65, 0.85, 0.85, 0.35); double Maximum = 0; for(int i = 0; i < (int)Samples.size(); i++) if(Maximum < Samples[i].HMRStar_RStar050Cut->GetMaximum()) Maximum = Samples[i].HMRStar_RStar050Cut->GetMaximum(); for(int i = 0; i < (int)Samples.size(); i++) { Samples[i].HMRStar_RStar050Cut->SetMaximum(Maximum * 2); MRStarCurveLegend.AddEntry(Samples[i].HMRStar_RStar050Cut, Samples[i].Tag.c_str(), "l"); if(i < 5) { Samples[i].HMRStar_RStar050Cut->SetLineStyle(2); Samples[i].HMRStar_RStar050Cut->SetLineColor(i + 1); } else Samples[i].HMRStar_RStar050Cut->SetLineColor(i - 5 + 1); if(i == 0) { Samples[i].HMRStar_RStar050Cut->SetTitle("Comparison of MRStar distribution under RStar 0.5 cut"); Samples[i].HMRStar_RStar050Cut->Draw(""); } else Samples[i].HMRStar_RStar050Cut->Draw("same"); } MRStarCurveLegend.SetFillColor(0); MRStarCurveLegend.Draw(); MRStarCurveCanvas.SetLogy(); PsFile.AddCanvas(MRStarCurveCanvas); TCanvas MRCurveCanvas; TLegend MRCurveLegend(0.65, 0.85, 0.85, 0.35); Maximum = 0; for(int i = 0; i < (int)Samples.size(); i++) if(Maximum < Samples[i].HMR_R050Cut->GetMaximum()) Maximum = Samples[i].HMR_R050Cut->GetMaximum(); for(int i = 0; i < (int)Samples.size(); i++) { Samples[i].HMR_R050Cut->SetMaximum(Maximum * 2); Samples[i].HMR_R050Cut->SetLineWidth(2); Samples[i].HMR_R050Cut->SetLineColor(i + 1); MRCurveLegend.AddEntry(Samples[i].HMR_R050Cut, Samples[i].Tag.c_str(), "l"); if(i < 5) Samples[i].HMR_R050Cut->SetLineStyle(2); // else // Samples[i].HMR_R050Cut->SetFillColor(i + 1); if(i == 0) { Samples[i].HMR_R050Cut->SetTitle("Comparison of MR distribution under R 0.5 cut"); Samples[i].HMR_R050Cut->Draw(""); } else Samples[i].HMR_R050Cut->Draw("same"); } MRCurveLegend.SetFillColor(0); MRCurveLegend.Draw(); MRCurveCanvas.SetLogy(); PsFile.AddCanvas(MRCurveCanvas); TH1D *HSMOnly = (TH1D *)(Samples[5].HMRStar_RStar050Cut->Clone("HSMOnly")); TH1D *HSMWithLQ200 = (TH1D *)(Samples[5].HMRStar_RStar050Cut->Clone("HSMOnly")); TH1D *HSMWithLQ250 = (TH1D *)(Samples[5].HMRStar_RStar050Cut->Clone("HSMOnly")); TH1D *HSMWithLQ350 = (TH1D *)(Samples[5].HMRStar_RStar050Cut->Clone("HSMOnly")); TH1D *HSMWithLQ450 = (TH1D *)(Samples[5].HMRStar_RStar050Cut->Clone("HSMOnly")); TH1D *HSMWithLQ550 = (TH1D *)(Samples[5].HMRStar_RStar050Cut->Clone("HSMOnly")); for(int i = 5 + 1; i < (int)Samples.size(); i++) { HSMOnly->Add(Samples[i].HMRStar_RStar050Cut); HSMWithLQ200->Add(Samples[i].HMRStar_RStar050Cut); HSMWithLQ250->Add(Samples[i].HMRStar_RStar050Cut); HSMWithLQ350->Add(Samples[i].HMRStar_RStar050Cut); HSMWithLQ450->Add(Samples[i].HMRStar_RStar050Cut); HSMWithLQ550->Add(Samples[i].HMRStar_RStar050Cut); } HSMWithLQ200->Add(Samples[0].HMRStar_RStar050Cut); HSMWithLQ250->Add(Samples[1].HMRStar_RStar050Cut); HSMWithLQ350->Add(Samples[2].HMRStar_RStar050Cut); HSMWithLQ450->Add(Samples[3].HMRStar_RStar050Cut); HSMWithLQ550->Add(Samples[4].HMRStar_RStar050Cut); HSMOnly->SetTitle("SM only vs. Signal LQ, under R 0.50 cut"); TCanvas LQ200Case; HSMOnly->SetLineColor(kBlack); HSMOnly->Draw(); HSMWithLQ200->SetLineColor(kGreen); HSMWithLQ200->Draw("same"); Samples[0].HMRStar_RStar050Cut->SetLineColor(kBlue); Samples[0].HMRStar_RStar050Cut->Draw("same"); LQ200Case.SetLogy(); PsFile.AddCanvas(LQ200Case); TCanvas LQ250Case; HSMOnly->SetLineColor(kBlack); HSMOnly->Draw(); HSMWithLQ250->SetLineColor(kGreen); HSMWithLQ250->Draw("same"); Samples[1].HMRStar_RStar050Cut->SetLineColor(kBlue); Samples[1].HMRStar_RStar050Cut->Draw("same"); LQ250Case.SetLogy(); PsFile.AddCanvas(LQ250Case); TCanvas LQ350Case; HSMOnly->SetLineColor(kBlack); HSMOnly->Draw(); HSMWithLQ350->SetLineColor(kGreen); HSMWithLQ350->Draw("same"); Samples[2].HMRStar_RStar050Cut->SetLineColor(kBlue); Samples[2].HMRStar_RStar050Cut->Draw("same"); LQ350Case.SetLogy(); PsFile.AddCanvas(LQ350Case); TCanvas LQ450Case; HSMOnly->SetLineColor(kBlack); HSMOnly->Draw(); HSMWithLQ450->SetLineColor(kGreen); HSMWithLQ450->Draw("same"); Samples[3].HMRStar_RStar050Cut->SetLineColor(kBlue); Samples[3].HMRStar_RStar050Cut->Draw("same"); LQ450Case.SetLogy(); PsFile.AddCanvas(LQ450Case); TCanvas LQ550Case; HSMOnly->SetLineColor(kBlack); HSMOnly->Draw(); HSMWithLQ550->SetLineColor(kGreen); HSMWithLQ550->Draw("same"); Samples[4].HMRStar_RStar050Cut->SetLineColor(kBlue); Samples[4].HMRStar_RStar050Cut->Draw("same"); LQ550Case.SetLogy(); PsFile.AddCanvas(LQ550Case); TCanvas LQ350CaseSquare("LQ350CaseSquare", "LQ350CaseSquare", 1024, 1024); HSMOnly->SetLineColor(kBlack); HSMOnly->SetStats(0); HSMOnly->SetLineWidth(2); HSMOnly->Draw(); Samples[0].HMR_R050Cut->SetLineColor(kRed); Samples[0].HMR_R050Cut->SetStats(0); Samples[0].HMR_R050Cut->SetLineWidth(2); Samples[0].HMR_R050Cut->Draw("same"); LQ350CaseSquare.SetLogy(); TLegend LQ350CaseLegend(0.4, 0.8, 0.8, 0.6); LQ350CaseLegend.AddEntry(Samples[0].HMR_R050Cut, "LQ 350", "l"); LQ350CaseLegend.AddEntry(HSMOnly, "Total SM background", "l"); LQ350CaseLegend.SetFillColor(0); LQ350CaseLegend.Draw(); LQ350CaseSquare.SaveAs("LQ350CaseSquare.png"); LQ350CaseSquare.SaveAs("LQ350CaseSquare.C"); LQ350CaseSquare.SaveAs("LQ350CaseSquare.eps"); TCanvas Canvas2D("Canvas2D", "Canvas2D", 1024, 512); Canvas2D.Divide(2); Canvas2D.cd(1); TH2D *HSMOnly2D = (TH2D *)(Samples[5].HMRStarRStar->Clone("HSMOnly2D")); for(int i = 5 + 1; i < (int)Samples.size(); i++) HSMOnly2D->Add(Samples[i].HMRStarRStar); HSMOnly2D->Draw("colz"); Canvas2D.cd(2); Samples[0].HMRStarRStar->Draw(); Canvas2D.SaveAs("MRStarRStar.png"); Canvas2D.SaveAs("MRStarRStar.C"); Canvas2D.SaveAs("MRStarRStar.eps"); HExpectedYieldSummary.Write(); F.Close(); PsFile.AddTimeStampPage(); PsFile.Close(); for(int i = 0; i < (int)Samples.size(); i++) Samples[i].CleanHistograms(); return 0; } //--------------------------------------------------------------------------- SampleCounts ReadSample(PsFileHelper &PsFile, string FileName, string Tag, double CrossSection) { cout << "Start processing file \"" << FileName << "\" with tag \"" << Tag << "\"" << endl; SampleCounts Result; Result.FileName = FileName; Result.Tag = Tag; Result.CrossSection = CrossSection; Result.AllEvents = 0; Result.AfterBasicSelections = 0; Result.AfterJetCut = 0; Result.AfterBTagCut = 0; Result.AfterJetAndElectronVeto = 0; Result.AfterJetAndLeptonVeto = 0; Result.AfterMRStar200Cut = 0; Result.AfterRStar020Cut = 0; Result.AfterMRStar400Cut = 0; Result.AfterRStar050Cut = 0; Result.HMR = new TH1D(Form("HMR_%s", Tag.c_str()), Form("MR, (%s);MR", Tag.c_str()), 40, 0, 1500); Result.HMRStar = new TH1D(Form("HMRStar_%s", Tag.c_str()), Form("MRStar, (%s);MRStar", Tag.c_str()), 40, 0, 1500); Result.HR = new TH1D(Form("HR_%s", Tag.c_str()), Form("R, (%s);R", Tag.c_str()), 40, 0, 1.5); Result.HRStar = new TH1D(Form("HRStar_%s", Tag.c_str()), Form("RStar, (%s);RStar", Tag.c_str()), 40, 0, 1.5); Result.HMRR = new TH2D(Form("HMRR_%s", Tag.c_str()), Form("MR vs. R, (%s);MR;R", Tag.c_str()), 40, 0, 1500, 50, 0, 1.5); Result.HMRStarRStar = new TH2D(Form("HMRStarRStar_%s", Tag.c_str()), Form("MRStar vs. RStar, (%s);MRStar;RStar", Tag.c_str()), 40, 0, 1500, 50, 0, 1.5); Result.HMR_R020Cut = new TH1D(Form("HMR_R020Cut_%s", Tag.c_str()), Form("MR, cut on R 0.20 (%s);MR", Tag.c_str()), 40, 0, 1500); Result.HMRStar_RStar020Cut = new TH1D(Form("HMRStar_RStar020Cut_%s", Tag.c_str()), Form("MRStar, cut on RStar 0.20 (%s);MRStar", Tag.c_str()), 40, 0, 1500); Result.HMR_R050Cut = new TH1D(Form("HMR_R050Cut_%s", Tag.c_str()), Form("MR, cut on R 0.50 (%s);MR", Tag.c_str()), 40, 0, 1500); Result.HMRStar_RStar050Cut = new TH1D(Form("HMRStar_RStar050Cut_%s", Tag.c_str()), Form("MRStar, cut on RStar 0.50 (%s);MRStar", Tag.c_str()), 40, 0, 1500); Result.HNewMRNewR2Matrix = new TH2D(Form("HNewMRNewR2Matrix_%s", Tag.c_str()), Form("MR (new) vs. R^{2} (new), (%s);MR (new);R^{2} (new)", Tag.c_str()), 20, 0, 1000, 10, 0, 0.5); TFile F(FileName.c_str()); TTree *Tree = (TTree *)F.Get("LQ3Tree"); if(Tree == NULL) return Result; TreeRecord M; M.SetBranchAddress(Tree); M.InitializeWeight("DataSamples/BookKeeping/7174PUTriggersAdded_ElectronHadRun2011Av4.PU.root"); Tree->SetBranchStatus("PFJet*", false); Tree->SetBranchStatus("CaloJetCSVTag", false); Tree->SetBranchStatus("CaloJetCSVMTag", false); Tree->SetBranchStatus("CaloJetTCHPTag", false); int EntryCount = Tree->GetEntries(); for(int iEntry = 0; iEntry < EntryCount; iEntry++) { if((iEntry + 1) % 500000 == 0) cout << "Processing entry " << iEntry + 1 << "/" << EntryCount << endl; Tree->GetEntry(iEntry); double WPU = 1; WPU = M.GetCurrentWeight(); Result.AllEvents = Result.AllEvents + WPU; // if(M.PassCaloJetID == false || M.PassNoiseFilter == false || M.PassHLT == false) // continue; // Result.AfterBasicSelections = Result.AfterBasicSelections + 1; double CaloJetCount60 = 0; for(int i = 0; i < M.CaloJetCount; i++) if(M.CaloJetPT[i] > 60 && M.CaloJetEta[i] < 3 && M.CaloJetEta[i] > -3) CaloJetCount60 = CaloJetCount60 + 1; if(CaloJetCount60 < 2) continue; Result.AfterJetCut = Result.AfterJetCut + WPU; int JetPassBTagLoose = 0; for(int i = 0; i < M.CaloJetCount; i++) if(M.CaloJetTCHETag[i] > 1.7 && M.CaloJetPT[i] > 80 && M.CaloJetEta[i] < 3 && M.CaloJetEta[i] > -3) JetPassBTagLoose = JetPassBTagLoose + 1; if(JetPassBTagLoose < 2) continue; Result.AfterBTagCut = Result.AfterBTagCut + WPU; if(M.GoodElectronCount >= 1) continue; Result.AfterJetAndElectronVeto = Result.AfterJetAndElectronVeto + WPU; if(M.GoodMuonCount >= 1) continue; Result.AfterJetAndLeptonVeto = Result.AfterJetAndLeptonVeto + WPU; vector<FourVector> CaloJets; for(int i = 0; i < M.CaloJetCount; i++) { if(M.CaloJetPT[i] < 40) continue; if(M.CaloJetEta[i] < -3 || M.CaloJetEta[i] > 3) continue; FourVector NewJet; NewJet.SetPtEtaPhi(M.CaloJetPT[i], M.CaloJetEta[i], M.CaloJetPhi[i]); CaloJets.push_back(NewJet); } vector<FourVector> Hemispheres = SplitIntoGroups(CaloJets, true); FourVector PFMET(0, M.PFMET[0], M.PFMET[1], 0); PFMET[0] = PFMET.GetPT(); double MR = GetMR(Hemispheres[0], Hemispheres[1]); double R = GetR(Hemispheres[0], Hemispheres[1], PFMET); double MRStar = GetMRStar(Hemispheres[0], Hemispheres[1]) * GetGammaRStar(Hemispheres[0], Hemispheres[1]); double RStar = GetRStar(Hemispheres[0], Hemispheres[1], PFMET); Result.HMR->Fill(MR, WPU); Result.HMRStar->Fill(MRStar, WPU); Result.HR->Fill(R, WPU); Result.HRStar->Fill(RStar, WPU); Result.HMRR->Fill(MR, R, WPU); Result.HMRStarRStar->Fill(MRStar, RStar, WPU); Result.HNewMRNewR2Matrix->Fill(MRStar, RStar * RStar, WPU); if(R > 0.20) Result.HMR_R020Cut->Fill(MR, WPU); if(RStar > 0.20) Result.HMRStar_RStar020Cut->Fill(MRStar, WPU); if(R > 0.50) Result.HMR_R050Cut->Fill(MR, WPU); if(RStar > 0.50) Result.HMRStar_RStar050Cut->Fill(MRStar, WPU); if(MRStar < 200) continue; Result.AfterMRStar200Cut = Result.AfterMRStar200Cut + WPU; if(RStar < 0.20) continue; Result.AfterRStar020Cut = Result.AfterRStar020Cut + WPU; if(MRStar < 400) continue; Result.AfterMRStar400Cut = Result.AfterMRStar400Cut + WPU; if(RStar < 0.5) continue; Result.AfterRStar050Cut = Result.AfterRStar050Cut + WPU; M.Clear(); } PsFile.AddTextPage(Tag); TH1D HCountHistogram("HCountHistogram", Form("Count histogram for file %s", FileName.c_str()), 10, 0, 10); HCountHistogram.GetXaxis()->SetBinLabel(1, "All"); HCountHistogram.GetXaxis()->SetBinLabel(2, "Jet ID"); HCountHistogram.GetXaxis()->SetBinLabel(3, "Jet PT 60"); HCountHistogram.GetXaxis()->SetBinLabel(4, "Jet b-tag"); HCountHistogram.GetXaxis()->SetBinLabel(5, "Electron"); HCountHistogram.GetXaxis()->SetBinLabel(6, "Muon"); HCountHistogram.GetXaxis()->SetBinLabel(7, "MR* 200"); HCountHistogram.GetXaxis()->SetBinLabel(8, "R* 0.20"); HCountHistogram.GetXaxis()->SetBinLabel(9, "MR* 400"); HCountHistogram.GetXaxis()->SetBinLabel(10, "R* 0.5"); HCountHistogram.SetStats(0); HCountHistogram.SetBinContent(1, Result.AllEvents); HCountHistogram.SetBinContent(2, Result.AfterBasicSelections); HCountHistogram.SetBinContent(3, Result.AfterJetCut); HCountHistogram.SetBinContent(4, Result.AfterBTagCut); HCountHistogram.SetBinContent(5, Result.AfterJetAndElectronVeto); HCountHistogram.SetBinContent(6, Result.AfterJetAndLeptonVeto); HCountHistogram.SetBinContent(7, Result.AfterMRStar200Cut); HCountHistogram.SetBinContent(8, Result.AfterRStar020Cut); HCountHistogram.SetBinContent(9, Result.AfterMRStar400Cut); HCountHistogram.SetBinContent(10, Result.AfterRStar050Cut); PsFile.AddPlot(HCountHistogram, "hist text00", true); TH1D *HExpectedYieldHistogram = (TH1D *)HCountHistogram.Clone("HExpectedYieldHistogram"); HExpectedYieldHistogram->SetTitle(Form("Expected yield for 1/fb (%s)", FileName.c_str())); HExpectedYieldHistogram->SetStats(0); HExpectedYieldHistogram->Scale(CrossSection * 1000 / Result.AllEvents); PsFile.AddPlot(HExpectedYieldHistogram, "hist text00", true); Result.HMR->Scale(CrossSection * 1000 / Result.AllEvents); Result.HMRStar->Scale(CrossSection * 1000 / Result.AllEvents); Result.HR->Scale(CrossSection * 1000 / Result.AllEvents); Result.HRStar->Scale(CrossSection * 1000 / Result.AllEvents); Result.HMRR->Scale(CrossSection * 1000 / Result.AllEvents); Result.HMRStarRStar->Scale(CrossSection * 1000 / Result.AllEvents); Result.HMR_R020Cut->Scale(CrossSection * 1000 / Result.AllEvents); Result.HMRStar_RStar020Cut->Scale(CrossSection * 1000 / Result.AllEvents); Result.HMR_R050Cut->Scale(CrossSection * 1000 / Result.AllEvents); Result.HMRStar_RStar050Cut->Scale(CrossSection * 1000 / Result.AllEvents); Result.HNewMRNewR2Matrix->Scale(CrossSection * 1000 / Result.AllEvents); PsFile.AddPlot(Result.HMR, "", true); PsFile.AddPlot(Result.HMRStar, "", true); PsFile.AddPlot(Result.HR, "", true); PsFile.AddPlot(Result.HRStar, "", true); PsFile.AddPlot(Result.HMRR, "colz", false); PsFile.AddPlot(Result.HMRStarRStar, "colz", false); PsFile.AddPlot(Result.HMR_R020Cut, "", true); PsFile.AddPlot(Result.HMRStar_RStar020Cut, "", true); PsFile.AddPlot(Result.HMR_R050Cut, "", true); PsFile.AddPlot(Result.HMRStar_RStar050Cut, "", true); Result.HNewMRNewR2Matrix->SetStats(0); PsFile.AddPlot(Result.HNewMRNewR2Matrix, "colz text30", false); return Result; } //---------------------------------------------------------------------------
18ae1d43e84f32623037fa1719d8945951519d2e
e915d0bcf2b4c6add59a216c3377288e20afd737
/cpp03/ex01/ScavTrap.hpp
d7a5ff12dbc5873e9d314c999c41226fd2759d3d
[]
no_license
NikiP-C/cpp_piscine
575a29253a7e6d99f9e685d347115ccf54fa0516
d79c19fc9130a57a3dc5e22d82816df20e86ed76
refs/heads/master
2023-03-11T11:46:40.110033
2021-03-01T12:31:16
2021-03-01T12:31:16
283,230,325
0
0
null
null
null
null
UTF-8
C++
false
false
1,514
hpp
/* ************************************************************************** */ /* */ /* :::::::: */ /* ScavTrap.hpp :+: :+: */ /* +:+ */ /* By: nphilipp <[email protected]> +#+ */ /* +#+ */ /* Created: 2020/10/01 20:30:38 by nphilipp #+# #+# */ /* Updated: 2020/10/01 22:06:26 by nphilipp ######## odam.nl */ /* */ /* ************************************************************************** */ #include <iostream> class ScavTrap { private: int HitPoints; int MaxHitPoints; int EnergyPoints; int MaxEnergyPoints; int Level; std::string Name; int MeleeDamage; int RangedDamage; int ArmorReduction; public: ScavTrap(std::string NewName); ~ScavTrap(); void rangedAttack(std::string const & target); void meleeAttack(std::string const & target); void takeDamage(unsigned int amount); void beRepaired(unsigned int amount); void challengeNewcomer(std::string const & target); };
a99e2dca776bc186e0ce8cbfa894b11b5fc3ea11
97e53e8028ffb9d3f736a0999cc470f9942ddcd0
/01 窗体与界面设计/06 界面窗体应用实例/003 以时钟显示界面-例1/XPStyleButton/CustomButton.cpp
8c6f423fb0876872156a5504aced2f567312bbc5
[]
no_license
BambooMa/VC_openSource
3da1612ca8285eaba9b136fdc2c2034c7b92f300
8c519e73ef90cdb2bad3de7ba75ec74115aab745
refs/heads/master
2021-05-14T15:22:10.563149
2017-09-11T07:59:18
2017-09-11T07:59:18
115,991,286
1
0
null
2018-01-02T08:12:01
2018-01-02T08:12:00
null
GB18030
C++
false
false
4,214
cpp
// CustomButton.cpp : implementation file // #include "stdafx.h" #include "XPStyleButton.h" #include "CustomButton.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif ///////////////////////////////////////////////////////////////////////////// // CCustomButton CCustomButton::CCustomButton() { m_State = bsNormal; } CCustomButton::~CCustomButton() { m_State = bsNormal; } BEGIN_MESSAGE_MAP(CCustomButton, CButton) //{{AFX_MSG_MAP(CCustomButton) ON_WM_LBUTTONDOWN() ON_WM_MOUSEMOVE() ON_WM_PAINT() ON_WM_LBUTTONUP() //}}AFX_MSG_MAP END_MESSAGE_MAP() ///////////////////////////////////////////////////////////////////////////// // CCustomButton message handlers void CCustomButton::OnLButtonDown(UINT nFlags, CPoint point) { m_State = bsDown; //设置按钮按下状态 InvalidateRect(NULL,TRUE); //更新按钮 } void CCustomButton::OnMouseMove(UINT nFlags, CPoint point) { HRGN hRgn = CreateRectRgn(0, 0, 0, 0); GetWindowRgn(hRgn); BOOL ret = PtInRegion(hRgn, point.x, point.y);//鼠标是否在按钮上 if(ret) //在按钮上 { if(m_State == bsDown) //判断按钮是否为按下状态 return ; if(m_State != bsHot) //判断按钮是否不是热点状态 { m_State = bsHot; //设置为热点状态 InvalidateRect(NULL,TRUE); //更新按钮 SetCapture(); //捕获鼠标 } } else //不在按钮上 { m_State = bsNormal; //设置按钮状态 InvalidateRect(NULL,TRUE); //更新按钮 ReleaseCapture(); //释放鼠标 } DeleteObject( hRgn ); CButton::OnMouseMove(nFlags, point); } void CCustomButton::OnPaint() { CPaintDC dc(this); //获取按钮的设备上下文 CString Text; //定义一个字符串变量 CRect RC; //定义一个区域对象 CFont Font; //定义一个字体对象 CFont *pOldFont; //定义一个字体对象指针,用于存储之前的字体 CBrush Brush; //定义一个画刷对象 CBrush *pOldBrush; //定义一个画刷对象指针,用于存储之前的画刷对象 CPoint PT(2,2); //定义一个点对象 dc.SetBkMode(TRANSPARENT); //将设备上下文背景模式设置为透明 Font.CreateFont(12, 0, 0, 0, FW_HEAVY, 0, 0, 0, ANSI_CHARSET, OUT_TT_PRECIS, CLIP_DEFAULT_PRECIS, DEFAULT_QUALITY, VARIABLE_PITCH | FF_SWISS, "宋体"); //创建字体 pOldFont = dc.SelectObject(&Font); //选中新的字体 if(m_State == bsNormal) //判断按钮是否为正常状态 { Brush.CreateSolidBrush( RGB(230, 230, 230)); //创建指定颜色的画刷 dc.SetTextColor(RGB(0, 0, 0)); //设置文本颜色 } else if(m_State == bsDown) //判断按钮是否为按下状态 { Brush.CreateSolidBrush(RGB(100, 100, 180)); //创建指定颜色的画刷 dc.SetTextColor(RGB(250, 250, 0)); //设置文本颜色 } else if(m_State == bsHot) //判断按钮是否为热点状态 { Brush.CreateSolidBrush(RGB(230, 230, 130)); //创建指定颜色的画刷 dc.SetTextColor(RGB(50, 50, 250)); //设置文本颜色 } pOldBrush = dc.SelectObject(&Brush); //选中画刷 GetClientRect(&RC); //获取按钮的客户区域 dc.RoundRect(&RC, PT); //利用当前选中的画刷和画笔绘制按钮区域 HRGN hRgn = CreateRectRgn(RC.left, RC.top, RC.right, RC.bottom); //创建一个选区 SetWindowRgn(hRgn, TRUE); //设置按钮窗口区域 DeleteObject(hRgn); //删除选区 GetWindowText(Text); //获取按钮文本 dc.DrawText(Text, &RC, DT_CENTER | DT_VCENTER | DT_SINGLELINE); //绘制按钮文本 Font.DeleteObject(); //删除字体对象 Brush.DeleteObject(); //删除画刷对象 dc.SelectObject(pOldFont); //恢复原来选中的字体 dc.SelectObject(pOldBrush); //恢复原来选中的画刷 } void CCustomButton::OnLButtonUp(UINT nFlags, CPoint point) { if(m_State != bsNormal) //判断按钮状态 { m_State = bsNormal; //设置按钮状态 ReleaseCapture(); //释放鼠标捕捉 InvalidateRect(NULL,TRUE); //更新按钮 } //向父窗口发送命令消息 ::SendMessage(GetParent()->m_hWnd,WM_COMMAND, GetDlgCtrlID(), (LPARAM) m_hWnd); }
38c3123f8452ea15b5c2021a77489de958fa0577
6c044a7c21a11c4c467461ad3c0cee1636ab5271
/PRO2/source/RB_Tree.cc
774c2892c6dedd71083aab7b1253832c9cb9c231
[]
no_license
xxning/Algorithm
b5e98f5660f1592ab29f412aaf888a34e5d67eff
10026b53bb046dfc6125636aefe7df5f06688e61
refs/heads/master
2020-12-24T05:40:34.354157
2016-11-11T15:58:00
2016-11-11T15:58:00
73,491,078
0
0
null
null
null
null
GB18030
C++
false
false
15,070
cc
#include<stdio.h> #include<stdlib.h> #include<time.h> //#include "node.hh" //#include "dumpdot.hh" char *dumpfile_name = NULL; // dump file's name FILE *dumpfp = NULL; // dump file's pointer struct TreeNode{ int Key; //记录该节点表示的关键字 int Color; //0表示红色,1表示黑色; int Size; //记录以该节点为根的子树的节点个数 TreeNode *Left; //指向左子树 TreeNode *Right; //指向右子树 TreeNode *Parent; //指向父节点 }; //definition of basic operations void LEFT_ROTATE(TreeNode *T,TreeNode *x); void RIGHT_ROTATE(TreeNode *T,TreeNode *x); void RB_INSERT(TreeNode *T,TreeNode *z); void RB_INSERT_FIXUP(TreeNode *T,TreeNode *z); void RB_TRANSPLANT(TreeNode *T,TreeNode *u,TreeNode *v); TreeNode* TREE_MINIMUM(TreeNode *z); void RB_DELETE(TreeNode *T,TreeNode *z); void RB_DELETE_FIXUP(TreeNode *T,TreeNode *x); TreeNode* OS_SELECT(TreeNode* x,int i); void RB_PREORDER(TreeNode *T); void RB_INORDER(TreeNode *T); void RB_POSTORDER(TreeNode *T); void OUTPUT_INITIAL(void); void TEST(void); void RANDOMIZED_SELECT(int *A,int p,int r,int i); int RANDOMIZED_PARTITION(int *A,int p,int r); void GRAPH(TreeNode *T); TreeNode *TreeRoot=(TreeNode*)malloc(sizeof(TreeNode)); TreeNode *T_nil=(TreeNode*)malloc(sizeof(TreeNode)); //output file FILE* output_preorder; FILE* output_inorder; FILE* output_postorder; FILE* output_time1; FILE* output_time2; FILE* output_delete_data; FILE* Graph; int N_test; int count=0; double Time=0; double Ti[10]={0,0,0,0,0,0,0,0,0,0}; struct timespec time_start={0,0},time_end={0,0}; int main(int argc,char *argv[]){ FILE* input; int i,j; int Scale=100; input=fopen("./input/input_numbers.txt","r"); if(!input){ printf("error:can't open objcct file.\n"); exit(1); } int* num=(int*)malloc(Scale*sizeof(int)); for(i=0;i<Scale;i++) fscanf(input,"%d",&num[i]); fclose(input); TreeRoot->Left=T_nil; T_nil->Left=NULL; T_nil->Right=NULL; T_nil->Color=1; T_nil->Size=0; N_test=atoi(argv[1]); OUTPUT_INITIAL(); int count=0,index=0; for(i=0;i<N_test;i++){ count++; TreeNode *z=(TreeNode*)malloc(sizeof(TreeNode)); z->Key=num[i]; z->Size=1; z->Color=0; //z->Color=0; clock_gettime(CLOCK_REALTIME,&time_start); RB_INSERT(TreeRoot,z); clock_gettime(CLOCK_REALTIME,&time_end); Ti[index]+=(double)(time_end.tv_nsec-time_start.tv_nsec); if(count==10){ index++; count=0; } } for(i=0;i<index;i++){ fprintf(output_time1,"%d: %.0f\n",i,Ti[i]); Time+=Ti[i]; } fprintf(output_time1,"Total time: %.0f\n",Time); fprintf(Graph,"digraph \{\n"); fprintf(Graph," node [shape = record];\n"); TEST(); fprintf(Graph,"\r}\n"); RANDOMIZED_SELECT(num,0,N_test-1,N_test/3); RANDOMIZED_SELECT(num,0,N_test-1,(2*N_test-2)/3); fclose(output_preorder); fclose(output_inorder); fclose(output_postorder); fclose(output_time1); fclose(output_time2); fclose(output_delete_data); fclose(Graph); printf("Complete size of %d!\n",N_test); //system("pause"); return 0; } //T->Left指向根节点 void LEFT_ROTATE(TreeNode *T,TreeNode *x){ TreeNode *y=(TreeNode*)malloc(sizeof(TreeNode)); y=x->Right; x->Right=y->Left; if(y->Left!=T_nil) y->Left->Parent=x; y->Parent=x->Parent; if(x->Parent==T_nil) T->Left=y; else if(x==x->Parent->Left) x->Parent->Left=y; else x->Parent->Right=y; y->Left=x; x->Parent=y; y->Size=x->Size; //size属性维护 x->Size=x->Left->Size+x->Right->Size+1; } //T->Left指向根节点 void RIGHT_ROTATE(TreeNode *T,TreeNode *x){ TreeNode *y=(TreeNode*)malloc(sizeof(TreeNode)); y=x->Left; x->Left=y->Right; if(y->Right!=T_nil) y->Right->Parent=x; y->Parent=x->Parent; if(x->Parent==T_nil) T->Left=y; else if(x==x->Parent->Left) x->Parent->Left=y; else x->Parent->Right=y; y->Right=x; x->Parent=y; y->Size=x->Size; //size属性维护 x->Size=x->Left->Size+x->Right->Size+1; } void RB_INSERT(TreeNode *T,TreeNode *z){ TreeNode *x=(TreeNode*)malloc(sizeof(TreeNode)); TreeNode *y=(TreeNode*)malloc(sizeof(TreeNode)); y=T_nil; x=T->Left; while(x!=T_nil){ y=x; x->Size++; if(z->Key<x->Key) x=x->Left; else x=x->Right; } z->Parent=y; if(y==T_nil) T->Left=z; else if(z->Key<y->Key) y->Left=z; else y->Right=z; z->Left=T_nil; z->Right=T_nil; z->Color=0; RB_INSERT_FIXUP(T,z); } void RB_INSERT_FIXUP(TreeNode *T,TreeNode *z){ TreeNode *y=(TreeNode*)malloc(sizeof(TreeNode)); while( z->Parent->Color==0 ){ if(z->Parent==z->Parent->Parent->Left){ y=z->Parent->Parent->Right; if(y->Color==0){ z->Parent->Color=1; //case1 y->Color=1; //case1 z->Parent->Parent->Color=0; //case1 z=z->Parent->Parent; //case1 } else if(z==z->Parent->Right){ z=z->Parent; //case2 LEFT_ROTATE(T,z); //case2 } else{ z->Parent->Color=1; //case3 z->Parent->Parent->Color=0; //case3 RIGHT_ROTATE(T,z->Parent->Parent); //case3 } } else{ y=z->Parent->Parent->Left; if(y->Color==0){ z->Parent->Color=1; //case1 y->Color=1; //case1 z->Parent->Parent->Color=0; //case1 z=z->Parent->Parent; //case1 } else if(z==z->Parent->Left){ z=z->Parent; //case2 RIGHT_ROTATE(T,z); //case2 } else{ z->Parent->Color=1; //case3 z->Parent->Parent->Color=0; //case3 LEFT_ROTATE(T,z->Parent->Parent); //case3 } } } T->Left->Color=1; } void RB_TRANSPLANT(TreeNode *T,TreeNode *u,TreeNode *v){ if(u->Parent==T_nil) T->Left=v; else if(u==u->Parent->Left) u->Parent->Left=v; else u->Parent->Right=v; v->Parent=u->Parent; } TreeNode* TREE_MINIMUM(TreeNode *z){ TreeNode *y=(TreeNode*)malloc(sizeof(TreeNode)); TreeNode *x=(TreeNode*)malloc(sizeof(TreeNode)); x=z; while(x!=T_nil){ y=x; x=x->Left; } return y; } void RB_DELETE(TreeNode *T,TreeNode *z){ TreeNode *x=(TreeNode*)malloc(sizeof(TreeNode)); TreeNode *y=(TreeNode*)malloc(sizeof(TreeNode)); y=z->Parent; if(y!=T_nil){ //修改size属性 y->Size=y->Size-1; y=y->Parent; } y=z; int y_original_color=y->Color; if(z->Left==T_nil){ x=z->Right; RB_TRANSPLANT(T,z,z->Right); } else if(z->Right==T_nil){ x=z->Left; RB_TRANSPLANT(T,z,z->Left); } else{ y=TREE_MINIMUM(z->Right); y_original_color=y->Color; x=y->Right; if(y->Parent==z) x->Parent=y; else{ RB_TRANSPLANT(T,y,y->Right); y->Right=z->Right; y->Right->Parent=y; } RB_TRANSPLANT(T,z,y); y->Left=z->Left; y->Left->Parent=y; y->Color=z->Color; } if(y_original_color==1) RB_DELETE_FIXUP(T,x); } void RB_DELETE_FIXUP(TreeNode *T,TreeNode *x){ TreeNode *w=(TreeNode*)malloc(sizeof(TreeNode)); while( x!=T->Left && x->Color==1 ){ if(x==x->Parent->Left){ w=x->Parent->Right; if(w->Color==0){ w->Color=1; //case1 x->Parent->Color=0; //case1 LEFT_ROTATE(T,x->Parent); //case1 w=w->Parent->Right; //case1 } if( w->Left->Color==1 && w->Right->Color==1){ w->Color=0; //case2 x=x->Parent; //case2 } else if(w->Right->Color==1){ w->Left->Color=1; //case3 w->Color=0; //case3 RIGHT_ROTATE(T,w); //case3 w=x->Parent->Right; //case3 } else{ w->Color=x->Parent->Color; //case4 x->Parent->Color=1; //case4 w->Right->Color=1; //case4 LEFT_ROTATE(T,x->Parent); //case4 x=T->Left; //case4 } } else{ w=x->Parent->Left; if(w->Color==0){ w->Color=1; //case1 x->Parent->Color=0; //case1 RIGHT_ROTATE(T,x->Parent); //case1 w=w->Parent->Left; //case1 } if( w->Left->Color==1 && w->Right->Color==1){ w->Color=0; //case2 x=x->Parent; //case2 } else if(w->Right->Color==1){ w->Left->Color=1; //case3 w->Color=0; //case3 LEFT_ROTATE(T,w); //case3 w=x->Parent->Right; //case3 } else{ w->Color=x->Parent->Color; //case4 x->Parent->Color=1; //case4 w->Left->Color=1; //case4 RIGHT_ROTATE(T,x->Parent); //case4 x=T->Left; //case4 } } } x->Color=1; } TreeNode* OS_SELECT(TreeNode* x,int i){ int r=x->Left->Size+1; if(i==r) return x; else if(i<r) return OS_SELECT(x->Left,i); else return OS_SELECT(x->Right,i-r); } void RB_PREORDER(TreeNode* T){ if(T==T_nil) return; else{ fprintf(output_preorder,"Key:%8d Color:%s Size:%d\n",T->Key,(T->Color==1)?"BLACK":"RED",T->Size); RB_PREORDER(T->Left); RB_PREORDER(T->Right); } } void RB_INORDER(TreeNode* T){ if(T==T_nil) return; else{ RB_INORDER(T->Left); fprintf(output_inorder,"Key:%8d Color:%s Size:%d\n",T->Key,(T->Color==1)?"BLACK":"RED",T->Size); RB_INORDER(T->Right); } } void RB_POSTORDER(TreeNode* T){ if(T==T_nil) return; else{ RB_POSTORDER(T->Left); RB_POSTORDER(T->Right); fprintf(output_postorder,"Key:%8d Color:%s Size:%d\n",T->Key,(T->Color==1)?"BLACK":"RED",T->Size); } } void OUTPUT_INITIAL(void){ switch(N_test){ case(20):{ output_preorder=fopen("./output/size20/preorder.txt","w"); output_inorder=fopen("./output/size20/inorder.txt","w"); output_postorder=fopen("./output/size20/postorder.txt","w"); output_time1=fopen("./output/size20/time1.txt","w"); output_time2=fopen("./output/size20/time2.txt","w"); output_delete_data=fopen("./output/size20/delete_data.txt","w"); Graph=fopen("./output/size20/graph.dot","w"); if(!output_preorder||!output_inorder||!output_postorder||!output_time1||!output_time2||!output_delete_data||!Graph){ printf("Error:can't open objcct file.\n"); exit(1); } break; } case(40):{ output_preorder=fopen("./output/size40/preorder.txt","w"); output_inorder=fopen("./output/size40/inorder.txt","w"); output_postorder=fopen("./output/size40/postorder.txt","w"); output_time1=fopen("./output/size40/time1.txt","w"); output_time2=fopen("./output/size40/time2.txt","w"); output_delete_data=fopen("./output/size40/delete_data.txt","w"); Graph=fopen("./output/size40/graph.dot","w"); if(!output_preorder||!output_inorder||!output_postorder||!output_time1||!output_time2||!output_delete_data||!Graph){ printf("Error:can't open objcct file.\n"); exit(1); } break; } case(60):{ output_preorder=fopen("./output/size60/preorder.txt","w"); output_inorder=fopen("./output/size60/inorder.txt","w"); output_postorder=fopen("./output/size60/postorder.txt","w"); output_time1=fopen("./output/size60/time1.txt","w"); output_time2=fopen("./output/size60/time2.txt","w"); output_delete_data=fopen("./output/size60/delete_data.txt","w"); Graph=fopen("./output/size60/graph.dot","w"); if(!output_preorder||!output_inorder||!output_postorder||!output_time1||!output_time2||!output_delete_data||!Graph){ printf("Error:can't open objcct file.\n"); exit(1); } break; } case(80):{ output_preorder=fopen("./output/size80/preorder.txt","w"); output_inorder=fopen("./output/size80/inorder.txt","w"); output_postorder=fopen("./output/size80/postorder.txt","w"); output_time1=fopen("./output/size80/time1.txt","w"); output_time2=fopen("./output/size80/time2.txt","w"); output_delete_data=fopen("./output/size80/delete_data.txt","w"); Graph=fopen("./output/size80/graph.dot","w"); if(!output_preorder||!output_inorder||!output_postorder||!output_time1||!output_time2||!output_delete_data||!Graph){ printf("Error:can't open objcct file.\n"); exit(1); } break; } case(100):{ output_preorder=fopen("./output/size100/preorder.txt","w"); output_inorder=fopen("./output/size100/inorder.txt","w"); output_postorder=fopen("./output/size100/postorder.txt","w"); output_time1=fopen("./output/size100/time1.txt","w"); output_time2=fopen("./output/size100/time2.txt","w"); output_delete_data=fopen("./output/size100/delete_data.txt","w"); Graph=fopen("./output/size100/graph.dot","w"); if(!output_preorder||!output_inorder||!output_postorder||!output_time1||!output_time2||!output_delete_data||!Graph){ printf("Error:can't open objcct file.\n"); exit(1); } break; } default:{ printf("Error:invalid argument.\n"); exit(1); } } } void TEST(void){ //三种遍历 RB_PREORDER(TreeRoot->Left); RB_INORDER(TreeRoot->Left); RB_POSTORDER(TreeRoot->Left); GRAPH(TreeRoot->Left); //两次删除 TreeNode *z=(TreeNode*)malloc(sizeof(TreeNode)); //Delete 1 z=OS_SELECT(TreeRoot->Left,N_test/3); fprintf(output_delete_data,"Key:%d Color:%s Size:%d\n",z->Key,(z->Color==1)?"BLACK":"RED",z->Size); clock_gettime(CLOCK_REALTIME,&time_start); RB_DELETE(TreeRoot,z);// clock_gettime(CLOCK_REALTIME,&time_end); Time=(double)(time_end.tv_nsec-time_start.tv_nsec); fprintf(output_time2,"Delete 1 :%.0f\n",Time); //Delete 2 z=OS_SELECT(TreeRoot->Left,((N_test-1)*2)/3); fprintf(output_delete_data,"Key:%d Color:%s Size:%d\n",z->Key,(z->Color==1)?"BLACK":"RED",z->Size); clock_gettime(CLOCK_REALTIME,&time_start); RB_DELETE(TreeRoot,z);// clock_gettime(CLOCK_REALTIME,&time_end); Time=(double)(time_end.tv_nsec-time_start.tv_nsec); fprintf(output_time2,"Delete 2 :%.0f\n",Time); } void RANDOMIZED_SELECT(int *A,int p,int r,int i){ if(p==r){ fprintf(output_delete_data,"delete: %8d\n",A[p]); return ; } int q,k; q=RANDOMIZED_PARTITION(A,p,r); k=q-p+1; if(i==k){ fprintf(output_delete_data,"delete: %8d\n",A[q]); return ; } else if(i<k) RANDOMIZED_SELECT(A,p,q-1,i); else RANDOMIZED_SELECT(A,q+1,r,i-k); } int RANDOMIZED_PARTITION(int *A,int p,int r){ int i,j; int tem,sel; double Rand; srand((unsigned)time(NULL)); Rand=rand()/(RAND_MAX+1.0); Rand=Rand*(r-p); tem=p+Rand; sel=A[tem]; A[tem]=A[r]; A[r]=sel; i=p-1; sel=A[r]; for(j=p;j<r;j++){ if(A[j]<sel){ i=i+1; tem=A[i]; A[i]=A[j]; A[j]=tem; } } tem=A[i+1]; A[i+1]=A[r]; A[r]=tem; return (i+1); } void GRAPH(TreeNode* T){ if(T==T_nil) {printf("err\n");return;} if(T->Color==1) fprintf(Graph," %d [label = \"<0> |<1> %d|<2> %d|<3> %d|<4> \"];\n",count,T->Key,T->Color,T->Size); else fprintf(Graph," %d [label = \"<0> |<1> %d|<2> %d|<3> %d|<4> \",color=Red];\n",count,T->Key,T->Color,T->Size); count++; if(T->Left!=T_nil) { fprintf(Graph," %d: %d -> %d;\n",count-1,0,count); GRAPH(T->Left); } if(T->Right!=T_nil) { fprintf(Graph," %d: %d -> %d;\n",count-(T->Left->Size)-1,4,count); GRAPH(T->Right); } }
ce923b1fabf9c1a3d9e0e3e65fae9d72aa51b64c
0d653408de7c08f1bef4dfba5c43431897097a4a
/cmajor/rt/Multiprecision.hpp
5befa96f26d4bf403f6f840d8e6d05ec8e439426
[]
no_license
slaakko/cmajorm
948268634b8dd3e00f86a5b5415bee894867b17c
1f123fc367d14d3ef793eefab56ad98849ee0f25
refs/heads/master
2023-08-31T14:05:46.897333
2023-08-11T11:40:44
2023-08-11T11:40:44
166,633,055
7
2
null
null
null
null
UTF-8
C++
false
false
7,935
hpp
// ================================= // Copyright (c) 2022 Seppo Laakko // Distributed under the MIT license // ================================= #ifndef CMAJOR_RT_MULTIPRECISION_INCLUDED #define CMAJOR_RT_MULTIPRECISION_INCLUDED #include <cmajor/rt/RtApi.hpp> #include <stdint.h> // Integer functions: extern "C" RT_API void* RtCreateDefaultBigInt(int32_t & errorStrHandle); extern "C" RT_API void* RtCreateBigIntFromInt(int32_t v, int32_t & errorStrHandle); extern "C" RT_API void* RtCreateBigIntFromUInt(uint32_t v, int32_t & errorStrHandle); extern "C" RT_API void* RtCreateBigIntFromLong(int64_t v, int32_t & errorStrHandle); extern "C" RT_API void* RtCreateBigIntFromULong(uint64_t v, int32_t & errorStrHandle); extern "C" RT_API void* RtCreateBigIntFromStr(const char* v, int32_t & errorStrHandle); extern "C" RT_API void* RtCreateBigIntFromCopy(void* handle, int32_t & errorStrHandle); extern "C" RT_API void RtDestroyBigInt(void* handle); extern "C" RT_API const char* RtBigIntToCharPtr(void* handle, int32_t & errorStrHandle); extern "C" RT_API void RtDeleteCharPtr(const char* ptr); extern "C" RT_API int32_t RtBigIntToInt(void* handle, int32_t & errorStrHandle); extern "C" RT_API uint32_t RtBigIntToUInt(void* handle, int32_t & errorStrHandle); extern "C" RT_API int64_t RtBigIntToLong(void* handle, int32_t & errorStrHandle); extern "C" RT_API uint64_t RtBigIntToULong(void* handle, int32_t & errorStrHandle); extern "C" RT_API void* RtNegBigInt(void* handle, int32_t & errorStrHandle); extern "C" RT_API void* RtPosBigInt(void* handle, int32_t & errorStrHandle); extern "C" RT_API void* RtCplBigInt(void* handle, int32_t & errorStrHandle); extern "C" RT_API void* RtAddBigInt(void* left, void* right, int32_t & errorStrHandle); extern "C" RT_API void* RtSubBigInt(void* left, void* right, int32_t & errorStrHandle); extern "C" RT_API void* RtMulBigInt(void* left, void* right, int32_t & errorStrHandle); extern "C" RT_API void* RtDivBigInt(void* left, void* right, int32_t & errorStrHandle); extern "C" RT_API void* RtModBigInt(void* left, void* right, int32_t & errorStrHandle); extern "C" RT_API void* RtAndBigInt(void* left, void* right, int32_t & errorStrHandle); extern "C" RT_API void* RtOrBigInt(void* left, void* right, int32_t & errorStrHandle); extern "C" RT_API void* RtXorBigInt(void* left, void* right, int32_t & errorStrHandle); extern "C" RT_API void* RtShiftLeftBigInt(void* left, int32_t right, int32_t & errorStrHandle); extern "C" RT_API void* RtShiftRightBigInt(void* left, int32_t right, int32_t & errorStrHandle); extern "C" RT_API bool RtEqualBigInt(void* left, void* right, int32_t & errorStrHandle); extern "C" RT_API bool RtNotEqualBigInt(void* left, void* right, int32_t & errorStrHandle); extern "C" RT_API bool RtLessBigInt(void* left, void* right, int32_t & errorStrHandle); extern "C" RT_API bool RtGreaterBigInt(void* left, void* right, int32_t & errorStrHandle); extern "C" RT_API bool RtLessEqualBigInt(void* left, void* right, int32_t & errorStrHandle); extern "C" RT_API bool RtGreaterEqualBigInt(void* left, void* right, int32_t & errorStrHandle); // Rational functions: extern "C" RT_API void* RtCreateDefaultBigRational(int32_t & errorStrHandle); extern "C" RT_API void* RtCreateBigRationalFromInt(int32_t v, int32_t & errorStrHandle); extern "C" RT_API void* RtCreateBigRationalFromUInt(uint32_t v, int32_t & errorStrHandle); extern "C" RT_API void* RtCreateBigRationalFromLong(int64_t v, int32_t & errorStrHandle); extern "C" RT_API void* RtCreateBigRationalFromULong(uint64_t v, int32_t & errorStrHandle); extern "C" RT_API void* RtCreateBigRationalFromStr(const char* v, int32_t & errorStrHandle); extern "C" RT_API void* RtCreateBigRationalFromCopy(void* handle, int32_t & errorStrHandle); extern "C" RT_API void* RtCreateBigRationalFromBigInt(void* handle, int32_t & errorStrHandle); extern "C" RT_API void* RtCreateBigRationalFromBigInts(void* numerator, void* denominator, int32_t & errorStrHandle); extern "C" RT_API void RtDestroyBigRational(void* handle); extern "C" RT_API const char* RtBigRationalToCharPtr(void* handle, int32_t & errorStrHandle); extern "C" RT_API void* RtBigRationalToBigInt(void* handle, int32_t & errorStrHandle); extern "C" RT_API void* RtNegBigRational(void* handle, int32_t & errorStrHandle); extern "C" RT_API void* RtPosBigRational(void* handle, int32_t & errorStrHandle); extern "C" RT_API void* RtAddBigRational(void* left, void* right, int32_t & errorStrHandle); extern "C" RT_API void* RtSubBigRational(void* left, void* right, int32_t & errorStrHandle); extern "C" RT_API void* RtMulBigRational(void* left, void* right, int32_t & errorStrHandle); extern "C" RT_API void* RtDivBigRational(void* left, void* right, int32_t & errorStrHandle); extern "C" RT_API bool RtEqualBigRational(void* left, void* right, int32_t & errorStrHandle); extern "C" RT_API bool RtNotEqualBigRational(void* left, void* right, int32_t & errorStrHandle); extern "C" RT_API bool RtLessBigRational(void* left, void* right, int32_t & errorStrHandle); extern "C" RT_API bool RtGreaterBigRational(void* left, void* right, int32_t & errorStrHandle); extern "C" RT_API bool RtLessEqualBigRational(void* left, void* right, int32_t & errorStrHandle); extern "C" RT_API bool RtGreaterEqualBigRational(void* left, void* right, int32_t & errorStrHandle); extern "C" RT_API void* RtNumeratorBigRational(void* handle, int32_t & errorStrHandle); extern "C" RT_API void* RtDenominatorBigRational(void* handle, int32_t & errorStrHandle); // Float functions: extern "C" RT_API void* RtCreateDefaultBigFloat(int32_t & errorStrHandle); extern "C" RT_API void* RtCreateBigFloatFromInt(int32_t v, int32_t & errorStrHandle); extern "C" RT_API void* RtCreateBigFloatFromUInt(uint32_t v, int32_t & errorStrHandle); extern "C" RT_API void* RtCreateBigFloatFromLong(int64_t v, int32_t & errorStrHandle); extern "C" RT_API void* RtCreateBigFloatFromULong(uint64_t v, int32_t & errorStrHandle); extern "C" RT_API void* RtCreateBigFloatFromDouble(double v, int32_t & errorStrHandle); extern "C" RT_API void* RtCreateBigFloatFromStr(const char* v, int32_t & errorStrHandle); extern "C" RT_API void* RtCreateBigFloatFromCopy(void* handle, int32_t & errorStrHandle); extern "C" RT_API void* RtCreateBigFloatFromBigInt(void* handle, int32_t & errorStrHandle); extern "C" RT_API void* RtCreateBigFloatFromBigRational(void* handle, int32_t & errorStrHandle); extern "C" RT_API void RtDestroyBigFloat(void* handle); extern "C" RT_API const char* RtBigFloatToCharPtr(void* handle, int32_t & errorStrHandle); extern "C" RT_API double RtBigFloatToDouble(void* handle, int32_t & errorStrHandle); extern "C" RT_API void* RtBigFloatToBigInt(void* handle, int32_t & errorStrHandle); extern "C" RT_API void* RtBigFloatToBigRational(void* handle, int32_t & errorStrHandle); extern "C" RT_API void* RtNegBigFloat(void* handle, int32_t & errorStrHandle); extern "C" RT_API void* RtPosBigFloat(void* handle, int32_t & errorStrHandle); extern "C" RT_API void* RtAddBigFloat(void* left, void* right, int32_t & errorStrHandle); extern "C" RT_API void* RtSubBigFloat(void* left, void* right, int32_t & errorStrHandle); extern "C" RT_API void* RtMulBigFloat(void* left, void* right, int32_t & errorStrHandle); extern "C" RT_API void* RtDivBigFloat(void* left, void* right, int32_t & errorStrHandle); extern "C" RT_API bool RtEqualBigFloat(void* left, void* right, int32_t & errorStrHandle); extern "C" RT_API bool RtNotEqualBigFloat(void* left, void* right, int32_t & errorStrHandle); extern "C" RT_API bool RtLessBigFloat(void* left, void* right, int32_t & errorStrHandle); extern "C" RT_API bool RtGreaterBigFloat(void* left, void* right, int32_t & errorStrHandle); extern "C" RT_API bool RtLessEqualBigFloat(void* left, void* right, int32_t & errorStrHandle); extern "C" RT_API bool RtGreaterEqualBigFloat(void* left, void* right, int32_t & errorStrHandle); #endif // CMAJOR_RT_MULTIPRECISION_INCLUDED
9820f63aa9ccfcdd5408046beaa1145877142935
bb3b2fe1550f329d9c73f1cf06f702a7a4eb854a
/Design Tests/Card.h
b441006a03a92acba72fd58a4cc5c47d191a29e1
[]
no_license
jaidurn/Design-Tests-take-2
18a1896ccafd41289d25299a62cb7fba333f99aa
f2a8d29faf1be99937d19ad1b3c807fe2b031d82
refs/heads/master
2022-08-26T16:18:12.357990
2019-09-10T09:16:27
2019-09-10T09:16:27
203,531,085
0
0
null
null
null
null
UTF-8
C++
false
false
485
h
#pragma once class Card { public: enum CardType { CARD_STAT, CARD_DROP, CARD_ABILITY, CARD_WORLD, TYPE_END }; enum CardRarity { CARD_COMMON, CARD_UNCOMMON, CARD_RARE, CARD_UNIQUE, RARITY_END }; Card(int entityID, CardType type, CardRarity rarity); ~Card(); CardType getType() { return m_type; } CardRarity getRarity() { return m_rarity; } int getEntityID() { return m_entityID; } private: CardType m_type; CardRarity m_rarity; int m_entityID; };
dbabbd65fe5e61956f0ec8812260402d4ca5b6db
b36d536ab604021611a5aeaad352e8211d865d38
/akuna/subset_sum_removal.cc
1b411d007189227594550064c5c065d751fedc09
[]
no_license
zshen0x/interviews
352ce53cff87abd652a9070e8ef44df0589dee96
dc01ce12c35afecd80379e912ae5b650c54fbe8c
refs/heads/master
2021-03-19T13:23:06.290558
2016-12-03T01:28:26
2016-12-03T01:28:26
null
0
0
null
null
null
null
UTF-8
C++
false
false
589
cc
// // Created by Zhebin Shen on 11/6/16. // #include <vector> #include <iostream> using namespace std; class Solution { public: vector<vector<int>> subsets(int n) { if (n == 0) { return vector<vector<int>> {{}}; } else { auto sets = subsests(n-1); } } vector<int> subset_sum_removal(vector<int> nums) { // nums are sorted int len = nums.size(); } vector<int> subset_sum_removal(vector<int> nums) { sort(nums.begin(), nums.end()); } }; int main() { Solution s; return 0; }
6382f7b6167cf36405847d2150a5d27b32394be5
8df7b64ed9b97381c747ca81a6006d57ca9d37bc
/juegoDelNumero.cpp
4ceff1d6bcc2e1d281bbc79c79aede1a7f0d9b66
[]
no_license
luisdavid24/segundo-corte
8f9020f1c5e91f064b802481bc0d607e7b65c770
a128b55022182cce9eee0ff943ec26f90bfc87da
refs/heads/master
2022-11-07T04:56:07.757280
2020-06-11T21:12:55
2020-06-11T21:12:55
267,163,278
0
0
null
null
null
null
UTF-8
C++
false
false
1,133
cpp
#include <iostream> #include <time.h> #include <stdlib.h> using namespace std; int numero,ingresado, oportunidades,nivel,vidas; int main(int argc, char** argv) { cout<<"Por favor secciona un nivel de dificultad muy facil(1),facil(2),normal(3),dificil(4),dificil(5) y dios(6): "; cin>>nivel; srand(time(NULL)); if(nivel==1){ numero= rand()%21; }else if(nivel==2) { numero= rand()%41; }else if(nivel==3) { numero= rand()%61; }else if(nivel==4) { numero= rand()%74; }else if(nivel==5) { numero= rand()%86; }else if(nivel==6) { numero= rand()%111; } oportunidades=0; cout<<"Escribe el numero de vidas con las que deseas jugar"; cin>>vidas; vidas++; while (ingresado!=numero and oportunidades!=5000) { oportunidades++; cout<<"Numero a adivinar: "; cin >>ingresado; if(vidas==oportunidades){ oportunidades=5000; cout<<"Te quedas sin vidas por favor mejora"; }else if(ingresado>numero) { cout<<"El numero ingresado es mayor"; }else if(ingresado<numero) { cout<<"El numero ingresado es menor"; }else { cout<<"You win"; } } return 0; }
aa12d60a3cbac334bc2fa97ca2bec7244f3c7eb2
357739046bdb507c7f74ccf472f6e07f8e996aa9
/examples/example1.cpp
d2909ecf1086a910ffc8cf6b3b666231237e0f61
[]
no_license
dmorse/test
a4139752453b8aa0b22eda475211168cc4c6f1e9
0d7f8e63f63f8294d4afee86419432bb7df6e5fa
refs/heads/master
2021-12-12T01:15:06.965561
2021-12-05T05:36:21
2021-12-05T05:36:21
77,809,926
1
2
null
null
null
null
UTF-8
C++
false
false
1,738
cpp
#include <UnitTest.h> #include <UnitTestRunner.h> #include <iostream> /** * This example shows how to construct and run a single UnitTest class. * * We create a subclass of UnitTest named TestA, which has 3 test methods. * We then use a set of preprocessor macros to define an associated subclass * of UnitTestRunner. The name of the UnitTestRunner subclass is given by * the macro TEST_RUNNER(TestA), which expands to TestA_Runner. * * In the main program, we create an instance of TEST_RUNNER(TestA) and * call its run method, which runs all 3 test methods in sequence. */ /** * Trivial subclass of UnitTest, for illustration. */ class TestA : public UnitTest { public: void test1() { printMethod(TEST_FUNC); TEST_ASSERT(eq(1,2)); } void test2() { printMethod(TEST_FUNC); TEST_ASSERT(false); } void test3() { printMethod(TEST_FUNC); TEST_ASSERT(3 == 3); } }; /* * Preprocessor macros to define an associated UnitTestRunner. * * The name of the runner class in this example TestA_Runner. * The name of the runner class created by the TEST_BEGIN() macro * by pasting the suffix _Runner onto the end of class name. */ TEST_BEGIN(TestA) TEST_ADD(TestA, test1) TEST_ADD(TestA, test2) TEST_ADD(TestA, test3) TEST_END(TestA) /* * The above macros expand into the following class definition: * * class TestA_Runner : public UnitTestRunner<TestA> { * public: * * TestA_Runner() { * addTestMethod(&TestA::test1); * addTestMethod(&TestA::test2); * addTestMethod(&TestA::test3); * } * * }; */ /* * Main program to run tests. * * The preprocessor macro TEST_RUNNER(TestA) expands to TestA_Runner. */ int main() { TEST_RUNNER(TestA) test; test.run(); }
06c9bb00a62aec6bfbce815aef14f87a6cf0c67b
731d0d3e1d1cc11f31ca8f8c0aa7951814052c15
/InetSpeed/Generated Files/winrt/impl/Windows.Storage.Streams.0.h
985a73e679deea4045b1dee39837e18b59370114
[]
no_license
serzh82saratov/InetSpeedCppWinRT
07623c08b5c8135c7d55c17fed1164c8d9e56c8f
e5051f8c44469bbed0488c1d38731afe874f8c1f
refs/heads/master
2022-04-20T05:48:22.203411
2020-04-02T19:36:13
2020-04-02T19:36:13
null
0
0
null
null
null
null
UTF-8
C++
false
false
42,625
h
// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.200316.3 #ifndef WINRT_Windows_Storage_Streams_0_H #define WINRT_Windows_Storage_Streams_0_H WINRT_EXPORT namespace winrt::Windows::Foundation { template <typename TResult, typename TProgress> struct __declspec(empty_bases) IAsyncOperationWithProgress; template <typename TResult> struct __declspec(empty_bases) IAsyncOperation; struct IMemoryBuffer; struct MemoryBuffer; struct Uri; } WINRT_EXPORT namespace winrt::Windows::Storage { enum class FileAccessMode : int32_t; struct IStorageFile; enum class StorageOpenOptions : uint32_t; struct StorageStreamTransaction; } WINRT_EXPORT namespace winrt::Windows::System { struct User; } WINRT_EXPORT namespace winrt::Windows::Storage::Streams { enum class ByteOrder : int32_t { LittleEndian = 0, BigEndian = 1, }; enum class FileOpenDisposition : int32_t { OpenExisting = 0, OpenAlways = 1, CreateNew = 2, CreateAlways = 3, TruncateExisting = 4, }; enum class InputStreamOptions : uint32_t { None = 0, Partial = 0x1, ReadAhead = 0x2, }; enum class UnicodeEncoding : int32_t { Utf8 = 0, Utf16LE = 1, Utf16BE = 2, }; struct IBuffer; struct IBufferFactory; struct IBufferStatics; struct IContentTypeProvider; struct IDataReader; struct IDataReaderFactory; struct IDataReaderStatics; struct IDataWriter; struct IDataWriterFactory; struct IFileRandomAccessStreamStatics; struct IInputStream; struct IInputStreamReference; struct IOutputStream; struct IRandomAccessStream; struct IRandomAccessStreamReference; struct IRandomAccessStreamReferenceStatics; struct IRandomAccessStreamStatics; struct IRandomAccessStreamWithContentType; struct Buffer; struct DataReader; struct DataReaderLoadOperation; struct DataWriter; struct DataWriterStoreOperation; struct FileInputStream; struct FileOutputStream; struct FileRandomAccessStream; struct InMemoryRandomAccessStream; struct InputStreamOverStream; struct OutputStreamOverStream; struct RandomAccessStream; struct RandomAccessStreamOverStream; struct RandomAccessStreamReference; } namespace winrt::impl { template <> struct category<Windows::Storage::Streams::IBuffer>{ using type = interface_category; }; template <> struct category<Windows::Storage::Streams::IBufferFactory>{ using type = interface_category; }; template <> struct category<Windows::Storage::Streams::IBufferStatics>{ using type = interface_category; }; template <> struct category<Windows::Storage::Streams::IContentTypeProvider>{ using type = interface_category; }; template <> struct category<Windows::Storage::Streams::IDataReader>{ using type = interface_category; }; template <> struct category<Windows::Storage::Streams::IDataReaderFactory>{ using type = interface_category; }; template <> struct category<Windows::Storage::Streams::IDataReaderStatics>{ using type = interface_category; }; template <> struct category<Windows::Storage::Streams::IDataWriter>{ using type = interface_category; }; template <> struct category<Windows::Storage::Streams::IDataWriterFactory>{ using type = interface_category; }; template <> struct category<Windows::Storage::Streams::IFileRandomAccessStreamStatics>{ using type = interface_category; }; template <> struct category<Windows::Storage::Streams::IInputStream>{ using type = interface_category; }; template <> struct category<Windows::Storage::Streams::IInputStreamReference>{ using type = interface_category; }; template <> struct category<Windows::Storage::Streams::IOutputStream>{ using type = interface_category; }; template <> struct category<Windows::Storage::Streams::IRandomAccessStream>{ using type = interface_category; }; template <> struct category<Windows::Storage::Streams::IRandomAccessStreamReference>{ using type = interface_category; }; template <> struct category<Windows::Storage::Streams::IRandomAccessStreamReferenceStatics>{ using type = interface_category; }; template <> struct category<Windows::Storage::Streams::IRandomAccessStreamStatics>{ using type = interface_category; }; template <> struct category<Windows::Storage::Streams::IRandomAccessStreamWithContentType>{ using type = interface_category; }; template <> struct category<Windows::Storage::Streams::Buffer>{ using type = class_category; }; template <> struct category<Windows::Storage::Streams::DataReader>{ using type = class_category; }; template <> struct category<Windows::Storage::Streams::DataReaderLoadOperation>{ using type = class_category; }; template <> struct category<Windows::Storage::Streams::DataWriter>{ using type = class_category; }; template <> struct category<Windows::Storage::Streams::DataWriterStoreOperation>{ using type = class_category; }; template <> struct category<Windows::Storage::Streams::FileInputStream>{ using type = class_category; }; template <> struct category<Windows::Storage::Streams::FileOutputStream>{ using type = class_category; }; template <> struct category<Windows::Storage::Streams::FileRandomAccessStream>{ using type = class_category; }; template <> struct category<Windows::Storage::Streams::InMemoryRandomAccessStream>{ using type = class_category; }; template <> struct category<Windows::Storage::Streams::InputStreamOverStream>{ using type = class_category; }; template <> struct category<Windows::Storage::Streams::OutputStreamOverStream>{ using type = class_category; }; template <> struct category<Windows::Storage::Streams::RandomAccessStream>{ using type = class_category; }; template <> struct category<Windows::Storage::Streams::RandomAccessStreamOverStream>{ using type = class_category; }; template <> struct category<Windows::Storage::Streams::RandomAccessStreamReference>{ using type = class_category; }; template <> struct category<Windows::Storage::Streams::ByteOrder>{ using type = enum_category; }; template <> struct category<Windows::Storage::Streams::FileOpenDisposition>{ using type = enum_category; }; template <> struct category<Windows::Storage::Streams::InputStreamOptions>{ using type = enum_category; }; template <> struct category<Windows::Storage::Streams::UnicodeEncoding>{ using type = enum_category; }; template <> inline constexpr auto& name_v<Windows::Storage::Streams::Buffer> = L"Windows.Storage.Streams.Buffer"; template <> inline constexpr auto& name_v<Windows::Storage::Streams::DataReader> = L"Windows.Storage.Streams.DataReader"; template <> inline constexpr auto& name_v<Windows::Storage::Streams::DataReaderLoadOperation> = L"Windows.Storage.Streams.DataReaderLoadOperation"; template <> inline constexpr auto& name_v<Windows::Storage::Streams::DataWriter> = L"Windows.Storage.Streams.DataWriter"; template <> inline constexpr auto& name_v<Windows::Storage::Streams::DataWriterStoreOperation> = L"Windows.Storage.Streams.DataWriterStoreOperation"; template <> inline constexpr auto& name_v<Windows::Storage::Streams::FileInputStream> = L"Windows.Storage.Streams.FileInputStream"; template <> inline constexpr auto& name_v<Windows::Storage::Streams::FileOutputStream> = L"Windows.Storage.Streams.FileOutputStream"; template <> inline constexpr auto& name_v<Windows::Storage::Streams::FileRandomAccessStream> = L"Windows.Storage.Streams.FileRandomAccessStream"; template <> inline constexpr auto& name_v<Windows::Storage::Streams::InMemoryRandomAccessStream> = L"Windows.Storage.Streams.InMemoryRandomAccessStream"; template <> inline constexpr auto& name_v<Windows::Storage::Streams::InputStreamOverStream> = L"Windows.Storage.Streams.InputStreamOverStream"; template <> inline constexpr auto& name_v<Windows::Storage::Streams::OutputStreamOverStream> = L"Windows.Storage.Streams.OutputStreamOverStream"; template <> inline constexpr auto& name_v<Windows::Storage::Streams::RandomAccessStream> = L"Windows.Storage.Streams.RandomAccessStream"; template <> inline constexpr auto& name_v<Windows::Storage::Streams::RandomAccessStreamOverStream> = L"Windows.Storage.Streams.RandomAccessStreamOverStream"; template <> inline constexpr auto& name_v<Windows::Storage::Streams::RandomAccessStreamReference> = L"Windows.Storage.Streams.RandomAccessStreamReference"; template <> inline constexpr auto& name_v<Windows::Storage::Streams::ByteOrder> = L"Windows.Storage.Streams.ByteOrder"; template <> inline constexpr auto& name_v<Windows::Storage::Streams::FileOpenDisposition> = L"Windows.Storage.Streams.FileOpenDisposition"; template <> inline constexpr auto& name_v<Windows::Storage::Streams::InputStreamOptions> = L"Windows.Storage.Streams.InputStreamOptions"; template <> inline constexpr auto& name_v<Windows::Storage::Streams::UnicodeEncoding> = L"Windows.Storage.Streams.UnicodeEncoding"; template <> inline constexpr auto& name_v<Windows::Storage::Streams::IBuffer> = L"Windows.Storage.Streams.IBuffer"; template <> inline constexpr auto& name_v<Windows::Storage::Streams::IBufferFactory> = L"Windows.Storage.Streams.IBufferFactory"; template <> inline constexpr auto& name_v<Windows::Storage::Streams::IBufferStatics> = L"Windows.Storage.Streams.IBufferStatics"; template <> inline constexpr auto& name_v<Windows::Storage::Streams::IContentTypeProvider> = L"Windows.Storage.Streams.IContentTypeProvider"; template <> inline constexpr auto& name_v<Windows::Storage::Streams::IDataReader> = L"Windows.Storage.Streams.IDataReader"; template <> inline constexpr auto& name_v<Windows::Storage::Streams::IDataReaderFactory> = L"Windows.Storage.Streams.IDataReaderFactory"; template <> inline constexpr auto& name_v<Windows::Storage::Streams::IDataReaderStatics> = L"Windows.Storage.Streams.IDataReaderStatics"; template <> inline constexpr auto& name_v<Windows::Storage::Streams::IDataWriter> = L"Windows.Storage.Streams.IDataWriter"; template <> inline constexpr auto& name_v<Windows::Storage::Streams::IDataWriterFactory> = L"Windows.Storage.Streams.IDataWriterFactory"; template <> inline constexpr auto& name_v<Windows::Storage::Streams::IFileRandomAccessStreamStatics> = L"Windows.Storage.Streams.IFileRandomAccessStreamStatics"; template <> inline constexpr auto& name_v<Windows::Storage::Streams::IInputStream> = L"Windows.Storage.Streams.IInputStream"; template <> inline constexpr auto& name_v<Windows::Storage::Streams::IInputStreamReference> = L"Windows.Storage.Streams.IInputStreamReference"; template <> inline constexpr auto& name_v<Windows::Storage::Streams::IOutputStream> = L"Windows.Storage.Streams.IOutputStream"; template <> inline constexpr auto& name_v<Windows::Storage::Streams::IRandomAccessStream> = L"Windows.Storage.Streams.IRandomAccessStream"; template <> inline constexpr auto& name_v<Windows::Storage::Streams::IRandomAccessStreamReference> = L"Windows.Storage.Streams.IRandomAccessStreamReference"; template <> inline constexpr auto& name_v<Windows::Storage::Streams::IRandomAccessStreamReferenceStatics> = L"Windows.Storage.Streams.IRandomAccessStreamReferenceStatics"; template <> inline constexpr auto& name_v<Windows::Storage::Streams::IRandomAccessStreamStatics> = L"Windows.Storage.Streams.IRandomAccessStreamStatics"; template <> inline constexpr auto& name_v<Windows::Storage::Streams::IRandomAccessStreamWithContentType> = L"Windows.Storage.Streams.IRandomAccessStreamWithContentType"; template <> inline constexpr guid guid_v<Windows::Storage::Streams::IBuffer>{ 0x905A0FE0,0xBC53,0x11DF,{ 0x8C,0x49,0x00,0x1E,0x4F,0xC6,0x86,0xDA } }; template <> inline constexpr guid guid_v<Windows::Storage::Streams::IBufferFactory>{ 0x71AF914D,0xC10F,0x484B,{ 0xBC,0x50,0x14,0xBC,0x62,0x3B,0x3A,0x27 } }; template <> inline constexpr guid guid_v<Windows::Storage::Streams::IBufferStatics>{ 0xE901E65B,0xD716,0x475A,{ 0xA9,0x0A,0xAF,0x72,0x29,0xB1,0xE7,0x41 } }; template <> inline constexpr guid guid_v<Windows::Storage::Streams::IContentTypeProvider>{ 0x97D098A5,0x3B99,0x4DE9,{ 0x88,0xA5,0xE1,0x1D,0x2F,0x50,0xC7,0x95 } }; template <> inline constexpr guid guid_v<Windows::Storage::Streams::IDataReader>{ 0xE2B50029,0xB4C1,0x4314,{ 0xA4,0xB8,0xFB,0x81,0x3A,0x2F,0x27,0x5E } }; template <> inline constexpr guid guid_v<Windows::Storage::Streams::IDataReaderFactory>{ 0xD7527847,0x57DA,0x4E15,{ 0x91,0x4C,0x06,0x80,0x66,0x99,0xA0,0x98 } }; template <> inline constexpr guid guid_v<Windows::Storage::Streams::IDataReaderStatics>{ 0x11FCBFC8,0xF93A,0x471B,{ 0xB1,0x21,0xF3,0x79,0xE3,0x49,0x31,0x3C } }; template <> inline constexpr guid guid_v<Windows::Storage::Streams::IDataWriter>{ 0x64B89265,0xD341,0x4922,{ 0xB3,0x8A,0xDD,0x4A,0xF8,0x80,0x8C,0x4E } }; template <> inline constexpr guid guid_v<Windows::Storage::Streams::IDataWriterFactory>{ 0x338C67C2,0x8B84,0x4C2B,{ 0x9C,0x50,0x7B,0x87,0x67,0x84,0x7A,0x1F } }; template <> inline constexpr guid guid_v<Windows::Storage::Streams::IFileRandomAccessStreamStatics>{ 0x73550107,0x3B57,0x4B5D,{ 0x83,0x45,0x55,0x4D,0x2F,0xC6,0x21,0xF0 } }; template <> inline constexpr guid guid_v<Windows::Storage::Streams::IInputStream>{ 0x905A0FE2,0xBC53,0x11DF,{ 0x8C,0x49,0x00,0x1E,0x4F,0xC6,0x86,0xDA } }; template <> inline constexpr guid guid_v<Windows::Storage::Streams::IInputStreamReference>{ 0x43929D18,0x5EC9,0x4B5A,{ 0x91,0x9C,0x42,0x05,0xB0,0xC8,0x04,0xB6 } }; template <> inline constexpr guid guid_v<Windows::Storage::Streams::IOutputStream>{ 0x905A0FE6,0xBC53,0x11DF,{ 0x8C,0x49,0x00,0x1E,0x4F,0xC6,0x86,0xDA } }; template <> inline constexpr guid guid_v<Windows::Storage::Streams::IRandomAccessStream>{ 0x905A0FE1,0xBC53,0x11DF,{ 0x8C,0x49,0x00,0x1E,0x4F,0xC6,0x86,0xDA } }; template <> inline constexpr guid guid_v<Windows::Storage::Streams::IRandomAccessStreamReference>{ 0x33EE3134,0x1DD6,0x4E3A,{ 0x80,0x67,0xD1,0xC1,0x62,0xE8,0x64,0x2B } }; template <> inline constexpr guid guid_v<Windows::Storage::Streams::IRandomAccessStreamReferenceStatics>{ 0x857309DC,0x3FBF,0x4E7D,{ 0x98,0x6F,0xEF,0x3B,0x1A,0x07,0xA9,0x64 } }; template <> inline constexpr guid guid_v<Windows::Storage::Streams::IRandomAccessStreamStatics>{ 0x524CEDCF,0x6E29,0x4CE5,{ 0x95,0x73,0x6B,0x75,0x3D,0xB6,0x6C,0x3A } }; template <> inline constexpr guid guid_v<Windows::Storage::Streams::IRandomAccessStreamWithContentType>{ 0xCC254827,0x4B3D,0x438F,{ 0x92,0x32,0x10,0xC7,0x6B,0xC7,0xE0,0x38 } }; template <> struct default_interface<Windows::Storage::Streams::Buffer>{ using type = Windows::Storage::Streams::IBuffer; }; template <> struct default_interface<Windows::Storage::Streams::DataReader>{ using type = Windows::Storage::Streams::IDataReader; }; template <> struct default_interface<Windows::Storage::Streams::DataReaderLoadOperation>{ using type = Windows::Foundation::IAsyncOperation<uint32_t>; }; template <> struct default_interface<Windows::Storage::Streams::DataWriter>{ using type = Windows::Storage::Streams::IDataWriter; }; template <> struct default_interface<Windows::Storage::Streams::DataWriterStoreOperation>{ using type = Windows::Foundation::IAsyncOperation<uint32_t>; }; template <> struct default_interface<Windows::Storage::Streams::FileInputStream>{ using type = Windows::Storage::Streams::IInputStream; }; template <> struct default_interface<Windows::Storage::Streams::FileOutputStream>{ using type = Windows::Storage::Streams::IOutputStream; }; template <> struct default_interface<Windows::Storage::Streams::FileRandomAccessStream>{ using type = Windows::Storage::Streams::IRandomAccessStream; }; template <> struct default_interface<Windows::Storage::Streams::InMemoryRandomAccessStream>{ using type = Windows::Storage::Streams::IRandomAccessStream; }; template <> struct default_interface<Windows::Storage::Streams::InputStreamOverStream>{ using type = Windows::Storage::Streams::IInputStream; }; template <> struct default_interface<Windows::Storage::Streams::OutputStreamOverStream>{ using type = Windows::Storage::Streams::IOutputStream; }; template <> struct default_interface<Windows::Storage::Streams::RandomAccessStreamOverStream>{ using type = Windows::Storage::Streams::IRandomAccessStream; }; template <> struct default_interface<Windows::Storage::Streams::RandomAccessStreamReference>{ using type = Windows::Storage::Streams::IRandomAccessStreamReference; }; template <> struct abi<Windows::Storage::Streams::IBuffer> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall get_Capacity(uint32_t*) noexcept = 0; virtual int32_t __stdcall get_Length(uint32_t*) noexcept = 0; virtual int32_t __stdcall put_Length(uint32_t) noexcept = 0; }; }; template <> struct abi<Windows::Storage::Streams::IBufferFactory> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall Create(uint32_t, void**) noexcept = 0; }; }; template <> struct abi<Windows::Storage::Streams::IBufferStatics> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall CreateCopyFromMemoryBuffer(void*, void**) noexcept = 0; virtual int32_t __stdcall CreateMemoryBufferOverIBuffer(void*, void**) noexcept = 0; }; }; template <> struct abi<Windows::Storage::Streams::IContentTypeProvider> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall get_ContentType(void**) noexcept = 0; }; }; template <> struct abi<Windows::Storage::Streams::IDataReader> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall get_UnconsumedBufferLength(uint32_t*) noexcept = 0; virtual int32_t __stdcall get_UnicodeEncoding(int32_t*) noexcept = 0; virtual int32_t __stdcall put_UnicodeEncoding(int32_t) noexcept = 0; virtual int32_t __stdcall get_ByteOrder(int32_t*) noexcept = 0; virtual int32_t __stdcall put_ByteOrder(int32_t) noexcept = 0; virtual int32_t __stdcall get_InputStreamOptions(uint32_t*) noexcept = 0; virtual int32_t __stdcall put_InputStreamOptions(uint32_t) noexcept = 0; virtual int32_t __stdcall ReadByte(uint8_t*) noexcept = 0; virtual int32_t __stdcall ReadBytes(uint32_t, uint8_t*) noexcept = 0; virtual int32_t __stdcall ReadBuffer(uint32_t, void**) noexcept = 0; virtual int32_t __stdcall ReadBoolean(bool*) noexcept = 0; virtual int32_t __stdcall ReadGuid(winrt::guid*) noexcept = 0; virtual int32_t __stdcall ReadInt16(int16_t*) noexcept = 0; virtual int32_t __stdcall ReadInt32(int32_t*) noexcept = 0; virtual int32_t __stdcall ReadInt64(int64_t*) noexcept = 0; virtual int32_t __stdcall ReadUInt16(uint16_t*) noexcept = 0; virtual int32_t __stdcall ReadUInt32(uint32_t*) noexcept = 0; virtual int32_t __stdcall ReadUInt64(uint64_t*) noexcept = 0; virtual int32_t __stdcall ReadSingle(float*) noexcept = 0; virtual int32_t __stdcall ReadDouble(double*) noexcept = 0; virtual int32_t __stdcall ReadString(uint32_t, void**) noexcept = 0; virtual int32_t __stdcall ReadDateTime(int64_t*) noexcept = 0; virtual int32_t __stdcall ReadTimeSpan(int64_t*) noexcept = 0; virtual int32_t __stdcall LoadAsync(uint32_t, void**) noexcept = 0; virtual int32_t __stdcall DetachBuffer(void**) noexcept = 0; virtual int32_t __stdcall DetachStream(void**) noexcept = 0; }; }; template <> struct abi<Windows::Storage::Streams::IDataReaderFactory> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall CreateDataReader(void*, void**) noexcept = 0; }; }; template <> struct abi<Windows::Storage::Streams::IDataReaderStatics> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall FromBuffer(void*, void**) noexcept = 0; }; }; template <> struct abi<Windows::Storage::Streams::IDataWriter> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall get_UnstoredBufferLength(uint32_t*) noexcept = 0; virtual int32_t __stdcall get_UnicodeEncoding(int32_t*) noexcept = 0; virtual int32_t __stdcall put_UnicodeEncoding(int32_t) noexcept = 0; virtual int32_t __stdcall get_ByteOrder(int32_t*) noexcept = 0; virtual int32_t __stdcall put_ByteOrder(int32_t) noexcept = 0; virtual int32_t __stdcall WriteByte(uint8_t) noexcept = 0; virtual int32_t __stdcall WriteBytes(uint32_t, uint8_t*) noexcept = 0; virtual int32_t __stdcall WriteBuffer(void*) noexcept = 0; virtual int32_t __stdcall WriteBufferRange(void*, uint32_t, uint32_t) noexcept = 0; virtual int32_t __stdcall WriteBoolean(bool) noexcept = 0; virtual int32_t __stdcall WriteGuid(winrt::guid) noexcept = 0; virtual int32_t __stdcall WriteInt16(int16_t) noexcept = 0; virtual int32_t __stdcall WriteInt32(int32_t) noexcept = 0; virtual int32_t __stdcall WriteInt64(int64_t) noexcept = 0; virtual int32_t __stdcall WriteUInt16(uint16_t) noexcept = 0; virtual int32_t __stdcall WriteUInt32(uint32_t) noexcept = 0; virtual int32_t __stdcall WriteUInt64(uint64_t) noexcept = 0; virtual int32_t __stdcall WriteSingle(float) noexcept = 0; virtual int32_t __stdcall WriteDouble(double) noexcept = 0; virtual int32_t __stdcall WriteDateTime(int64_t) noexcept = 0; virtual int32_t __stdcall WriteTimeSpan(int64_t) noexcept = 0; virtual int32_t __stdcall WriteString(void*, uint32_t*) noexcept = 0; virtual int32_t __stdcall MeasureString(void*, uint32_t*) noexcept = 0; virtual int32_t __stdcall StoreAsync(void**) noexcept = 0; virtual int32_t __stdcall FlushAsync(void**) noexcept = 0; virtual int32_t __stdcall DetachBuffer(void**) noexcept = 0; virtual int32_t __stdcall DetachStream(void**) noexcept = 0; }; }; template <> struct abi<Windows::Storage::Streams::IDataWriterFactory> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall CreateDataWriter(void*, void**) noexcept = 0; }; }; template <> struct abi<Windows::Storage::Streams::IFileRandomAccessStreamStatics> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall OpenAsync(void*, int32_t, void**) noexcept = 0; virtual int32_t __stdcall OpenWithOptionsAsync(void*, int32_t, uint32_t, int32_t, void**) noexcept = 0; virtual int32_t __stdcall OpenTransactedWriteAsync(void*, void**) noexcept = 0; virtual int32_t __stdcall OpenTransactedWriteWithOptionsAsync(void*, uint32_t, int32_t, void**) noexcept = 0; virtual int32_t __stdcall OpenForUserAsync(void*, void*, int32_t, void**) noexcept = 0; virtual int32_t __stdcall OpenForUserWithOptionsAsync(void*, void*, int32_t, uint32_t, int32_t, void**) noexcept = 0; virtual int32_t __stdcall OpenTransactedWriteForUserAsync(void*, void*, void**) noexcept = 0; virtual int32_t __stdcall OpenTransactedWriteForUserWithOptionsAsync(void*, void*, uint32_t, int32_t, void**) noexcept = 0; }; }; template <> struct abi<Windows::Storage::Streams::IInputStream> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall ReadAsync(void*, uint32_t, uint32_t, void**) noexcept = 0; }; }; template <> struct abi<Windows::Storage::Streams::IInputStreamReference> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall OpenSequentialReadAsync(void**) noexcept = 0; }; }; template <> struct abi<Windows::Storage::Streams::IOutputStream> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall WriteAsync(void*, void**) noexcept = 0; virtual int32_t __stdcall FlushAsync(void**) noexcept = 0; }; }; template <> struct abi<Windows::Storage::Streams::IRandomAccessStream> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall get_Size(uint64_t*) noexcept = 0; virtual int32_t __stdcall put_Size(uint64_t) noexcept = 0; virtual int32_t __stdcall GetInputStreamAt(uint64_t, void**) noexcept = 0; virtual int32_t __stdcall GetOutputStreamAt(uint64_t, void**) noexcept = 0; virtual int32_t __stdcall get_Position(uint64_t*) noexcept = 0; virtual int32_t __stdcall Seek(uint64_t) noexcept = 0; virtual int32_t __stdcall CloneStream(void**) noexcept = 0; virtual int32_t __stdcall get_CanRead(bool*) noexcept = 0; virtual int32_t __stdcall get_CanWrite(bool*) noexcept = 0; }; }; template <> struct abi<Windows::Storage::Streams::IRandomAccessStreamReference> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall OpenReadAsync(void**) noexcept = 0; }; }; template <> struct abi<Windows::Storage::Streams::IRandomAccessStreamReferenceStatics> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall CreateFromFile(void*, void**) noexcept = 0; virtual int32_t __stdcall CreateFromUri(void*, void**) noexcept = 0; virtual int32_t __stdcall CreateFromStream(void*, void**) noexcept = 0; }; }; template <> struct abi<Windows::Storage::Streams::IRandomAccessStreamStatics> { struct __declspec(novtable) type : inspectable_abi { virtual int32_t __stdcall CopyAsync(void*, void*, void**) noexcept = 0; virtual int32_t __stdcall CopySizeAsync(void*, void*, uint64_t, void**) noexcept = 0; virtual int32_t __stdcall CopyAndCloseAsync(void*, void*, void**) noexcept = 0; }; }; template <> struct abi<Windows::Storage::Streams::IRandomAccessStreamWithContentType> { struct __declspec(novtable) type : inspectable_abi { }; }; template <typename D> struct consume_Windows_Storage_Streams_IBuffer { [[nodiscard]] WINRT_IMPL_AUTO(uint32_t) Capacity() const; [[nodiscard]] WINRT_IMPL_AUTO(uint32_t) Length() const; WINRT_IMPL_AUTO(void) Length(uint32_t value) const; auto data() const { uint8_t* data{}; static_cast<D const&>(*this).template as<IBufferByteAccess>()->Buffer(&data); return data; } }; template <> struct consume<Windows::Storage::Streams::IBuffer> { template <typename D> using type = consume_Windows_Storage_Streams_IBuffer<D>; }; template <typename D> struct consume_Windows_Storage_Streams_IBufferFactory { WINRT_IMPL_AUTO(Windows::Storage::Streams::Buffer) Create(uint32_t capacity) const; }; template <> struct consume<Windows::Storage::Streams::IBufferFactory> { template <typename D> using type = consume_Windows_Storage_Streams_IBufferFactory<D>; }; template <typename D> struct consume_Windows_Storage_Streams_IBufferStatics { WINRT_IMPL_AUTO(Windows::Storage::Streams::Buffer) CreateCopyFromMemoryBuffer(Windows::Foundation::IMemoryBuffer const& input) const; WINRT_IMPL_AUTO(Windows::Foundation::MemoryBuffer) CreateMemoryBufferOverIBuffer(Windows::Storage::Streams::IBuffer const& input) const; }; template <> struct consume<Windows::Storage::Streams::IBufferStatics> { template <typename D> using type = consume_Windows_Storage_Streams_IBufferStatics<D>; }; template <typename D> struct consume_Windows_Storage_Streams_IContentTypeProvider { [[nodiscard]] WINRT_IMPL_AUTO(hstring) ContentType() const; }; template <> struct consume<Windows::Storage::Streams::IContentTypeProvider> { template <typename D> using type = consume_Windows_Storage_Streams_IContentTypeProvider<D>; }; template <typename D> struct consume_Windows_Storage_Streams_IDataReader { [[nodiscard]] WINRT_IMPL_AUTO(uint32_t) UnconsumedBufferLength() const; [[nodiscard]] WINRT_IMPL_AUTO(Windows::Storage::Streams::UnicodeEncoding) UnicodeEncoding() const; WINRT_IMPL_AUTO(void) UnicodeEncoding(Windows::Storage::Streams::UnicodeEncoding const& value) const; [[nodiscard]] WINRT_IMPL_AUTO(Windows::Storage::Streams::ByteOrder) ByteOrder() const; WINRT_IMPL_AUTO(void) ByteOrder(Windows::Storage::Streams::ByteOrder const& value) const; [[nodiscard]] WINRT_IMPL_AUTO(Windows::Storage::Streams::InputStreamOptions) InputStreamOptions() const; WINRT_IMPL_AUTO(void) InputStreamOptions(Windows::Storage::Streams::InputStreamOptions const& value) const; WINRT_IMPL_AUTO(uint8_t) ReadByte() const; WINRT_IMPL_AUTO(void) ReadBytes(array_view<uint8_t> value) const; WINRT_IMPL_AUTO(Windows::Storage::Streams::IBuffer) ReadBuffer(uint32_t length) const; WINRT_IMPL_AUTO(bool) ReadBoolean() const; WINRT_IMPL_AUTO(winrt::guid) ReadGuid() const; WINRT_IMPL_AUTO(int16_t) ReadInt16() const; WINRT_IMPL_AUTO(int32_t) ReadInt32() const; WINRT_IMPL_AUTO(int64_t) ReadInt64() const; WINRT_IMPL_AUTO(uint16_t) ReadUInt16() const; WINRT_IMPL_AUTO(uint32_t) ReadUInt32() const; WINRT_IMPL_AUTO(uint64_t) ReadUInt64() const; WINRT_IMPL_AUTO(float) ReadSingle() const; WINRT_IMPL_AUTO(double) ReadDouble() const; WINRT_IMPL_AUTO(hstring) ReadString(uint32_t codeUnitCount) const; WINRT_IMPL_AUTO(Windows::Foundation::DateTime) ReadDateTime() const; WINRT_IMPL_AUTO(Windows::Foundation::TimeSpan) ReadTimeSpan() const; WINRT_IMPL_AUTO(Windows::Storage::Streams::DataReaderLoadOperation) LoadAsync(uint32_t count) const; WINRT_IMPL_AUTO(Windows::Storage::Streams::IBuffer) DetachBuffer() const; WINRT_IMPL_AUTO(Windows::Storage::Streams::IInputStream) DetachStream() const; }; template <> struct consume<Windows::Storage::Streams::IDataReader> { template <typename D> using type = consume_Windows_Storage_Streams_IDataReader<D>; }; template <typename D> struct consume_Windows_Storage_Streams_IDataReaderFactory { WINRT_IMPL_AUTO(Windows::Storage::Streams::DataReader) CreateDataReader(Windows::Storage::Streams::IInputStream const& inputStream) const; }; template <> struct consume<Windows::Storage::Streams::IDataReaderFactory> { template <typename D> using type = consume_Windows_Storage_Streams_IDataReaderFactory<D>; }; template <typename D> struct consume_Windows_Storage_Streams_IDataReaderStatics { WINRT_IMPL_AUTO(Windows::Storage::Streams::DataReader) FromBuffer(Windows::Storage::Streams::IBuffer const& buffer) const; }; template <> struct consume<Windows::Storage::Streams::IDataReaderStatics> { template <typename D> using type = consume_Windows_Storage_Streams_IDataReaderStatics<D>; }; template <typename D> struct consume_Windows_Storage_Streams_IDataWriter { [[nodiscard]] WINRT_IMPL_AUTO(uint32_t) UnstoredBufferLength() const; [[nodiscard]] WINRT_IMPL_AUTO(Windows::Storage::Streams::UnicodeEncoding) UnicodeEncoding() const; WINRT_IMPL_AUTO(void) UnicodeEncoding(Windows::Storage::Streams::UnicodeEncoding const& value) const; [[nodiscard]] WINRT_IMPL_AUTO(Windows::Storage::Streams::ByteOrder) ByteOrder() const; WINRT_IMPL_AUTO(void) ByteOrder(Windows::Storage::Streams::ByteOrder const& value) const; WINRT_IMPL_AUTO(void) WriteByte(uint8_t value) const; WINRT_IMPL_AUTO(void) WriteBytes(array_view<uint8_t const> value) const; WINRT_IMPL_AUTO(void) WriteBuffer(Windows::Storage::Streams::IBuffer const& buffer) const; WINRT_IMPL_AUTO(void) WriteBuffer(Windows::Storage::Streams::IBuffer const& buffer, uint32_t start, uint32_t count) const; WINRT_IMPL_AUTO(void) WriteBoolean(bool value) const; WINRT_IMPL_AUTO(void) WriteGuid(winrt::guid const& value) const; WINRT_IMPL_AUTO(void) WriteInt16(int16_t value) const; WINRT_IMPL_AUTO(void) WriteInt32(int32_t value) const; WINRT_IMPL_AUTO(void) WriteInt64(int64_t value) const; WINRT_IMPL_AUTO(void) WriteUInt16(uint16_t value) const; WINRT_IMPL_AUTO(void) WriteUInt32(uint32_t value) const; WINRT_IMPL_AUTO(void) WriteUInt64(uint64_t value) const; WINRT_IMPL_AUTO(void) WriteSingle(float value) const; WINRT_IMPL_AUTO(void) WriteDouble(double value) const; WINRT_IMPL_AUTO(void) WriteDateTime(Windows::Foundation::DateTime const& value) const; WINRT_IMPL_AUTO(void) WriteTimeSpan(Windows::Foundation::TimeSpan const& value) const; WINRT_IMPL_AUTO(uint32_t) WriteString(param::hstring const& value) const; WINRT_IMPL_AUTO(uint32_t) MeasureString(param::hstring const& value) const; WINRT_IMPL_AUTO(Windows::Storage::Streams::DataWriterStoreOperation) StoreAsync() const; WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperation<bool>) FlushAsync() const; WINRT_IMPL_AUTO(Windows::Storage::Streams::IBuffer) DetachBuffer() const; WINRT_IMPL_AUTO(Windows::Storage::Streams::IOutputStream) DetachStream() const; }; template <> struct consume<Windows::Storage::Streams::IDataWriter> { template <typename D> using type = consume_Windows_Storage_Streams_IDataWriter<D>; }; template <typename D> struct consume_Windows_Storage_Streams_IDataWriterFactory { WINRT_IMPL_AUTO(Windows::Storage::Streams::DataWriter) CreateDataWriter(Windows::Storage::Streams::IOutputStream const& outputStream) const; }; template <> struct consume<Windows::Storage::Streams::IDataWriterFactory> { template <typename D> using type = consume_Windows_Storage_Streams_IDataWriterFactory<D>; }; template <typename D> struct consume_Windows_Storage_Streams_IFileRandomAccessStreamStatics { WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperation<Windows::Storage::Streams::IRandomAccessStream>) OpenAsync(param::hstring const& filePath, Windows::Storage::FileAccessMode const& accessMode) const; WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperation<Windows::Storage::Streams::IRandomAccessStream>) OpenAsync(param::hstring const& filePath, Windows::Storage::FileAccessMode const& accessMode, Windows::Storage::StorageOpenOptions const& sharingOptions, Windows::Storage::Streams::FileOpenDisposition const& openDisposition) const; WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperation<Windows::Storage::StorageStreamTransaction>) OpenTransactedWriteAsync(param::hstring const& filePath) const; WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperation<Windows::Storage::StorageStreamTransaction>) OpenTransactedWriteAsync(param::hstring const& filePath, Windows::Storage::StorageOpenOptions const& openOptions, Windows::Storage::Streams::FileOpenDisposition const& openDisposition) const; WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperation<Windows::Storage::Streams::IRandomAccessStream>) OpenForUserAsync(Windows::System::User const& user, param::hstring const& filePath, Windows::Storage::FileAccessMode const& accessMode) const; WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperation<Windows::Storage::Streams::IRandomAccessStream>) OpenForUserAsync(Windows::System::User const& user, param::hstring const& filePath, Windows::Storage::FileAccessMode const& accessMode, Windows::Storage::StorageOpenOptions const& sharingOptions, Windows::Storage::Streams::FileOpenDisposition const& openDisposition) const; WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperation<Windows::Storage::StorageStreamTransaction>) OpenTransactedWriteForUserAsync(Windows::System::User const& user, param::hstring const& filePath) const; WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperation<Windows::Storage::StorageStreamTransaction>) OpenTransactedWriteForUserAsync(Windows::System::User const& user, param::hstring const& filePath, Windows::Storage::StorageOpenOptions const& openOptions, Windows::Storage::Streams::FileOpenDisposition const& openDisposition) const; }; template <> struct consume<Windows::Storage::Streams::IFileRandomAccessStreamStatics> { template <typename D> using type = consume_Windows_Storage_Streams_IFileRandomAccessStreamStatics<D>; }; template <typename D> struct consume_Windows_Storage_Streams_IInputStream { WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperationWithProgress<Windows::Storage::Streams::IBuffer, uint32_t>) ReadAsync(Windows::Storage::Streams::IBuffer const& buffer, uint32_t count, Windows::Storage::Streams::InputStreamOptions const& options) const; }; template <> struct consume<Windows::Storage::Streams::IInputStream> { template <typename D> using type = consume_Windows_Storage_Streams_IInputStream<D>; }; template <typename D> struct consume_Windows_Storage_Streams_IInputStreamReference { WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperation<Windows::Storage::Streams::IInputStream>) OpenSequentialReadAsync() const; }; template <> struct consume<Windows::Storage::Streams::IInputStreamReference> { template <typename D> using type = consume_Windows_Storage_Streams_IInputStreamReference<D>; }; template <typename D> struct consume_Windows_Storage_Streams_IOutputStream { WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperationWithProgress<uint32_t, uint32_t>) WriteAsync(Windows::Storage::Streams::IBuffer const& buffer) const; WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperation<bool>) FlushAsync() const; }; template <> struct consume<Windows::Storage::Streams::IOutputStream> { template <typename D> using type = consume_Windows_Storage_Streams_IOutputStream<D>; }; template <typename D> struct consume_Windows_Storage_Streams_IRandomAccessStream { [[nodiscard]] WINRT_IMPL_AUTO(uint64_t) Size() const; WINRT_IMPL_AUTO(void) Size(uint64_t value) const; WINRT_IMPL_AUTO(Windows::Storage::Streams::IInputStream) GetInputStreamAt(uint64_t position) const; WINRT_IMPL_AUTO(Windows::Storage::Streams::IOutputStream) GetOutputStreamAt(uint64_t position) const; [[nodiscard]] WINRT_IMPL_AUTO(uint64_t) Position() const; WINRT_IMPL_AUTO(void) Seek(uint64_t position) const; WINRT_IMPL_AUTO(Windows::Storage::Streams::IRandomAccessStream) CloneStream() const; [[nodiscard]] WINRT_IMPL_AUTO(bool) CanRead() const; [[nodiscard]] WINRT_IMPL_AUTO(bool) CanWrite() const; }; template <> struct consume<Windows::Storage::Streams::IRandomAccessStream> { template <typename D> using type = consume_Windows_Storage_Streams_IRandomAccessStream<D>; }; template <typename D> struct consume_Windows_Storage_Streams_IRandomAccessStreamReference { WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperation<Windows::Storage::Streams::IRandomAccessStreamWithContentType>) OpenReadAsync() const; }; template <> struct consume<Windows::Storage::Streams::IRandomAccessStreamReference> { template <typename D> using type = consume_Windows_Storage_Streams_IRandomAccessStreamReference<D>; }; template <typename D> struct consume_Windows_Storage_Streams_IRandomAccessStreamReferenceStatics { WINRT_IMPL_AUTO(Windows::Storage::Streams::RandomAccessStreamReference) CreateFromFile(Windows::Storage::IStorageFile const& file) const; WINRT_IMPL_AUTO(Windows::Storage::Streams::RandomAccessStreamReference) CreateFromUri(Windows::Foundation::Uri const& uri) const; WINRT_IMPL_AUTO(Windows::Storage::Streams::RandomAccessStreamReference) CreateFromStream(Windows::Storage::Streams::IRandomAccessStream const& stream) const; }; template <> struct consume<Windows::Storage::Streams::IRandomAccessStreamReferenceStatics> { template <typename D> using type = consume_Windows_Storage_Streams_IRandomAccessStreamReferenceStatics<D>; }; template <typename D> struct consume_Windows_Storage_Streams_IRandomAccessStreamStatics { WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperationWithProgress<uint64_t, uint64_t>) CopyAsync(Windows::Storage::Streams::IInputStream const& source, Windows::Storage::Streams::IOutputStream const& destination) const; WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperationWithProgress<uint64_t, uint64_t>) CopyAsync(Windows::Storage::Streams::IInputStream const& source, Windows::Storage::Streams::IOutputStream const& destination, uint64_t bytesToCopy) const; WINRT_IMPL_AUTO(Windows::Foundation::IAsyncOperationWithProgress<uint64_t, uint64_t>) CopyAndCloseAsync(Windows::Storage::Streams::IInputStream const& source, Windows::Storage::Streams::IOutputStream const& destination) const; }; template <> struct consume<Windows::Storage::Streams::IRandomAccessStreamStatics> { template <typename D> using type = consume_Windows_Storage_Streams_IRandomAccessStreamStatics<D>; }; template <typename D> struct consume_Windows_Storage_Streams_IRandomAccessStreamWithContentType { }; template <> struct consume<Windows::Storage::Streams::IRandomAccessStreamWithContentType> { template <typename D> using type = consume_Windows_Storage_Streams_IRandomAccessStreamWithContentType<D>; }; } #endif
7f8e444582cde741de560cd8042473579bc16415
74450d2e5c5d737ab8eb3f3f2e8b7d2e8b40bb5e
/github_cpp/12/13.cpp
aaccdc9d66f03723d7d51b888df3e869a52861ab
[]
no_license
ulinka/tbcnn-attention
10466b0925987263f722fbc53de4868812c50da7
55990524ce3724d5bfbcbc7fd2757abd3a3fd2de
refs/heads/master
2020-08-28T13:59:25.013068
2019-05-10T08:05:37
2019-05-10T08:05:37
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,260
cpp
#include <queue> #include <gtest/gtest.h> #include <gmock/gmock.h> #include <Graph.hpp> namespace algo { namespace mst { struct Graph: public GenericGraph<WeightedEdge, false> { Graph(size_t s): GenericGraph(s) {} int prim() { auto comp = [](const EdgeType* e1, const EdgeType* e2) { return e1->weight > e2->weight; }; std::priority_queue<const EdgeType*, std::vector<const EdgeType*>, decltype(comp)> queue(comp); int s=0; for(const EdgeType& e: adjacency[s]) { queue.push(&e); } Flags inMst(size, false); inMst[s] = true; int mstSize = 1; int mstWeight = 0; while(mstSize < size && !queue.empty()) { const EdgeType* minEdge = queue.top(); queue.pop(); int v = minEdge->to; if(!inMst[v]) { inMst[v] = true; mstWeight += minEdge->weight; ++mstSize; for(const EdgeType& e: adjacency[v]) { queue.push(&e); } } } return mstWeight; } int kruskal() { struct Link { int from; int to; int weight; bool operator<(const Link& rhs) const { return weight < rhs.weight; } }; std::vector<Link> links; for(int u=0; u<size; ++u) { for(const EdgeType& e: adjacency[u]) { links.push_back({u, e.to, e.weight}); } } std::sort(links.begin(), links.end()); VerticeList component(size); for(int i=0; i<size; ++i) { component[i] = i; } int mstWeight = 0; for(const Link& link: links) { int c1 = component[link.from]; int c2 = component[link.to]; if(c1 != c2) { mstWeight += link.weight; for(int i=0; i<size; ++i) { if(component[i] == c2) { component[i] = c1; } } } } return mstWeight; } }; TEST(MinimumSpanningTree, Prim1) { Graph g(5); g.connect(0,2,2); g.connect(0,4,1); g.connect(1,3,4); g.connect(1,4,5); g.connect(2,4,4); g.connect(3,4,2); EXPECT_EQ(g.prim(), 9); } TEST(MinimumSpanningTree, Kruskal1) { Graph g(5); g.connect(0,2,2); g.connect(0,4,1); g.connect(1,3,4); g.connect(1,4,5); g.connect(2,4,4); g.connect(3,4,2); EXPECT_EQ(g.kruskal(), 9); } } }
2a26acb07649d84a34021bcfbcebda38eb453018
baaf9f5d96410226723fdd2b3a92dbccec595f47
/ui/gui/include/gui/config_screen/ConfigView.hpp
a6e0fd0f00980255aaeafde5ea44aae627a9ec6f
[]
no_license
r315/iEV
4876c8f3dbd13f75e9833ba058c32dd6e072d151
b9cf37d483cdf1e3b73daefc212538a39242cf1b
refs/heads/master
2020-05-01T13:24:43.658733
2019-07-12T23:15:08
2019-07-12T23:15:08
177,490,881
0
0
null
null
null
null
UTF-8
C++
false
false
400
hpp
#ifndef CONFIG_VIEW_HPP #define CONFIG_VIEW_HPP #include <gui_generated/config_screen/ConfigViewBase.hpp> #include <gui/config_screen/ConfigPresenter.hpp> class ConfigView : public ConfigViewBase { public: ConfigView(); virtual ~ConfigView() {} virtual void setupScreen(); virtual void tearDownScreen(); virtual void updateSerialMode(); protected: }; #endif // CONFIG_VIEW_HPP
ad8f4de902778236b2bf5af94ec155f5aae412f9
90a70cef5ecb5023a2721c9e793dec9e589743b9
/Algoritmos y Estructura de Datos/TP 1/TP 1 - EJ 9/main.cpp
9364c677decd1b9b9af199618ccffbb3f74e8f4f
[]
no_license
dander93/UTN
65d785edebf668f60525382ed47b45813821ec9f
71f570c7cf8112410a366ef3b6ff58cc8426fd08
refs/heads/master
2021-06-17T01:06:07.016011
2017-05-21T20:48:32
2017-05-21T20:48:32
null
0
0
null
null
null
null
ISO-8859-1
C++
false
false
3,104
cpp
#include <iostream> #include <locale> #include <conio.h> #include <ctype.h> #include <string> using namespace std; /* * consigna: * Dados un mes y el año correspondiente informar cuantos días tiene el mes. */ int main() { //para poder utilizar tildes o caracteres especiales del español setlocale (LC_ALL, "spanish"); //variables string mes,aux; int dd,mm,aaaa,i=0; cout << "Programa que determina la cantidad de días a partir de un mes y un año ingresados." << endl << endl; cout << "Ingrese el año: "; cin >> aaaa; cout << "Ingrese el mes: "; cin >> aux; cout << endl << endl << "************************************" << endl << endl; cout << "El año ingresado fue: " << aaaa << endl; if(isdigit(aux[0])) { mm = stoi(aux); if( mm == '1' ) { dd = 31; } else if( mm == 2) { if( ( (aaaa % 4) == 0 )&&( (aaaa % 100) != 0 )||( (aaaa % 400) == 0) ) { dd = 29; } else { dd = 28; } } else if( mm == 3 ) { dd = 31; } else if( mm == 4 ) { dd = 30; } else if ( mm == 5 ) { dd = 31; } else if ( mm == 6 ) { dd = 30; } else if( mm == 7 ) { dd = 31; } else if( mm == 8 ) { dd = 31; } else if ( mm == 9 ) { dd = 30; } else if( mm == 10 ) { dd = 31; } else if ( mm == 11 ) { dd = 30; } else if ( mm == 12 ) { dd = 31; } else { cout << "El mes ingresado no existe." << endl; i=1; } cout << "El mes ingresado fue: " << mm << endl; } else { mes = aux; mes[0] = toupper( mes[0] ); for(i=1; i<mes.size(); i++) { mes[i]=tolower(mes[i]); } if( mes == "Enero" ) { dd = 31; } else if(mes=="Febrero") { if( ( (aaaa % 4) == 0 )&&( (aaaa % 100) != 0 )||( (aaaa % 400) == 0) ) { dd = 29; } else { dd = 28; } } else if( mes == "Marzo" ) { dd = 31; } else if( mes == "Abril") { dd = 30; } else if ( mes == "Mayo") { dd = 31; } else if ( mes == "Junio") { dd = 30; } else if( mes == "Julio") { dd = 31; } else if( mes == "Agosto") { dd = 31; } else if ( mes == "Septiembre") { dd = 30; } else if( mes == "Octubre") { dd = 31; } else if ( mes == "Noviembre") { dd = 30; } else if ( mes == "Diciembre") { dd = 31; } else { cout << "El mes ingresado no existe." << endl; i=1; } cout << "El mes ingresado fue: " << mes << endl; } if(i == 0) { cout << "La cantidad de días del mes es: " << dd; } cout << endl <<"Presione una tecla para salir..."; getche(); return 0; }
7527917791149c14eadd02bcba10c3f1b8e4013e
761360a7704393b589c0ceff6dfe41dc54ccc88a
/aisolver/include/aisolver/core/node.hpp
c38aeafd7b2ec53186d7d5336e0146c0980cfda2
[ "Apache-2.0" ]
permissive
AliManjotho/AISearch
7183a4d3e92660a8340e7b61b929e6ed2f6d7df8
57ff78892d75df169c8341c71c43cc9f93a48c0c
refs/heads/master
2022-07-21T05:52:31.681237
2020-05-18T21:00:23
2020-05-18T21:00:23
264,889,905
0
0
null
null
null
null
UTF-8
C++
false
false
374
hpp
#ifndef AISOLVER_CORE_NODE_HPP #define AISOLVER_CORE_NODE_HPP #include <string> #include "aisolver\core\core.hpp" namespace aisearch { class AI_API Node { private: int id; std::string name; std::string alias; public: //Node(std::string name); //Node(std::string name, std::string alias); public: //int getId(); }; } #endif //AISOLVER_CORE_NODE_HPP
da23baf4223dbd12d2f0c19222adf05d22de6bee
580738f96494d426d6e5973c5b3493026caf8b6a
/Include/Vcl/idtimeserver.hpp
3ce5cdf17702cc509e59ec5a74dcb6450d495dc6
[]
no_license
bravesoftdz/cbuilder-vcl
6b460b4d535d17c309560352479b437d99383d4b
7b91ef1602681e094a6a7769ebb65ffd6f291c59
refs/heads/master
2021-01-10T14:21:03.726693
2010-01-11T11:23:45
2010-01-11T11:23:45
48,485,606
2
1
null
null
null
null
UTF-8
C++
false
false
1,644
hpp
// Borland C++ Builder // Copyright (c) 1995, 2002 by Borland Software Corporation // All rights reserved // (DO NOT EDIT: machine generated header) 'IdTimeServer.pas' rev: 6.00 #ifndef IdTimeServerHPP #define IdTimeServerHPP #pragma delphiheader begin #pragma option push -w- #pragma option push -Vx #include <IdComponent.hpp> // Pascal unit #include <IdTCPServer.hpp> // Pascal unit #include <Classes.hpp> // Pascal unit #include <SysInit.hpp> // Pascal unit #include <System.hpp> // Pascal unit //-- user supplied ----------------------------------------------------------- namespace Idtimeserver { //-- type declarations ------------------------------------------------------- class DELPHICLASS TIdTimeServer; class PASCALIMPLEMENTATION TIdTimeServer : public Idtcpserver::TIdTCPServer { typedef Idtcpserver::TIdTCPServer inherited; protected: System::TDateTime FBaseDate; virtual bool __fastcall DoExecute(Idtcpserver::TIdPeerThread* AThread); public: __fastcall virtual TIdTimeServer(Classes::TComponent* AOwner); __published: __property System::TDateTime BaseDate = {read=FBaseDate, write=FBaseDate}; public: #pragma option push -w-inl /* TIdTCPServer.Destroy */ inline __fastcall virtual ~TIdTimeServer(void) { } #pragma option pop }; //-- var, const, procedure --------------------------------------------------- } /* namespace Idtimeserver */ using namespace Idtimeserver; #pragma option pop // -w- #pragma option pop // -Vx #pragma delphiheader end. //-- end unit ---------------------------------------------------------------- #endif // IdTimeServer
[ "bitscode@7bd08ab0-fa70-11de-930f-d36749347e7b" ]
bitscode@7bd08ab0-fa70-11de-930f-d36749347e7b
4ec3d48cbdf4c653a37e1c1a4757710325c877be
493ac26ce835200f4844e78d8319156eae5b21f4
/flow_simulation/ideal_flow/0.02/U
f7e84299d58d23fbc0153c11b6d8406cd426bb8d
[]
no_license
mohan-padmanabha/worm_project
46f65090b06a2659a49b77cbde3844410c978954
7a39f9384034e381d5f71191122457a740de3ff0
refs/heads/master
2022-12-14T14:41:21.237400
2020-08-21T13:33:10
2020-08-21T13:33:10
289,277,792
0
0
null
null
null
null
UTF-8
C++
false
false
174,344
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: v1912 | | \\ / A nd | Website: www.openfoam.com | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volVectorField; location "0.02"; object U; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 1 -1 0 0 0 0]; internalField nonuniform List<vector> 5794 ( (-0.0776276 2.97177 -2.44908e-17) (-0.018432 1.58422 0) (-0.804966 2.99735 -1.29982e-16) (-0.483679 1.06141 1.6645e-16) (3.17084 1.22751 3.32613e-17) (-0.183986 2.57426 -1.07536e-16) (1.14863 0.103003 -2.56108e-16) (1.0745 0.10476 0) (1.24366 0.163703 1.98121e-16) (2.08762 -0.0185051 1.86447e-16) (0.488767 0.0072283 2.62071e-19) (0.457251 -0.0499846 0) (0.369339 0.0473839 7.68171e-16) (1.33485 3.3262 2.85553e-16) (1.71687 0.023795 4.55696e-16) (0.322003 0.0874716 -1.75667e-16) (4.91568 -0.716588 5.90003e-17) (0.335479 2.47557 2.3988e-16) (1.67118 6.14709e-05 4.23192e-16) (0.129916 1.6029 1.48601e-16) (-2.08978 2.81491 -2.6912e-17) (0.232515 3.31178 -1.18415e-16) (0.694658 0.255259 4.28549e-16) (0.891578 0.134388 -6.59577e-16) (0.705852 0.0860008 -5.43626e-16) (3.79642 11.9745 2.43511e-17) (7.0993 -0.575399 0) (0.418285 2.28874 -2.03151e-16) (0.0866454 1.51156 -8.80447e-17) (0.955544 -0.680701 2.67791e-16) (0.304105 0.0314752 -7.55478e-16) (1.3547 -0.105043 -6.11243e-16) (0.431574 0.0386925 -1.14705e-15) (1.09217 -0.108477 4.44565e-16) (0.871695 -0.0988865 -2.38726e-16) (0.977907 -0.140539 2.47854e-16) (6.83932 1.66676 -3.12878e-16) (0.51475 0.0297336 0) (0.210309 0.0750447 2.20079e-16) (0.730522 2.65524 0) (0.667603 2.36002 -1.32335e-16) (0.774879 2.10177 1.45078e-16) (2.41134 0.0279604 3.22695e-20) (-0.375778 4.31294 0) (1.65606 0.0902011 -4.03759e-16) (0.485624 0.0391614 2.27331e-16) (1.8092 0.115986 -3.46332e-16) (0.418339 0.0577888 0) (1.85856 -0.175599 6.57399e-16) (0.123459 0.284258 8.01282e-17) (-0.125057 0.268085 -1.81881e-16) (1.52765 0.00877317 -3.60759e-16) (-0.658381 7.50584 0) (2.27657 0.835253 1.41707e-16) (0.0295283 0.0271603 1.07024e-17) (0.676042 0.226321 0) (2.51393 0.584074 -2.71024e-16) (0.722789 0.311337 2.03542e-16) (2.34748 0.042539 0) (5.3637 11.4426 -7.60094e-19) (6.53109 0.35616 2.67523e-18) (0.485132 0.473381 -1.4096e-16) (0.308407 0.0418409 -2.04013e-16) (1.55246 -0.026077 2.40892e-16) (0.408617 0.0565516 0) (0.437438 0.0346078 -2.90914e-18) (0.580053 2.96143 -2.45374e-16) (-0.121277 2.13082 0) (0.124115 1.91808 -2.55745e-16) (0.065345 0.902538 1.24994e-21) (1.47531 0.089808 2.83506e-16) (0.578931 2.78025 -3.76112e-16) (9.93202 2.79083 -4.90768e-18) (0.737985 -0.0313963 0) (0.446654 2.20205 2.43913e-16) (0.203601 1.77992 5.74326e-19) (0.13716 -0.137852 1.48908e-16) (2.26287 11.3817 -2.55277e-17) (-0.299897 4.37908 3.42914e-17) (-0.0713657 -0.118605 7.63868e-17) (-0.335307 3.71543 -1.27883e-17) (-0.0245102 2.02369 -1.37171e-16) (0.471536 2.20418 -1.30759e-19) (0.282456 0.0651647 -1.43525e-16) (0.589376 0.0524582 -4.77334e-16) (0.0806882 2.06149 -7.2253e-17) (0.252517 5.21104 3.90414e-17) (0.0694835 1.10943 -4.32129e-17) (0.73463 0.440647 -1.86317e-16) (0.619083 0.610798 -6.2424e-17) (0.036536 1.04584 -1.59661e-16) (0.332516 4.97039 -1.14065e-16) (0.112872 2.69143 2.61793e-16) (-0.0516804 1.95544 1.3921e-16) (-0.0687711 3.57916 5.4201e-17) (1.45192 0.010306 8.62674e-18) (-0.0107319 0.995748 -1.10282e-16) (-0.148436 2.57271 -2.80044e-17) (-0.0625345 5.30947 0) (6.10177 0.362617 -4.38073e-17) (2.23264 9.9654 -5.08256e-17) (0.691916 -0.851575 -4.65386e-16) (2.41631 0.0389632 1.20333e-16) (1.25562 2.92873 -4.15438e-16) (2.18336 0.574458 0) (0.394588 2.25781 0) (0.0606284 0.942191 0) (0.33194 0.0688576 -2.84968e-16) (1.40032 -0.193599 -1.79168e-16) (-0.149161 4.45163 -9.32683e-17) (0.766559 0.0963886 -1.75753e-19) (1.28575 0.1203 0) (-0.48877 10.7132 4.8359e-17) (0.448256 0.0285561 1.60386e-16) (0.00780114 3.15167 0) (0.0282865 1.60551 0) (1.50631 0.113371 -3.2802e-16) (0.315881 2.05512 2.58117e-19) (6.93902 0.366141 -1.71356e-20) (10.581 2.38559 3.83616e-18) (0.378946 2.15086 2.38038e-16) (1.93202 -0.0715687 0) (-0.174919 -0.519134 0) (0.160838 2.23257 -2.55818e-16) (1.45031 0.135479 2.06315e-16) (1.04654 0.54819 8.19798e-17) (2.30677 3.43808 0) (0.0630641 2.61017 6.71123e-17) (1.90476 0.197919 2.58441e-16) (0.525812 0.0361965 1.72578e-16) (0.430325 0.0103594 3.81606e-16) (0.258567 0.0375822 2.71667e-16) (2.68919 1.1017 2.36482e-17) (1.65167 10.555 -8.25304e-17) (0.420285 2.26624 3.00711e-16) (1.5986 0.015852 0) (2.62572 -0.00777408 1.18113e-16) (0.444101 0.354684 -2.00014e-16) (0.50005 0.367859 1.9481e-16) (0.96608 0.111526 0) (0.692288 0.775151 -5.80734e-16) (1.7266 2.50189 0) (1.46134 0.221836 0) (1.3518 2.38247 3.95823e-16) (0.483943 0.696019 2.12996e-16) (5.739 0.126218 1.75012e-17) (1.11039 1.01927 2.78201e-16) (2.76115 0.228736 4.17955e-16) (3.08586 0.829439 -2.17953e-18) (0.543631 1.31133 4.90957e-16) (1.91218 0.0536846 -2.9076e-16) (1.79361 0.188554 2.91298e-16) (0.410442 2.25566 0) (-0.455746 -0.820757 2.39764e-16) (6.52989 -0.572187 0) (1.51093 0.0763934 0) (0.229082 0.0399858 -3.63219e-16) (0.217871 0.0190669 4.98088e-16) (0.297805 -0.00495293 -4.03531e-16) (0.491912 0.0110546 -1.6329e-16) (1.36541 -0.0687125 3.79806e-16) (0.646732 0.0380092 -4.32206e-16) (0.820318 0.0360632 0) (0.716074 0.0516603 -1.74685e-16) (1.12619 0.0619485 -4.59306e-16) (1.17521 -0.043063 2.45691e-16) (0.676221 -0.00908496 1.57577e-18) (0.593115 0.0131884 -4.67487e-18) (0.733614 0.00956705 0) (0.994896 0.0216165 9.14496e-19) (1.30547 -0.0491533 0) (0.878544 -0.362202 -1.51749e-16) (0.285481 -0.3674 0) (0.344512 -0.272612 1.18156e-16) (0.420074 -0.231196 4.58835e-16) (0.837627 0.0423533 0) (1.38363 0.11211 -2.25139e-16) (0.748141 0.0485744 -2.87981e-16) (0.939565 0.0495649 -9.16877e-17) (1.26893 0.100082 1.231e-17) (0.307545 0.00953697 -6.53787e-18) (1.02946 -0.0432784 0) (0.160597 0.0272963 0) (0.2866 0.0233533 1.45471e-16) (0.128851 0.0265338 0) (4.57429 -0.249577 6.82936e-17) (0.26411 -0.400994 -1.65271e-16) (0.498032 -0.0252713 -1.09714e-16) (1.95349 -0.0913201 1.20279e-16) (-0.935381 -1.14061 3.7805e-16) (0.397925 -0.00311582 -4.40777e-16) (1.17381 0.111276 4.46831e-16) (0.346697 0.00407911 7.20744e-16) (0.244388 0.0235136 7.14676e-16) (0.236733 -0.00146056 -1.25757e-16) (0.350775 -0.0326933 -6.12099e-16) (0.898254 0.0621494 -2.49675e-17) (1.04502 0.0633993 -1.8272e-16) (1.5865 0.00622884 -2.80375e-16) (2.21973 0.00555227 1.6875e-16) (0.978442 0.0635796 -2.51511e-17) (1.36988 0.0263935 0) (0.354157 0.0237972 0) (0.352518 0.020705 1.29501e-17) (1.63758 0.0486484 -7.85061e-17) (0.403981 0.00818169 0) (0.605006 0.0775715 1.29602e-17) (0.186591 0.254119 -2.38824e-21) (5.44916 0.472624 -7.5778e-18) (2.23956 3.37627 2.39312e-16) (0.329696 4.39993 8.49479e-17) (7.38695 0.405355 0) (0.925751 0.0356084 -1.39255e-16) (0.823889 0.0414725 2.07747e-16) (1.018 0.101102 0) (0.835239 0.130132 9.0095e-16) (0.92894 0.125414 -2.11724e-16) (2.08111 0.988429 1.14892e-16) (0.494414 0.042852 1.98091e-16) (0.604418 1.33499 -3.53387e-16) (7.14848 0.427205 0) (0.0746314 0.278826 3.46479e-16) (0.199916 0.841636 0) (-0.023287 1.80455 5.20146e-17) (3.45087 0.082139 1.73111e-16) (8.9269 0.897664 2.97635e-18) (0.205035 -0.0210795 -8.25344e-17) (2.15382 0.110441 -1.05784e-16) (2.21233 0.0373348 0) (1.60215 0.0404787 -2.95145e-16) (1.17879 -0.205774 0) (0.96416 -0.215497 -7.57623e-17) (1.29699 -0.18765 -1.06735e-16) (1.64616 -0.367797 1.93121e-16) (0.211737 0.298674 2.43471e-16) (7.25729 -0.0704557 1.01733e-17) (6.72525 0.269542 2.97451e-18) (2.22595 0.148371 4.52008e-17) (0.0441808 -0.41877 -2.21605e-16) (-0.206593 2.66985 -3.37514e-16) (-0.314371 1.38389 0) (0.21463 0.500518 1.47e-15) (1.29594 4.00955 2.96602e-16) (1.29937 1.44389 -2.80297e-16) (1.50736 0.573963 2.91658e-16) (0.732645 0.215542 3.21062e-16) (1.61528 0.204894 -1.4054e-16) (3.18382 0.568688 9.68816e-18) (-0.0254222 0.912038 0) (-0.139156 2.11643 0) (-0.129826 4.54276 0) (0.448545 0.0366037 3.02954e-17) (6.17221 -0.74888 -8.81854e-17) (0.496605 -0.00412987 -1.04958e-20) (2.16194 1.33712 -8.45532e-17) (5.09312 1.18821 -1.56974e-17) (2.5167 0.0598636 -2.71795e-16) (2.56067 0.386333 2.90667e-16) (0.108892 0.21989 3.11556e-16) (1.5098 0.0972654 0) (2.39878 0.0293599 -1.76818e-16) (0.865717 0.0711987 1.19688e-16) (0.764357 0.0765001 -1.1901e-16) (0.48538 0.0222651 0) (0.708072 -0.0216982 0) (1.26592 0.0479101 -6.82899e-19) (0.424993 2.06329 1.78939e-16) (1.72177 0.234304 0) (1.52184 0.0277578 -6.46058e-16) (0.380142 0.0247842 -1.98466e-16) (1.71708 0.0580331 0) (0.320913 0.0433537 -3.61071e-16) (0.445675 0.886211 -6.24275e-16) (1.54621 0.101225 -3.81981e-16) (5.97026 0.717876 5.46797e-17) (1.59738 -0.0483996 2.98018e-16) (2.43137 0.518931 -1.46766e-16) (0.696652 0.319304 -1.01197e-16) (1.24797 0.393514 -1.81547e-16) (0.836108 0.228934 -3.41281e-16) (1.19051 0.0950441 3.5564e-16) (-0.130587 1.08628 3.9562e-16) (0.903031 2.1829 1.38186e-16) (1.0052 1.90008 -4.01771e-16) (0.982307 2.45877 7.81059e-17) (-0.0873493 2.68702 1.91593e-16) (1.02242 4.69864 1.56295e-17) (0.300881 3.49163 0) (-0.091564 2.03118 8.4316e-17) (0.524428 2.28581 0) (1.28271 -0.163303 -1.9158e-17) (1.11196 -0.114298 -1.51002e-16) (1.30573 -0.0800005 2.42126e-18) (2.10361 0.154683 0) (2.84503 1.87319 0) (2.32202 7.29569 8.93743e-18) (1.37816 2.31997 7.16019e-17) (1.43701 2.04377 4.42036e-19) (1.44612 2.59983 -2.72465e-16) (0.471046 0.0297058 -1.87344e-16) (0.151961 1.51891 9.97335e-17) (0.136323 11.7498 0) (0.0584233 2.59505 -5.692e-16) (1.23096 3.9723 0) (0.320182 4.01169 -1.18984e-16) (2.12402 0.115535 2.02719e-18) (1.1509 0.436517 -2.58588e-16) (0.472086 1.47441 4.42202e-16) (0.381542 0.0222212 4.49989e-16) (1.64386 0.0558935 0) (0.286787 0.0268728 -7.74317e-16) (0.632026 0.103994 -3.23532e-16) (1.68502 3.82067 -2.43316e-16) (0.440767 0.034442 -9.05243e-17) (9.54471 0.228555 0) (8.20209 0.369858 -2.54528e-17) (0.376689 0.0789181 -1.10667e-16) (0.546169 2.40916 -4.04144e-16) (1.53643 -0.0509676 -3.36548e-16) (-0.259045 1.42604 -8.58494e-17) (1.22411 0.841686 5.05454e-16) (1.18636 0.860724 -2.3153e-16) (0.198116 1.86678 -1.92285e-16) (3.33793 0.928652 -1.0314e-18) (0.358618 0.0560476 0) (0.258939 0.152397 0) (0.559115 -0.121279 0) (0.439286 0.0623422 8.27863e-17) (0.297695 0.0287751 -4.58177e-16) (0.443561 0.0343291 3.73855e-16) (1.39822 0.0803034 -1.24484e-17) (2.2825 -5.6495e-05 4.19598e-16) (0.281675 0.0295313 1.08831e-16) (0.418505 0.00621458 5.76121e-16) (0.89906 -0.257616 0) (1.93097 -0.110996 -2.15236e-16) (1.85319 -0.0635501 0) (0.808831 -0.00784296 0) (1.80809 -0.0635366 -2.87848e-16) (0.476345 -0.0149585 0) (0.885219 0.050203 4.45337e-16) (0.695575 0.050605 5.05619e-16) (1.20881 0.0760992 0) (0.727956 0.0669584 0) (1.39363 0.0827712 3.95133e-16) (0.0275369 0.0185839 4.66309e-16) (0.169191 0.0321452 3.83115e-16) (0.914644 -0.103192 -2.72216e-17) (1.0492 0.000276317 -1.84028e-16) (0.369689 0.0294315 9.7261e-17) (0.123365 0.0662587 1.00157e-16) (5.1099 0.0791221 2.12487e-16) (0.310173 -0.0136025 -2.68764e-17) (1.00077 0.0485146 1.82012e-16) (0.1973 0.00405699 0) (4.02124 -0.117762 0) (1.64247 0.125015 1.67018e-16) (1.46058 -0.0287931 3.00504e-16) (1.00302 0.0312567 8.83959e-17) (0.925639 0.0208871 0) (0.225872 0.19122 -3.17122e-16) (0.58169 0.147957 6.43442e-16) (2.41142 0.0737712 4.73548e-17) (1.02936 0.207031 -4.61318e-17) (0.945359 0.217418 -3.2279e-16) (2.5819 0.228605 4.12972e-16) (1.10997 -0.0493348 -5.74466e-17) (0.515284 0.0448283 0) (1.88046 0.0912677 4.3197e-16) (0.519798 0.0502558 -1.15855e-16) (1.08554 0.960417 -1.29164e-16) (0.469236 0.0165409 0) (2.44076 0.355881 -9.63381e-17) (0.106537 1.516 2.96947e-16) (0.430383 0.0985556 9.76994e-17) (1.2346 0.0513321 2.29322e-16) (0.782244 0.219213 0) (2.64268 0.658761 1.03807e-16) (0.873875 0.400059 0) (1.20718 0.141438 1.35669e-17) (-0.226621 2.50081 1.54927e-16) (0.964073 0.902857 0) (8.54132 0.181678 0) (0.998857 -0.0523419 1.86779e-16) (0.888645 -0.0292508 -7.38049e-16) (1.10911 -0.0497836 -3.49773e-16) (0.18744 1.73362 -7.14898e-17) (0.769363 0.217508 3.5009e-16) (0.67248 0.221509 -1.22557e-15) (0.530134 0.0187667 0) (0.431006 0.0419315 -8.82131e-16) (1.04854 0.698559 1.12392e-18) (0.0233043 0.928033 -2.50035e-18) (1.11675 0.230252 1.62187e-16) (-0.739828 -0.0197482 1.0516e-16) (-0.573261 -0.0288396 -1.11892e-16) (-0.212797 -0.0668522 1.15355e-16) (-0.143821 5.14152 0) (1.51259 0.0834059 0) (0.846062 0.0724065 -3.85856e-16) (0.979689 0.0500958 1.46858e-16) (0.814606 0.0440351 -5.26001e-16) (6.89267 -0.0190339 5.61749e-17) (0.614176 0.0995006 2.10299e-16) (0.917588 0.137388 0) (2.03538 0.283712 7.80673e-17) (0.360956 6.02374 -3.64449e-19) (-0.170563 2.30313 1.83788e-16) (0.000379752 0.872204 -3.93488e-17) (0.0390453 0.962785 -1.17269e-16) (-0.0681404 2.27236 4.72143e-17) (0.135819 5.37303 0) (0.866995 0.229473 2.04789e-16) (0.105383 -0.350446 3.63428e-16) (0.385924 0.0232519 3.06396e-17) (1.59084 -0.0470073 9.94097e-17) (0.314754 0.0161409 0) (-0.47593 1.51887 2.76921e-16) (1.02966 -0.0298407 0) (-0.00890522 0.991829 8.06718e-17) (-0.0965271 5.36011 -8.93422e-17) (-0.166968 2.53328 6.11161e-17) (0.45515 0.0261436 -1.61001e-17) (1.24757 1.03422 -3.81185e-17) (0.618104 -0.0273182 0) (0.58886 -0.000324431 0) (0.77874 0.00186733 -2.03813e-16) (0.45444 0.0259475 -2.09238e-16) (-0.000849054 1.83764 -1.27269e-17) (-0.0440574 3.4676 4.17396e-17) (1.52263 0.186148 5.51509e-16) (7.5624 0.605388 1.79366e-17) (0.798423 2.29475 -3.8414e-16) (1.30686 -0.758127 -1.47097e-17) (1.80856 0.12357 2.96669e-16) (1.34341 0.143134 0) (0.546599 0.0561305 1.9082e-16) (0.306611 0.0347457 -1.23961e-17) (0.764538 0.0329092 -1.23763e-16) (0.69463 0.0369184 2.46461e-16) (0.913141 0.0328778 2.43315e-16) (8.83517 0.391354 -3.44691e-16) (0.203031 0.0313658 0) (0.398467 0.0530564 8.93828e-17) (0.640669 0.115509 -2.6131e-18) (-0.0480871 1.73991 -1.43445e-16) (-0.111841 3.37097 7.37419e-20) (0.387324 0.118503 0) (0.763886 4.1741 1.48628e-16) (2.3423 5.02686 -6.99151e-17) (1.77735 -0.124266 -1.9893e-16) (0.178088 1.73314 -6.17134e-17) (-1.7378 4.44314 2.44612e-17) (0.279788 3.60465 -3.76996e-16) (-0.186499 2.66982 -4.95847e-17) (0.500262 0.0240706 -5.77075e-16) (-0.0572289 1.00839 -4.11655e-18) (1.06461 0.364103 -3.71406e-16) (0.577418 3.51172 -5.2364e-17) (0.231508 2.06668 2.04003e-16) (0.704779 2.93675 -8.39225e-17) (0.420868 1.29152 -2.13325e-16) (-1.86588 10.4896 5.84916e-17) (0.854751 0.300737 -4.08774e-16) (5.66083 0.379234 1.32896e-16) (0.533913 0.0369459 -2.95056e-16) (7.36231 0.59502 -3.29343e-18) (3.60884 2.02965 7.65429e-17) (0.555863 0.0800777 -4.68834e-16) (0.000525702 4.77996 -4.14687e-17) (0.481908 -0.0188075 4.01897e-17) (6.161 0.431212 -6.64045e-18) (0.994733 0.264407 -8.55651e-17) (2.15269 0.132764 2.55705e-17) (2.14217 -0.139555 -1.76699e-16) (0.582217 -0.0854163 1.19015e-15) (7.02858 0.721092 -4.76085e-18) (0.358894 2.4703 2.42087e-16) (1.28775 0.953222 2.07002e-16) (0.499429 1.54385 4.89516e-17) (-2.16723 9.91177 1.11815e-16) (0.764629 3.23047 0) (2.32446 0.0219909 -1.57572e-16) (2.16463 0.0792127 1.09952e-17) (0.403628 0.0513823 2.01601e-16) (0.497616 0.0328541 9.26738e-20) (7.6276 0.45698 0) (0.648683 -0.00487444 2.61146e-18) (4.89418 0.0437545 -4.17846e-17) (0.0210853 3.58909 3.42853e-19) (0.118558 1.88387 1.77897e-16) (0.0725973 1.24678 -2.39325e-16) (0.488977 1.58417 8.5153e-16) (3.43292 0.640042 9.22642e-18) (0.667343 6.71037 -2.01173e-19) (0.955902 0.0839037 2.49958e-16) (1.33146 -0.222679 0) (0.870193 0.992407 0) (0.381917 0.0397542 -3.80428e-17) (2.12283 0.24737 6.83241e-20) (4.34735 1.14606 3.23353e-17) (7.0367 0.381826 -1.00996e-17) (6.78135 0.94158 4.69774e-18) (0.320191 0.197811 0) (0.767831 2.57849 0) (0.470222 1.04069 2.21524e-16) (0.789579 2.4178 1.76733e-16) (2.71778 0.328648 -8.22943e-16) (0.706411 0.317392 0) (0.448185 0.0200851 0) (1.51998 -0.000435473 3.48125e-16) (1.05946 0.448438 1.58281e-18) (-0.0137493 2.38585 -1.76689e-16) (0.5231 0.0434904 2.04362e-16) (0.426008 0.0663486 -1.031e-16) (0.395889 3.29999 -4.90378e-17) (0.216111 1.83655 -3.22759e-17) (0.548498 0.0491911 -2.73132e-16) (7.60961 0.643324 -8.57277e-17) (6.91398 0.402841 5.46358e-18) (-0.0702125 2.02272 1.4051e-16) (0.0435505 0.816532 -4.07012e-17) (3.46959 1.39796 -1.33296e-17) (0.579468 2.36908 -2.97734e-16) (0.549293 0.0368153 1.09213e-15) (0.309789 1.4524 6.59064e-18) (1.01143 3.55012 0) (0.814455 1.41439 1.57567e-16) (0.227862 1.31724 1.10977e-16) (0.319523 2.91873 1.2522e-19) (-1.90587 6.75997 9.49199e-17) (0.406771 0.0338105 0) (7.42018 0.366427 0) (0.707849 1.05745 -6.55289e-17) (2.36561 0.255749 0) (0.0939547 -0.0458749 8.89814e-17) (7.96479 0.446491 -1.43521e-16) (2.73533 0.157321 9.92037e-17) (0.554458 0.0256322 1.27075e-16) (2.4874 0.0252648 1.40492e-16) (0.169091 3.58858 5.96686e-17) (0.151875 0.289084 1.14066e-16) (0.103834 1.82577 1.92123e-16) (1.73774 3.30117 -1.55011e-16) (0.505022 -0.141845 -8.72172e-17) (0.372605 0.0381667 0) (6.38365 2.16842 0) (1.46967 2.41758 -3.5419e-16) (0.436827 0.00645958 -2.1702e-16) (0.288938 2.6195 5.81187e-16) (1.33982 2.8205 -4.6716e-17) (1.39756 0.161233 0) (1.32677 0.0143567 -4.3092e-16) (0.685528 4.64259 -1.12128e-16) (0.684663 2.15267 1.38089e-16) (1.37978 0.297732 0) (-0.944246 5.85589 0) (0.252604 2.73473 0) (0.166343 1.21217 -1.76814e-16) (1.02795 2.44693 8.68716e-18) (9.12973 3.81128 -3.28653e-18) (0.634327 -0.343648 0) (1.71013 0.370933 0) (1.80824 0.357231 -9.15701e-17) (1.6199 2.86334 1.18255e-16) (0.766237 0.0967013 0) (0.264749 0.12781 4.73375e-16) (0.554931 3.50037 1.3115e-18) (0.0356438 1.80787 -1.48327e-16) (0.46156 0.0178754 0) (5.23278 0.384099 -9.19387e-17) (1.77371 -0.446509 -1.86872e-16) (0.101073 1.25479 1.08338e-16) (0.379555 1.63538 0) (0.621581 1.36126 -1.48376e-17) (8.19276 1.02362 -2.48384e-17) (3.84758 1.6504 -5.16121e-18) (1.11861 2.707 -1.9168e-16) (1.11793 2.12943 -2.54134e-16) (1.03984 2.40951 -5.6756e-16) (0.431589 2.02222 -8.06651e-19) (0.784511 3.53722 8.20319e-17) (0.33805 0.791808 0) (7.58399 -0.139678 3.48542e-17) (1.02949 0.187567 2.26338e-16) (4.05807 0.52973 -1.94781e-16) (0.460287 0.0243605 1.89804e-16) (-0.248029 2.39726 0) (-0.123275 5.23191 -7.24859e-17) (-0.0356325 0.952372 3.32937e-16) (0.454238 0.0173053 -8.22984e-18) (0.407528 2.13533 4.96748e-17) (0.389188 0.156645 7.46644e-18) (0.272492 1.62274 -6.18244e-17) (0.332384 2.9669 -5.02681e-17) (0.597317 1.25767 1.21266e-16) (1.04036 0.123714 1.86387e-17) (9.60522 0.471113 0) (0.555584 0.127787 5.03857e-16) (0.506121 0.0781759 -1.08526e-16) (0.570359 0.199344 -3.82833e-16) (4.83361 0.369386 2.42206e-17) (-0.168796 3.01368 -7.98635e-17) (-0.0808733 1.52955 4.52152e-16) (0.485644 0.0219413 3.54435e-20) (0.764266 0.104537 -1.16227e-16) (1.69502 5.50379 0) (1.87852 0.0337242 0) (0.032688 0.0760783 -2.14431e-17) (0.31996 2.27153 0) (3.96208 2.49967 -7.40946e-17) (5.06664 1.60109 0) (1.44528 3.23812 -2.60489e-16) (1.18765 6.35376 3.03988e-17) (0.352476 0.0114167 4.66401e-16) (0.0951498 0.0656669 6.53592e-17) (2.18454 0.200246 -2.37605e-17) (0.570678 -0.0135591 -2.96157e-16) (2.54104 0.0553515 -5.01689e-16) (-0.310433 0.385395 0) (0.394634 1.06667 -8.31508e-17) (0.866559 0.636788 2.90036e-16) (1.07386 0.435574 -1.07088e-16) (0.256516 0.153724 -4.51495e-16) (0.457868 0.79444 6.23131e-16) (0.467629 1.60586 3.18967e-17) (0.298239 1.55838 -4.22206e-16) (2.27251 1.52501 -1.58002e-18) (0.138741 0.614564 -3.03161e-16) (0.448884 -0.00628206 2.03122e-16) (-0.196427 3.08407 7.28054e-17) (-0.128341 1.60887 0) (0.570309 0.516044 -7.69403e-17) (-0.382064 2.01128 -7.25853e-17) (-0.0706651 0.784228 3.21888e-16) (2.24658 0.0496986 -9.10168e-17) (2.01061 8.34732 -4.80114e-17) (9.62163 0.522068 -9.52557e-17) (2.32938 0.0711894 8.72412e-17) (0.82943 2.34528 -7.42745e-17) (0.396921 -0.373425 -1.53653e-16) (2.35505 0.0537054 5.91634e-16) (0.509415 0.0292094 -3.87063e-17) (-0.0443312 5.36179 4.61103e-18) (2.76853 0.0103109 3.09869e-16) (-0.27519 1.5113 -3.2817e-16) (-0.345223 2.87202 1.36752e-16) (-0.431632 0.98457 0) (0.583596 1.2103 -1.16807e-16) (0.161921 0.13499 2.94946e-17) (0.691322 2.24663 0) (1.23133 3.89077 -1.25189e-16) (0.663352 1.05097 6.30937e-17) (0.121184 -0.10474 3.57851e-16) (0.598141 -0.308594 3.31949e-16) (2.28462 0.062272 -5.18982e-17) (7.08235 0.980648 -1.66248e-18) (-0.0693227 0.723223 -2.18734e-16) (1.83821 -0.150419 3.56852e-16) (0.532775 1.7681 -3.07622e-16) (0.86042 0.462011 1.15467e-16) (2.2826 -0.0281916 0) (0.541572 3.38616 -8.79291e-18) (-1.88845 8.80943 -1.15423e-16) (0.428027 1.77073 -4.19514e-20) (-0.11261 3.32991 4.18029e-17) (-0.239285 1.87564 -6.37698e-18) (0.463848 2.76122 -1.89405e-16) (1.61015 4.76341 3.87254e-17) (0.0212991 1.1697 -2.47451e-16) (2.26281 0.0847337 1.12483e-16) (-0.28321 5.11892 0) (8.08586 1.38766 0) (0.81184 0.361104 4.67086e-16) (1.19731 0.625587 5.56674e-16) (-0.253079 3.31119 2.44888e-16) (-0.189311 1.72865 -3.09756e-16) (0.487877 -0.0206458 1.47919e-16) (1.58313 3.48881 -6.1186e-17) (0.593523 2.06999 4.56875e-17) (-0.0243443 0.984394 2.35052e-17) (0.146241 0.331322 -9.92461e-20) (1.44032 1.14753 -5.92359e-17) (0.330897 0.0477335 -1.16935e-17) (1.88319 3.10261 -5.83463e-17) (2.76255 0.0722394 -5.12539e-16) (-0.33154 0.758693 1.17025e-17) (0.788914 1.04706 1.581e-16) (1.35933 0.372682 0) (0.567101 0.0869386 0) (0.229492 2.57817 0) (0.244099 1.78938 5.28218e-16) (1.49932 7.82487 3.39599e-16) (0.420509 3.05667 4.24883e-16) (2.12111 0.0277551 3.34432e-17) (0.907636 1.60242 -8.71807e-17) (0.314045 0.160014 0) (0.565161 1.77725 8.12805e-17) (0.563851 2.69627 2.77418e-17) (9.10508 0.208887 -1.04587e-17) (1.2674 -0.138842 -9.41056e-17) (0.18489 -0.0687924 4.51965e-18) (0.425673 0.0276538 -1.7198e-16) (2.49418 0.262411 -3.30982e-17) (1.06361 1.77497 0) (-0.00414577 0.20248 -5.88954e-16) (1.06442 0.153935 3.47775e-16) (2.14926 0.0465853 0) (0.641269 1.11748 7.18263e-17) (0.15354 0.79368 -4.38978e-16) (2.40871 0.0989709 0) (0.593106 1.97819 -1.05779e-15) (1.08363 3.26187 -2.24152e-16) (0.113065 0.785089 0) (0.944806 0.233663 0) (10.5879 0.416728 5.97646e-17) (7.22208 0.76816 5.04541e-17) (7.5713 1.88945 2.66714e-18) (1.31434 0.529001 7.35582e-20) (0.401157 1.98549 0) (0.295262 0.38836 2.74707e-16) (3.31401 7.02916 -3.80657e-17) (2.71499 0.159471 0) (0.781202 1.11297 -4.55431e-16) (4.71854 1.1413 3.44564e-17) (-0.171316 5.06964 -8.86531e-17) (2.98088 0.679567 -9.58913e-17) (9.56361 -0.0652577 1.05168e-16) (0.22741 0.694299 -2.65928e-16) (8.09809 0.453883 -2.1213e-17) (0.31933 3.16159 2.88752e-16) (1.03108 8.23584 5.74473e-17) (0.169493 1.82389 -2.63643e-16) (1.0806 0.783665 0) (2.12005 0.064461 1.29951e-16) (0.382793 1.70544 -1.84705e-16) (4.92906 0.212787 3.47912e-17) (0.622808 0.0877342 1.35205e-16) (0.187729 5.18145 2.44749e-20) (-0.0106968 2.70744 -2.35179e-20) (-0.000833943 1.03028 1.52652e-16) (-0.281575 0.274282 0) (-1.14376 0.726728 0) (1.64893 1.14408 8.53221e-17) (-0.378312 0.935902 1.48421e-16) (-0.385291 2.41513 -1.73322e-16) (0.0375541 4.35001 -4.57421e-18) (-0.0482001 0.989979 0) (1.65702 7.01084 -2.28229e-17) (9.25685 0.332624 1.16485e-16) (0.916949 1.79381 0) (1.14125 3.96634 -2.82633e-16) (1.28198 1.32236 6.60557e-17) (0.512466 0.0314996 2.70199e-16) (0.0272444 2.99449 1.17957e-16) (0.0495619 1.54211 3.76126e-16) (5.94724 2.27865 0) (-0.00362138 1.94151 -8.37183e-17) (0.0482826 3.48306 -5.31901e-17) (3.76774 1.14958 -1.64313e-16) (0.708388 -0.0546054 -8.50271e-20) (6.57996 0.647254 1.10228e-17) (0.538816 2.50567 6.40575e-19) (-0.315367 3.30554 0) (-0.239833 1.8065 5.76435e-18) (1.09227 2.33761 -1.67539e-16) (2.03979 3.97455 -4.92109e-17) (0.369797 1.09346 2.53522e-16) (-0.238147 4.88573 3.02823e-17) (-0.194635 2.37413 4.66117e-16) (-0.000274471 5.27689 0) (-0.0143037 0.951863 -3.13546e-16) (1.90518 1.19416 3.26931e-17) (0.606552 1.06815 -1.46114e-16) (2.27417 0.329515 7.20312e-17) (0.226077 0.121406 4.7189e-18) (0.135465 1.35775 1.28169e-16) (0.683283 3.18075 0) (1.89749 2.76572 1.72908e-17) (0.0679964 2.76943 -1.9332e-17) (0.454756 0.0538939 -1.36464e-16) (7.26979 1.37338 -1.13603e-18) (-0.513213 8.81856 -1.55599e-17) (0.379218 2.60463 -1.85395e-16) (0.242959 1.1246 -1.90864e-16) (0.602442 2.18769 -4.6152e-16) (1.24296 4.30381 0) (0.286745 0.215521 3.08629e-16) (0.467893 1.80559 1.7366e-16) (0.753772 3.13499 3.60891e-17) (-0.182395 0.332274 -9.11909e-17) (0.408645 0.947227 -2.78695e-16) (0.128618 0.266124 6.85768e-16) (0.844878 0.202625 7.39144e-16) (-0.195405 0.0916056 -3.34634e-16) (1.23877 3.8098 3.78129e-16) (0.121818 1.85574 -3.44371e-16) (-0.399769 4.49403 -6.88157e-17) (0.101261 3.70232 -9.05055e-17) (2.073 9.23143 0) (7.85358 0.615089 0) (0.328763 0.121428 -3.32648e-16) (0.663063 1.61483 1.98957e-16) (0.747524 0.877068 -7.07032e-17) (0.765609 1.48252 0) (1.91709 0.274762 1.05696e-16) (0.481908 0.0657972 8.93702e-21) (0.126909 0.426598 -7.31467e-16) (2.40724 0.104674 3.10911e-16) (0.441677 1.56147 2.30556e-16) (0.668361 2.6106 -5.68656e-16) (0.753205 0.522845 4.52201e-16) (0.817751 4.27961 -1.13185e-16) (4.76891 0.694229 -2.24028e-17) (0.570653 1.38439 3.63178e-16) (0.908211 0.145763 1.92554e-16) (0.67835 0.236507 0) (0.487346 0.152709 6.36359e-17) (0.350952 0.55533 -1.03454e-15) (0.104971 1.00418 -2.56003e-17) (0.122691 2.43683 2.59422e-16) (-0.113479 5.09546 1.94565e-17) (3.08179 0.344203 -2.2154e-16) (7.23673 -0.0791069 -2.55537e-19) (0.443704 -0.00175511 1.98064e-16) (8.84425 0.0809657 0) (1.67351 0.412514 -4.78295e-18) (2.12691 0.0975726 2.4968e-18) (2.10888 -0.00048341 -1.65845e-17) (-0.131334 5.27987 5.44682e-17) (-0.218092 2.50956 7.30558e-17) (-0.0531066 0.983426 3.15061e-17) (8.84151 0.205375 2.01338e-17) (0.739566 1.07463 2.25699e-19) (0.104189 2.57526 -9.1128e-17) (2.11116 0.0679276 2.04169e-20) (0.522442 1.72545 0) (8.02815 2.5413 -6.26458e-18) (-1.18286 0.744618 0) (-0.847369 0.409889 9.25691e-17) (-2.4574 0.845404 5.65084e-17) (-0.0189863 0.955569 5.05439e-18) (0.7125 0.198502 2.64186e-16) (0.629912 0.897387 3.50759e-16) (5.89068 3.47071 -2.40893e-17) (0.41544 0.0440695 2.76472e-16) (0.801983 1.15227 3.18971e-16) (4.47131 1.42329 1.62414e-16) (8.61446 1.36687 5.20627e-17) (5.94816 1.29287 4.16824e-17) (-0.260415 3.11687 -7.72098e-17) (-0.164588 1.60106 5.2943e-17) (-0.381231 1.87774 1.68535e-16) (-0.364958 1.09962 0) (1.82478 0.222793 6.5996e-17) (0.994298 0.685175 1.69042e-16) (6.90325 0.145755 -3.34882e-17) (0.929132 3.7412 1.06583e-16) (0.411567 0.104246 2.7002e-16) (0.171222 0.1959 0) (3.61686 2.25673 0) (1.39352 2.97765 0) (0.329692 4.95136 2.24513e-16) (2.29174 0.200734 8.12187e-17) (0.844594 1.64211 4.25652e-16) (1.38397 2.69643 4.28312e-17) (1.8424 6.8048 -7.77627e-17) (0.791766 0.141267 0) (0.862322 1.40698 8.35476e-17) (0.600882 2.72817 -2.31691e-16) (0.647937 0.454034 -8.06767e-16) (10.4973 0.239281 1.27245e-16) (1.82949 0.352239 0) (-0.296157 2.51872 1.59051e-16) (1.1455 3.62587 0) (1.5296 0.439218 1.53798e-16) (0.790433 0.944082 -2.32511e-17) (1.39902 9.71373 8.01267e-17) (4.0639 0.89053 -2.34404e-17) (6.79502 2.10014 1.56315e-16) (-0.358286 -0.113764 0) (0.128253 1.15828 -7.64471e-17) (0.511525 0.027778 0) (2.53703 0.115459 0) (0.428565 0.0292095 -1.48994e-16) (0.733763 1.00752 2.27464e-17) (-2.46491 11.8398 -5.93064e-17) (1.50189 0.241009 -1.70674e-16) (0.0329006 4.5318 1.25524e-16) (9.68821 0.288821 -6.59676e-21) (0.891016 0.7644 -1.62173e-16) (-0.110209 2.42086 -3.05295e-19) (-0.314732 3.36596 9.90343e-17) (-0.182899 1.79426 -1.31698e-16) (1.01494 3.24784 -1.41207e-16) (0.560101 1.32905 -4.82605e-16) (2.91496 1.07633 -1.55443e-17) (-0.1698 3.72106 -2.59189e-16) (-0.00272589 1.98414 -1.85034e-16) (1.91624 0.876565 6.309e-17) (0.463761 0.0178251 2.33069e-16) (0.790565 0.565325 -2.92618e-16) (-0.0441603 0.863709 -5.54823e-16) (-0.384464 2.2899 -3.38743e-16) (0.962113 0.865533 2.49779e-19) (0.641176 0.612862 5.89413e-16) (8.41337 0.394918 -8.91013e-17) (0.456292 0.0140388 0) (0.456697 3.00511 -8.23591e-20) (1.52977 1.49754 -1.47275e-16) (0.176268 2.28391 0) (8.15152 1.74587 4.51767e-17) (0.657286 0.0795851 3.0257e-16) (0.551021 0.0694179 -2.75346e-16) (7.2579 0.471698 0) (0.436208 3.58228 -7.15083e-20) (0.195497 2.01221 0) (7.79915 0.473837 0) (0.451132 0.025226 -5.63672e-17) (7.38115 0.211377 -9.54991e-17) (1.37683 1.2889 -4.97406e-16) (1.36273 5.57547 3.03229e-17) (2.13889 2.02046 -1.5501e-16) (-0.221656 1.60971 -1.02897e-16) (-0.376212 0.557508 2.4413e-19) (-0.282607 1.64069 -1.04734e-16) (0.256932 2.03556 0) (-0.210644 1.43609 1.52323e-16) (-0.105969 0.915165 0) (-0.030437 3.32377 0) (-0.222987 3.63137 0) (-0.0297949 3.70283 -1.38873e-16) (-0.550742 2.29598 0) (-0.186943 0.775991 1.31046e-16) (0.384762 7.42481 -1.79676e-16) (0.846307 2.73735 0) (0.377267 2.62329 3.35289e-16) (-0.0076444 0.982898 -5.88123e-17) (-0.0590823 5.32624 1.18869e-16) (-0.120368 2.46499 -8.61721e-17) (1.93938 2.07562 2.69957e-16) (3.19245 0.849578 -4.79276e-17) (0.0315397 0.916603 2.1923e-17) (-0.0820212 2.34051 -7.20436e-17) (2.68272 0.588823 0) (0.45392 0.0249847 -3.41137e-20) (5.46754 0.846278 0) (0.479173 0.0268047 6.89338e-21) (3.40152 0.115925 -5.81704e-16) (8.14525 0.415733 4.8315e-17) (0.133856 2.36654 2.23068e-16) (-1.51992 8.0091 -1.20603e-16) (0.209387 1.79525 0) (0.251245 3.63313 6.80775e-16) (5.49257 1.26125 -5.04149e-17) (8.33432 0.607096 0) (8.77315 0.91587 3.19025e-17) (-0.110333 5.19292 1.02456e-17) (5.19778 2.03196 0) (0.726317 1.33999 2.73024e-17) (2.11304 0.0212975 -4.40109e-17) (2.94888 1.5457 -3.4019e-17) (0.390861 0.0885231 -1.53154e-17) (-0.0821654 -0.00602758 -3.83101e-16) (0.0425424 -0.0572648 -2.76796e-16) (0.41998 0.109017 -1.46751e-17) (0.438352 0.187764 -6.8551e-18) (0.210509 0.647472 -1.08491e-16) (0.389302 0.452385 3.18314e-16) (0.458486 0.0164585 -6.78672e-17) (-0.0316765 0.920704 2.58331e-16) (0.241453 0.176936 0) (8.67371 0.375595 1.11585e-17) (0.558156 2.55669 2.5872e-16) (7.28002 0.866054 8.88491e-17) (1.12229 0.543918 3.47446e-16) (0.458838 0.0135587 1.77769e-16) (3.76434 0.425759 2.21462e-17) (9.06821 0.632779 3.0236e-17) (1.69872 2.27142 0) (1.79238 1.96677 1.14058e-16) (1.86794 2.57873 3.3713e-16) (0.442432 0.0510998 5.45311e-17) (0.490303 0.076836 2.88985e-16) (5.40978 2.29121 0) (-0.42165 2.28474 0) (0.361881 0.0227559 1.20802e-17) (0.802808 -1.28053 0) (0.848334 0.304858 -1.49084e-16) (0.365909 0.0637945 6.02108e-17) (9.7092 0.585213 -7.9019e-17) (0.333006 0.936377 -6.55189e-20) (0.498377 0.563036 -1.11951e-16) (9.05813 0.510482 0) (0.892556 7.56497 5.32127e-17) (9.71372 -0.0520732 -1.72726e-16) (4.72054 1.51009 -4.23e-17) (0.737296 0.170788 -1.20022e-16) (0.512165 0.0788385 6.63451e-20) (10.5312 0.652413 0) (7.08998 4.224 0) (0.59665 3.26751 -8.09836e-17) (3.47451 0.640289 -1.28121e-16) (0.926997 7.59912 -1.9321e-16) (0.304981 2.93679 -7.28431e-17) (0.177827 1.69312 -4.5891e-17) (0.618025 1.84021 -7.11072e-17) (0.905799 4.68798 0) (0.45321 0.0180639 2.91203e-17) (0.588895 0.493555 -8.43211e-17) (6.50011 0.756175 0) (1.63476 1.10964 -1.91653e-16) (2.58689 4.75441 0) (0.576191 1.58551 -1.97567e-16) (1.072 2.46322 0) (0.414749 -0.0231072 0) (0.983895 1.16305 2.24004e-16) (-0.0219246 1.36805 0) (-0.0417372 0.247731 1.30465e-17) (-0.0995153 0.787449 7.22697e-18) (2.62198 0.201367 -1.07777e-16) (0.210019 0.976951 0) (0.512169 3.28497 0) (0.313722 1.47939 -7.55824e-20) (-3.47778 9.75058 1.40287e-16) (8.23325 0.274581 5.71726e-20) (1.06384 2.41987 -2.58874e-16) (7.30066 1.62502 -2.57137e-16) (-0.326704 2.05872 1.50484e-16) (7.23784 1.30479 1.19346e-16) (7.18703 1.03243 7.08228e-17) (7.44647 0.604013 -3.91626e-17) (1.55077 0.0458781 -2.15787e-16) (-0.031901 1.50789 0) (0.0211194 3.16839 1.83091e-16) (2.6924 0.950331 -4.18041e-18) (1.24344 2.28323 9.48722e-17) (0.668527 0.11097 -1.71222e-16) (0.07351 0.937649 6.28096e-17) (8.91595 0.394343 0) (0.485133 4.2198 -5.95711e-17) (0.46891 0.0419553 4.11937e-17) (2.10515 0.0398709 -5.80868e-17) (0.686724 1.28505 -4.59201e-17) (0.204787 0.481873 2.14345e-16) (0.423863 0.0355639 -3.94395e-16) (0.495155 0.0752193 0) (0.252566 0.280601 6.07542e-16) (0.529284 0.219681 8.76866e-17) (7.18137 1.2146 -4.23704e-17) (0.38114 0.124816 -2.89659e-16) (0.205633 0.637696 1.30547e-16) (3.20057 1.78701 2.26797e-17) (3.45177 1.00225 1.42741e-16) (0.467844 -0.00795617 2.89549e-18) (0.674295 1.79138 -3.8348e-16) (0.609128 2.396 -3.01133e-16) (0.558073 0.144021 2.86159e-16) (1.35522 3.40726 -3.98356e-16) (1.55025 8.1103 -6.56417e-19) (0.35446 1.95715 0) (0.220705 0.808103 -1.37457e-16) (0.843871 9.02822 1.28287e-19) (0.880501 0.229732 -1.66461e-19) (0.441935 0.0280343 0) (10.3025 0.581003 -2.27463e-16) (0.304532 0.15293 0) (0.838603 0.299503 0) (0.918981 -0.169841 -6.04173e-16) (0.70451 -0.201385 0) (0.735402 -0.277702 0) (0.613975 1.30617 -2.70365e-16) (5.16779 0.753405 0) (5.19628 1.19691 -1.50086e-16) (0.129638 1.47685 -3.15037e-16) (0.046774 2.81837 -4.94827e-16) (0.784376 0.388794 -1.10679e-16) (0.383636 0.264027 0) (0.689488 2.49547 0) (0.769806 1.93061 1.51412e-16) (0.61814 2.23303 1.36354e-16) (0.329889 2.23921 -4.31578e-16) (0.734653 0.468924 3.08148e-16) (1.74922 2.5041 3.1859e-17) (0.378568 0.0478483 -4.06335e-17) (3.97147 1.12367 -2.16559e-17) (1.458 0.364593 -7.2952e-16) (1.09079 0.297788 2.5304e-16) (1.38257 0.502261 0) (4.31015 3.10357 2.70466e-16) (1.41441 3.86434 -2.35306e-16) (0.457412 0.019411 -1.80201e-16) (5.23293 0.404946 -6.69001e-17) (0.822872 0.0650137 1.99813e-17) (0.55651 0.0769453 -5.64179e-19) (0.153825 0.783751 1.62857e-18) (2.01983 0.336995 0) (6.78966 0.0227758 7.63225e-19) (6.17448 0.129161 1.17577e-16) (0.437334 0.0243141 3.51352e-16) (4.72958 0.619098 1.3197e-16) (0.465642 0.00315835 0) (0.451723 0.0210744 -5.59412e-18) (-0.320962 9.75446 1.1223e-17) (0.28883 0.996686 -7.68908e-16) (0.478838 2.32238 3.69487e-16) (0.186531 2.3751 -6.06411e-17) (0.77693 1.79797 -9.59363e-17) (0.47845 0.0264834 2.48117e-16) (1.41785 -0.0727878 -9.13629e-17) (0.640182 -0.824285 0) (1.01791 0.540134 -1.28828e-16) (0.0791768 1.64234 4.57528e-16) (0.110409 0.640624 0) (7.34214 0.965595 -1.04235e-16) (0.378959 2.71831 -4.20119e-16) (6.89274 0.709885 9.96504e-18) (0.897007 1.74852 1.54685e-16) (8.37745 -0.171625 -8.18099e-17) (6.57718 2.5419 0) (2.7062 2.86424 4.13457e-17) (4.82969 1.91028 0) (1.45507 3.05369 -2.06977e-18) (0.459932 0.121056 -1.37811e-17) (0.456898 1.75673 -6.72817e-17) (0.371808 2.33422 -1.97851e-17) (0.277062 2.11074 1.29182e-16) (2.86676 0.715774 1.77353e-17) (6.05034 2.77109 0) (0.94043 1.32412 3.58548e-17) (0.629665 1.30511 0) (2.08154 0.159327 -6.16224e-17) (2.83843 0.482267 5.69784e-16) (0.788227 1.18542 6.98821e-16) (5.69279 1.13396 4.10625e-17) (6.1016 1.09268 0) (2.10332 -0.119244 -1.04792e-16) (0.375052 0.198289 -2.67402e-17) (0.163989 0.210379 -2.14321e-16) (0.529773 0.115319 8.29654e-20) (6.9523 7.28349 1.22503e-18) (4.20655 0.729706 -8.83564e-17) (0.529508 0.0546568 2.91837e-16) (0.954436 1.96894 -4.98062e-19) (0.882743 0.392431 0) (0.75704 0.40395 -4.45052e-16) (7.3916 2.30046 5.75534e-18) (0.529117 1.27992 -2.40986e-17) (1.41698 2.86565 -8.82239e-17) (0.374965 0.0976875 -2.47193e-16) (-0.0446436 0.166973 1.37031e-19) (0.434136 0.0111042 -2.89223e-16) (2.89951 2.1373 2.29558e-17) (0.421427 0.119798 -4.48541e-17) (0.685456 2.54355 2.14432e-16) (0.746038 2.29815 9.78116e-17) (0.754233 2.87119 0) (0.329518 0.413543 1.8925e-19) (0.420504 0.282903 -7.05961e-17) (0.2444 0.358591 -4.42651e-17) (-0.428755 -1.2294 0) (1.55558 2.95056 2.15492e-16) (8.02227 0.0559479 -4.96446e-17) (0.259328 1.62801 -5.48266e-17) (-2.94144 8.58572 2.15365e-17) (0.41569 3.49369 8.89836e-17) (4.40398 2.18233 0) (0.416077 0.052014 0) (0.677851 0.080877 0) (4.48138 1.91569 9.15649e-17) (5.60977 0.791741 3.19686e-19) (7.88219 0.90421 8.84643e-17) (10.5068 0.575185 1.98101e-16) (6.70643 0.461026 -8.33411e-17) (4.73882 1.59166 0) (1.32241 1.3446 -9.28733e-17) (0.167132 1.7952 0) (0.342327 3.30859 0) (4.77544 1.11718 -7.043e-17) (4.66847 2.62546 6.76054e-18) (-0.113901 1.84172 5.65222e-17) (-0.24887 3.36711 0) (1.16916 0.920607 -6.59487e-16) (1.35003 2.79115 5.40746e-16) (2.0914 0.3643 3.06746e-16) (1.18152 -0.0508172 -2.58691e-16) (1.25657 -0.0432087 1.37068e-19) (3.39834 2.68105 6.59015e-19) (-0.142259 1.03674 -1.96539e-16) (2.3526 0.0529793 -6.95368e-16) (4.11797 1.28568 4.57192e-17) (0.660667 0.0965659 0) (0.483817 0.056243 0) (7.86014 1.83814 3.55974e-17) (3.21753 0.526019 1.35767e-16) (0.590593 0.175658 3.11103e-17) (0.713593 2.63332 5.23384e-16) (0.523044 0.120925 3.28354e-18) (5.70444 1.37228 3.0034e-17) (0.487356 0.0299577 -4.29402e-16) (1.17728 0.206246 5.89384e-17) (2.466 3.12447 0) (-0.369508 1.24846 1.35639e-16) (-0.0562042 0.479461 0) (0.623408 1.28829 2.55665e-16) (2.1395 -0.0107139 7.66433e-17) (2.32138 0.182782 0) (0.918304 2.13482 -4.90831e-18) (0.497549 3.05856 -1.80578e-16) (0.241314 0.987683 -4.4753e-16) (0.676228 2.09991 1.95139e-16) (1.549 3.07138 2.48612e-16) (1.24547 0.527006 2.03109e-16) (0.355078 0.123323 3.1146e-17) (0.469846 0.083617 2.15248e-16) (0.185897 0.0909153 5.8056e-17) (1.00387 0.366836 1.1309e-16) (0.495324 0.0441541 -2.91139e-16) (-0.630249 1.40126 1.70341e-16) (9.16497 0.38594 1.05856e-16) (0.46758 0.0157955 0) (0.631551 2.544 -5.24364e-16) (0.299051 0.0885507 0) (1.58289 0.0155834 -3.91937e-16) (0.404011 0.0764564 2.65724e-16) (0.0874297 0.030206 0) (2.38699 0.125371 -4.07415e-16) (5.74593 0.241622 -1.23031e-16) (2.22955 0.247009 -1.75471e-17) (0.445693 0.0224156 3.50973e-20) (0.893139 2.15372 -4.47406e-17) (0.472409 2.11574 0) (6.50068 0.0580983 -1.11188e-16) (0.357267 1.57421 1.34512e-16) (0.462164 1.35163 1.8746e-16) (0.324194 0.0941774 -3.27995e-17) (0.155523 0.080146 5.03937e-18) (0.519667 2.8692 0) (6.24698 0.775279 7.46255e-18) (1.41237 2.80771 -2.37091e-16) (-0.336476 -1.24208 0) (0.300685 0.128178 2.05932e-16) (0.366775 0.101354 -1.00455e-16) (0.495301 1.36007 -6.10837e-17) (8.14068 1.17853 -1.6759e-17) (1.16042 0.141931 0) (0.665188 0.144167 -9.67701e-17) (10.3264 0.410804 7.01077e-17) (3.02398 6.29794 -9.15315e-18) (0.248997 1.03003 0) (0.312045 0.0500834 0) (0.00768105 1.70735 2.92966e-16) (0.977413 2.8187 -1.44202e-17) (0.777678 1.47271 1.17982e-16) (-3.20027 3.21601 -1.58457e-18) (-0.855769 1.62217 -1.56919e-16) (0.637472 2.13576 3.54975e-17) (0.478412 0.0919561 -2.26467e-16) (0.658941 2.39339 -4.81518e-17) (0.624 2.6566 -5.87309e-17) (0.397914 1.83768 1.61109e-16) (3.83865 4.33541 1.0932e-16) (0.21963 0.0392759 -9.09965e-17) (1.76334 0.529171 2.90854e-16) (7.45716 1.14847 -6.05717e-17) (-0.0642908 2.09265 0) (0.29935 1.27752 -4.2242e-17) (0.198364 2.8011 2.44223e-16) (-0.0050152 0.882661 0) (-0.101658 4.83698 0) (-0.218606 2.19773 4.08496e-20) (-0.0115032 1.59767 -1.65297e-16) (2.72961 1.26814 2.41862e-17) (0.432488 0.262988 -2.34476e-16) (7.34664 0.0517675 8.47153e-17) (-0.473802 0.565535 -3.05703e-16) (2.17078 -0.24906 0) (0.875639 0.614376 -1.76438e-16) (3.73656 3.49198 -1.96634e-16) (0.168069 0.61443 0) (-0.236594 0.916648 2.62057e-16) (0.0587376 2.68498 -1.22328e-19) (0.0826602 2.42511 7.79613e-17) (0.0772793 0.283458 -1.79599e-19) (0.446938 2.4188 -1.76402e-16) (0.400039 2.17635 -4.15085e-19) (0.106126 1.91821 -8.64432e-17) (1.12158 3.16995 0) (0.377428 0.727778 0) (0.749188 0.134871 -2.16612e-16) (8.40328 0.459894 2.42863e-16) (0.0535955 2.14418 -7.57505e-17) (0.14765 0.67912 -6.18719e-17) (0.085875 1.19202 4.24898e-16) (3.43043 0.290691 0) (8.54106 0.72802 -8.64032e-17) (0.653169 0.498859 -3.22366e-16) (0.752904 0.62649 -4.7233e-16) (0.786707 3.65317 2.17018e-16) (0.110356 0.358962 -4.10656e-17) (0.585268 1.2792 0) (0.384103 1.17901 7.76013e-17) (0.64762 0.801407 3.61652e-16) (1.43271 5.58089 -6.93025e-17) (0.341606 0.133327 0) (0.58577 0.114995 -4.21384e-16) (0.401093 0.0438798 2.78635e-16) (0.235168 2.87205 2.31323e-16) (0.325693 0.146762 -4.30646e-16) (2.69213 -1.45435 0) (0.351729 0.247967 -1.78757e-16) (2.78606 2.78685 -8.54289e-19) (0.920337 0.371741 -1.25627e-16) (0.559731 0.0721508 3.34615e-16) (2.45272 2.85106 -1.58584e-16) (8.61111 1.11991 2.74655e-18) (0.410053 0.358573 0) (1.66327 0.357526 -8.10345e-17) (7.03915 -0.024144 -9.03725e-20) (0.0229605 2.22861 1.96431e-16) (9.07984 0.342919 0) (0.150437 0.0278643 5.27312e-18) (0.522456 2.15733 2.64202e-16) (0.612433 1.84624 3.20223e-16) (0.546884 2.45372 -1.57305e-16) (0.217462 2.2019 1.08526e-18) (0.988275 0.484576 -6.25018e-17) (0.371552 0.0133926 4.31655e-17) (1.66738 -0.0736521 -4.62345e-16) (0.400124 0.0671268 4.09462e-16) (-0.022847 0.784963 0) (0.213332 1.60823 -2.08128e-16) (-0.0504813 1.21339 -4.58505e-17) (-0.133446 1.19521 -9.80914e-17) (0.560428 1.40162 -9.0548e-17) (2.52583 0.791983 3.97299e-18) (0.244094 0.394422 -1.41693e-16) (-0.0109335 0.547777 0) (0.490238 -0.0106416 3.51842e-16) (1.4635 1.66294 -1.89806e-16) (0.185972 2.53959 -4.56532e-17) (0.935654 0.513071 6.25609e-17) (0.508387 0.294671 -2.48259e-17) (0.484117 0.460139 4.59301e-21) (0.900022 1.06132 -2.09196e-16) (0.588882 0.213095 1.90721e-16) (0.86308 0.257933 -1.88333e-17) (-3.08035 2.58558 7.94372e-17) (0.403254 0.0790842 -4.92302e-17) (0.121392 0.13876 -1.15696e-16) (-0.317432 3.77644 0) (2.15193 0.0159873 0) (0.214452 0.0722409 -4.00405e-17) (8.46908 0.412776 -1.09565e-16) (0.199684 2.06602 8.62446e-17) (0.509749 0.849544 -4.33857e-16) (0.51399 0.0177299 -3.04497e-16) (0.461865 0.0758211 -3.33246e-17) (7.71577 3.99408 2.21444e-17) (0.52325 0.0942282 2.40215e-16) (0.591367 2.41666 2.5009e-16) (10.2551 0.792014 2.43855e-17) (0.834514 1.11031 -1.6604e-16) (2.08979 3.16712 -4.2968e-16) (0.715515 0.615273 5.57544e-16) (0.285599 -0.000450913 -1.83734e-16) (0.230696 0.0261854 1.88851e-16) (2.23186 -0.446475 1.34836e-16) (11.1633 6.44797 -4.69436e-19) (10.3754 0.600328 1.72119e-17) (0.144041 2.21979 6.5282e-17) (0.521246 5.67192 1.46161e-17) (0.140281 1.14251 1.95963e-16) (2.20076 9.7576 -9.7719e-17) (1.02816 1.00167 1.28018e-15) (-0.693581 -0.467339 1.45934e-16) (0.310435 -0.015491 -8.81844e-17) (0.401793 -0.00411647 -1.29562e-16) (0.278426 -0.00769038 -8.22272e-17) (0.278302 0.0109624 2.16796e-17) (-0.0637682 -0.0651093 -1.23838e-16) (0.401564 0.0486296 -4.66574e-16) (0.328626 -0.0126507 0) (0.255529 0.0185688 0) (0.0893042 -0.0132493 0) (0.33729 0.015656 -1.58455e-16) (0.669189 0.041215 -1.65775e-16) (0.836267 -0.0485007 0) (0.375534 -0.0257593 0) (0.389888 -0.029728 3.84477e-16) (0.249351 0.0181147 2.05445e-17) (-0.0241991 -0.113102 0) (0.387594 0.00697887 0) (0.258691 0.008116 0) (1.49038 -0.296632 -2.90378e-16) (0.619662 0.0654063 0) (0.303957 -0.00865215 -1.27123e-17) (0.339072 -0.0182132 0) (0.644708 0.0745229 -4.55667e-17) (0.676491 0.170683 -1.22542e-16) (0.641664 -0.0774671 4.57753e-16) (1.00135 0.109118 -1.90769e-17) (0.77456 0.098213 -1.51089e-17) (0.36371 0.0312245 1.61582e-16) (0.405111 -0.00938769 0) (0.612281 -0.0459783 1.2444e-16) (0.669775 0.0309269 2.57039e-18) (0.419811 -0.0175869 -2.86033e-16) (0.0736746 -0.143335 -9.3798e-17) (0.385345 -0.0497616 0) (0.311088 -0.00651527 2.81745e-16) (0.315465 0.000504402 0) (-0.341237 -0.321783 -1.52951e-16) (0.375236 -0.0126824 -1.37902e-16) (0.462769 0.0485921 0) (0.481314 -0.00864988 -8.88073e-17) (0.464552 -0.0244532 8.7258e-17) (0.733553 0.0412766 0) (0.506186 0.104802 0) (0.572733 -0.0170833 -2.30615e-16) (0.336252 0.0697117 -5.60936e-16) (7.26369 -0.016502 1.45345e-16) (0.0264648 0.83723 1.00557e-16) (0.0846701 1.89877 -3.16154e-16) (0.589106 1.30665 5.85598e-17) (0.646413 1.32373 -3.0778e-16) (1.73012 2.73383 0) (0.974419 0.642951 5.09092e-17) (0.526045 0.17698 5.38139e-16) (2.49246 1.49504 1.23707e-16) (1.08699 0.659139 -5.09963e-17) (3.16299 5.35155 -1.16794e-17) (-0.112619 2.36756 1.30897e-16) (6.91153 2.29168 -1.40282e-18) (3.19215 2.47602 -2.39571e-17) (0.605639 1.61549 -7.27957e-16) (1.71956 4.98527 0) (1.00509 0.263778 -3.93359e-16) (0.959118 0.293555 2.25728e-16) (0.514655 0.440366 -4.52953e-18) (0.446032 0.715669 -4.34968e-16) (-0.197764 1.87801 3.23493e-16) (0.601136 2.01918 1.22107e-18) (0.0813326 0.831996 -1.97574e-16) (-0.795968 2.46497 5.26899e-16) (0.384472 0.638334 1.38901e-16) (0.0601036 1.41738 0) (0.623966 0.155194 4.69301e-16) (0.677609 0.205616 -8.03866e-17) (-0.312118 1.52369 -1.45645e-16) (0.830825 1.73581 0) (0.858332 1.54126 -2.70772e-16) (7.19007 3.10236 -2.70935e-18) (0.96017 1.06547 1.71765e-16) (0.501164 0.316903 -2.67289e-16) (0.376257 0.27951 1.56438e-19) (4.40475 1.00504 8.61602e-17) (0.376622 2.56673 5.04363e-16) (-0.110885 1.64191 0) (0.99627 -1.52045 1.49572e-16) (1.48356 2.83804 1.26013e-16) (1.19033 0.713908 1.444e-16) (1.14737 1.55795 0) (0.852713 5.12109 7.20647e-17) (0.307609 0.0505172 6.03654e-17) (0.596016 0.0364749 1.78777e-16) (9.08561 1.29401 3.92711e-17) (10.0154 0.145066 9.18422e-17) (10.2591 8.28184 -1.19711e-17) (0.754887 1.11121 1.82759e-16) (0.574398 0.0915513 6.60653e-16) (0.183119 0.0485343 -2.87441e-16) (0.440991 3.22495 5.87701e-17) (1.55328 2.77777 -7.1781e-16) (0.270249 1.57274 3.09304e-17) (0.292264 0.93512 -4.9844e-17) (0.0508758 3.20652 3.64946e-18) (0.364092 -0.00831481 0) (0.301678 0.00531536 -2.23746e-17) (0.351468 -0.0589863 2.91723e-17) (-0.152759 -0.231158 3.81244e-17) (0.305402 -0.00668255 -2.63202e-16) (0.348756 0.0109935 0) (0.233613 0.0133721 -1.50277e-17) (0.443705 -0.0301615 1.34151e-16) (0.445196 -0.0148748 0) (0.408927 0.0376118 1.94711e-17) (0.583809 0.0798032 1.21226e-16) (0.68912 0.0305884 0) (0.493723 -0.00112614 -8.82864e-17) (0.49835 0.151144 0) (0.53549 0.0171813 -2.68184e-16) (1.06731 -0.144851 1.54041e-16) (0.667443 0.0551495 1.56713e-16) (0.37172 -0.0277947 0) (0.263834 -0.0140953 -4.56639e-16) (0.348433 -0.0244664 0) (0.259104 -0.0526542 1.71588e-16) (-1.40819 -0.749573 0) (0.411447 -0.0173454 8.94779e-17) (0.482228 1.22851 -1.2673e-16) (1.64947 1.27453 3.70033e-16) (0.14646 0.0326409 -9.21984e-17) (3.74274 0.763832 -4.80932e-17) (0.325231 2.06261 -9.11117e-18) (9.99696 0.0735256 0) (1.12159 3.21143 0) (0.541229 0.0857711 3.75468e-16) (2.15783 0.138069 -2.88978e-17) (1.71336 2.89056 -3.10504e-17) (2.3298 0.451067 1.38166e-16) (0.417428 1.13318 -1.54902e-16) (1.38753 2.6875 -2.28066e-16) (-0.107942 1.99783 2.8497e-19) (0.0169697 0.344867 -2.08289e-16) (1.27988 2.68297 2.2525e-16) (2.30472 0.0488274 4.04456e-17) (2.10774 0.0164112 1.9294e-16) (6.38266 1.15782 -5.65063e-18) (0.654616 1.41317 3.24895e-16) (0.451097 2.62565 1.02194e-19) (0.614354 0.119083 2.62691e-17) (0.683443 2.57432 5.55222e-19) (0.835786 1.33438 -2.84578e-19) (0.849692 1.73625 -2.17412e-17) (0.609127 2.5538 -1.70468e-16) (1.99276 1.63182 -9.92156e-17) (0.40222 2.15009 -1.45146e-16) (0.527865 1.18537 -7.36612e-18) (0.470802 -0.0863196 -1.84937e-16) (0.348509 0.0241144 -8.88064e-17) (0.797356 2.54906 -5.09667e-16) (0.559829 1.43238 -1.95432e-17) (1.02349 3.30712 -5.86687e-17) (2.95893 3.20839 -1.03841e-16) (0.147655 1.15981 3.8234e-16) (0.580013 1.35163 1.90291e-17) (0.330445 0.0729193 1.05011e-16) (0.546677 1.26564 0) (0.160141 0.314838 -1.84106e-16) (0.30914 0.243411 0) (0.715142 0.333234 0) (-0.0577952 2.71878 3.63976e-17) (0.610827 1.39619 0) (0.648879 1.33719 3.10398e-16) (0.474586 1.86376 0) (0.602274 1.14885 1.14051e-17) (0.609422 1.29226 3.71606e-16) (9.59071 0.563515 0) (1.23513 1.54178 -3.7386e-16) (1.88147 0.735763 1.8175e-18) (0.422481 2.25358 6.85481e-17) (0.477867 2.58198 0) (5.44131 1.77211 1.40819e-16) (0.207694 0.0233417 -4.23792e-17) (8.51798 0.238648 0) (2.04859 1.06901 0) (0.195691 2.74565 -3.85749e-17) (0.438016 1.25846 5.25656e-17) (0.947289 0.101557 -5.42471e-17) (0.434396 0.0726492 -8.55454e-17) (1.17131 1.02761 -8.8586e-17) (0.666966 5.77829 1.21566e-16) (0.764488 2.7487 1.33167e-19) (9.59456 0.57023 3.35861e-17) (0.684829 1.10118 1.62211e-18) (0.500386 0.137471 -1.36391e-16) (0.760342 0.144345 3.49443e-17) (1.20626 5.96718 6.78321e-18) (0.461476 0.0196945 -1.01828e-16) (1.15685 3.52475 9.57118e-17) (-0.353457 -0.592314 9.78806e-17) (0.824289 0.155946 4.76567e-17) (1.08841 0.247216 3.47863e-17) (0.471548 1.4374 0) (0.619487 1.30478 1.92473e-16) (7.06787 3.07862 0) (2.54115 0.467591 3.67815e-17) (0.615375 1.31851 2.24033e-16) (0.220065 0.0629571 -4.22444e-18) (0.778309 2.83762 1.88997e-17) (3.46619 2.9219 0) (1.36072 2.85247 0) (0.774104 2.9363 9.07808e-18) (0.13929 2.87993 1.84968e-16) (0.636551 1.0423 -1.62693e-16) (0.359908 1.90221 0) (0.560471 0.203661 -2.64794e-17) (0.249954 -0.0960005 1.26368e-16) (2.32589 0.034806 0) (0.31972 3.42846 -2.09924e-17) (2.48456 0.160969 2.71301e-16) (0.635166 0.12959 2.46163e-16) (0.369688 0.140157 -3.81574e-16) (2.08651 3.09141 3.02853e-20) (0.0855754 -0.820302 0) (0.333969 0.087735 -3.46846e-17) (0.38124 0.0705027 3.04215e-16) (0.745079 1.15388 -1.2489e-16) (1.26991 4.77866 -9.82199e-17) (1.42107 2.99153 -2.10957e-16) (0.759091 2.99526 0) (0.292552 0.918358 2.04639e-19) (0.171551 1.8095 -1.25109e-16) (8.56103 -0.126315 8.5919e-17) (0.178551 2.48582 -5.30723e-16) (0.627531 -2.04009 0) (1.36077 0.70438 1.2301e-16) (1.53481 0.652206 9.83403e-17) (-0.0896065 -0.191568 2.27342e-16) (2.07085 2.45449 -1.07137e-16) (2.40634 2.98233 4.43957e-17) (0.612029 1.31956 9.91011e-18) (0.761272 2.99929 1.98736e-17) (0.60117 1.37066 0) (0.631988 1.31279 1.86443e-16) (0.130098 1.09069 -3.99526e-17) (0.388636 0.0801609 2.07334e-20) (2.5813 2.543 -7.67869e-16) (0.584464 1.33149 -8.30415e-18) (2.44214 0.166495 -3.47704e-17) (0.293557 0.073242 8.46287e-16) (0.566502 0.0141099 4.84784e-16) (0.323866 2.30091 8.03519e-17) (0.394995 2.8228 7.75469e-17) (0.459842 0.372252 9.21043e-20) (0.516458 0.237969 -4.08981e-17) (1.80532 0.740607 1.28177e-16) (0.173712 1.32316 1.04207e-16) (0.923803 0.71471 -2.92771e-16) (0.995884 0.643537 7.05343e-16) (9.42221 2.44945 2.98025e-18) (-0.0906829 4.46693 -1.18655e-16) (0.520567 2.26874 2.86094e-16) (0.342574 1.95913 -2.69147e-16) (0.392533 0.0336723 -1.05212e-16) (0.376455 0.0440105 -1.13907e-16) (0.599781 -0.23211 -2.23617e-17) (0.671898 1.30395 -2.00165e-16) (0.246854 0.203645 8.62546e-20) (0.344258 0.159118 2.29526e-17) (0.181313 0.161899 5.07126e-17) (0.647125 2.41938 2.29275e-16) (0.513114 2.31644 3.5271e-16) (0.585272 1.98563 1.62161e-16) (0.636696 2.14558 -5.09535e-16) (0.486261 2.41866 -4.63611e-20) (0.546022 2.08547 -3.28936e-16) (0.455924 2.2279 0) (0.554036 0.955689 -3.3002e-16) (0.483045 2.51578 -2.1438e-16) (0.547388 2.65095 -1.52186e-16) (0.492317 2.18487 4.74249e-16) (0.465723 2.37509 0) (0.602856 2.54479 -1.55171e-16) (0.55979 2.2736 2.50379e-16) (0.463027 2.70925 -3.24165e-16) (0.483704 2.69212 4.45246e-16) (0.426311 2.70782 1.24267e-16) (0.298515 0.0728925 -2.97752e-17) (0.290597 0.0815387 -3.25909e-16) (0.547412 0.0317646 0) (7.26474 -0.224503 1.30355e-18) (0.271746 0.112304 2.28933e-16) (0.512413 0.0724913 -1.20566e-16) (0.505844 0.1405 3.35095e-16) (0.26404 0.155513 -5.7377e-17) (0.0329091 0.38863 5.51335e-17) (0.256009 2.22929 3.18805e-17) (-0.415057 2.0074 2.25847e-17) (0.154803 2.15189 7.40137e-17) (0.358505 2.14232 -4.58762e-17) (0.664348 1.15904 1.38303e-16) (0.74268 1.2074 -3.09615e-17) (0.383244 1.83738 -9.61731e-17) (0.0782801 2.29272 -8.52756e-17) (0.21658 1.79666 -3.55123e-20) (-0.370901 1.42434 1.76615e-16) (0.617246 0.202711 -4.90088e-16) (0.267254 0.237117 -7.08019e-17) (0.479008 0.224746 -1.16463e-18) (1.12497 2.53339 1.37891e-16) (0.273616 2.44078 6.03196e-17) (0.734413 2.50027 -2.57839e-16) (0.208873 1.59445 -4.86559e-17) (1.82316 2.48184 0) (-0.00675615 4.01375 1.28265e-16) (0.496787 1.67612 3.45991e-20) (0.501972 2.5304 4.5063e-17) (0.787992 1.18933 0) (0.0953376 1.94479 1.01382e-16) (0.672972 1.15668 0) (-0.0746029 0.768941 0) (0.493982 1.57024 6.5622e-16) (0.698283 1.07836 8.02073e-17) (0.241162 2.75635 1.16969e-17) (0.246869 0.38184 -2.38572e-16) (0.423903 0.452129 0) (0.0853814 0.323035 2.83756e-16) (0.267994 0.273278 -1.12915e-16) (1.54321 0.276972 -1.42465e-16) (0.388572 0.880934 0) (1.816 0.168945 4.98758e-16) (1.75371 0.50601 5.83978e-17) (1.98497 -0.0584876 6.92589e-17) (0.390945 0.0449857 3.45829e-16) (0.248785 1.10631 -4.58206e-17) (1.38486 0.0616274 2.21588e-19) (1.64979 0.376492 -3.04535e-16) (0.618507 0.843688 -8.45192e-16) (0.552661 0.245983 -1.32541e-16) (2.15314 0.158553 6.24217e-17) (1.44085 0.210949 0) (0.981365 0.0424906 -2.60155e-16) (1.51667 0.0212549 -1.7226e-16) (1.41133 -0.00720124 1.93733e-16) (0.39475 0.107598 -1.69899e-16) (0.420325 0.724433 -3.18253e-16) (1.83089 0.503021 6.39733e-16) (0.333022 0.0884357 0) (0.61748 0.544398 3.88657e-16) (1.39001 0.0134022 9.7565e-16) (0.273933 0.265698 -1.81009e-16) (1.53924 -0.0362974 -9.25297e-17) (1.65169 0.0495432 -1.47725e-16) (1.54663 0.0470511 2.87351e-16) (1.70161 -0.00802965 9.92995e-17) (0.325107 0.0764267 0) (6.69915 0.709954 -3.22429e-18) (1.65563 0.16652 -3.90264e-16) (0.350156 0.162437 0) (0.799303 0.0778608 3.51617e-16) (2.02942 0.200849 -2.55452e-16) (1.78858 -0.0972846 -1.34511e-16) (1.01225 0.0938632 2.3435e-16) (0.350353 0.0479595 0) (0.418073 0.295739 1.64985e-16) (0.392602 0.0747583 0) (0.884967 0.0779247 0) (6.69817 0.378042 -4.47943e-17) (1.4075 -0.0439245 -2.64038e-16) (1.53104 0.0546182 -2.67601e-16) (1.42731 -0.0143364 6.07613e-16) (2.24078 0.490486 -2.63108e-16) (0.811696 0.0408085 -2.06705e-16) (0.908783 0.0342495 0) (1.01637 0.0516773 2.75735e-16) (0.854989 0.637103 1.7479e-16) (0.30022 0.0704012 4.33203e-16) (6.71575 0.0836273 6.94811e-21) (0.893712 0.021566 1.72251e-16) (0.805918 0.0318841 3.0003e-20) (0.993996 0.0321126 -2.61385e-16) (1.38169 -0.107526 6.33366e-16) (6.79782 -0.124654 -4.23246e-17) (1.50559 0.120935 -6.96999e-16) (0.115725 0.865771 2.63659e-17) (1.54686 -0.175186 -1.50007e-16) (0.176689 2.90392 -3.34052e-16) (0.934969 -0.0781343 -9.53107e-16) (0.82749 -0.0515635 4.60507e-16) (1.45915 0.15781 0) (0.309602 0.0740439 1.46363e-19) (0.387807 0.0752886 0) (1.59633 0.0270445 0) (1.68219 0.105617 0) (6.97703 -0.114548 6.29023e-17) (7.13933 -0.13697 1.92206e-16) (1.50122 2.39475 -1.65595e-16) (-0.167162 2.08552 4.69467e-19) (0.286321 -2.80448 0) (-0.481544 0.174025 8.22644e-16) (0.226098 2.62335 2.61732e-16) (1.066 -0.0386466 1.39295e-16) (1.01521 0.206271 -1.26104e-16) (-0.465638 1.72317 5.03408e-17) (0.340027 0.278975 -2.30808e-17) (0.266654 0.204237 -1.00956e-17) (0.410706 0.197217 -4.52078e-17) (0.485778 0.0412003 -6.17547e-16) (-0.139376 0.412569 -4.9132e-16) (0.0399124 3.14935 0) (0.780696 2.50621 -2.14057e-16) (0.377804 0.222784 9.43891e-17) (0.208414 2.79813 2.94989e-18) (0.695365 1.22146 3.69701e-17) (0.831526 2.15066 7.63573e-19) (-0.35802 2.1956 -1.06613e-16) (0.771186 2.81087 5.24271e-16) (0.507003 0.348463 7.44113e-16) (0.63418 2.15896 -1.67351e-16) (0.305082 2.17582 2.81329e-16) (1.16806 -0.0254458 2.31657e-16) (1.08793 -0.0467764 2.11969e-16) (0.962895 -0.0104123 8.69537e-20) (1.51581 0.233063 0) (-0.298931 2.39924 -4.87115e-17) (0.171602 2.70912 0) (0.0681863 2.86834 5.15247e-17) (0.787586 1.88259 4.07336e-16) (0.610386 1.74199 -1.77037e-16) (1.25133 1.50815 0) (0.184177 0.360836 -8.69359e-17) (1.24279 1.86352 -4.51326e-17) (0.479066 2.43182 9.75788e-18) (1.07789 1.16418 0) (0.295128 0.124215 4.66817e-16) (1.58278 0.0650005 0) (0.373239 0.105215 -4.96171e-16) (1.49952 2.21281 3.17776e-16) (0.406175 0.407236 5.41142e-17) (0.608009 0.480724 0) (0.430044 2.45055 -5.47608e-18) (0.19107 2.16748 4.00054e-17) (0.596125 1.84495 -2.28739e-16) (1.556 2.80259 -9.29943e-17) (0.28187 2.06648 -2.54608e-16) (0.503895 1.80909 0) (0.484642 1.81822 3.26617e-16) (-0.591017 0.128597 0) (0.322792 2.63389 1.73268e-16) (0.447359 2.17094 0) (7.10546 -0.212099 4.52469e-17) (0.403235 1.69802 6.59753e-17) (0.418251 2.16495 2.43849e-16) (0.390175 2.02652 0) (0.12101 2.04194 -4.44813e-17) (0.307973 2.56002 -1.04355e-16) (0.189791 2.46988 4.30109e-16) (-0.257397 0.701376 -1.07076e-16) (0.599361 1.47807 -3.445e-16) (0.187565 2.21002 -8.7855e-17) (1.35499 1.89696 -2.60122e-16) (0.458326 1.8387 7.74521e-20) (0.360785 1.93034 0) (0.404096 2.45053 -1.58095e-16) (0.293378 2.34835 -1.58959e-16) (0.837514 1.62251 0) (0.8526 3.00217 7.19021e-17) (0.328501 1.73929 -1.11135e-16) (0.1605 2.09394 1.83571e-16) (0.664572 1.29427 2.90579e-18) (0.624116 1.38415 3.10131e-16) (0.284246 2.26986 -2.35333e-16) (0.157483 2.38331 -3.04308e-16) (0.108133 2.57288 -7.40443e-18) (1.77637 0.572392 2.25253e-16) (0.407258 1.60003 3.52385e-16) (1.13692 2.66495 -5.83725e-17) (-0.327738 1.04006 0) (0.226009 2.31772 0) (0.867035 0.348767 1.88889e-17) (0.609982 2.33895 1.90651e-16) (0.409143 0.144425 -1.22622e-17) (0.282453 0.0154927 0) (0.358572 0.186314 0) (-0.169718 0.891722 1.05899e-16) (1.56413 0.136409 2.77573e-16) (0.309407 0.141299 0) (0.403858 0.114332 3.6877e-16) (0.514244 0.187759 0) (0.678248 0.261722 0) (0.647889 2.53225 3.28486e-17) (0.482921 2.15281 -2.98386e-17) (0.330148 1.63008 -2.56207e-16) (0.490068 0.0190965 -3.50668e-16) (1.6313 0.66995 4.71314e-16) (0.917474 0.203715 2.06315e-16) (0.825794 0.211522 2.56691e-17) (0.763634 2.19574 5.61863e-17) (-0.406218 0.763282 0) (0.957524 0.0922571 -1.12031e-15) (1.09489 0.0194585 -7.0669e-16) (1.05608 0.0300006 0) (0.164307 0.743705 0) (1.15269 0.455804 1.80911e-16) (-0.117812 0.618107 -4.48397e-17) (7.26312 -0.305032 -1.24237e-16) (2.36016 0.04457 1.25523e-16) (1.00986 0.418316 -1.26345e-16) (0.672844 0.619291 3.08995e-16) (0.978759 0.61469 -2.55976e-16) (1.61539 0.391648 2.12232e-16) (0.301288 -0.122217 2.15363e-16) (0.362156 0.11455 -5.79448e-17) (0.406005 0.100359 -5.6904e-17) (0.480788 0.01733 0) (0.913086 0.329485 -1.32678e-16) (0.822733 0.336076 1.99958e-16) (0.933734 0.363168 5.63215e-16) (0.933762 0.669759 3.49338e-16) (0.237015 -0.14615 -4.54055e-16) (0.36789 0.0691694 -1.80992e-16) (0.410239 0.0560047 -1.76871e-16) (0.404203 0.170858 2.36811e-16) (1.62302 0.444128 -3.5667e-16) (0.332629 0.234222 -2.27921e-16) (0.492641 0.0265304 -1.28846e-19) (2.19553 1.15256 1.71156e-16) (0.989287 0.414414 -1.79448e-16) (0.917889 0.436101 1.8143e-16) (0.922756 1.70701 -4.76389e-17) (7.46257 -0.341464 2.95139e-17) (2.36171 0.0915295 5.69634e-17) (1.28547 0.296119 0) (1.33181 0.401529 -2.61791e-16) (-0.154288 2.48602 -2.70651e-18) (-0.141554 0.307775 6.67842e-18) (1.51115 0.621569 -2.74294e-16) (1.64541 1.26885 -5.50765e-16) (1.25524 2.62101 1.43149e-16) (0.350139 0.367489 0) (0.765339 0.638585 0) (0.311879 1.03232 -4.52806e-16) (0.400981 -0.2244 -5.85892e-16) (0.382538 0.0728859 1.43771e-16) (0.417292 0.054796 -5.63031e-16) (0.629698 0.727715 1.05983e-15) (0.228829 0.346672 0) (0.417072 0.631125 -1.89451e-16) (0.489054 0.0317394 3.08049e-16) (2.5366 1.71106 2.8679e-16) (0.353848 0.0634653 6.88274e-17) (7.62856 -0.330248 -5.5307e-17) (7.29748 -0.148915 -1.59318e-16) (0.59728 -0.031247 0) (2.33948 0.114068 -2.34161e-17) (0.253352 0.0707462 -6.34924e-16) (0.51309 0.0563361 -3.66485e-16) (-0.244173 2.18707 -2.75828e-17) (1.29356 0.527631 -2.52467e-16) (1.75068 0.778713 2.1964e-16) (1.37071 0.780504 2.03387e-16) (1.27993 0.710595 0) (0.531829 0.435655 -2.94932e-16) (0.676974 0.735323 2.71861e-16) (0.900215 1.06142 7.4957e-16) (1.4496 0.705146 3.3751e-16) (0.406476 0.277072 2.7936e-16) (0.267486 0.3578 0) (0.314788 3.62249 -7.21014e-17) (0.807836 0.554723 -1.98358e-16) (0.701702 0.583694 0) (1.9834 1.55919 1.76788e-16) (2.09239 -0.0615719 -1.82209e-16) (2.12488 0.00929928 -4.75987e-17) (0.502947 2.5227 -1.67511e-16) (0.318128 2.41905 -3.98389e-17) (1.79285 2.49143 -6.36826e-17) (0.684293 2.39611 8.87096e-17) (1.49957 0.469773 -1.67393e-16) (1.61528 0.633136 3.37652e-16) (1.09912 2.71886 1.4565e-16) (1.93279 2.56007 -7.01808e-17) (0.330723 0.541986 2.24426e-20) (0.909499 0.931773 1.5057e-16) (0.406444 -0.411003 -1.89485e-16) (0.373579 0.0601839 -1.02285e-16) (0.401103 0.0710898 1.00396e-16) (1.1546 0.501023 2.1105e-16) (0.277127 0.269306 -7.93411e-16) (0.0651723 0.215865 3.01637e-19) (0.453659 0.047362 1.76681e-16) (1.78697 1.91151 -5.67235e-16) (1.84517 2.54846 4.93235e-16) (1.13243 2.92486 2.41299e-16) (0.673051 0.506774 2.3042e-19) (0.544108 0.535804 -3.02214e-16) (1.27783 1.94779 0) (1.35601 2.99551 -3.91168e-17) (0.350816 0.0699089 -4.67519e-17) (7.50451 -0.143751 -5.01709e-17) (0.583689 0.00537965 0) (0.225953 4.2898 -7.32929e-17) (0.460609 1.93009 0) (7.6419 1.45239 -2.20653e-17) (2.3758 0.117957 -4.99155e-17) (0.536795 1.58257 0) (0.440181 0.737993 0) (1.12464 0.655258 1.66454e-16) (1.63408 0.814554 -1.81017e-16) (0.912297 0.916477 4.48387e-19) (1.16472 0.910884 -1.66968e-16) (0.336774 2.59581 1.45716e-16) (2.6751 1.64761 0) (0.7061 1.69277 -1.39235e-17) (1.44468 1.08634 -3.98239e-16) (0.848349 1.11704 -2.31348e-16) (0.61703 1.34339 -2.39024e-16) (2.11879 0.00411869 -7.37966e-17) (0.0992759 2.28005 1.50942e-16) (0.0964052 2.88994 -1.0906e-16) (-0.430401 -0.412758 0) (0.147911 -0.380039 -1.2262e-17) (-0.206753 0.399411 0) (-0.195049 0.743333 -1.33798e-17) (0.304116 0.972741 1.20147e-17) (0.670701 1.26301 -1.10994e-16) (0.600393 -0.521332 2.13616e-17) (0.38464 0.0542466 2.11683e-16) (0.40347 0.0540825 1.29802e-17) (0.895972 1.58878 3.5158e-16) (0.517896 1.97629 -2.97371e-16) (2.07193 0.0377013 -1.03947e-16) (0.227817 1.14003 4.80514e-17) (0.500475 1.68629 1.42011e-16) (0.627379 1.66135 -5.18442e-17) (0.815085 0.928821 -3.49806e-16) (0.459346 1.19047 -4.9583e-17) (1.14628 1.9158 1.17142e-16) (0.595227 0.713196 -2.12738e-16) (0.434291 0.791519 2.68487e-16) (0.29763 0.633609 0) (0.348173 0.0878309 4.83184e-17) (7.89633 -0.145137 9.78686e-17) (0.575811 0.0538964 0) (0.73345 1.03013 -1.30066e-16) (2.13908 -0.0185136 3.12536e-16) (0.632242 1.33676 -1.83903e-16) (0.618989 1.33105 2.06803e-16) (0.259698 3.06639 0) (-0.0236048 3.18827 4.07297e-17) (0.653723 1.56945 2.24559e-16) (0.062699 1.60468 1.01584e-16) (0.0858261 3.08489 -6.08118e-19) (0.550265 0.0599659 0) (0.287048 0.0778364 -2.85133e-16) (-0.225101 -0.426512 2.74068e-17) (9.6569 0.498792 -1.59746e-17) (0.308968 1.97291 -1.84013e-17) (0.49266 1.80778 -3.86939e-16) (0.460692 1.97612 -9.46686e-18) (0.535427 1.82198 -4.07341e-16) (0.321506 2.53656 1.66595e-16) (0.479454 1.98408 0) (0.216218 3.36921 0) (1.38344 0.944456 0) (1.45191 1.31539 2.36382e-19) (0.232486 2.21836 4.26132e-17) (2.56885 1.69407 1.76897e-16) (0.359758 2.26539 0) (0.369263 2.41873 9.71455e-18) (1.19356 1.75223 -2.95688e-16) (0.575516 1.81195 2.58493e-16) (0.59523 0.625293 0) (0.227186 1.83974 6.99327e-17) (-0.158828 1.79293 -5.5514e-18) (-0.214747 2.77209 2.12376e-17) (0.434484 1.85616 1.07956e-16) (0.413722 2.28437 0) (0.361369 2.18932 0) (0.475285 0.782819 2.76585e-19) (0.60443 1.74914 0) (0.274974 2.85522 1.70096e-20) (0.268981 2.91083 0) (0.261947 2.81532 2.02105e-16) (0.108182 2.3271 0) (0.544704 1.82445 -7.96783e-17) (0.397024 -0.59552 -3.29195e-19) (0.392328 0.0443592 3.06075e-18) (0.411411 0.0534925 -9.92553e-17) (0.50351 1.49701 -5.05976e-16) (0.407941 1.52442 -1.79349e-16) (0.509034 1.41915 8.49571e-16) (0.907388 0.840946 0) (0.29408 0.447563 3.5032e-16) (-0.183238 0.74453 -3.24358e-16) (0.457621 2.62082 0) (0.355169 2.20835 5.19995e-17) (0.277641 2.54137 -7.88598e-17) (-0.0808489 2.46545 1.25835e-18) (-0.103087 2.68104 -3.99203e-17) (-0.01891 2.59108 -8.64559e-17) (-0.0655313 2.32649 2.77275e-16) (0.170606 2.62129 0) (0.184817 2.27348 0) (0.930301 2.41346 2.853e-17) (5.3503 2.80343 0) (0.398011 1.9109 0) (2.65135 2.81859 2.4537e-17) (10.0202 0.309056 -1.21134e-16) (0.383233 1.36923 2.32672e-16) (0.403195 1.46424 0) (0.443333 2.63588 0) (-0.301164 2.25548 8.34382e-17) (-0.434278 2.46658 0) (0.468585 0.0462892 2.60064e-16) (1.11403 2.46088 -6.38545e-16) (0.803429 0.899533 1.53156e-16) (0.70136 1.01466 4.61558e-16) (0.133329 1.11592 2.73931e-18) (0.0620011 2.98204 1.04559e-17) (0.560759 2.86022 3.99515e-17) (0.169877 -0.130568 0) (0.162719 0.534652 8.43949e-17) (0.32581 0.0772336 -5.25893e-17) (-0.522803 2.24138 8.60691e-20) (1.05655 3.17822 -1.03923e-16) (0.312387 2.20964 0) (-0.391793 3.12827 5.76525e-17) (0.330959 0.0589704 -1.87329e-16) (0.380885 0.0588975 3.65788e-16) (0.494644 0.0705021 3.59825e-16) (0.522824 0.0469664 1.29033e-18) (0.632262 2.8221 0) (0.582943 1.76269 -2.40338e-17) (0.722856 1.089 -4.73117e-17) (0.0129957 3.59724 3.19505e-17) (0.373244 1.8218 -6.09867e-17) (0.428291 1.77266 1.28182e-16) (-0.926091 1.7194 1.22474e-16) (0.367791 1.94637 7.95758e-17) (0.104628 2.13572 -1.39099e-16) (1.13734 1.4382 6.79858e-17) (0.0842832 1.95498 0) (-0.0556214 2.4112 0) (0.37964 2.22582 -1.62864e-16) (0.394141 1.87641 -1.51888e-16) (1.88481 0.485063 1.73836e-16) (-0.0646138 3.08542 0) (0.706051 3.39918 3.39974e-17) (0.324702 2.73717 -3.16075e-17) (0.365845 2.95458 -2.81888e-17) (0.118571 3.04027 -1.09418e-16) (0.431015 0.0461181 -4.60429e-17) (2.38297 0.183672 6.86224e-17) (2.29399 0.253055 -1.9879e-16) (0.0440936 1.0941 -4.03291e-16) (0.741077 3.05194 4.82638e-17) (0.048999 2.6509 4.09676e-17) (0.0438735 3.40281 -1.50294e-17) (2.31986 0.082706 -5.7549e-16) (0.244918 2.31331 4.5752e-17) (0.169685 2.70134 2.19546e-17) (0.461379 1.81743 2.67396e-16) (0.338262 3.1965 -3.83996e-17) (2.30875 0.137926 1.55763e-17) (0.344693 2.90043 4.12766e-17) (0.181967 2.43951 -1.31131e-16) (0.268566 0.0984902 1.01865e-15) (0.573069 0.0593682 2.78222e-16) (0.257922 3.12404 0) (0.430167 2.39867 3.93096e-16) (0.870389 2.65729 1.96195e-16) (0.461182 1.85049 1.02148e-16) (0.365034 2.34519 -8.10028e-18) (-0.6424 0.977003 -3.25324e-16) (1.55867 2.41008 2.73701e-16) (1.54329 3.67071 0) (0.343153 2.88103 -1.26616e-16) (0.369898 1.72194 1.17396e-17) (0.56872 0.925056 0) (1.19806 3.66597 2.03951e-16) (-0.161255 1.58671 -4.51915e-17) (-0.250583 2.88696 -8.23206e-17) (0.0628242 5.08991 1.19793e-16) (1.16857 1.31313 0) (0.332843 -0.0484874 4.77321e-17) (0.320782 -0.00527586 0) (0.522978 1.85992 0) (0.400594 2.27547 0) (0.376528 2.599 6.45055e-17) (0.202639 2.90898 2.80735e-17) (0.778195 2.66436 4.7197e-17) (1.37408 2.6431 0) (7.59758 0.529998 0) (0.257199 1.38799 -5.46908e-16) (1.5731 1.43843 4.88675e-16) (1.20982 1.68623 5.08938e-16) (-0.252632 0.623037 6.63492e-17) (0.307536 2.2602 0) (0.231704 2.57659 0) (0.721441 -0.832548 -7.41241e-20) (0.389886 0.0613639 1.09529e-16) (0.39931 0.0624733 2.97731e-16) (1.46968 2.68464 -8.34756e-18) (0.848295 5.22954 -5.31996e-17) (0.472584 2.7989 -6.56925e-17) (0.538308 3.2948 -4.13329e-17) (0.457879 0.0019096 -9.50079e-18) (0.46121 1.79279 -1.84145e-16) (1.26917 2.20281 1.79481e-16) (-0.159146 1.80958 -5.53322e-17) (0.618961 1.2843 -3.7198e-16) (0.768403 2.59875 0) (0.449362 2.74525 0) (1.6722 2.91252 3.15238e-16) (-0.659844 -0.821787 2.0945e-16) (7.32498 -0.0366843 5.19029e-17) (0.3424 2.9774 7.7799e-17) (0.352357 2.50692 7.47623e-17) (0.197319 2.32208 0) (0.270409 2.3321 0) (0.694354 1.12694 7.89602e-17) (0.936233 2.88083 -5.06233e-17) (0.652296 1.25201 0) (-0.470279 0.510192 3.91805e-16) (0.302354 1.30082 0) (0.418499 0.155727 3.46729e-17) (-0.033616 2.79489 0) (0.0919349 2.93644 0) (0.979351 2.88339 -4.30464e-16) (0.785476 4.77394 -3.58041e-17) (1.08759 0.0291893 -3.91585e-16) (0.362954 2.93821 -8.13077e-17) (0.849419 2.04955 -2.91157e-16) (0.60382 4.60943 -1.32501e-16) (0.721761 0.999352 1.63648e-16) (0.503739 0.973989 -7.26718e-16) (0.094242 0.470379 -3.41402e-16) (-0.53646 0.911527 -3.03645e-16) (0.723637 1.0825 -1.33577e-16) (0.415913 1.85221 0) (0.32506 1.86888 2.54084e-16) (0.202747 2.7208 8.59547e-17) (2.06524 0.0745973 1.75355e-17) (0.591677 1.26655 -7.92472e-17) (0.0735355 2.5033 2.65171e-18) (7.5503 -0.0565167 -1.48873e-18) (4.8056 2.19229 6.90335e-17) (0.703714 1.19257 -1.00604e-16) (0.501234 2.6877 -1.54082e-16) (0.257167 1.81383 -9.52856e-17) (0.354617 2.46287 -3.57336e-16) (0.534382 2.78396 0) (0.457547 0.285531 -1.58276e-16) (0.483315 0.189791 -5.85259e-17) (0.457719 0.0744877 1.42644e-16) (0.337229 4.39683 4.78045e-18) (0.374798 2.96244 0) (1.33513 0.7905 3.06749e-16) (0.770575 2.58836 9.57134e-16) (3.36208 7.25036 0) (0.72854 1.30774 -1.3421e-16) (0.598586 1.09097 1.18215e-16) (0.435385 1.274 -5.83423e-17) (0.298401 2.39531 -1.51364e-17) (0.503787 1.74945 -6.61328e-17) (0.047177 1.90195 5.89493e-17) (1.30854 -0.292597 -1.679e-16) (0.173811 0.0168989 -5.58591e-16) (0.251462 0.0766501 5.39621e-16) (0.525945 2.3372 0) (0.317562 0.769278 1.21796e-17) (0.710339 1.09355 8.59358e-17) (0.407472 2.1932 2.97045e-16) (0.442074 2.75581 5.9506e-17) (0.369013 2.176 -4.94159e-20) (0.41113 1.83758 4.56585e-17) (7.95549 0.225911 -8.44005e-18) (1.19171 1.43426 1.74345e-16) (0.424762 2.3162 0) (0.786818 1.12282 -4.05872e-16) (0.428026 1.88104 2.2983e-17) (4.80883 2.72406 7.84298e-17) (1.33391 3.39709 0) (6.40519 9.78994 0) (5.11191 1.45484 1.98407e-16) (2.20931 -0.0125415 -4.66494e-16) (1.64772 3.19174 7.77811e-17) (0.629528 1.2591 2.9145e-16) (1.74614 2.86045 0) (0.460856 0.0373016 3.0684e-16) (1.7414 4.39106 0) (0.366073 2.80148 1.26871e-16) (0.860797 0.861708 -9.25951e-17) (0.441878 0.983268 5.02253e-17) (2.14737 0.0560131 -1.10296e-17) (-3.473 -0.612558 -3.6273e-16) (0.603604 3.20022 -1.13089e-16) (0.466122 0.0393858 0) (0.452358 2.53766 2.17662e-16) (0.262636 0.23718 5.12702e-17) (0.416342 2.84138 2.71926e-16) (0.474674 1.81508 -1.1712e-17) (1.63692 3.95858 0) (0.408579 2.28289 2.16504e-17) (0.407747 2.58168 1.14047e-17) (2.3061 0.11661 -5.5881e-16) (0.306726 1.84705 9.2158e-17) (0.216138 2.44704 1.03905e-17) (1.66752 3.0691 0) (0.442369 0.0234975 0) (0.358898 1.83793 -2.32985e-17) (0.21839 1.18117 0) (0.498095 1.83353 1.03138e-16) (2.07532 0.231499 1.91501e-16) (1.14847 0.842058 -6.62964e-17) (1.11712 2.56683 1.87703e-16) (0.274197 1.13221 9.06918e-17) (0.745792 3.02808 -4.35694e-17) (0.345847 2.36168 1.77867e-16) (0.720315 2.26354 1.1615e-16) (0.0660763 2.47994 4.08379e-17) (0.368226 1.91825 0) (0.144643 1.3758 1.30142e-16) (0.758906 0.210547 0) (0.51814 1.81186 1.32729e-16) (0.367694 2.70952 -1.31317e-16) (0.354867 2.36411 1.15458e-16) (0.339422 0.122674 0) (4.75521 5.03956 -4.18174e-17) (0.765349 0.506759 7.08115e-16) (0.520031 1.82142 -1.34921e-16) (0.502544 1.81727 1.06062e-16) (0.399469 2.69632 -8.64708e-17) (1.92976 1.21111 -1.12396e-16) (3.15135 3.12349 -4.44554e-17) (0.360316 0.0382345 1.01368e-16) (0.570665 0.11485 -5.30128e-18) (0.641074 2.0198 -7.97298e-18) (7.62641 0.521137 2.97929e-16) (0.555361 1.85839 1.20536e-16) (0.382084 2.12714 0) (1.22012 3.62237 5.40472e-17) (0.52568 0.683634 -1.00104e-16) (2.11414 0.0329637 1.32446e-16) (1.52101 1.55473 -8.25717e-17) (0.30747 2.31806 4.2945e-17) (0.215587 3.08252 -2.05794e-18) (0.282108 2.26337 -2.07246e-17) (1.90873 0.425694 4.99311e-16) (0.199212 0.123229 -2.65481e-17) (0.421293 3.05756 0) (0.651462 1.80267 -7.94072e-17) (-1.05369 3.89881 2.31353e-16) (0.381634 0.0158847 9.89027e-17) (0.372048 2.34599 -8.44079e-17) (0.82927 1.2157 0) (0.692492 1.04647 2.60691e-16) (-0.619329 3.07275 0) (6.31679 3.45081 0) (0.338313 2.29651 1.61317e-16) (0.663357 0.194656 5.14638e-18) (0.529761 2.74293 1.59302e-17) (0.390836 1.95433 -2.52093e-16) (0.483696 0.0252343 0) (0.398041 2.17144 -2.73698e-20) (7.23502 0.654964 -4.72893e-18) (0.506371 2.22124 7.42994e-19) (0.49492 1.89781 3.12281e-16) (1.28829 1.54548 -1.83594e-16) (1.34353 1.80761 0) (1.28924 2.04324 -1.19161e-16) (0.798601 3.02592 0) (9.99831 0.348137 -1.22288e-16) (5.34022 3.43461 0) (4.49817 3.20466 -7.12411e-18) (0.504437 2.90706 0) (0.411598 0.0184515 -9.60656e-17) (0.428395 0.0573317 9.29382e-17) (2.51384 5.56729 2.85257e-18) (0.57462 1.91714 8.74073e-17) (0.446062 2.23358 0) (0.357189 1.77783 1.10989e-16) (0.326067 1.70933 -6.3684e-20) (2.10328 0.698647 2.2169e-17) (0.297236 2.15276 -2.67455e-16) (0.373246 1.7992 -1.55758e-16) (-0.0988161 2.8433 -1.78148e-17) (5.53441 1.47891 1.02455e-17) (2.33089 2.3149 1.96415e-16) (0.49177 2.18899 -1.72958e-16) (2.90693 -0.193253 -1.52551e-16) (-0.280424 0.364316 -2.17164e-17) (0.0514857 0.123461 1.82395e-16) (2.07279 3.40795 -1.51454e-16) (0.607402 1.20164 0) (2.47245 3.37958 2.05836e-16) (-0.451142 5.08214 -1.54143e-16) (-1.80536 2.56648 -2.81751e-16) (0.520147 0.850308 0) (0.315949 2.33338 -1.66092e-16) (2.17364 0.0449351 4.1293e-16) (-0.0264682 3.60965 6.72818e-20) (-0.0703046 1.98071 2.9907e-20) (0.221642 2.77449 5.58666e-17) (0.887273 4.8192 -1.53969e-16) (-0.00426884 1.11421 1.41901e-16) (0.339909 0.131156 0) (1.71815 1.86162 -7.03924e-16) (1.26967 1.90142 0) (0.408827 -0.970855 -3.6926e-17) (0.407599 0.0481471 0) (0.413724 0.065002 -8.90659e-17) (0.612054 0.683579 1.44858e-16) (1.06853 1.18464 -7.81e-17) (0.275342 2.97221 -5.83938e-18) (0.0724245 1.86176 1.20115e-17) (0.613342 0.980552 -1.11913e-17) (0.622265 2.97324 -3.7018e-17) (0.310193 2.9071 6.45824e-19) (0.38264 2.24337 0) (0.420375 2.60531 -1.01138e-16) (-0.935831 2.43923 4.46319e-17) (-0.310511 4.90537 0) (0.753607 1.85423 2.99668e-18) (0.735116 1.0603 -1.69383e-16) (1.6149 2.2878 -9.4009e-19) (0.10456 1.83697 3.60044e-17) (1.7911 2.97552 -1.35767e-16) (0.440196 2.19131 1.4534e-16) (0.969447 -1.29332 5.66062e-19) (0.401839 0.0892318 -1.98113e-16) (0.392272 0.084104 -3.84754e-16) (0.36137 0.750905 0) (1.10948 1.16808 -5.00291e-19) (0.36225 2.58416 6.352e-17) (4.31837 5.0356 -4.48664e-17) (1.17002 1.3417 -1.91815e-16) (0.551138 1.31687 7.27608e-18) (0.503948 1.29002 -1.25241e-16) (0.617821 2.23116 -5.59554e-19) (0.540617 2.52995 0) (0.48109 0.324539 4.04892e-16) (0.266206 1.28573 -3.15139e-16) (0.464248 0.227699 2.22534e-16) (1.5046 1.58686 2.55951e-16) (2.91261 3.64272 9.06736e-18) (0.486924 0.0245238 -2.50061e-16) (0.520248 2.48502 -1.61941e-16) (0.830896 1.32076 0) (0.131993 0.213733 -1.57557e-16) (1.32986 0.334539 -2.22324e-16) (0.297319 0.190153 -1.29914e-16) (0.24457 0.160188 -1.75353e-16) (0.110689 0.141075 0) (1.56992 2.87947 5.90761e-16) (0.406698 2.11303 0) (0.412266 2.09334 4.05807e-21) (0.310333 2.69073 -1.61552e-16) (0.359128 2.25722 4.24511e-16) (4.31518 1.62869 0) (6.96342 0.672766 3.24794e-18) (1.19118 6.91445 3.45575e-17) (0.674854 0.984507 -1.13081e-17) (0.459801 2.08612 8.59485e-18) (3.48125 4.29121 0) (0.236551 1.18421 0) (0.963683 1.79588 8.72712e-18) (0.796923 3.05765 5.9678e-17) (5.96135 1.42349 -1.85951e-17) (0.905733 1.47906 0) (0.647457 1.10766 0) (0.475095 3.23128 0) (0.533207 2.64458 7.0409e-17) (0.460971 2.85279 5.32551e-17) (0.401372 1.64042 2.70028e-16) (0.111711 2.07948 -3.52923e-16) (0.105124 0.282156 0) (0.330407 2.85275 -1.1196e-16) (0.330818 2.6298 -9.52628e-20) (-0.113432 -1.54041 8.68522e-17) (0.743865 1.2845 1.07419e-16) (0.325817 0.178843 -2.11519e-16) (0.395526 2.2301 -9.50136e-18) (1.05918 2.14739 0) (0.764906 0.776758 1.8746e-16) (0.270329 0.809542 -5.61479e-16) (0.164662 0.0729001 0) (2.12921 4.38143 1.38319e-16) (1.42552 2.69638 -3.10587e-16) (0.897564 0.516522 -1.87474e-16) (0.519047 1.03067 1.01624e-16) (-0.268937 1.55945 -6.63646e-19) (0.88346 -0.105141 3.48642e-16) (0.511424 0.272613 -1.94007e-16) (0.379839 0.193928 -1.98082e-16) (2.40042 -1.86955 -4.16843e-17) (-0.367174 2.75794 1.29768e-19) (2.97071 13.9772 6.21098e-18) (0.460571 0.0138449 -1.54906e-16) (2.00177 0.412672 0) (3.01739 3.79165 7.42923e-17) (-0.0744434 1.78276 -3.38974e-19) (0.834082 0.719756 0) (1.86874 0.311414 -5.012e-17) (1.73511 1.74131 -8.6304e-17) (0.458903 1.77048 -1.46914e-17) (-0.27358 -2.37767 6.00214e-17) (0.456507 -0.00183087 9.56956e-17) (0.446731 0.0766507 0) (0.537331 1.77901 -1.39915e-16) (0.523128 1.24825 2.67144e-17) (0.48699 0.11939 -3.24289e-16) (0.219107 0.138548 4.54007e-16) (1.02464 0.17874 -1.00301e-16) (2.09522 0.0270177 6.79139e-17) (0.332281 0.0721181 -6.05453e-17) (0.460107 0.0237432 -9.93526e-17) (0.495208 2.31335 -1.1324e-16) (0.606734 2.53723 -1.37524e-17) (7.67029 0.550597 0) (0.46772 0.0680326 -1.64367e-16) (0.838421 1.24984 6.03632e-16) (0.765323 1.9666 0) (2.28784 2.81718 -1.00466e-16) (0.391122 2.30444 -1.74242e-17) (0.38558 2.52246 5.91384e-17) (0.801852 -0.234914 -1.16126e-16) (0.380077 0.128728 -2.38501e-17) (-0.201729 0.229753 2.37449e-17) (0.0689354 0.423225 -1.33867e-16) (0.87045 1.21722 7.37008e-17) (1.1648 2.67101 3.72411e-16) (0.720037 0.912071 2.37953e-17) (0.400296 2.79076 -2.30741e-17) (0.0256 3.60437 -8.26178e-17) (2.37993 0.0189816 -8.601e-18) (0.662465 2.75882 2.54531e-16) (0.745797 1.1711 0) (7.85156 0.523444 -6.5595e-17) (-0.0241126 0.532715 7.4571e-17) (8.18165 0.234518 -1.53183e-17) (0.330965 2.76145 3.94532e-17) (0.33264 2.3576 7.68141e-18) (0.464632 -1.56666 -6.42981e-17) (0.441983 0.0611235 -9.19032e-17) (0.420327 0.0882669 8.77999e-17) (4.22747 1.71936 6.07116e-17) (0.458571 0.02126 0) (0.325056 2.35812 1.68584e-16) (-0.526326 1.96088 1.81253e-16) (2.18733 0.180281 -4.13395e-17) (-0.0621609 2.19828 -1.26134e-19) (0.463307 0.0160096 -7.12464e-17) (0.634193 1.56352 -2.21282e-16) (0.150046 0.00993283 4.14472e-17) (4.48023 3.95104 2.64603e-17) (1.71248 0.582942 0) (0.479722 1.1298 1.7934e-16) (1.12947 2.04612 -1.35086e-16) (1.37123 2.79111 -3.18816e-17) (0.638449 1.22826 -2.86341e-16) (0.448915 0.168928 -3.84567e-16) (0.952787 -0.388425 2.84561e-16) (0.364173 2.96239 -1.90694e-17) (0.366681 2.2673 0) (0.217895 1.75797 -3.25831e-16) (0.741282 1.61091 -7.7629e-17) (0.453594 2.33815 1.6305e-16) (0.414267 2.63404 0) (0.458496 0.0205134 0) (8.07502 0.508186 2.587e-16) (0.30392 0.0689108 -4.81438e-17) (0.472001 2.2314 0) (0.516516 2.55015 3.5346e-16) (1.28742 0.820168 2.34347e-16) (1.88792 0.506718 -1.91269e-16) (-0.712929 2.14343 -1.98735e-17) (0.771799 0.832717 0) (0.254005 1.96144 0) (0.388383 0.963846 -7.48515e-17) (0.668077 2.18955 2.37269e-16) (0.367971 2.91963 0) (3.63006 1.02724 -1.51313e-17) (2.56509 1.87538 -3.14119e-16) (-0.0762747 -0.242988 -1.04884e-16) (1.15642 2.78231 2.08508e-16) (0.986883 1.33902 1.71683e-16) (1.64237 3.06946 1.07045e-16) (0.395881 2.89036 3.13443e-17) (0.832418 2.35022 -9.71227e-17) (0.906521 1.79722 9.82477e-17) (0.757588 2.07307 7.27626e-17) (0.773496 0.89981 1.00362e-15) (1.09784 4.31054 -9.06048e-17) (0.520481 2.56132 -2.73166e-16) (0.310515 2.33063 -9.13215e-17) (1.7576 0.949045 1.32968e-16) (0.458064 0.0218904 -5.46703e-17) (0.765345 -0.354424 3.65904e-16) (0.4197 0.0712171 -3.06619e-18) (0.0894111 0.870069 1.17879e-20) (0.288649 0.0768985 0) (0.89003 0.396919 0) (-0.620663 0.468224 2.59449e-17) (0.349539 2.2878 -6.58991e-18) (0.531942 1.998 3.74504e-20) (2.0121 0.348128 -1.85889e-16) (0.145367 1.99629 1.18682e-16) (2.934 4.54996 -7.38619e-17) (3.88169 2.93757 6.2946e-17) (7.21076 4.41764 0) (0.653284 1.03751 0) (1.30113 2.59821 1.41497e-16) (0.624855 2.2613 1.24398e-16) (0.759854 1.68611 1.135e-16) (0.525634 2.40281 -9.04046e-17) (0.513122 2.69799 -6.9911e-17) (8.17885 0.464896 1.09901e-16) (9.60925 0.595983 -2.67388e-17) (0.573021 1.86504 1.57306e-16) (0.0104768 2.63137 -2.64871e-16) (1.00631 1.95263 0) (0.597949 0.399098 -4.12096e-16) (0.436332 2.2747 0) (0.52425 2.58794 -4.23224e-16) (0.752073 0.687536 -8.21895e-18) (0.280218 2.97827 1.92102e-17) (0.458314 0.0267157 4.08136e-17) (1.2625 0.532519 9.06477e-17) (0.874227 0.205127 9.70918e-17) (0.873714 0.11489 9.6524e-17) (1.15088 0.0535408 4.54496e-16) (0.570869 0.184474 1.65904e-16) (1.43029 -0.209001 -3.45113e-16) (1.50605 0.421277 -2.4975e-18) (8.49663 0.515114 0) (3.01991 -0.510164 1.34003e-16) (0.0591262 0.115829 -2.18447e-16) (0.197139 0.0400862 -1.01553e-19) (0.358209 2.66797 -2.62551e-16) (0.744952 2.96024 5.91475e-17) (10.0441 0.438009 4.12936e-17) (0.364335 2.56077 -6.53172e-17) (0.21911 1.824 1.93589e-19) (0.450898 2.63232 1.57549e-16) (0.422859 2.33323 0) (0.185277 1.97458 -4.87564e-17) (0.636844 0.41943 5.59394e-16) (1.90896 3.73252 1.12662e-16) (7.30875 -0.577668 -8.71379e-17) (2.411 0.613022 1.31821e-16) (1.27444 2.22844 -2.50753e-16) (0.187303 2.56459 7.54628e-17) (0.313115 1.92232 9.94619e-17) (1.34668 4.37039 -4.27015e-17) (0.597699 -0.0427802 -9.19552e-17) (0.487433 0.111394 0) (0.205293 1.18532 3.95494e-17) (0.736418 0.198066 -1.1333e-20) (0.469237 0.210551 1.9279e-16) (8.21089 0.397873 -3.51322e-17) (1.97716 1.53086 9.19208e-17) (-0.117043 1.07528 5.71203e-17) (0.495733 -0.0266127 0) (0.389811 0.245243 1.46459e-16) (1.15495 -0.156868 -1.92331e-16) (0.402561 3.03971 -2.15163e-17) (2.3973 0.272732 0) (0.841802 2.73577 -2.40971e-16) (1.09462 0.335073 0) (0.267198 0.051086 0) (0.334073 2.09879 1.18103e-17) (2.61072 0.590197 1.39347e-16) (1.78552 1.76173 6.37679e-17) (1.75065 1.65946 1.84657e-16) (1.69099 1.26686 6.51931e-17) (0.83837 -0.798888 0) (0.365665 0.160431 2.54549e-16) (3.67976 3.49255 -4.45858e-17) (0.279574 2.0936 -1.74625e-16) (0.149984 0.24943 -1.68283e-16) (0.958087 1.21385 -2.44689e-16) (5.19353 2.28916 -2.61442e-16) (2.14935 0.397413 5.94834e-17) (0.863922 3.50286 -1.44864e-16) (0.872295 3.00752 0) (0.0766244 -0.207755 -4.83303e-17) (-0.469503 -0.691221 3.76969e-18) (0.24623 8.19054 -1.43936e-17) (0.306927 2.43788 -3.72678e-17) (0.195294 1.03221 9.25633e-17) (0.435679 0.0550987 2.36635e-17) (0.459476 0.0349919 -1.35585e-17) (-0.237608 1.98319 -2.07419e-16) (0.630778 2.07715 -7.3586e-19) (0.996316 2.14151 3.78873e-16) (0.834489 1.56238 2.77351e-16) (0.754978 1.04107 1.10741e-16) (0.768307 1.88273 -1.89593e-16) (-0.286068 2.40303 -4.11917e-17) (0.659168 1.11664 1.62896e-16) (0.462417 0.0774836 4.14503e-17) (1.21955 0.663037 9.61706e-17) (0.533852 0.277525 -1.88816e-16) (0.375777 2.92071 -3.91293e-17) (1.0771 4.45373 0) (-0.0947888 0.2254 1.73766e-16) (1.53344 2.75293 9.12879e-17) (1.56184 4.04626 -2.69182e-17) (0.671637 0.661258 8.92531e-17) (2.57369 0.131233 3.38966e-17) (0.369373 2.96666 0) (1.26891 2.96418 1.72459e-16) (0.408963 1.93448 0) (3.93656 0.923459 1.46787e-16) (0.276778 2.035 5.93886e-18) (0.508894 1.15123 -5.20632e-17) (0.667647 1.14393 -2.09929e-16) (0.379218 2.89647 -1.75169e-17) (2.56166 2.50405 2.29765e-17) (1.04794 3.00951 1.37409e-16) (0.551418 1.83204 2.47391e-16) (0.359865 0.334629 -1.83388e-16) (0.325358 2.30865 -8.95158e-17) (0.931735 0.757279 9.41429e-17) (0.261506 2.54128 -9.20711e-18) (0.0746345 2.14066 1.48724e-19) (0.623336 1.15941 1.2363e-16) (2.31425 0.0968084 7.48827e-16) (-0.119106 3.04624 1.52851e-16) (2.40163 3.86231 -1.32144e-16) (0.118188 1.54091 -2.82071e-17) (0.327558 3.47325 -5.3244e-17) (0.302954 0.238922 2.91993e-20) (0.504444 0.0537774 7.29967e-17) (0.250684 0.0755319 3.23916e-16) (0.7036 1.15922 0) (0.524247 2.21818 0) (0.59037 2.40865 1.19147e-16) (0.655943 1.34472 3.08507e-16) (0.522598 1.8258 -2.91693e-16) (1.16655 2.74138 -1.00614e-16) (0.729049 -2.29618 -2.53409e-17) (0.532407 0.0865889 9.33914e-17) (0.435501 0.130588 -1.87309e-16) (-0.222131 -0.305382 -7.66768e-17) (-2.47455 -1.06781 2.11543e-16) (0.229606 -0.0940368 1.11237e-17) (0.0518634 2.4359 -2.60913e-16) (2.14269 0.0424486 2.23435e-17) (1.59498 4.89228 -6.07596e-17) (0.328457 2.01505 3.239e-16) (0.714958 1.33248 1.81669e-16) (0.630901 1.52116 0) (7.24386 0.0675999 -2.38355e-16) (8.41323 0.409747 0) (3.90989 1.58642 -9.46077e-17) (0.0527347 2.21897 1.99038e-16) (0.360593 2.92173 0) (0.533799 0.0221012 3.85525e-16) (6.73462 0.918489 1.55921e-17) (2.68337 0.64524 1.25486e-16) (0.405335 1.60044 -1.42149e-16) (1.54002 -1.81982 1.0744e-16) (0.436441 0.145065 0) (0.386289 0.123558 1.95707e-16) (0.575896 2.55109 1.97668e-16) (5.03158 1.82626 -1.01922e-16) (1.14606 -2.56263 5.00764e-17) (0.150111 3.42578 2.0751e-16) (0.170494 1.87476 0) (1.0431 0.790039 0) (0.359371 2.02537 6.53417e-16) (2.3779 0.103896 6.42973e-18) (1.23685 2.2715 1.24253e-16) (-0.299557 0.611279 5.0826e-16) (1.28615 1.08758 0) (0.676309 1.4917 0) (0.951781 0.168256 1.70833e-16) (5.70019 4.33837 -3.59777e-19) (0.490113 2.53355 -1.97165e-16) (0.406198 2.25626 -1.2781e-16) (10.0532 0.510246 -9.64026e-18) (1.02302 1.0502 -5.80871e-19) (0.834272 3.34048 3.84581e-17) (3.79566 0.246781 3.21643e-16) (-0.0626276 2.68457 0) (0.460763 0.050141 0) (0.28634 0.803074 -4.26763e-16) (0.836993 1.1016 5.30892e-16) (0.620605 0.298609 0) (0.353928 0.913143 3.02534e-16) (0.56454 0.426402 0) (2.00929 1.24265 -1.86087e-16) (0.529148 0.741001 7.55939e-17) (0.964787 1.25997 -3.24037e-16) (0.959635 1.14499 0) (1.23601 2.18149 8.86228e-19) (0.707661 1.38996 9.25221e-17) (0.39214 0.0300545 4.53087e-18) (0.0334094 -0.929348 -9.26255e-17) (0.421212 0.0487788 -9.03776e-17) (0.680067 1.09914 -8.12819e-17) (0.35738 2.47466 -4.45573e-17) (0.399306 2.1606 -1.89479e-16) (0.33261 2.78062 -1.02904e-16) (0.609354 0.0509553 -1.84322e-17) (0.341114 0.0750359 -5.85857e-17) (0.81508 2.93781 7.16552e-17) (3.71751 0.698402 -8.90846e-18) (7.40067 0.429113 7.78641e-21) (7.96934 0.556581 0) (0.613074 0.13395 6.05046e-17) (0.479316 0.129666 -2.596e-16) (0.852508 1.14186 1.92697e-16) (0.336579 0.203367 -1.57504e-17) (0.396335 2.66021 0) (-0.13079 1.95396 -2.78667e-16) (1.26482 2.56136 -6.57412e-17) (-0.800752 3.87205 2.31855e-16) (2.0489 0.0682434 -1.05157e-16) (0.437196 1.81127 7.04277e-17) (0.535102 2.94877 -1.33942e-16) (1.07168 1.23254 0) (3.55007 1.42384 -1.42515e-18) (0.0593158 -0.520133 1.10333e-15) (1.00848 0.0290728 2.50242e-16) (0.0578676 0.027138 -1.11826e-15) (0.264393 2.81013 7.2554e-17) (-0.0594097 1.32591 0) (0.529887 1.30431 -2.27826e-16) (8.04122 0.455203 0) (8.67328 0.631684 0) (0.294083 0.0466317 1.82121e-16) (1.56212 0.0126012 9.37709e-19) (0.401566 0.0589493 -3.40217e-16) (1.8881 2.74797 -3.7828e-16) (2.26943 1.04274 0) (6.98003 0.783979 3.07701e-17) (7.48931 0.532495 1.72079e-17) (2.44651 1.18529 0) (-0.0118358 2.83199 2.39054e-16) (2.83978 2.39272 -1.24374e-16) (-1.7872 -0.826304 -2.76269e-16) (0.180812 0.0735993 2.63727e-17) (0.910524 0.00908513 9.02544e-18) (2.26999 2.72105 2.59156e-17) (0.846732 -0.000800544 -3.41713e-17) (6.71391 0.408638 -2.9701e-17) (7.25865 0.484453 0) (0.467381 2.31172 0) (0.558715 1.95539 -3.52048e-20) (0.499517 2.5624 1.24668e-16) (1.06458 0.0444703 1.92137e-16) (0.84592 0.040495 -1.56259e-16) (0.936468 0.0414417 1.56721e-16) (1.00054 0.0283782 -9.20947e-18) (2.72913 0.0727809 -2.65278e-16) (1.30444 0.253414 0) (0.81417 0.0131601 0) (0.950544 0.324076 -2.55907e-16) (1.5093 0.808628 5.80726e-16) (0.542084 2.75265 8.49414e-18) (0.408477 2.95808 0) (0.39793 2.16526 0) (-0.508791 1.43537 0) (0.0306011 0.0950233 4.1435e-16) (0.421814 0.121452 1.70178e-16) (1.09684 0.0364706 -7.33262e-17) (0.701194 0.0287286 0) (-0.0500704 0.77136 7.38802e-16) (-0.00961064 1.60434 1.53811e-16) (3.00284 0.0818254 2.52509e-16) (0.748577 1.94682 0) (3.25096 0.0883725 0) (0.28868 0.0583736 -2.80277e-17) (0.570014 0.0464994 2.17768e-16) (3.4573 0.162402 -5.57278e-18) (0.256487 2.68768 -2.88111e-16) (0.410797 0.0292293 8.75907e-16) (-0.174899 0.800918 -3.05293e-16) (0.28545 -0.00401197 -4.25612e-16) (5.47908 1.85054 -1.0132e-17) (0.318614 0.64955 0) (0.71343 2.02351 1.53147e-16) (0.0271973 1.25746 -3.84795e-16) (1.41571 1.09743 1.54219e-16) (0.178327 0.405432 2.79894e-17) (0.24607 3.12278 7.57748e-17) (-0.35169 0.988562 1.30213e-16) (1.15565 -0.00623559 -3.05298e-16) (0.469168 2.49422 0) (3.20608 0.161479 0) (-0.328456 1.59878 0) (0.453733 1.69776 3.50953e-16) (2.74894 0.136883 0) (1.47018 -0.0168518 0) (0.791048 -0.0176464 1.86957e-16) (0.448838 2.59252 -2.46579e-16) (4.99332 0.182637 -2.26475e-18) (1.53591 0.623884 2.45274e-16) (0.790795 1.69075 1.33366e-17) (0.998593 0.147919 8.12995e-17) (1.58426 0.118073 -3.02258e-16) (2.05615 1.57318 -2.64596e-16) (2.55515 0.113983 1.41882e-17) (1.71281 -0.0381565 1.30569e-16) (0.521496 -0.0279608 1.42084e-16) (0.533095 0.986697 4.66323e-17) (0.725037 1.11989 3.97674e-17) (0.581274 2.44377 -2.06875e-19) (4.59887 4.02904 -3.93342e-18) (0.362149 2.93492 1.42104e-16) (0.907206 -0.0283046 0) (4.33182 0.167858 0) (0.44579 2.06915 6.07639e-19) (0.605638 1.75721 0) (0.502426 2.35664 1.51591e-16) (1.79899 3.32 0) (1.86977 -0.0113162 0) (0.652276 1.29128 1.55219e-16) (0.981714 0.856435 4.3435e-17) (1.68981 0.714443 -7.34463e-17) (0.601731 0.098295 0) (1.43508 0.96457 -4.08178e-16) (0.737759 1.00904 -2.73184e-16) (1.5147 -0.00265258 -4.82645e-19) (1.27393 0.00120536 2.85584e-16) (0.859796 2.94381 -8.89606e-18) (0.733306 -0.0134916 -6.5859e-16) (2.96376 0.153838 0) (-0.118531 0.466988 -9.53407e-21) (0.441771 0.901685 0) (4.81225 0.115627 0) (0.0811053 2.44577 0) (0.464554 1.0433 -1.50755e-16) (1.12208 0.982338 -1.39155e-16) (8.68998 0.45262 9.35061e-18) (9.75392 0.737375 -1.61741e-18) (0.611689 0.752763 4.90613e-17) (1.56567 -0.0196225 -4.65071e-18) (0.413132 1.95579 1.31929e-16) (4.09289 2.44925 1.58611e-17) (0.187611 2.04671 2.94471e-16) (6.06617 0.788136 -2.05287e-17) (0.244461 3.12559 -2.86893e-16) (1.38157 -0.0074273 0) (0.848476 -0.023906 1.70806e-16) (4.64909 0.174416 0) (4.40454 0.620777 1.19635e-16) (1.82863 2.4197 -4.45285e-18) (3.34606 0.830194 1.60258e-16) (-0.0737407 0.760323 -1.33657e-16) (0.0975345 0.318015 0) (0.271288 2.24292 6.39876e-17) (0.522222 1.61623 -6.97895e-17) (4.17779 1.99925 -1.92024e-16) (2.28479 1.1575 -2.79898e-16) (3.51335 0.08086 0) (3.96788 0.0438776 5.47941e-17) (1.61382 -0.0188929 -2.6451e-16) (0.850805 0.366197 0) (1.84041 0.892451 0) (0.500032 0.0172158 0) (0.453178 2.03181 0) (0.502863 -0.670568 -1.15389e-16) (0.429862 -0.102703 -7.21745e-20) (9.90343 0.240661 6.93057e-18) (0.6814 3.19503 3.67093e-17) (8.91953 0.0319355 0) (5.916 0.961171 8.12318e-18) (1.25275 1.09463 -1.79386e-16) (4.4558 0.335699 -2.29396e-16) (0.332031 0.418981 6.06858e-16) (0.577668 -0.118965 5.57452e-16) (0.469877 0.118083 -4.54349e-16) (0.451194 1.89365 2.05671e-16) (0.490055 -0.021097 -4.43905e-16) (2.55613 5.64688 1.48463e-16) (0.57494 0.227708 -1.98854e-16) (-0.422165 3.23297 1.09593e-16) (1.40856 3.04667 0) (1.25518 3.51694 2.46679e-18) (-0.389847 1.46134 1.08875e-16) (0.692148 0.802889 -2.01837e-17) (0.495358 0.479109 1.84618e-16) (0.182995 0.262934 -3.30192e-17) (1.37022 0.649868 -1.76902e-16) (0.268001 0.06339 -7.02175e-21) (0.681941 -0.0131068 3.22406e-16) (6.9575 0.448583 1.4057e-16) (0.48901 1.96882 -1.62452e-16) (2.37753 2.42491 -1.71313e-16) (0.347463 2.03613 0) (0.297499 1.10051 2.57701e-19) (0.781207 5.26443 -4.35277e-18) (0.277748 2.09034 5.80267e-17) (1.45517 0.428417 -1.16025e-19) (1.42637 0.370947 3.74353e-16) (0.58272 1.13594 -2.28958e-16) (0.738092 0.845023 1.1843e-16) (0.639152 1.21419 8.51086e-16) (-0.0471908 0.128616 -6.95847e-18) (0.597734 2.15647 5.2017e-17) (0.358593 1.9769 1.08873e-16) (-0.12478 1.77551 -5.40371e-16) (0.261204 3.11762 -5.02801e-19) (1.63353 2.01991 2.6275e-16) (0.0266834 2.05075 -3.33694e-20) (0.881446 3.45985 -5.09523e-17) (5.05495 0.180087 8.02735e-19) (1.98025 0.611687 -2.64406e-16) (0.0869193 0.0314904 0) (0.26387 0.0149644 8.81134e-17) (0.717562 2.49028 2.49659e-16) (3.75881 0.0623241 8.72145e-19) (-0.308177 1.20978 4.78241e-19) (1.09135 2.59351 2.4348e-16) (-0.71778 2.35845 0) (0.651216 0.887752 -9.61948e-21) (1.24232 2.01337 -7.83721e-17) (0.211131 5.37071 2.27333e-18) (0.392687 1.88096 -1.85355e-19) (7.25415 -0.0769489 -1.49911e-17) (0.724803 1.23912 -2.5602e-16) (0.986562 0.434394 -9.83574e-17) (0.337958 1.90811 0) (0.397572 -0.00989392 1.77845e-16) (-0.524987 -1.25441 1.35089e-16) (0.439449 0.0420569 -9.24127e-17) (1.22323 0.232355 -1.37104e-16) (0.985749 3.02885 0) (2.42914 0.0111282 9.18796e-17) (0.428067 0.0215589 4.36708e-17) (-0.402648 1.12965 -2.9085e-16) (1.47584 0.149249 -3.32243e-16) (-0.298663 -2.13699 -1.33168e-16) (0.0221299 0.805997 1.16798e-16) (1.79474 0.448005 4.83058e-16) (3.75315 0.391727 1.65397e-17) (4.55264 0.0783111 0) (0.426014 2.72333 0) (0.191075 0.666248 0) (-0.189457 1.50981 0) (1.27379 2.05289 7.35357e-17) (0.801312 0.840122 -8.34899e-17) (1.35875 4.0597 3.2008e-17) (-0.0598823 2.53629 4.34322e-16) (-0.0985749 2.02779 0) (3.07329 8.11784 0) (2.58725 9.02824 3.12338e-17) (0.142202 2.54085 -1.64092e-16) (0.937805 0.180934 0) (0.266412 2.36306 5.27193e-16) (0.349793 2.68791 -4.39973e-17) (0.28518 0.254213 1.63553e-16) (0.338491 0.487764 2.15838e-16) (3.46153 -0.63025 -1.27436e-17) (-0.32042 0.820106 2.95141e-16) (-1.31539 1.75014 -1.73831e-16) (1.37794 5.33807 -7.63238e-17) (4.7298 0.799858 2.1398e-17) (0.982271 2.42104 0) (0.187515 -0.0781844 6.56366e-17) (0.646675 1.67318 0) (0.635074 1.92599 -3.52385e-16) (0.193699 0.0433117 5.52094e-17) (0.9042 1.11589 1.16399e-16) (1.01917 1.94747 2.61362e-16) (0.973405 0.808675 5.02845e-16) (0.317075 0.0670562 0) (4.15841 0.0387025 -5.75207e-17) (0.172163 1.61655 -4.53568e-16) (-0.219944 2.33606 0) (-0.248427 2.08778 8.46398e-19) (2.18252 0.564271 -1.02077e-16) (0.470015 0.585514 -6.49154e-17) (1.38117 1.78319 -2.3395e-17) (0.361609 1.09905 2.9347e-16) (0.437489 3.14703 -6.96051e-17) (5.31663 0.193059 8.37221e-18) (6.72135 0.418169 0) (0.0632379 -0.0752447 1.92801e-16) (0.143088 0.0855035 -4.18413e-20) (0.653893 0.514069 -6.92313e-16) (0.488814 0.636797 1.00068e-15) (1.38209 0.34118 2.68207e-16) (2.0776 0.125321 -2.03944e-17) (-0.00375078 0.889873 -2.50121e-16) (0.0225043 1.9488 0) (0.13012 3.23027 0) (0.0561071 1.8111 -2.4736e-20) (-0.12482 3.00771 0) (2.22528 0.774363 -1.24624e-16) (0.762882 1.06891 2.92124e-16) (0.266938 2.02528 0) (0.375743 0.0127757 -1.01963e-16) (-0.239763 -0.712931 -1.27872e-16) (0.417585 0.0383057 -9.9985e-17) (0.42169 -0.198842 6.9468e-20) (0.399468 -0.0167855 4.10571e-17) (1.70698 2.13394 0) (4.09227 0.291665 -4.07459e-19) (0.73905 2.41625 0) (0.749552 0.175327 -2.92616e-16) (0.247237 1.66115 8.44563e-17) (0.656913 0.854046 2.48314e-17) (1.69132 2.04102 1.34837e-16) (0.407183 2.25731 1.58223e-16) (0.708525 3.00356 -4.17361e-17) (0.384871 0.0717006 1.49519e-16) (1.66148 0.0504007 0) (0.295166 0.0764488 2.16005e-16) (0.340892 2.25048 0) (0.536777 3.72955 7.03449e-17) (1.50317 0.0888092 2.30928e-16) (0.442137 -0.0606083 1.99795e-16) (0.875447 0.0129746 7.13667e-16) (0.9887 -0.00526929 3.88346e-16) (5.94117 1.8205 0) (1.73536 1.42398 1.44224e-16) (2.2989 -0.0613592 0) (1.86699 -0.0337885 0) (0.759248 1.98031 -1.02628e-16) (1.44709 1.35205 1.84662e-17) (2.97087 0.492954 -5.95229e-17) (0.0181304 0.204476 2.74738e-17) (0.302609 1.94208 -1.63163e-16) (-0.507674 -0.0468487 4.44922e-17) (1.51438 0.0833423 -4.02085e-16) (1.93777 0.317021 -1.61464e-17) (0.45688 1.76643 1.39915e-16) (9.99843 0.0383491 3.31735e-18) (11.8981 4.45024 0) (9.20665 0.707685 0) (0.419956 2.73832 -2.50976e-17) (0.848946 3.82906 0) (0.466449 0.000875069 -1.25094e-16) (0.443975 -0.0754086 -9.07873e-17) (0.471255 0.0544897 9.28727e-17) (-0.973516 -2.04447 0) (0.383071 2.92556 -2.4521e-16) (0.48374 2.35264 -1.80895e-16) (1.86373 0.776563 -5.37558e-16) (1.21799 1.85485 2.41209e-16) (0.534411 1.77816 -4.37336e-16) (7.49794 0.509326 3.32968e-17) (0.431611 2.34254 2.53112e-16) (0.372256 0.0488205 -4.09735e-20) (0.367612 2.93644 0) (3.2278 1.23873 4.52076e-17) (-0.0594079 0.429233 1.79129e-16) (-0.0957135 0.284252 3.33132e-19) (-0.0479319 -3.06834 -7.40258e-17) (-1.03755 -0.159487 8.35372e-17) (0.0275982 -0.015449 -2.18044e-17) (0.454362 -0.00790358 -3.61823e-16) (0.643358 1.13155 4.51421e-16) (0.806983 3.61836 1.50845e-17) (0.0301256 0.144144 -2.20115e-16) (2.10776 1.15635 1.83684e-17) (8.65385 3.35874 4.14784e-18) (0.702915 0.585448 -1.41781e-16) (2.21724 2.33975 5.27345e-17) (0.753376 1.17164 -9.77122e-17) (1.53445 -0.0565609 3.99246e-16) (1.53026 4.08542 1.66125e-16) (0.485307 0.188666 -3.50541e-16) (0.39477 1.68863 0) (0.831697 3.63198 0) (0.278729 2.17069 2.52216e-16) (1.55444 0.153208 4.53533e-16) (1.61175 0.0706881 -2.37844e-16) (0.0523328 0.967147 -7.18068e-17) (0.754974 3.03894 -3.7964e-17) (1.38491 0.862971 -1.71219e-17) (-0.174536 2.25023 0) (0.657604 -0.0362159 -4.2622e-17) (1.01926 1.19831 -1.86616e-19) (0.954312 1.61115 5.35908e-16) (2.22379 0.290967 -1.95179e-16) (-0.0541408 1.76386 -6.07762e-17) (-0.111397 3.26973 0) (0.243925 -0.0938524 -4.30138e-17) (0.0287582 2.58458 -2.23823e-16) (7.83899 0.707596 -1.12918e-16) (-0.0903975 1.0114 -1.22932e-16) (-0.214604 2.60846 -4.49451e-16) (7.38768 0.47451 -3.79856e-18) (-0.329784 2.51308 9.26667e-17) (0.49212 4.47096 -6.70117e-18) (1.16726 3.95469 1.87248e-16) (0.617866 3.11504 1.11673e-16) (0.592374 2.43107 1.81508e-16) (0.664016 2.97597 0) (0.857694 1.50234 6.52693e-17) (0.825511 1.58667 -2.22301e-16) (0.707614 2.00719 -1.09447e-16) (1.79012 2.75497 9.20023e-17) (0.3512 0.21765 1.04536e-19) (0.908046 0.0462369 9.43545e-17) (0.577476 0.177794 -2.9098e-18) (0.574879 0.474403 -6.64898e-17) (0.793505 1.64516 -7.42991e-17) (2.33288 0.0834107 5.58322e-17) (0.658509 1.15804 8.16923e-17) (3.21601 1.44296 -5.05483e-17) (6.01993 0.0670068 3.93203e-17) (5.57637 0.202312 -5.33704e-17) (0.439515 -0.0239222 0) (4.76173 -0.110405 -2.43618e-16) (0.452231 -0.0111414 0) (4.74572 0.0319141 0) (4.93558 -0.0939598 -1.9911e-16) (6.16645 -0.20482 0) (5.09327 -0.159649 4.87399e-17) (0.0771008 2.3071 0) (0.583227 2.60021 -2.2047e-16) (0.277025 0.860982 -7.7336e-16) (0.219741 2.31394 -3.63824e-18) (1.87631 3.10751 0) (4.34378 0.052508 6.69675e-18) (0.454525 0.181268 -4.26154e-16) (1.23597 0.144118 -1.61319e-16) (0.294235 0.237927 2.45591e-16) (-1.69628 0.303958 -6.27184e-16) (-0.18522 -0.0417419 -4.75236e-16) (10.547 0.658146 6.44873e-17) (0.839134 3.14885 0) (1.06671 -0.017002 -3.04915e-19) (0.351046 5.35807 -1.898e-17) (3.72782 0.164356 -2.59096e-18) (0.341349 0.0486531 0) (0.362211 2.9348 2.16273e-17) (0.497325 0.0708566 0) (0.649852 1.23077 -1.70371e-17) (0.514377 1.42474 -9.16724e-17) (7.84241 0.728092 3.00427e-18) (-1.2505 -2.27911 3.70972e-16) (0.940363 -0.272992 4.8159e-19) (0.681065 0.0378995 -8.92664e-17) (0.349572 0.0377932 0) (0.447249 -0.0613082 1.43549e-16) (0.343898 0.0199577 -2.15419e-16) (-0.106451 -0.211216 -3.94409e-17) (0.389899 0.0475642 1.58399e-16) (0.854271 1.23188 0) (-4.39519 0.989741 1.58214e-16) (0.965992 0.443134 9.31855e-17) (1.16025 0.592601 0) (1.5045 2.11385 -7.56942e-16) (0.565446 0.857071 0) (9.6386 1.65256 2.88928e-16) (1.44812 2.51095 0) (0.0973637 2.38647 -2.53253e-16) (7.10773 -0.0113053 5.21927e-17) (1.46873 0.346203 -5.78094e-17) (0.345848 2.24551 -1.38243e-16) (1.6521 2.69933 2.04828e-16) (0.157132 1.70241 -4.29755e-17) (0.24955 3.12892 -1.50427e-16) (0.666465 0.247742 -1.10499e-16) (1.71906 2.87114 0) (0.237682 0.430383 0) (0.428711 0.428356 0) (1.42549 1.09833 -1.36918e-16) (0.221812 0.734787 -1.62125e-16) (1.71734 0.424915 -6.12203e-17) (1.18009 0.25621 0) (0.371528 0.372135 -1.71821e-16) (-0.365323 3.11922 -1.44384e-16) (-0.261677 1.716 3.52029e-16) (0.493204 0.0536781 -9.70919e-17) (6.39567 1.73386 0) (0.315097 2.32636 -1.7137e-19) (2.72011 0.809456 -6.60518e-17) (2.19877 0.0965817 -2.10819e-16) (0.7316 0.159577 2.88845e-16) (0.824959 0.156028 2.17901e-16) (0.606224 2.55582 1.70683e-16) (0.51734 1.76682 6.99195e-16) (1.46647 -0.0401252 -2.0039e-19) (0.796128 0.106884 -1.08205e-16) (7.02098 0.873097 0) (0.0518078 1.37679 -6.11221e-16) (-0.112388 2.71793 3.35526e-16) (2.4165 0.0928248 -2.99002e-17) (4.8083 0.0578801 0) (2.04223 0.104938 0) (2.66453 2.50204 1.12778e-18) (0.494918 0.593704 4.38763e-17) (0.189046 4.68781 0) (2.04538 0.00392991 3.23591e-17) (0.611645 1.23974 -2.18434e-16) (1.17456 0.817179 0) (1.33429 0.83601 0) (2.96191 1.04146 6.2738e-20) (1.05452 -0.0218081 3.23958e-16) (0.598375 1.80764 1.56537e-16) (1.03721 2.42479 2.00676e-16) (0.808092 2.22221 5.57127e-19) (1.0283 0.908027 2.91361e-16) (-0.0923827 2.2086 0) (-0.0689437 1.80666 4.96624e-17) (0.628002 1.18836 -7.33249e-17) (0.137418 1.9929 1.79207e-16) (0.128205 -0.591217 3.95071e-17) (-0.0255204 1.65332 5.8242e-17) (-0.0712244 3.25249 -5.32154e-17) (2.00519 2.12722 -1.95461e-17) (-0.483574 2.12737 -3.58281e-16) (0.648679 1.28195 -1.11446e-16) (0.296066 0.0610711 -2.96107e-16) (1.65489 0.0174169 1.39491e-16) (0.386892 0.0575575 4.23155e-16) (0.450454 0.810229 0) (0.736039 1.08643 8.59303e-17) (0.372267 0.454193 -2.85642e-16) (0.409533 2.23728 0) (0.411298 1.86897 1.05459e-16) (0.640882 1.32485 -2.97981e-16) (0.656938 2.31407 0) (0.695908 2.00214 1.64434e-16) (0.660746 2.611 1.2984e-16) (-1.25243 0.613544 3.28778e-16) (0.233784 1.8743 5.4646e-20) (0.479 -0.0192651 0) (7.0507 0.533953 1.52633e-17) (-0.913334 4.37499 9.22183e-17) (10.7456 11.4762 -1.25748e-18) (0.702973 1.42945 -6.38932e-16) (-0.0899286 2.47739 2.42658e-16) (0.347167 1.4505 0) (0.373116 2.61643 4.49109e-17) (0.0753534 1.51636 1.54117e-16) (0.337156 0.0612712 0) (0.0738443 2.47079 -4.81061e-16) (0.485933 1.10916 4.88725e-17) (0.257899 -0.0220462 -3.60721e-16) (0.302298 -0.0200078 0) (0.624615 3.35388 -1.80151e-17) (0.814255 2.6986 -8.78508e-17) (0.933602 2.88964 4.88172e-17) (1.62155 2.6382 2.62595e-16) (0.488837 0.0536328 -1.43341e-17) (0.981966 0.849776 2.51555e-17) (-0.195364 1.14652 2.04256e-16) (1.41217 0.0121429 1.38018e-16) (1.01737 1.68203 1.63523e-16) (0.904812 1.91938 -6.2272e-17) (0.959799 2.21393 0) (5.9582 3.14638 2.86266e-18) (2.06049 0.474789 -1.27321e-16) (9.41654 0.692736 0) (0.730396 0.0927442 3.50495e-16) (0.244535 1.92173 -1.21016e-16) (0.416129 2.03372 2.17864e-16) (1.5033 0.0249314 1.61846e-17) (0.338038 0.0885121 -3.26769e-16) (2.4338 0.117057 -1.34274e-16) (-0.0810308 2.67171 -1.71616e-16) (6.4772 0.495341 8.30913e-17) (7.53867 0.537271 -1.25771e-16) (1.84132 1.76857 -1.78466e-16) (1.70079 1.79021 0) (7.70913 1.05457 3.4221e-18) (0.351906 0.0841977 2.00592e-16) (1.79661 -1.30501 -2.90797e-17) (0.353939 0.129289 0) (0.105832 1.60814 -6.53701e-17) (0.248656 1.28183 -3.49731e-16) (0.533483 6.61359e-05 4.12929e-17) (0.386053 2.77243 9.75153e-17) (0.226609 0.0324036 0) (6.70653 1.08979 1.58663e-18) (0.843675 2.78548 -1.36563e-16) (0.0325985 1.55473 -2.24876e-16) (0.363815 2.40156 1.80051e-16) (-0.0651299 1.67398 -6.89406e-17) (-0.146198 3.12395 0) (0.539031 0.0178443 -1.90815e-16) (0.307974 0.0644742 -3.76137e-16) (0.46009 -0.00826913 1.9219e-16) (7.71556 0.854906 8.10973e-17) (3.2166 2.07249 0) (1.06764 1.8669 3.56197e-16) (0.416194 2.49529 -4.58233e-16) (0.843742 2.32688 -6.22569e-19) (0.318102 0.0826439 5.14493e-16) (0.0559932 0.125996 -4.85487e-16) (1.43747 4.65569 -1.51613e-16) (0.922912 1.13806 0) (0.0184574 0.138959 1.76583e-16) (2.29494 0.158658 1.32249e-16) (0.663098 2.7947 -4.37106e-16) (1.42004 0.00947701 -4.63672e-19) (-0.27063 1.76162 1.68883e-16) (0.693633 -0.144092 -8.29521e-17) (-3.26955 -0.680477 -1.55464e-16) (0.770931 -0.075979 -1.46322e-16) (0.45347 2.55756 -2.16345e-19) (2.43621 0.389452 2.83729e-17) (4.03683 0.165237 1.06528e-17) (1.06505 3.95086 0) (0.8689 0.556701 3.11017e-16) (0.0901833 2.99176 -7.3199e-17) (0.0377539 1.67501 9.26836e-17) (0.31594 2.82055 4.71812e-17) (0.0980266 1.61388 -1.21079e-16) (-0.173997 3.03547 0) (0.0708184 0.980559 7.00684e-18) (0.00598355 2.1883 1.83897e-16) (0.228118 5.39427 -2.78262e-18) (0.34651 0.0352913 2.03165e-16) (0.405876 0.0383171 0) (0.328038 0.295876 3.13972e-20) (0.209715 0.0542924 -2.56341e-16) (0.613829 0.0236443 0) (0.338675 0.0553104 2.9237e-16) (1.3923 0.452429 0) (0.472964 2.69108 -1.26332e-16) (5.67777 0.199711 1.9428e-18) (6.22673 0.31622 -1.93449e-17) (2.95936 2.46111 -1.53598e-16) (0.497354 1.99797 -1.07851e-16) (0.266176 1.58561 0) (1.64929 -0.0594357 0) (1.49176 -0.0480955 -1.38182e-16) (1.59083 -0.0475787 -1.90378e-16) (0.0986064 1.62897 0) (0.127282 3.0634 2.40146e-16) (0.519041 -0.235296 4.78433e-18) (0.44638 0.0749279 1.3744e-16) (0.33418 0.863371 7.70112e-16) (0.622817 2.04474 0) (0.438495 0.0470938 -1.84497e-16) (0.314014 1.46055 4.28767e-19) (0.346845 2.02872 -1.18952e-16) (2.08053 2.56187 -3.38255e-17) (0.588227 1.66165 1.865e-16) (5.88437 0.29462 7.16338e-17) (0.0118495 0.30819 -9.627e-17) (1.56825 0.228574 1.10725e-17) (0.137728 0.163623 -1.18144e-16) (0.430065 2.33886 8.66388e-17) (0.883714 2.80052 -1.39746e-16) (1.96371 1.75251 4.52493e-16) (7.81549 0.515207 -1.12429e-16) (0.429621 1.91364 -6.00897e-20) (0.565967 0.812778 -1.7902e-16) (1.05808 2.01032 1.48619e-16) (-1.05934 3.81836 0) (0.408264 0.0405588 4.11699e-17) (0.544828 -0.28868 9.03087e-17) (0.573411 0.617974 -3.43078e-16) (1.15643 0.331493 -1.33943e-16) (-0.345801 0.655684 -1.46112e-16) (1.05254 2.82369 -1.26456e-16) (0.349441 0.0758541 1.83698e-16) (0.286545 0.0791049 -9.42602e-17) (0.804851 0.0508563 2.22026e-16) (0.896655 0.0426542 2.22923e-16) (0.714132 0.463963 0) (0.97754 0.329318 -1.25032e-16) (0.293149 1.19681 0) (0.153082 2.08307 -1.43213e-16) (1.01206 2.75947 0) (7.95311 0.340317 0) (-0.148811 2.95353 0) (-0.0367239 1.58344 4.01502e-17) (2.14975 0.48184 0) (6.84237 0.510391 -1.34207e-17) (1.26876 0.252377 9.423e-17) (6.15354 1.03186 0) (0.734523 -0.0255519 5.12689e-18) (0.388254 -0.425 2.45155e-16) (2.48235 0.51336 -1.42495e-16) (1.95477 0.276509 0) (0.170612 2.67268 -4.51001e-16) (-0.175511 1.95271 0) (6.0226 1.93677 -3.47038e-17) (0.910951 2.27516 -1.4296e-16) (2.1722 0.336525 8.32545e-17) (0.0826716 2.16324 2.91581e-17) (0.352476 5.47306 -7.71506e-18) (0.103376 1.03892 0) (1.61729 0.237655 0) (2.27639 0.0763337 3.09723e-16) (1.37105 1.98047 0) (0.671487 1.75504 2.83931e-16) (0.389457 1.79126 8.04091e-17) (0.570771 1.92437 -2.99803e-16) (0.249865 2.11221 0) (1.4065 0.104699 1.64886e-16) (0.941052 0.0233607 2.50768e-16) (0.853641 0.0300593 8.81054e-16) (1.05929 0.0351561 -6.1789e-16) (0.398591 0.178134 2.95257e-20) (0.443265 0.118907 -1.24368e-16) (5.5737 1.29899 0) (0.177311 3.05638 -2.22408e-17) (0.91292 0.297497 3.28542e-16) (0.803414 0.411975 -1.77001e-16) (7.78773 0.588377 8.55898e-17) (0.592181 0.563986 -9.52438e-17) (0.453938 0.0443458 -9.3915e-17) (2.66608 0.323302 -4.465e-17) (0.597327 -0.0681269 -7.21671e-17) (0.501626 4.72949 -1.25754e-16) (0.974066 -0.0291991 -3.36602e-16) (-0.0117157 2.34385 -1.05887e-18) (0.00882668 2.13094 0) (0.247383 1.94898 -9.087e-17) (0.768045 0.981541 9.71603e-17) (0.416758 1.87004 1.80867e-16) (0.409045 1.93199 4.65939e-17) (1.40765 0.491658 -5.57329e-16) (0.348944 0.028417 4.12597e-16) (0.36032 0.0262334 -1.33671e-16) (-0.0709701 -0.38454 0) (0.400712 0.0325522 1.96321e-16) (0.904814 0.0978068 2.65747e-16) (0.988909 0.0867066 -3.98607e-20) (1.11155 0.124478 0) (0.442555 1.30339 -2.58021e-16) (0.244213 2.51296 8.98864e-17) (1.16284 0.677103 0) (2.57291 4.8428 1.88516e-17) (0.538855 0.46381 0) (0.55458 0.305723 -2.20573e-17) (0.888717 2.5014 -7.19728e-17) (1.00802 1.33873 -5.62844e-19) (0.370253 0.260532 0) (0.0208329 2.47637 1.89878e-16) (-0.198802 2.77164 7.14533e-17) (0.37512 0.376839 0) (2.41446 -0.122799 0) (1.93542 -0.0557257 -1.42712e-16) (0.419956 1.02895 -1.71728e-16) (1.80136 0.166373 2.48727e-16) (2.34479 0.0181814 -7.27761e-19) (0.431738 2.36864 3.29461e-16) (8.64646 0.284421 -6.78989e-17) (0.219233 1.62808 -2.90302e-17) (0.573347 3.84091 2.80385e-17) (0.354237 0.0497785 6.21174e-16) (0.402821 0.0501642 -3.0393e-16) (0.564368 -0.301314 1.09059e-16) (0.219842 0.968339 7.0057e-18) (0.0972704 1.68601 -8.0659e-17) (2.0103 2.86742 -2.18534e-18) (1.01536 1.20096 5.54898e-16) (0.306955 -0.0985511 1.09814e-16) (0.441799 0.0404721 0) (0.87319 2.04005 1.00974e-16) (0.458403 0.0381027 4.63719e-17) (1.6219 2.98774 -2.96183e-17) (0.445734 -0.00114473 0) (-0.315427 0.540065 -9.08227e-16) (1.52369 0.847997 1.46815e-16) (1.49656 0.559938 2.74078e-16) (1.12238 0.211765 3.66226e-16) (0.255252 0.273857 0) (7.48054 0.523368 8.5341e-17) (2.24394 0.119152 5.83916e-17) (0.443996 3.06425 0) (0.32721 1.45315 -1.14508e-16) (0.404067 2.03719 0) (0.452035 1.72019 1.95411e-16) (0.28699 2.60142 0) (0.698928 0.0749593 2.5595e-18) (0.569119 2.91825 1.22015e-16) (0.281045 2.74221 1.28614e-16) (1.85001 0.241422 0) (0.284943 0.309028 0) (0.100694 2.30742 -2.05636e-16) (0.438473 0.0963421 -3.99764e-18) (7.2933 -0.029546 2.20552e-16) (0.544875 3.79967 -2.63297e-16) (0.497738 0.135034 7.11517e-16) (0.395097 1.90084 0) (0.709348 3.10175 0) (0.384334 2.61301 0) (1.87843 0.184976 -1.07469e-18) (1.78124 6.24918 -6.43633e-17) (4.52054 5.47173 -2.88853e-18) (6.24868 0.531464 7.10804e-19) (0.41665 0.0159833 0) (0.408154 0.970586 0) (0.0286547 0.536613 0) (2.71027 0.552548 -4.71536e-16) (0.139095 0.916208 -2.15125e-16) (0.204876 2.23217 -1.3604e-16) (0.669268 7.48211 0) (0.285472 0.103822 -4.48365e-18) (2.28355 5.90909 2.74502e-18) (0.304999 1.42447 -4.65518e-16) (0.2326 0.561895 -4.03029e-16) (0.20643 2.09219 -1.06988e-16) (0.546092 1.8148 3.03428e-16) (7.43699 0.708506 3.93218e-17) (0.577186 0.0699403 7.07567e-16) (0.580694 2.56198 2.89885e-16) (0.585345 3.90011 1.48751e-16) (0.383764 1.45147 -6.13198e-16) (0.344425 1.85629 3.34049e-16) (0.0102962 0.960129 7.20017e-17) (0.70867 -0.948187 2.50091e-16) (0.35403 0.0784093 9.6832e-17) (1.7429 0.0525964 -2.92087e-16) (0.297417 0.0828424 2.82856e-16) (7.402 0.574736 1.31775e-19) (0.664209 2.01324 -2.38986e-16) (0.609819 1.36155 -5.46238e-16) (0.401006 2.30781 -6.20947e-16) (7.56306 0.580233 0) (2.35804 0.0747037 2.15053e-19) (0.457278 0.0095413 0) (1.60837 -0.0322392 2.48955e-16) (0.570332 0.808429 0) (0.933658 1.79925 -6.51543e-16) (0.227084 0.105957 -1.48232e-17) (1.85792 1.24463 1.83524e-16) (0.437419 1.14969 2.23706e-16) (0.656205 1.51623 1.13799e-16) (-1.08642 1.9507 -3.29097e-16) (0.369385 2.82286 0) (0.869752 0.61208 8.35027e-16) (0.570646 3.08642 1.65571e-19) (0.471484 0.0582724 3.2736e-16) (2.74493 0.555099 8.77937e-17) (0.317748 0.721064 3.39416e-16) (0.568339 1.77693 0) (1.07592 6.91675 0) (5.68495 -0.0796129 -2.40119e-16) (1.03299 0.377486 0) (0.374739 2.13188 9.27955e-17) (0.438724 1.78572 -1.26792e-16) (0.530463 1.81028 1.95789e-16) (0.405243 0.0445701 2.25014e-17) (1.31821 2.73526 -2.46633e-16) (7.00867 -0.403767 -1.01585e-16) (0.546955 2.28527 -1.41304e-16) (0.503935 2.58992 -2.08983e-16) (2.61346 0.058078 0) (0.342335 0.0262411 5.30236e-16) (-0.067762 0.967687 -1.65136e-16) (2.08869 0.170122 5.64219e-17) (0.455428 0.0221879 -1.35942e-16) (0.592709 0.0643626 -6.57975e-17) (0.931378 3.12559 4.06169e-16) (0.56952 1.4965 -2.0083e-16) (0.380816 2.86669 -8.45339e-17) (2.98375 -0.0759523 -1.29506e-16) (4.3151 2.45314 1.69509e-17) (0.643334 1.92501 -3.21415e-16) (6.64959 -0.288967 5.78121e-17) (0.472019 0.0259284 -3.02177e-18) (5.94745 -0.0735038 -7.49909e-17) (1.09056 2.16698 1.36227e-18) (3.41128 1.73079 -3.03604e-17) (-0.00216246 5.04536 6.80572e-17) (0.404307 1.94671 0) (-0.00821064 0.890332 3.18687e-17) (-0.0333748 0.882659 -1.10144e-17) (-0.0591542 0.830068 0) (-0.0567967 0.874836 -4.6528e-17) (-0.165587 1.96511 0) (-0.111346 1.7335 0) (-0.181852 2.17555 0) (-0.120235 2.29257 0) (0.00710015 0.887907 0) (-0.0424891 2.33772 0) (0.183406 8.94409 1.05613e-16) (0.0651941 3.18539 -2.14537e-19) (0.0865324 3.00091 1.26163e-16) (0.123862 2.56908 1.21901e-18) (0.106794 2.79222 0) (0.166771 9.96544 -9.17407e-17) (0.0203934 3.30405 -2.32902e-16) (-0.0150383 2.54746 0) (0.0987506 4.1018 -1.00907e-18) (0.142936 3.5215 -2.98329e-17) (0.125333 3.83262 0) (0.0858981 4.34772 5.66329e-17) (0.197308 8.20397 0) (0.289496 11.0731 0) (0.0626572 4.62465 -7.38594e-17) (0.334514 6.80502 -5.20621e-18) (0.270868 7.51884 -4.89173e-18) (0.0169494 4.83824 2.33791e-17) (-0.0459936 3.23459 1.21432e-16) (-0.213425 2.43653 -7.30281e-18) (-0.250573 3.03284 0) (-0.25694 2.72805 6.88437e-18) (-0.137827 2.23367 1.67328e-17) (0.0234106 2.48197 0) (0.00741432 2.35333 0) (-0.169425 3.31593 2.71129e-17) (-0.0703327 2.46148 -6.4893e-17) (0.0158104 0.862672 -2.12226e-17) (0.0690114 2.10663 4.38262e-17) (0.0480507 2.35628 0) (0.0640016 1.96 0) (0.0619045 2.2321 0) (-0.0346782 3.44917 -5.59601e-17) (-0.0456448 1.85242 -1.64086e-16) (-0.0449794 0.963563 0) (-0.0401297 0.993278 0) (-0.0975306 3.08271 0) (-0.00154857 1.83709 1.65655e-16) (-0.0816767 1.78046 0) (-0.0562248 4.86294 -3.22959e-17) (-0.0911319 1.6938 -8.04863e-17) (0.0302227 1.75928 3.93473e-17) (-0.0385358 0.936393 0) (-0.0223365 0.998708 -1.76326e-16) (0.0814482 1.50898 -7.12847e-17) (0.0559439 1.64832 4.36711e-17) (-0.000532822 0.964223 1.8801e-16) (0.0155224 0.883471 5.15986e-17) (0.0618169 0.748959 2.12433e-17) (0.0330796 0.806209 -2.69428e-17) (-0.078605 1.62177 8.46369e-17) (-0.105381 2.9238 0) (-0.0562109 1.58244 0) (-0.0410123 1.54883 0) (-0.12226 2.30525 6.58031e-17) (-0.079792 2.83733 0) (-0.120126 4.74392 2.42587e-17) (-0.0492917 2.77671 0) (0.284576 2.85289 1.42627e-16) (0.0219625 0.819711 -2.07891e-17) (0.0271014 0.763364 2.13036e-17) (5.5375 3.26143 -6.44162e-17) (0.305185 1.76496 1.41022e-17) (0.0317099 0.690903 1.11571e-17) (0.030663 0.612339 2.86065e-18) (-1.52654 -0.69714 1.6869e-16) (2.38795 0.0716565 5.63335e-17) (2.35528 0.064749 -3.8764e-18) (2.3187 0.272795 5.05277e-16) (-0.0217122 0.540563 0) (-4.09562 -0.147893 1.89543e-16) (0.611279 0.512434 -9.20952e-17) (1.8392 1.13837 0) (0.456874 -0.0112398 0) (0.972034 0.0711629 2.76888e-16) (0.256352 0.0572907 -2.85012e-16) (7.55225 0.498173 1.50709e-17) (0.0800095 3.37198 -8.93474e-21) (0.0263792 2.33482 0) (0.765919 0.941953 -1.23745e-16) (0.76027 2.23944 -1.91677e-16) (0.432578 2.0497 8.35177e-18) (0.57277 0.0774142 -2.34778e-16) (1.29909 1.59867 0) (1.13808 1.42009 3.14474e-16) (0.577292 1.08552 0) (0.203161 0.52901 1.50272e-17) (-0.0442422 1.61348 -7.56e-17) (-0.155156 3.01063 0) (1.0935 2.53848 -1.47911e-16) (0.375399 0.66704 -2.08078e-17) (-1.61452 -1.04419 6.72963e-17) (0.293632 0.0541426 3.11265e-16) (1.64032 0.0731804 1.16651e-16) (0.402658 0.0486848 0) (0.415563 1.81141 0) (0.430749 1.87605 -3.45362e-16) (0.0407957 1.86866 1.61677e-16) (0.517944 -1.61142 1.00484e-18) (0.0407881 3.56763 -1.49401e-16) (0.626656 0.0249158 -5.28798e-18) (2.92249 0.632978 4.74466e-16) (0.355217 0.0714007 0) (8.38644 0.415655 -2.63172e-17) (0.463683 0.0187221 -1.40896e-16) (-0.220578 2.23727 -1.54727e-16) (0.0678142 1.5024 -1.62212e-17) (0.365517 2.59201 -1.06343e-16) (0.78012 1.0485 -3.05863e-16) (0.0199865 0.902799 -2.67749e-16) (0.0646517 1.84145 -1.09236e-16) (-0.332072 1.9178 5.76364e-17) (0.363421 0.0639476 1.71649e-17) (0.409262 1.30708 2.05924e-16) (0.17132 1.27943 -1.37007e-16) (0.196051 2.35372 -3.74265e-17) (0.74888 6.00842 0) (0.2382 2.28488 -9.94135e-17) (0.0170827 1.43298 2.80883e-17) (0.262127 2.48605 3.48767e-16) (1.60389 -0.174439 5.47376e-16) (0.430314 0.0620667 -5.57784e-16) (0.502591 1.15741 0) (1.22461 -0.915779 -1.47469e-16) (0.372608 0.0503046 1.26984e-17) (0.361671 0.0687089 0) (1.76799 -0.0211396 0) (0.138911 3.18462 -8.33091e-18) (0.0345085 2.28804 0) (1.89189 0.747285 -2.27355e-17) (-0.0493952 0.300951 3.7685e-16) (0.617201 -0.0613198 4.31604e-17) (2.27023 1.19697 0) (6.29511 0.32563 4.16451e-17) (0.174235 0.836952 2.39937e-17) (1.45432 0.500538 -3.0309e-16) (0.264653 0.248699 -2.14468e-16) (0.38694 0.175019 -1.96569e-16) (0.342571 2.38272 -1.23559e-16) (0.618671 -0.216834 -4.69667e-17) (0.348756 1.78475 -3.79184e-16) (1.18683 1.82547 1.74621e-16) (0.375436 1.90616 1.84042e-16) (0.615426 1.38539 -1.06073e-16) (0.144775 1.79789 6.64121e-16) (0.488704 2.4911 8.98804e-17) (0.540217 1.87316 9.28506e-17) (0.45622 0.00956093 -1.95913e-16) (0.372793 0.0622952 -4.24653e-17) (1.70529 -0.135537 2.15131e-16) (0.625886 -0.132129 1.22943e-16) (0.412108 0.0637532 1.42398e-16) (0.431356 0.0502387 2.47936e-16) (0.280463 1.45283 5.29079e-16) (5.94174 2.46322 1.18707e-16) (0.628203 0.0635193 2.64231e-18) (0.190968 0.999309 1.65754e-16) (0.207719 2.59426 -1.11698e-16) (1.32903 2.51134 -4.68076e-17) (-1.77371 2.03892 -1.89975e-17) (-7.20322e-05 2.46991 1.46345e-16) (0.112687 1.64347 0) (0.140207 3.08038 -1.68929e-17) (0.0577524 2.18513 -6.85355e-17) (1.46842 1.67813 -7.54386e-17) (0.491134 1.59738 0) (0.501827 0.0318754 1.02567e-15) (0.978091 1.61842 2.14896e-16) (0.379466 0.0857162 0) (0.0153018 1.36715 0) (-1.6958 -1.94402 -3.92478e-17) (0.0458362 2.49759 0) (3.12449 6.2385 1.97093e-17) (0.451915 2.44459 1.87004e-16) (0.413804 2.17138 -4.53741e-16) (0.512967 1.79238 1.18973e-16) (0.156281 2.22179 1.12862e-16) (-1.43639 1.45247 5.03594e-18) (0.337161 2.76629 1.38834e-16) (5.89756 1.57343 -2.115e-16) (0.435519 2.71492 2.15324e-17) (0.475403 2.46174 4.33121e-17) (0.463029 0.0157063 0) (0.340203 2.1557 2.60728e-16) (2.13985 0.565096 -5.50147e-17) (7.54612 0.573301 -1.06007e-16) (0.0816116 2.54789 -3.55092e-17) (0.123724 1.82935 0) (0.140011 2.8548 6.64232e-17) (0.0960878 2.02608 6.80283e-17) (0.487298 -0.031129 2.75117e-17) (1.49585 0.468661 1.99935e-16) (2.25839 0.0538648 -9.09872e-17) (-0.516411 3.49796 -1.16637e-16) (0.459481 0.0127437 1.02093e-16) (0.761218 1.19875 6.32112e-16) (7.7076 0.519483 -7.62269e-20) (1.76232 0.822027 -7.57584e-19) (0.228896 2.35202 1.44051e-16) (6.73654 1.5721 -3.86588e-19) (0.793339 -0.423575 -3.40182e-16) (0.362842 0.624102 -7.00028e-16) (0.386775 1.95548 0) (1.25507 0.114009 0) (-0.0341021 1.52121 0) (-0.0235558 2.73726 0) (1.358 2.88386 4.48298e-16) (0.132603 0.907458 -2.91382e-17) (0.621375 3.31663 -1.73274e-16) (1.78233 2.8548 -4.04588e-20) (0.682279 2.71541 0) (0.595682 2.93698 2.95552e-16) (1.27679 -0.0813504 6.66357e-17) (0.299709 0.397048 -7.04772e-17) (0.161412 1.65239 -8.36692e-17) (-0.783843 7.35094 1.09456e-17) (0.214625 2.32437 -9.71936e-17) (0.985372 0.709708 0) (0.719273 0.146421 1.03015e-16) (0.623974 0.14188 2.05535e-16) (3.28249 0.680191 -4.7892e-16) (7.17663 0.12604 4.80347e-17) (0.59938 -0.0208433 -1.92025e-16) (0.465668 0.0244834 0) (2.36696 0.169967 -1.3092e-16) (1.11533 1.2598 2.64406e-16) (-0.131588 0.908434 0) (-0.365728 1.4985 -1.76829e-16) (-0.0220518 2.72595 0) (-0.051616 1.46867 7.1147e-17) (0.0774142 1.30212 0) (-1.31738 0.133754 0) (0.101504 2.47466 1.99018e-16) (0.385215 0.0641573 0) (1.70466 0.0649078 4.93896e-18) (0.183542 2.68901 1.73267e-16) (0.467777 0.542573 -1.89893e-16) (0.241611 2.97414 0) (6.97863 0.592259 4.59727e-17) (0.386765 2.4544 3.93523e-16) (1.04388 0.353185 0) (0.513031 2.20488 2.93231e-16) (0.791618 3.48736 9.30965e-18) (1.28601 2.88845 -8.01798e-17) (7.81798 1.45551 3.21104e-17) (0.539135 1.12196 -1.62856e-16) (-0.440871 2.68982 -1.50799e-16) (1.03726 0.0148964 3.18149e-16) (0.815222 0.00659857 -3.75072e-16) (0.912659 -0.0118068 0) (10.2832 0.542859 1.66744e-17) (0.792486 0.193606 -1.43532e-16) (1.55428 0.139151 -2.74917e-16) (2.11455 0.0607348 0) (0.948419 -0.628009 1.42244e-16) (0.387139 0.0375302 2.66855e-16) (0.372466 0.0420703 4.75863e-17) (0.578189 0.0283962 2.41144e-16) (0.29144 0.0427244 0) (0.727129 0.121093 3.60063e-17) (0.671747 0.101491 1.71253e-19) (0.209181 2.40391 -8.73751e-17) (0.879055 0.0166293 -4.76413e-16) (0.78862 0.0236941 3.15543e-16) (2.06227 0.0438765 -6.24872e-17) (0.468444 0.182494 -2.05366e-16) (0.947385 0.191527 1.88028e-16) (0.70909 3.12667 4.52909e-17) (0.406695 2.95571 -3.8798e-17) (0.0672794 1.99343 -1.59528e-20) (0.17591 4.90931 -2.30087e-17) (0.0470298 1.03275 0) (2.33311 0.021236 5.11501e-17) (1.94639 0.61657 0) (1.93553 1.96842 0) (0.357162 2.00117 2.76672e-16) (0.461421 0.00539216 5.43816e-18) (1.57638 2.55119 4.35857e-19) (0.410706 0.398036 -4.96844e-16) (1.29589 0.931907 6.06448e-17) (0.360621 0.11776 -3.70013e-16) (1.82778 0.0717369 1.41275e-16) (0.303375 0.152396 0) (5.71556 0.153628 0) (1.40728 0.302041 -4.78308e-16) (0.100357 1.78112 1.61366e-16) (-0.402545 -1.07784 0) (0.183414 3.53472 2.30271e-17) (0.411941 3.1678 1.80244e-16) (0.456162 2.81916 0) (0.525856 3.65767 1.72958e-16) (0.672177 2.89621 0) (8.49149 0.166482 6.24242e-17) (1.72649 1.03354 -3.68009e-16) (1.92199 0.547269 5.89672e-17) (1.84695 0.462464 2.23571e-17) (1.79636 0.365553 1.17278e-16) (1.98573 0.192894 0) (-0.147927 0.0050733 0) (6.8838 1.38747 3.60643e-16) (1.77971 -0.231234 4.11433e-16) (1.43285 -0.087589 -2.8804e-16) (7.47728 0.796619 3.24305e-18) (1.36446 0.252903 -2.74031e-17) (0.834335 0.130407 -7.1165e-16) (0.526122 0.358199 2.68065e-20) (0.68103 0.330953 6.17403e-16) (0.454652 0.0127313 3.75957e-16) (0.702763 2.4769 0) (1.43331 2.5905 -8.40889e-17) (1.13296 2.33754 1.58838e-16) (-0.25347 0.484741 -2.78049e-16) (0.842999 1.29527 -7.73924e-16) (0.806732 2.96525 -4.43481e-16) (0.193164 0.122908 -1.59562e-17) (0.313515 0.0780684 3.35713e-16) (1.66265 0.0937962 0) (0.398833 0.0652959 8.29837e-17) (1.47036 0.0184737 -2.35731e-17) (9.85155 0.570832 -9.61193e-17) (0.356401 0.495328 -2.58629e-20) (1.63605 1.41141 -3.12628e-16) (0.138956 0.632589 2.3423e-17) (2.13757 0.301993 -3.23162e-17) (0.412029 2.59 1.32553e-16) (0.383583 2.33553 0) (0.48098 1.9761 0) (7.36057 0.583985 8.47917e-17) (0.410579 1.96278 2.17222e-16) (0.760116 0.853154 4.56745e-16) (-0.00367259 1.5237 4.30755e-17) (0.0233853 2.72334 5.47685e-19) (0.585667 0.04354 0) (6.4693 1.02205 -4.71887e-18) (2.42787 -0.109444 0) (1.94519 -0.088593 2.03497e-16) (1.96086 -0.0734504 -1.76909e-19) (2.18361 0.0653558 0) (0.0461761 0.914909 2.43452e-16) (1.19746 2.54075 -2.90128e-16) (0.363702 3.17537 -4.85948e-18) (-0.459484 2.12318 4.47692e-19) (-0.22173 4.3152 -1.334e-17) (-0.0599239 0.848987 9.24686e-20) (5.70104 0.158548 0) (-0.0170925 0.216275 3.20654e-16) (0.235799 0.144382 -1.46164e-16) (0.442618 0.0899433 3.61869e-16) (1.72687 0.123339 -2.72155e-16) (0.369083 0.119133 0) (0.502211 2.06353 -7.69002e-16) (1.45359 3.86463 3.10033e-18) (0.89405 2.03506 1.80529e-16) (0.911675 2.42129 3.45649e-16) (0.907164 0.614793 -6.23001e-16) (0.322371 2.8238 -3.81616e-17) (0.399332 2.62094 -2.87676e-16) (0.658855 -0.0261596 8.40908e-17) (0.516914 0.0541337 -3.3021e-16) (0.427045 -0.0128009 3.34062e-16) (0.345369 2.52516 2.04175e-17) (0.259695 3.42032 2.98246e-16) (0.67493 0.411138 -2.24779e-16) (0.3095 0.583678 6.11934e-17) (-0.0686038 1.11075 -1.73649e-16) (0.0256877 0.883693 2.43816e-16) (0.59603 0.0562717 2.08985e-17) (0.445719 0.143825 1.0888e-16) (0.454214 0.108726 -7.63894e-17) (0.433951 0.17196 -1.10668e-17) (1.40621 -0.458027 3.32802e-16) (1.26603 0.256208 0) (1.51292 0.00476455 -1.49533e-16) (8.5414 8.26216 1.85922e-17) (0.848107 0.94608 9.49404e-17) (0.863971 1.99487 5.59249e-16) (0.391281 2.58163 -2.63762e-16) (1.37033 0.0580348 0) (7.65286 0.401396 -2.47455e-18) (0.728728 2.96959 3.71141e-17) (0.0328384 0.133149 1.07581e-17) (0.547616 1.61299 -3.25469e-16) (0.829863 2.64686 2.63031e-16) (1.26777 0.353603 0) (5.61354 -0.805405 0) (1.09601 1.46065 -8.06494e-17) (0.722755 -0.518274 0) (0.408395 0.055731 -2.70532e-16) (0.386385 0.0572059 0) (-0.182469 0.226122 -4.89645e-17) (0.670204 2.77587 0) (5.86277 0.845505 -1.86532e-17) (0.361811 0.0469086 1.02822e-16) (1.56212 0.0809934 5.13872e-16) (0.278041 0.129786 4.68162e-16) (0.481876 0.170356 2.74364e-17) (-0.0227129 2.17029 0) (3.19638 0.0261905 0) (0.530262 0.0390725 -6.21395e-16) (0.4181 2.46011 -1.62994e-16) (0.41913 2.23064 -2.89051e-16) (0.479544 1.85502 -5.89516e-16) (1.30421 0.0242568 0) (1.96457 0.293649 -2.30474e-16) (0.49306 0.0731537 -4.20429e-17) (0.654611 1.08534 0) (0.406246 0.140446 -6.60435e-16) (0.574883 2.03857 -3.22849e-17) (0.264273 2.40412 -1.24469e-16) (0.568542 2.61205 1.21851e-16) (2.98834 4.81106 0) (2.09706 0.176173 1.4438e-17) (0.187575 0.20016 -1.77213e-16) (1.93143 1.46534 0) (0.315517 0.0607157 0) (1.36558 0.829011 0) (2.04495 1.57621 2.25692e-17) (0.604522 -0.0402328 2.72926e-16) (0.387936 2.47397 -1.76299e-16) (0.332143 2.69955 9.32608e-18) (0.47507 0.0167285 -6.79851e-16) (2.16415 4.28155 7.361e-17) (9.08796 0.99407 9.52578e-17) (1.21666 0.437248 2.33474e-16) (1.32169 0.43944 1.5146e-16) (0.846171 2.86198 1.23455e-16) (-0.200774 4.31805 1.73773e-17) (-0.400878 2.33391 7.58994e-17) (-0.0766437 0.945261 -3.79691e-16) (0.327079 2.34152 -4.94985e-17) (2.23552 2.09759 -1.98206e-17) (8.58016 1.82985 -6.11624e-19) (2.33304 0.0845913 -6.26855e-17) (-0.0233798 1.50148 4.11397e-17) (-0.00177919 2.69341 0) (0.47908 1.71442 -3.96354e-17) (0.474598 0.0274071 -1.49352e-16) (0.704485 2.8645 -6.60736e-17) (0.360689 1.9028 7.13531e-17) (2.0898 0.0500564 9.56822e-17) (0.180447 1.4918 0) (-2.50116 5.17931 0) (0.259613 3.18756 -2.46526e-16) (0.475416 -0.446555 7.27759e-17) (-2.16055 -1.82014 -9.13689e-17) (0.573668 -0.0799984 8.63182e-17) (0.494716 0.0267985 1.48262e-16) (0.0893351 3.69296 2.4682e-16) (0.0527262 0.742084 3.8842e-16) (-0.421647 1.83114 -3.24379e-16) (0.481972 1.99982 3.68251e-17) (0.0308581 0.464751 1.14342e-17) (0.428479 -0.187743 1.47508e-16) (0.446005 0.0540883 2.68864e-16) (0.419018 0.0684612 0) (0.433507 0.0382144 3.46767e-16) (0.222016 0.154845 3.47283e-17) (1.52117 0.217181 7.16566e-17) (0.341705 0.12565 0) (0.45586 0.0171434 7.33908e-17) (0.691566 1.4516 -2.0554e-16) (0.11932 2.01458 0) (0.483645 5.12847 -3.84469e-17) (0.21493 0.984035 -1.27814e-16) (0.443857 0.225973 -6.85642e-16) (1.52529 0.0917227 -2.48672e-16) (0.355881 2.43758 3.80817e-16) (0.333895 2.20797 -3.47857e-16) (3.79465 1.89214 2.17643e-17) (0.457094 1.05572 2.24975e-16) (0.42496 1.96309 9.9478e-17) (0.899416 4.24116 4.9581e-17) (1.93478 0.115133 0) (1.26147 0.371514 -6.51786e-16) (2.14686 0.492975 0) (0.0894705 1.49666 3.70235e-16) (0.351424 -0.00304029 4.42939e-19) (0.516522 0.108958 -7.33731e-17) (0.882314 0.165908 4.62587e-16) (1.9746 -0.059209 -5.09406e-17) (0.429388 2.93278 5.40661e-16) (0.640192 2.18896 0) (0.585936 1.88168 6.20969e-19) (0.232826 12.652 -1.95118e-17) (0.605556 -0.205912 -1.15761e-18) (0.415239 0.0354859 -5.20203e-16) (0.389596 0.0432361 -1.71364e-16) (0.245271 2.33033 -2.36541e-16) (5.85548 0.224814 0) (0.260525 2.4263 -1.15642e-16) (0.254863 2.21952 0) (0.272886 0.483239 0) (2.03038 0.126361 9.6119e-17) (0.973337 4.09159 3.26117e-16) (1.05734 -0.414886 1.67777e-17) (0.909809 -0.350114 0) (1.14666 -0.302359 0) (0.868662 0.122171 -8.00919e-16) (0.327623 0.213995 0) (0.895582 1.51875 8.58028e-17) (7.50041 0.593807 2.10277e-17) (2.05327 0.156138 -3.67246e-17) (1.99138 0.442353 7.92811e-18) (1.74352 0.480601 0) (1.61328 -0.109828 5.10328e-16) (0.407397 0.02892 0) (2.48428 1.00963 -2.71169e-16) (1.83954 -0.0603933 -2.79533e-16) (0.733351 2.08386 -5.13692e-16) (0.183332 2.87244 2.06039e-16) (0.744486 1.32031 3.12423e-16) (2.27366 0.216701 -1.86178e-17) (0.0775671 0.436857 -1.77279e-16) (0.922507 -0.0321436 5.36606e-16) (0.819245 -0.0146551 1.76538e-16) (1.01825 0.0306715 5.79395e-16) (9.72379 1.21203 -8.24168e-17) (2.47641 -0.00933935 -5.29398e-17) (0.0600396 0.111557 3.55592e-16) (1.34717 0.159988 -2.12404e-16) (0.209186 0.104422 8.11748e-17) (-0.0320073 0.636255 -1.3951e-16) (2.44488 0.0274 -2.43678e-16) (0.387121 1.74312 4.32884e-16) (-0.538376 1.40693 3.15977e-16) (-0.0755825 0.500541 7.33079e-16) (0.73377 0.196315 0) (0.437174 0.126082 5.14492e-16) (2.16054 0.424125 -1.67862e-16) (0.386476 1.41408 3.06047e-16) (1.25476 2.82353 -1.43051e-16) (2.29275 2.28694 3.36065e-17) (0.293132 0.0399491 2.20616e-16) (0.948924 1.41899 0) (0.0853405 0.653711 -3.81561e-17) (1.66955 2.81809 -4.21613e-16) (-0.0835393 4.4039 -6.88822e-18) (1.09791 1.52211 4.11801e-19) (-0.381968 0.356617 -4.3126e-16) (0.00447547 0.47778 -2.8969e-19) (1.18076 0.213583 -2.22535e-16) (2.17473 0.316337 -1.16027e-16) (1.45618 2.81982 1.43697e-16) (9.99431 0.185835 -2.16656e-16) (0.494003 0.0539938 1.06194e-16) (9.34182 0.944465 -8.21239e-17) (1.72292 2.86984 7.62881e-17) (0.233801 2.54344 -1.87711e-17) (0.290645 2.36283 0) (0.369867 0.0419012 -5.17526e-16) (10.1823 1.42759 -3.43389e-18) (8.4511 13.6038 6.24326e-18) (2.18938 0.189935 -2.11865e-17) (0.50012 1.92176 -3.29339e-16) (1.00376 -0.686083 -1.84977e-16) (0.639759 -0.000244675 -3.30888e-17) (1.79944 -0.0233615 3.0975e-19) (0.104645 2.20287 1.57176e-16) (0.0870084 1.23153 4.70958e-17) (0.319391 5.66861 -2.24531e-17) (2.19519 0.110202 0) (0.480114 0.0444751 -4.56039e-17) (0.0331063 0.295042 7.18975e-16) (0.642058 2.64893 2.40646e-16) (7.54089 0.90276 7.82605e-17) (1.47012 0.00821752 -4.87587e-16) (0.39853 0.493689 0) (6.15741 -0.236415 -9.86922e-17) (-0.210253 1.08854 2.4497e-16) (-0.0153764 2.28066 -1.94506e-16) (0.029324 0.975262 -4.76328e-17) (0.0507895 1.96738 3.19154e-17) (0.111846 4.71999 0) (-0.568316 1.46261 -5.51012e-17) (1.07268 0.650285 -3.46648e-16) (0.590614 3.5876 1.78041e-17) (-0.0122854 1.00723 -7.39945e-17) (1.19212 3.80718 -2.75444e-18) (0.0441604 5.25645 2.56617e-18) (-0.0950111 2.63937 -1.10138e-16) (6.64851 1.71006 -9.69592e-17) (6.99766 0.572615 1.20725e-17) (-0.187313 1.0256 1.78448e-16) (0.322116 0.127121 4.33663e-17) (0.765742 0.0876901 2.53034e-16) (0.856208 0.0864681 -4.76481e-17) (7.16322 -0.0636251 -1.22833e-16) (2.00499 0.406154 1.98578e-19) (0.431169 2.30672 8.74706e-17) (-0.222824 1.90457 4.42985e-16) (-0.0920625 1.19084 0) (0.0765236 8.58834 0) (2.64518 0.492749 0) (0.0795623 1.89508 2.27471e-16) (0.197296 3.34192 -4.81029e-17) (0.459719 0.117158 0) (1.37823 2.81702 -2.13322e-16) (0.833479 0.113509 -1.96275e-17) (0.945565 1.96729 4.64297e-17) (10.8444 0.634371 3.61988e-17) (10.8014 0.571925 -3.83034e-18) (0.0560046 0.990054 -1.03673e-16) (0.0984482 2.01202 1.1912e-16) (5.99288 0.196769 0) (2.34847 1.63025 0) (1.77369 1.4408 0) (0.00851947 0.545071 2.36339e-16) (7.6314 -0.239104 5.69546e-17) (0.936752 0.386428 0) (1.84377 1.93549 1.52398e-16) (0.531192 0.28769 -5.34979e-16) (0.205855 0.515073 0) (0.165754 0.176244 0) (0.308478 2.67895 -1.68045e-16) (0.256335 0.0363346 3.58282e-16) (0.315455 0.060454 -3.04908e-16) (0.840949 1.43157 -1.12712e-19) (2.39979 0.0934943 2.91448e-16) (0.488889 0.184571 3.74191e-16) (1.7483 2.9496 -2.99218e-17) (2.32092 0.398584 -1.42946e-16) (0.078792 1.18437 3.16257e-20) (0.105965 2.33061 9.56075e-17) (-0.852921 0.813793 -8.84537e-17) (2.02964 -0.0361922 -6.79777e-17) (0.458664 0.111042 0) (0.368339 0.133107 1.08216e-15) (1.94171 -0.0899373 3.64593e-18) (2.39775 -0.03427 2.35428e-16) (1.94081 -0.0698098 -1.89652e-17) (2.13084 0.0689865 0) (0.401159 0.0802495 -1.96994e-16) (4.92915 7.10233 -4.09522e-17) (2.03946 0.0695676 0) (0.528133 1.81224 3.5338e-16) (0.309993 0.0982446 7.71832e-16) (0.0944015 0.272958 -4.34886e-20) (-0.0247343 0.436105 3.3069e-16) (8.19106 0.349997 -6.75058e-17) (0.641445 2.67075 -5.31809e-16) (0.651458 0.0759646 -2.40557e-16) (1.49524 2.20375 8.92942e-18) (0.362265 2.91298 4.2912e-17) (-0.395284 0.635963 -1.59528e-16) (9.85782 0.152426 -2.96992e-17) (12.6827 1.06502 0) (0.0328548 0.391312 4.51958e-17) (1.79126 -0.0663498 0) (0.418349 0.00522002 0) (1.98089 0.0927959 -1.34267e-16) (0.349247 2.31924 -8.50353e-17) (0.435753 0.64344 1.52386e-16) (2.26582 0.756991 2.87671e-16) (4.53938 0.144155 0) (0.0751722 0.576567 2.94469e-16) (-0.00214823 2.51746 -2.01714e-16) (-0.0174301 1.41631 0) (0.441843 1.96621 -1.97599e-16) (0.170418 0.0951685 4.33898e-17) (0.670793 0.331667 6.17108e-16) (0.561104 0.328053 1.03735e-15) (0.502893 0.0210761 1.82901e-16) (7.16027 -0.680133 2.53109e-17) (0.6193 2.24718 5.76243e-19) (7.49411 1.15179 -6.1686e-17) (0.625089 2.59597 -2.72055e-16) (0.310254 0.571171 -2.70077e-16) (2.13703 -0.0292714 -3.05091e-17) (1.93492 1.26649 -3.93982e-16) (1.81383 1.14562 -2.80184e-16) (0.891428 3.08547 5.0443e-17) (2.23731 0.146742 -4.31343e-17) (0.5183 0.253322 -1.66613e-16) (0.484073 0.13757 0) (2.17466 0.0671666 -2.51962e-17) (0.203678 0.847869 0) (0.556022 0.0602436 -2.91e-16) (10.1657 0.446088 1.61241e-17) (0.925325 0.996836 0) (0.598157 0.0190779 5.72896e-16) (1.18047 2.5624 -1.86586e-16) (0.45695 0.241909 -1.91882e-16) (3.03111 1.1225 0) (-0.0928599 3.06085 -2.20321e-16) (-0.0731789 1.54412 -2.45497e-16) (2.11524 0.230855 -1.56704e-17) (1.93081 3.7565 0) (2.18009 0.0499586 0) (0.565807 1.28695 3.47978e-19) (5.64385 5.5454 4.84818e-17) (1.33263 2.72802 4.79769e-17) (-0.0555421 1.62539 -6.84946e-17) (-0.0980678 2.99908 0) (0.319119 2.52352 -2.05738e-16) (-0.0211942 1.03126 -2.84429e-18) (-0.0815226 2.38605 -1.44847e-16) (-0.0232967 4.72322 1.30061e-18) (0.479748 -0.00646994 -9.45045e-17) (1.66885 -0.0188785 1.15032e-18) (2.02908 0.0681563 2.06366e-16) (-0.504593 -4.84961 2.1504e-17) (1.9552 -0.0518168 1.50768e-16) (0.226789 0.0594808 -8.22634e-17) (0.469198 -0.0160771 0) (-0.0485316 -0.218848 -2.18378e-17) (0.315719 -0.0269077 4.32806e-17) (-0.00998201 2.08114 4.61836e-16) (6.04937 0.57365 -8.87776e-17) (0.694208 1.55796 3.25926e-16) (0.0579462 0.537384 3.87077e-16) (0.296468 3.19524 1.61771e-16) (0.832634 3.37188 0) (0.810004 0.327468 -8.8263e-16) (0.710284 0.340581 8.84613e-16) (0.596493 -0.249926 -8.68983e-17) (-1.12193 -2.1348 -1.13716e-16) (0.534326 0.0552364 -1.11604e-17) (5.23209 0.236375 0) (0.0271125 0.024392 3.20945e-17) (0.787124 1.57754 -2.64177e-16) (0.786224 2.12315 1.1591e-16) (0.71047 1.83895 3.15851e-16) (0.400651 -0.0169507 2.12766e-17) (0.445205 -0.0147226 -3.9262e-20) (0.406572 2.74081 1.92282e-16) (7.01475 1.341 9.00172e-17) (0.759496 2.68289 2.13782e-16) (0.609176 0.0511569 0) (0.429033 0.109582 -3.9925e-16) (0.65905 0.0914327 4.40322e-16) (0.479002 -0.016243 3.17381e-16) (1.0934 0.0479852 0) (0.858556 0.0396844 1.1662e-16) (0.949375 0.0375769 -1.17193e-16) (0.333538 2.86446 6.46136e-17) (0.860334 1.77817 -3.92403e-16) (0.304312 0.0417733 -5.54726e-18) (0.334972 2.65315 7.58842e-20) (2.33027 1.05539 0) (6.75765 0.0150411 5.42168e-18) (0.471688 -0.0158622 -6.07862e-16) (0.63126 3.02326 -7.58524e-17) (6.62232 -0.019905 0) (0.37955 2.21957 0) (0.470613 2.49986 -2.46943e-16) (0.490009 -0.0170384 0) (0.457218 0.561522 1.27452e-20) (0.276049 0.548285 -2.79231e-16) (2.43892 0.108392 0) (2.01301 -0.00873349 -2.60871e-16) (0.463154 0.00144338 1.65923e-19) (6.73267 0.024343 -5.54462e-18) (0.0159824 1.57719 -1.61106e-16) (0.0503619 2.81451 6.44195e-17) (0.450933 -0.0167756 -2.38634e-17) (0.462708 -0.0225286 3.61332e-16) (0.4414 -0.0202409 0) (0.45567 -0.0212202 -2.43782e-17) (6.68969 0.0980571 0) (2.20445 -0.0274289 -7.3008e-18) (6.69627 0.0468774 1.32763e-17) (6.67703 0.0241401 6.693e-18) (6.54815 -0.0804355 3.57592e-17) (2.24691 -0.0239655 7.41901e-18) (6.24499 -0.0881735 -4.13296e-17) (6.01737 -0.0556039 0) (6.66439 0.0220823 -3.05806e-17) (0.540972 -0.0122259 0) (0.54029 -0.00721761 0) (6.46475 0.00702153 1.55493e-16) (0.525628 -0.0120718 0) (0.50534 -0.0158996 -1.96886e-17) (1.95763 -0.0509457 6.5729e-18) (2.08491 -0.0992097 0) (2.19517 -0.157366 7.09998e-17) (1.92049 -0.0518589 6.78707e-18) (1.91275 0.00946209 6.22084e-17) (1.82895 -0.00450305 -7.39388e-17) (1.88438 -0.0492621 -6.43325e-20) (1.67949 -0.052942 -8.32513e-17) (1.59252 -0.015691 -5.67033e-16) (0.812669 1.1808 -3.27672e-16) (0.0319781 2.78127 0) (0.664041 0.269662 4.9371e-17) (1.04904 2.62967 3.33138e-16) (0.72591 1.37398 1.71424e-16) (2.14935 2.70717 7.07105e-17) (2.96062 1.63162 -1.2676e-16) (0.444344 2.71335 6.50474e-17) (2.54508 2.25263 6.48259e-19) (0.821847 0.44515 -8.82171e-17) (0.167456 0.728377 1.74234e-16) (0.738811 0.223081 -9.83407e-17) (0.891941 0.403135 -2.39864e-16) (0.565762 0.195645 1.60236e-17) (10.6 0.686404 -1.72264e-17) (0.503202 0.2077 -3.87966e-16) (0.638484 0.195176 4.04167e-18) (0.68409 1.81048 0) (0.660973 0.126493 -1.81774e-17) (0.755051 0.222723 1.79931e-17) (0.597771 1.17544 7.76517e-17) (0.474433 0.0415054 2.30779e-16) (2.88515 2.70041 -1.34689e-16) (1.64312 1.49983 -1.18938e-16) (0.441653 1.90533 0) (0.570199 2.75387 -2.86461e-16) (0.0149794 1.63593 3.60562e-17) (0.0194681 3.0661 0) (0.436981 2.14216 0) (0.472619 0.0269775 -2.59522e-16) (0.39816 0.181548 2.23619e-16) (-1.35109 -5.04904 0) (0.016783 0.92765 4.07121e-17) (0.00782755 1.92204 -1.01007e-16) (0.0545399 4.57257 0) (2.13426 -0.00253365 1.24223e-16) (-0.00478775 2.6325 -6.9375e-17) (-0.0399092 1.43541 -7.43789e-17) (0.529763 2.07981 2.94037e-16) (0.540452 1.78329 -3.57196e-16) (1.30054 0.152453 0) (0.252346 0.27765 9.43113e-17) (0.877213 0.0318938 2.04373e-16) (0.792335 0.0383934 -2.03932e-16) (1.03042 0.0555354 2.17095e-16) (1.60397 0.043234 -2.2671e-16) (1.00639 2.6162 -2.41668e-16) (0.595121 0.185222 0) (1.47139 0.334023 0) (0.420144 0.594359 -7.83189e-17) (-0.147013 1.80612 3.83187e-16) (-0.195891 3.42803 -2.87995e-16) (-0.229764 0.641959 2.29355e-16) (3.24766 0.32506 0) (0.470116 0.0286452 1.3005e-16) (2.2261 0.069832 0) (1.59591 0.365772 0) (-0.324911 1.00138 0) (0.408844 1.99649 -1.4804e-16) (0.0771953 0.49434 1.87981e-16) (1.37504 0.0160048 0) (1.27445 0.0706421 3.21917e-16) (1.3498 0.0368221 0) (10.794 0.667863 -2.91299e-17) (0.0332121 0.320131 -4.48314e-17) (1.29818 0.0902948 3.40471e-16) (4.38768 0.434542 0) (0.472972 1.83498 -4.36431e-16) (0.450465 2.15614 -7.07866e-16) (0.633481 -0.0157799 0) (0.10913 2.52407 0) (0.339579 1.2704 1.5732e-16) (0.392596 2.26026 0) (0.420114 0.0384077 2.45921e-16) (0.954977 1.35117 -4.93191e-16) (0.166615 -0.129222 -3.8833e-16) (0.180891 -0.0210097 0) (-0.00966408 3.03496 1.47246e-17) (0.0280361 1.63715 0) (0.451147 2.89138 0) (0.94538 3.16864 -6.87116e-17) (-0.13732 -0.192135 5.80912e-16) (0.0934544 0.870117 2.94877e-16) (0.142023 5.03881 0) (1.12668 0.200299 1.56333e-16) (0.473142 0.0180115 0) (0.114783 0.535848 -2.05797e-17) (1.42023 6.37198 -1.39787e-18) (1.63149 0.496901 1.18065e-16) (0.362045 0.0346932 -1.15605e-17) (0.388316 1.42057 -1.46338e-16) (0.0117556 0.30095 -2.56013e-16) (-0.082837 -0.0440069 1.93068e-16) (1.84068 2.92822 2.06209e-17) (8.13748 3.83508 -1.33537e-16) (0.945801 0.935091 2.08216e-16) (6.32675 4.49326 2.59576e-18) (2.51344 0.0449876 -2.47169e-16) (2.43744 0.0420036 6.27753e-17) (0.327714 0.0275014 9.46192e-17) (-0.105597 3.55985 -2.58787e-17) (-0.101696 1.90422 0) (0.981217 0.700779 -1.42382e-16) (0.605524 0.417053 -2.83903e-17) (0.131085 1.0673 -4.52841e-16) (0.207866 0.355839 -9.33247e-20) (0.20451 0.754087 -4.59517e-16) (0.840774 0.445842 0) (1.03901 0.889209 -2.98972e-16) (0.373582 -0.011935 0) (-0.315928 -0.349995 0) (0.427278 0.023302 4.6839e-17) (0.208413 0.629403 -2.7835e-17) (4.03436 0.75294 -8.63191e-18) (0.698387 -0.53949 -3.7638e-16) (0.463088 0.0360177 -3.36386e-17) (0.485341 1.81893 -1.04509e-16) (0.929349 0.478891 -1.05178e-19) (2.12812 2.85074 1.14654e-16) (0.611721 2.81802 1.32761e-16) (0.576767 2.49389 2.8047e-16) (0.670091 2.19957 -2.25249e-16) (1.98386 -0.054422 2.54312e-17) (9.37994 1.10906 2.10883e-18) (0.782773 1.44578 3.43564e-16) (1.11636 0.352993 -5.16561e-16) (0.510035 2.65103 0) (2.23049 -0.0462923 -1.95529e-20) (0.610995 0.0768173 -3.27871e-16) (2.03707 0.0531752 0) (-0.074291 4.43782 -1.76537e-18) (-0.102686 1.96741 4.01005e-17) (-0.00761188 0.90119 0) (1.07152 2.54704 -4.88048e-17) (0.255549 1.12985 -9.85416e-17) (2.34308 0.316266 6.69186e-17) (0.287675 0.122476 -1.49773e-16) (7.53204 0.710448 -3.17945e-17) (0.511835 0.00465149 -7.89818e-17) (0.153183 1.44143 8.7841e-17) (-0.382385 9.2398 -4.50583e-17) (0.112542 2.14764 3.90113e-16) (1.65061 0.188207 0) (5.49642 3.87088 2.2771e-16) (7.67841 0.516444 2.82015e-17) (0.0464243 0.921922 -6.67016e-18) (2.04197 0.560609 1.68074e-17) (0.385352 0.106894 1.32899e-16) (1.75477 -0.00385232 1.98628e-16) (0.315548 0.0844808 0) (0.382069 -0.227558 1.37689e-18) (-1.53775 -1.30394 1.08821e-16) (0.493809 -0.0121935 -2.76546e-18) (2.18576 -0.0275053 5.18158e-17) (2.33616 0.104449 -3.2053e-16) (2.05743 0.157939 -8.12797e-18) (0.378198 2.87537 -2.52204e-17) (-0.0500542 -0.208722 2.33474e-16) (0.663047 0.0287166 2.59183e-18) (0.450111 0.121837 -4.19998e-16) (1.67673 0.248196 7.80732e-16) (0.370171 0.164331 1.97819e-16) (1.01812 0.267879 1.97775e-16) (1.09212 0.25695 2.45891e-16) (4.3778 0.781932 -1.70945e-17) (0.448487 1.84162 -6.17991e-17) (0.50778 1.55875 0) (0.677077 3.00364 -5.4417e-17) (7.31765 0.38195 -1.02295e-17) (1.03613 0.185552 -1.42831e-16) (0.408661 0.0533055 -1.47352e-17) (2.03287 -0.0157965 2.01708e-16) (7.00825 0.649585 -5.98509e-17) (0.276211 2.44194 5.18765e-16) (1.73261 0.369483 -9.69229e-16) (5.29139 3.8409 -2.31726e-17) (0.481733 2.44105 -9.65273e-17) (1.42751 0.0455089 -6.61259e-16) (1.46368 0.510149 2.77949e-16) (0.245241 2.18712 -1.87896e-16) (0.0164549 1.4655 8.58206e-17) (0.0910524 2.73306 8.91478e-18) (0.31778 0.131539 -6.65073e-16) (0.195541 0.0981162 0) (1.49812 0.112989 0) (0.30513 0.0807136 -3.9247e-17) (0.685327 0.749208 -2.26963e-16) (0.346123 0.0235379 1.39881e-16) (0.147666 -0.172845 -1.75049e-16) (0.391706 0.0272595 0) (0.419197 2.60636 1.99331e-17) (2.98009 0.223639 0) (0.342464 1.29112 8.41494e-17) (0.562494 2.23954 0) (0.399567 0.130669 3.50189e-16) (-0.313472 1.90376 0) (-0.152972 1.40536 4.89513e-17) (1.41522 2.06814 4.51525e-16) (1.88883 -0.0379089 2.89755e-16) (0.679489 1.36653 4.76197e-16) (5.99833 14.2047 1.79668e-18) (0.381988 -0.068907 2.28948e-17) (-0.716329 -0.695708 -2.10104e-18) (0.454188 0.0132173 0) (-0.0581383 1.5157 7.54598e-17) (-0.0408887 2.79843 0) (9.75823 0.381235 2.28259e-17) (0.320984 2.29499 -1.47665e-16) (1.0922 0.174902 1.55872e-16) (0.753888 0.253539 -5.79574e-16) (1.03673 0.249421 4.29375e-16) (1.02049 0.0532458 -5.81006e-16) (0.37914 2.99475 3.90241e-17) (-1.85294 -4.0489 3.49962e-17) (0.375936 2.31827 3.22408e-18) (0.00912345 0.924396 -2.01568e-17) (9.28615 -0.0151327 -1.56858e-16) (8.55512 0.739811 -3.0491e-18) (10.25 0.167879 2.77526e-17) (12.6037 2.57799 0) (2.48978 1.62512 0) (0.218265 1.6695 -5.69953e-17) (2.29777 -0.031337 -5.6798e-17) (2.30327 -0.0624006 6.11032e-17) (2.79824 0.41011 2.08238e-17) (0.277359 -0.0581264 5.63242e-16) (0.274757 -0.0239416 0) (0.304442 2.4512 -4.60212e-17) (-0.122683 -0.0431267 -8.48041e-17) (1.68029 0.239436 8.08546e-17) (-0.0471172 2.67202 -9.74532e-17) (1.98277 -0.0143659 2.2349e-16) (1.65819 0.391984 -4.33539e-16) (3.06391 1.52952 1.05586e-17) (-0.281763 3.17778 -1.04547e-16) (-0.17586 1.70016 1.94083e-16) (0.00672585 0.911365 0) (-0.0938948 2.28027 3.46927e-16) (0.707714 0.093584 -2.95618e-16) (8.61398 0.152041 -1.26374e-19) (1.13343 0.620786 -1.84792e-16) (0.406365 -0.00440114 0) (0.0999178 0.211428 0) (0.208866 1.36609 -3.98886e-16) (7.57171 -0.129835 0) (0.0222654 2.65041 0) (0.365834 2.91971 2.03862e-16) (0.468217 -0.148844 -1.11013e-19) (0.473743 1.78337 -3.58112e-16) (0.638254 0.104668 -2.6701e-16) (0.333455 0.0892297 2.26119e-20) (1.71204 0.0450037 4.04942e-19) (0.261235 0.122554 1.53644e-16) (0.35577 0.487974 5.01325e-20) (0.0526342 2.72657 -1.37154e-16) (6.09858 0.338341 2.62445e-17) (1.32023 0.715757 -1.58588e-16) (0.366823 0.0362972 -3.28521e-16) (0.242334 -0.383923 4.09628e-16) (0.400518 0.0397745 0) (8.36112 1.73419 8.1687e-17) (0.608962 0.224781 -1.34978e-17) (0.31388 0.498455 -4.78269e-17) (2.26144 3.577 1.70146e-16) (0.133861 2.1644 3.68062e-16) (6.36018 -0.0787294 1.53397e-16) (2.1836 0.0410338 4.90676e-17) (-0.0240708 1.67404 1.68313e-17) (-0.0704423 3.11666 0) (0.52918 0.0515041 4.98748e-17) (0.229227 2.98959 -1.07684e-17) (1.12125 2.93647 0) (0.358455 2.13536 2.45742e-16) (0.507171 1.75065 0) (0.411184 2.36663 0) (-0.575558 -4.02106 3.18094e-17) (0.194221 2.26331 0) (0.485947 1.8119 0) (0.739198 5.84137 0) (7.67191 0.502453 0) (2.35012 0.0511979 5.7162e-16) (1.92536 2.04593 -1.07183e-16) (4.751 4.41696 -3.5732e-17) (1.23171 1.25575 8.37933e-17) (0.44133 2.75089 9.39834e-17) (0.00505223 0.905208 0) (-0.0421295 1.91645 -3.87758e-17) (-0.00579252 4.44297 0) (0.662486 1.19522 0) (0.704619 1.86887 1.57694e-16) (0.633987 1.38782 5.65735e-16) (1.41552 0.588815 -2.46505e-16) (0.0954082 0.146639 3.64223e-23) (0.714196 0.0594466 0) (2.22505 1.13006 9.17173e-16) (0.70234 0.224685 -6.70308e-17) (0.41042 2.93644 -3.58549e-16) (0.206778 0.332701 0) (1.29653 0.543747 -7.8262e-18) (1.22281 2.53961 4.76308e-16) (1.10936 2.77614 -1.43642e-16) (1.17767 3.12761 6.17943e-16) (1.6407 0.26965 0) (0.36711 0.397112 0) (0.328003 2.93112 0) (0.38387 0.204162 3.5632e-16) (0.478068 1.34367 3.24909e-16) (0.446255 2.79444 -2.14302e-16) (6.79022 -0.0593183 1.54963e-16) (-0.0170444 1.50263 8.25876e-17) (0.798828 0.0590738 1.17806e-16) (0.891313 0.0538209 2.95311e-17) (8.75222 2.25675 2.68326e-16) (0.733816 2.88717 -1.42158e-19) (0.340198 1.72485 -3.57411e-20) (0.270044 2.0699 8.24293e-17) (0.374734 0.182686 -1.20036e-15) (0.34 0.0259188 1.0294e-15) (1.08941 0.515487 5.77308e-16) (6.35839 5.29577 -3.03571e-17) (2.00522 0.181263 -5.50736e-17) (0.825929 1.38969 -2.65654e-16) (1.48133 0.278417 3.919e-16) (0.468952 0.601059 0) (0.904708 1.52219 -4.32171e-16) (1.22916 3.61913 -2.28546e-17) (0.489037 0.0256897 -1.77655e-20) (1.37694 0.222981 2.59859e-20) (0.412122 2.45769 -9.63971e-17) (0.386568 2.22763 2.48804e-16) (3.02126 -0.123054 0) (0.601885 1.43211 -4.00526e-16) (9.99942 0.17225 -7.19333e-18) (2.38832 0.044556 0) (10.6216 0.428564 0) (10.7201 1.63442 1.45587e-18) (5.08989 0.821774 1.17918e-17) (0.264789 0.229012 0) (2.56272 3.26019 9.44419e-17) (0.574085 0.141323 -3.91061e-16) (0.30741 2.6232 -9.44305e-18) (0.380647 2.35013 0) (0.404169 2.19994 -1.06045e-16) (0.731708 3.97539 -1.13267e-16) (1.78337 0.0989445 4.96077e-16) (2.20262 1.76849 -2.67089e-17) (-0.130475 4.84285 4.02504e-17) (-0.316451 2.06654 1.4113e-16) (-0.339451 1.71497 4.84254e-20) (1.09035 0.226235 -2.34934e-16) (0.127077 2.29886 -4.37184e-16) (0.433941 0.258884 0) (0.220522 0.108941 0) (0.310055 0.106757 -4.47689e-17) (0.278975 0.0849278 -4.67515e-16) (1.89495 -0.0196091 -9.07041e-20) (2.71831 1.36073 5.1187e-16) (-0.000464521 -0.10563 1.66202e-16) (0.205195 0.0730839 4.67983e-17) (0.0391702 1.29175 0) (-0.13037 1.72695 0) (6.21489 2.64956 -2.52938e-16) (1.03022 1.46978 -3.67206e-17) (0.454828 0.0637716 -4.39625e-17) (0.248114 2.1841 0) (1.32211 1.12286 7.29153e-17) (0.393262 0.609045 -1.21267e-17) (0.600514 0.748171 1.00896e-16) (1.21886 0.428711 -2.35494e-16) (0.410159 0.203269 9.5817e-20) (0.778094 0.108842 4.84442e-16) (0.874453 0.0995847 -1.93919e-16) (0.405226 0.0457623 -7.84143e-17) (1.74657 0.0716984 0) (0.341613 0.0589214 0) (0.376865 2.59894 0) (0.37497 2.29209 -1.47168e-16) (0.454107 -0.000456716 1.13486e-17) (1.06697 1.04131 -3.00321e-16) (0.733399 1.73218 1.40737e-16) (1.0776 0.859796 1.69497e-16) (4.53304 0.0609575 6.90709e-17) (0.0561021 1.25517 -2.34616e-17) (2.31876 0.102644 -4.25334e-17) (1.00562 0.125804 6.50356e-20) (6.92594 -0.258386 4.91694e-17) (-0.612604 1.57009 0) (-1.06174 2.74349 4.13251e-17) (0.916382 2.53908 -2.20382e-16) (1.26854 0.58515 0) (8.10447 2.72239 -9.54954e-17) (0.385887 2.66286 0) (2.75188 1.29384 0) (0.283875 0.106473 4.84601e-16) (1.21356 0.483089 2.58115e-16) (-0.279601 4.97696 1.96676e-17) (1.33655 2.57027 -1.08978e-16) (0.619128 0.0624459 -2.19328e-16) (1.56827 -0.128886 6.59107e-17) (1.79495 -0.224766 -1.42785e-16) (0.412252 0.0827574 4.66191e-16) (-0.422597 2.61128 -1.15256e-16) (1.60907 0.506087 -1.66555e-16) (1.28132 0.626953 7.43753e-20) (2.43117 0.562067 -3.79886e-16) (0.12935 2.67399 -6.19729e-17) (9.50456 -0.0603256 3.02906e-16) (0.585375 0.325517 5.5416e-16) (9.72786 0.52511 1.33389e-16) (0.495626 2.72187 1.12723e-16) (0.909982 0.333635 0) (0.48131 0.0509209 0) (0.755197 1.30399 0) (0.92022 2.23799 -1.8364e-16) (2.2618 5.17648 1.84508e-16) (2.51367 0.0293548 -3.2903e-16) (9.02625 -0.115248 1.3708e-16) (0.910094 2.45211 2.51917e-16) (0.203879 0.138822 0) (1.24911 8.89198 0) (0.872814 0.154449 -1.23929e-16) (1.07868 3.05297 5.37096e-16) (2.26589 1.75313 -1.69676e-16) (0.986903 0.104962 -4.44028e-16) (0.0989201 1.67775 -7.35703e-17) (-0.684785 -0.915713 -8.66968e-17) (0.196466 3.3876 -3.77895e-17) (1.81257 3.95518 -1.23116e-16) (0.278297 0.0513035 6.78657e-17) (0.478457 0.393851 -1.37045e-16) (-1.00421 -5.42338 -2.17773e-17) (0.0276006 1.55133 -3.94329e-17) (0.0776359 2.91878 0) (0.659613 0.21161 0) (0.417289 2.16052 5.21503e-16) (0.439817 2.41959 2.09637e-16) (0.512585 1.7843 -4.57062e-16) (0.563514 0.208178 -2.19999e-16) (-1.2417 12.7469 3.90211e-17) (0.232566 1.84293 -6.822e-17) (0.271381 3.38267 -1.64308e-16) (0.629991 -0.0945927 -1.6845e-16) (0.472031 0.122492 9.90593e-17) (0.47672 0.153978 3.32583e-17) (-0.404613 2.56553 1.43043e-16) (8.22259 0.458931 2.8894e-17) (2.70228 0.33281 -8.29409e-18) (0.377889 2.67927 -2.49616e-16) (0.0921143 0.0864642 -4.80427e-23) (-0.352192 0.797007 -2.31575e-17) (-0.0700333 1.58868 0) (0.087381 1.03672 -2.1788e-16) (5.42707 0.0542572 -1.68599e-16) (0.632681 -0.00816282 2.27962e-17) (1.67419 0.0984965 3.23506e-16) (0.405693 0.257273 2.0984e-16) (1.74426 0.507315 0) (0.481076 0.171958 3.12845e-16) (3.17681 5.72401 0) (0.597823 1.3314 3.52476e-20) (7.58647 -0.229979 0) (5.81277 0.470274 1.89924e-17) (0.346884 0.0515528 0) (1.69146 4.6643 -1.51965e-16) (-0.454136 1.87071 0) (2.23493 -0.162408 -7.27431e-17) (1.7537 0.581969 -1.16947e-16) (1.53376 0.345229 3.56897e-17) (1.74759 0.382776 5.81053e-17) (0.337777 2.19009 -4.70832e-16) (0.671006 2.82843 0) (1.03569 2.65504 0) (0.712576 1.16224 -1.50537e-16) (-2.19939 6.90026 -2.7342e-17) (2.27826 5.78692 6.49774e-17) (0.570617 2.69388 0) (0.312076 2.4031 -4.11884e-16) (0.381935 1.94895 -5.38368e-16) (0.337359 0.0147521 3.43363e-16) (1.71846 -0.048136 -3.47621e-16) (2.42596 0.113239 0) (0.322935 1.17576 2.43696e-16) (0.523871 2.71973 -2.88467e-16) (-1.53963 9.87418 0) (0.449289 2.2772 -2.13265e-16) (0.404355 0.0702474 -3.14007e-16) (7.47128 0.805879 2.75346e-17) (0.690599 -0.0371257 -5.36118e-17) (0.168297 0.902657 2.66403e-17) (2.36962 0.442198 -3.68635e-17) (0.485371 2.52889 -2.4384e-16) (4.09654 5.82755 0) (0.423793 2.20078 -3.62521e-16) (0.447405 2.47153 0) (5.11044 5.44356 -1.36114e-17) (2.13849 -0.00724181 -4.44568e-17) (6.25864 0.658906 -1.56086e-17) (0.51133 1.83934 -1.78016e-16) (5.03088 0.192095 0) (0.414962 2.40899 -1.77555e-16) (0.345099 2.19839 -1.45212e-16) (0.635192 -0.261993 -1.85374e-16) (0.667243 -0.126168 -1.41342e-18) (0.772595 1.54625 0) (0.514444 0.357947 0) (0.95854 0.6306 -2.08327e-17) (2.10334 0.175212 1.41057e-16) (2.07382 1.76578 1.56096e-16) (0.382949 1.09656 2.95483e-19) (1.48491 0.985443 2.58168e-16) (1.5115 0.27721 1.43886e-16) (0.280614 0.186975 -2.56816e-17) (0.388057 0.145684 -6.45011e-16) (0.507384 0.111071 -1.07421e-15) (1.79169 0.278287 -1.89959e-16) (0.441726 0.162154 -2.5699e-16) (0.491883 2.74101 -1.69261e-16) (0.359603 0.0894518 1.95113e-17) (0.229678 2.30539 1.80103e-16) (0.507422 0.379809 2.15792e-16) (1.17044 0.301234 -4.16547e-16) (2.07021 0.0112219 0) (0.800734 1.44994 3.24374e-16) (0.336205 1.34889 7.77826e-17) (-0.0172617 1.81009 -4.44158e-16) (-0.143479 1.72279 -6.07218e-16) (9.15059 -0.0261575 -4.02019e-17) (9.57056 1.09662 1.80666e-16) (0.543978 4.1668 -2.50725e-16) (1.32851 0.266851 8.28164e-16) (0.0309798 1.02207 -1.10662e-17) (-0.20454 0.983156 -1.29753e-16) (-0.373426 2.0479 -1.06276e-16) (1.46704 2.9761 -4.91341e-16) (7.30652 -0.0496092 -3.55672e-17) (1.56242 -0.604257 6.09498e-17) (0.609644 2.49768 -1.3629e-16) (0.643019 1.00466 -7.4347e-17) (-0.0264196 0.807221 -7.84854e-16) (-0.141076 1.11141 9.59443e-17) (0.568859 1.86859 0) (0.236656 -0.680327 -1.44807e-16) (1.52395 0.216087 1.64883e-16) (-0.0926975 2.03006 2.93252e-16) (0.588512 1.55794 -1.74966e-16) (0.17105 0.0519832 -3.58101e-17) (0.203324 0.426486 8.49036e-17) (0.494569 -0.0654209 2.40141e-16) (0.255525 0.120833 0) (1.57541 0.115957 -4.09506e-17) (0.366313 0.0822173 1.61309e-16) (0.324692 3.0555 4.89116e-18) (0.661005 0.645012 2.86871e-19) (0.607301 1.16388 -1.8497e-16) (0.679285 1.48661 9.10392e-17) (2.117 0.0274145 0) (-0.179073 3.36941 1.47041e-16) (0.242965 0.110439 -9.0097e-17) (0.217627 0.588382 -1.89324e-16) (0.180282 0.564809 -1.78395e-16) (1.23481 0.281607 3.17863e-16) (-0.044685 0.0579188 1.95761e-16) (1.51317 0.0827109 -5.4045e-16) (0.470077 2.27893 8.67734e-17) (0.683489 2.36527 5.58244e-16) (0.956871 0.118671 -1.07559e-16) (2.3049 0.077972 -1.2526e-16) (0.303428 0.0324113 1.67041e-16) (0.353802 0.0419713 -8.15392e-17) (5.0878 0.460998 -6.2542e-18) (1.57097 0.259189 5.55188e-19) (0.599002 0.0657498 4.21325e-16) (6.92234 0.583183 -8.42477e-17) (-0.361358 4.22931 -1.17731e-17) (0.125196 0.858725 0) (0.127231 0.0952023 -5.53457e-16) (0.0411962 0.0185982 -5.30729e-16) (0.978119 0.0965287 -3.84264e-19) (0.533764 2.62129 -5.3828e-20) (7.30245 0.496434 -2.47121e-16) (7.62068 0.0705042 0) (0.948815 3.00997 4.63772e-19) (0.322675 1.82892 0) (1.44047 1.07486 0) (8.56689 2.28885 1.50114e-16) (0.674929 2.34358 0) (1.48469 2.23795 4.57139e-17) (2.36395 0.227522 0) (1.50846 2.67379 -1.67455e-19) (0.409399 2.20526 -2.59118e-16) (0.191966 4.74225 1.90968e-16) (0.195183 0.338428 3.33487e-17) (9.5167 -0.138469 -3.25782e-17) (7.9203 0.437012 9.39141e-18) (0.401299 2.5405 -9.53314e-18) (0.481333 0.0283809 -1.1166e-16) (0.831742 0.31871 4.08587e-16) (0.425972 3.96046 5.92151e-17) (0.174232 2.2038 4.51183e-17) (1.57374 0.0691413 0) (2.36193 0.0165679 -1.43634e-16) (2.12059 -0.00431853 -8.89443e-17) (1.36151 0.293486 -6.84872e-17) (-0.0523973 2.15156 -2.27412e-17) (-0.0393233 1.45177 0) (-0.0467041 0.717045 0) (0.589814 0.117427 2.68709e-16) (2.13447 0.30217 -9.68409e-17) (0.551602 0.172634 2.89186e-16) (-0.655532 -0.429593 2.97566e-17) (1.87423 0.974142 1.77317e-16) (0.149404 0.290795 0) (0.294866 2.54805 0) (0.812035 3.21931 -7.20283e-17) (0.469042 1.82436 -9.8412e-17) (1.30001 1.34529 1.89664e-16) (6.27887 0.183411 -2.70599e-17) (0.468299 2.58433 -3.16202e-16) (0.226597 2.14674 1.48205e-16) (0.964972 1.70422 4.82788e-17) (1.58448 2.97041 -8.4194e-19) (2.00381 -0.276994 -4.19516e-16) (8.40611 4.99061 1.72418e-18) (0.643734 0.048021 3.08738e-16) (0.523148 0.0803932 -2.3117e-16) (4.73609 6.08145 0) (0.459647 2.42756 2.7341e-16) (0.435001 2.16555 -2.39613e-16) (0.522605 1.81729 6.01005e-16) (0.601022 2.53104 1.45627e-16) (0.541787 2.273 4.29164e-16) (0.658634 1.94317 0) (-0.380713 2.54897 0) (-0.19967 1.32738 2.117e-16) (0.413102 0.290463 4.74987e-16) (2.88639 0.239783 -2.30459e-17) (1.12222 0.132886 0) (1.38845 0.163849 2.57995e-16) (1.75682 3.07629 0) (0.470804 0.0106693 3.43667e-16) (7.499 2.20026 5.72101e-17) (0.395487 0.0493771 0) (1.65282 3.18902 1.70814e-16) (0.543538 -0.0543938 -4.26397e-17) (0.454922 1.49718 3.27105e-16) (0.348285 0.0543908 -6.69307e-17) (1.54639 0.014318 -1.35727e-19) (2.70236 1.72334 -3.56134e-18) (-0.387323 1.51415 -1.35099e-16) (2.79154 1.24047 -1.54086e-16) (0.71099 3.27768 0) (-0.464905 2.26195 -4.55783e-16) (0.445021 2.71838 -8.33245e-17) (0.431702 2.42138 -1.14436e-16) (2.78018 1.93389 0) (0.996015 4.97153 8.55085e-17) (-0.107472 1.43776 -2.36409e-16) (1.47317 3.04861 3.68856e-16) (-1.21213 2.58479 -2.22996e-16) (-0.597065 1.81974 -1.2223e-16) (-0.758275 1.64319 -6.13547e-17) (-1.17662 1.55263 1.57191e-16) (-1.40965 1.77262 0) (-0.0813043 2.65818 -2.97463e-17) (0.281807 0.108806 2.11911e-16) (0.244035 0.176856 -1.26871e-17) (2.64289 -0.822622 1.19011e-16) (0.229069 3.71347 5.86655e-19) (2.40062 0.06361 -1.25757e-16) (2.08836 1.09968 2.38946e-16) (1.99884 2.07517 1.43854e-17) (9.95374 0.317559 4.95476e-17) (1.27128 0.875311 1.93619e-16) (0.834067 0.809794 -3.36735e-16) (0.162202 1.88084 -9.63522e-18) (0.710429 -0.0280701 4.87051e-17) (0.380329 2.84145 -7.74706e-17) (-0.412488 0.887082 0) (1.17533 0.740291 -1.14604e-16) (0.694171 0.372038 1.01155e-16) (2.07262 0.0642802 0) (2.46861 -0.0625085 1.13327e-16) (0.486423 2.40063 1.78701e-19) (0.451133 2.13969 0) (0.56704 1.78731 0) (2.05859 -0.0112822 6.42794e-17) (7.6746 0.538098 0) (0.317827 0.0711403 4.59499e-16) (1.38453 2.83328 2.84318e-17) (0.785381 3.225 4.80712e-16) (0.414996 2.6838 7.86087e-20) (0.411597 2.41446 9.35904e-17) (0.495584 2.0691 1.58243e-16) (0.524094 0.0147946 4.2537e-16) (0.396119 2.52353 1.37963e-16) (0.348935 2.24528 1.67417e-16) (0.439763 1.90777 0) (5.40947 0.405852 -2.12185e-16) (0.482849 2.82062 -2.51799e-16) (10.3002 0.164601 0) (3.29733 0.428549 -9.09782e-18) (0.310419 3.01641 2.47464e-16) (-0.312314 1.82157 -3.82619e-16) (1.76135 2.2416 -2.65143e-16) (1.17395 1.2723 0) (0.39113 2.55322 6.85641e-17) (0.0327191 0.191758 0) (8.64308 1.94601 -2.65618e-16) (7.92541 0.432715 9.34655e-17) (1.37762 2.81578 9.44017e-17) (1.06569 1.59851 1.21128e-16) (-1.26893 2.49165 0) (-0.873433 1.39998 -9.07184e-17) (1.2932 2.74945 -1.83899e-16) (0.32713 0.167594 1.70761e-20) (1.87117 0.250987 -1.92488e-16) (0.286953 0.274222 0) (0.497221 1.79831 -1.59174e-16) (0.567648 -0.0190858 1.74546e-16) (-0.369159 2.10777 -1.27008e-16) (-1.22667 2.29576 1.71727e-16) (0.401171 1.87163 -1.86661e-16) (0.499769 0.00232887 0) (-0.656746 3.55144 -6.29377e-17) (-0.303285 1.94592 0) (0.142373 3.67058 -1.3706e-16) (0.090298 0.180536 -4.31793e-17) (0.424878 1.92229 0) (1.61401 0.596881 -2.48421e-16) (1.80481 1.93342 3.5026e-16) (2.74362 1.31557 0) (0.0318721 1.25953 -7.9334e-17) (2.05629 -0.279225 0) (0.399442 2.78287 8.50597e-17) (2.07162 0.00445519 -1.71668e-16) (0.288836 1.68108 6.12277e-16) (1.92027 0.204556 4.95617e-20) (0.604679 0.0123782 -2.95557e-17) (0.655247 0.149948 -7.72481e-16) (1.68507 3.01574 0) (0.528912 0.963426 1.18157e-17) (2.00768 0.697872 -1.58969e-16) (5.23869 -0.642332 -2.17381e-16) (1.48091 2.96151 1.60219e-16) (0.438453 1.88349 6.35981e-16) (0.341265 0.177532 0) (-0.2013 2.51762 0) (-0.654444 3.18363 1.08844e-16) (-0.432218 1.71602 -5.44695e-17) (1.50795 2.88108 -1.05683e-16) (-0.0632387 1.57347 -9.24981e-20) (-0.0762914 2.89997 0) (0.72741 0.158666 1.2672e-16) (0.876902 1.52769 -1.60572e-19) (0.613662 0.459708 1.82071e-16) (1.03151 0.0734581 -3.70029e-16) (0.808785 0.0626646 0) (0.904711 0.0634227 0) (0.181476 0.157438 -3.34295e-16) (0.691622 0.775072 2.00929e-16) (0.647966 0.448066 1.41195e-19) (0.420045 2.48678 1.15936e-16) (0.48254 2.15504 1.6249e-16) (0.605924 0.284433 1.97834e-16) (0.65985 0.477872 3.93706e-16) (0.134808 0.927657 0) (0.258731 5.17135 5.18794e-17) (-0.0303274 2.02363 1.71323e-19) (2.508 0.820407 -1.57229e-17) (1.60133 3.06928 -3.45311e-16) (1.68768 0.84829 5.5024e-16) (0.512319 0.817625 1.88557e-16) (0.51201 1.26363 -3.65897e-16) (6.54243 0.151621 2.71378e-17) (0.435068 0.00362641 -2.65253e-16) (0.592032 2.61319 5.47121e-16) (0.436882 2.28394 0) (2.50632 1.15918 -2.56916e-16) (0.456826 0.104483 -3.91245e-16) (0.566793 0.708863 -1.882e-16) (7.07175 -0.0190115 -3.02301e-17) (2.31901 0.205309 -2.58692e-16) (2.59242 4.04907 3.64976e-17) (0.124771 0.0838635 0) (8.21218 4.38205 0) (2.3906 0.025169 -4.85769e-17) (1.41774 2.7538 2.69641e-16) (0.268676 0.281826 -4.99597e-16) (9.25227 2.31762 -6.28869e-17) (0.798435 3.12561 -7.93555e-17) (0.513009 1.32713 -5.81324e-16) (0.666117 3.00958 1.27204e-16) (0.261734 2.22216 1.98332e-16) (1.3788 1.84253 0) (0.340704 0.779738 -1.29436e-17) (1.03497 1.89873 1.7548e-16) (1.5451 -0.355223 2.88068e-16) (0.904575 0.989448 4.63046e-16) (1.09444 1.85946 -3.99451e-16) (-0.121989 2.07644 -1.2625e-18) (0.0397461 2.02325 -1.00699e-17) (0.101324 1.62553 0) (-0.2534 3.08639 3.69643e-16) (-0.213092 1.5968 1.96245e-16) (0.453111 0.812686 -1.7338e-16) (1.11455 2.92166 -1.45051e-16) (0.325573 1.55673 2.0693e-16) (0.497303 2.2445 2.07822e-16) (0.512945 0.0816604 7.67177e-17) (0.606057 0.0582608 1.3152e-16) (0.525692 0.1231 -3.10755e-16) (2.07653 0.735737 -6.21429e-16) (1.19847 0.0340079 7.61466e-17) (0.652295 0.519479 2.75621e-16) (0.27312 1.96022 -2.71688e-16) (0.339608 0.269999 3.20142e-16) (6.95165 1.0598 -2.33138e-16) (0.681364 1.79771 -3.27555e-16) (-0.190969 1.15864 1.46021e-17) (-0.0883057 0.997672 -1.26791e-16) (0.364295 0.0595683 1.91731e-16) (1.32345 -0.469671 -8.01661e-18) (0.337123 0.067464 -4.17234e-16) (0.090522 1.36135 1.23951e-17) (0.124782 2.36456 -3.21193e-17) (0.357913 6.19878 0) (0.0379015 2.17717 -3.32129e-16) (-0.519259 1.85532 2.12674e-16) (-0.247923 0.719348 -5.30826e-16) (0.522413 0.388936 -5.35709e-16) (2.1249 3.97182 5.92177e-17) (2.27267 -0.11541 -6.66614e-17) (7.11675 0.455697 -1.75349e-16) (0.962245 0.388464 2.77066e-16) (-0.0611387 1.07153 1.02686e-16) (-0.0741275 2.81258 9.83421e-17) (0.547076 5.21291 -4.03647e-17) (0.274477 1.36017 2.00756e-16) (-3.01749 8.17971 -1.18413e-16) (0.406759 3.06116 1.0007e-16) (0.195532 3.60267 -4.98823e-17) (0.0159885 2.05603 -1.24633e-16) (6.29326 0.0445006 9.34771e-17) (0.289891 2.47224 0) (2.15053 0.182205 3.91378e-16) (0.533587 3.01877 1.62145e-16) (-1.48879 0.189812 3.8823e-16) (0.0192121 0.877517 2.13064e-20) (0.0498303 0.893078 0) (0.00320536 1.41831 -2.14686e-17) (-1.44339 -4.46416 0) (0.0656399 2.6147 0) (0.31792 0.100023 0) (1.63012 0.0856431 -4.13107e-16) (0.41352 0.0853789 0) (0.946536 0.734668 -1.39724e-16) (1.45293 0.0304498 2.23612e-16) (0.396643 0.0398768 6.54785e-16) (0.902393 -0.212999 -1.58507e-18) (0.383951 0.0433786 -2.22755e-16) (1.26338 1.38753 -2.95321e-19) (7.51054 0.587256 -1.60265e-17) (0.714441 2.69245 2.93966e-16) (2.05307 9.79894 7.53028e-17) (2.66124 0.201871 0) (-0.213602 1.99395 -1.86491e-16) (0.0942291 5.12435 0) (0.0617507 0.867823 0) (0.440777 -0.022601 1.7203e-16) (1.10067 1.49407 6.56705e-17) (1.46152 1.62554 1.53547e-16) (0.762427 0.239992 2.83114e-18) (0.561314 0.0174672 -1.0004e-16) (0.291618 0.0940407 1.43304e-16) (0.327522 0.0315651 6.22144e-17) (5.88781 0.619249 0) (0.375736 -0.0126519 4.68091e-16) (0.369566 0.902682 3.11757e-16) (0.158753 1.07564 3.07073e-16) (0.32913 0.0753685 0) (1.84684 -0.70048 0) (0.298435 0.101446 2.16891e-16) (0.668751 1.67327 -4.26528e-16) (0.802526 0.120704 -6.56699e-17) (0.706425 0.120798 -5.75661e-17) (0.0172478 0.926341 8.73811e-17) (0.500389 1.94523 0) (0.106525 1.47779 -2.91046e-16) (0.389933 0.0448567 -5.27814e-16) (1.04618 -0.281616 -1.84016e-16) (0.368933 0.0469107 4.1899e-16) (0.916569 0.0637467 0) (0.830381 0.0638484 -5.69989e-16) (1.05203 0.0866414 0) (5.44034 0.0509484 -1.30726e-17) (1.30016 2.07798 0) (1.17941 1.54245 2.6669e-16) (7.42842 4.07321 0) (0.488722 0.0282232 -3.44308e-16) (1.3449 3.06285 6.24535e-19) (0.427405 1.90947 -3.30586e-19) (0.454765 1.23201 4.3537e-17) (0.565173 2.56286 0) (2.28551 0.622963 7.22761e-18) (1.62112 0.0213017 1.41102e-16) (0.337085 0.0454025 -4.34704e-16) (0.305774 0.0978954 0) (1.1573 0.332812 0) (-1.82502 3.09213 1.53568e-17) (0.506871 0.101257 4.1167e-17) (1.21402 1.47154 -9.85898e-18) (0.464157 0.0703082 -1.038e-16) (0.457306 0.0914547 2.6507e-17) (0.613546 -0.0642866 1.62748e-16) (0.94665 0.0437761 0) (1.05241 0.0474751 -2.18829e-16) (0.829168 0.0299787 8.77813e-17) (2.20684 0.0736906 0) (7.86531 -0.00313526 -3.89763e-17) (3.05134 0.287266 2.16412e-17) (0.040058 0.927167 -1.36124e-16) (0.440611 1.90034 -3.10729e-16) (5.42744 -0.224626 -1.94881e-16) (0.705818 0.026323 0) (0.271206 0.0890072 -5.21865e-16) (1.4726 -0.0169984 0) (0.578351 0.0552142 0) (8.27233 0.224945 7.31351e-17) (0.0671888 0.0433114 1.28847e-16) (1.96503 0.184294 -1.02974e-16) (0.233826 4.42825 -3.12624e-16) (0.166384 2.41844 0) (1.99907 0.200879 0) (2.63794 0.133995 -7.05747e-17) (2.38956 0.11695 2.28372e-17) (0.348586 0.0408106 2.2147e-17) (-0.0160104 0.264711 2.76193e-16) (6.14857 2.39247 -1.33954e-17) (0.268812 2.64546 -7.74854e-17) (2.52935 0.154911 0) (1.98914 0.0420537 2.86159e-17) (0.662278 1.15629 -4.24255e-17) (0.488555 2.1559 8.55795e-17) (0.503808 -0.0641855 4.32205e-17) (0.0328275 0.254464 0) (0.354153 0.037187 -5.76842e-16) (0.591424 0.282249 0) (5.6493 -0.33244 1.10828e-16) (2.43502 0.13528 -1.17562e-16) (0.567829 0.181508 -3.535e-16) (0.599082 0.297199 5.33961e-16) (0.437156 0.077478 2.96616e-17) (0.46194 0.0369162 1.34822e-16) (0.416457 0.113312 4.52477e-17) (1.34536 0.951946 -4.02277e-16) (0.421219 0.211135 0) (6.47367 0.362548 0) (1.27161 0.615119 -4.04592e-16) (0.450398 -0.0117351 -1.72223e-16) (-0.176281 1.14281 1.85616e-16) (-0.378565 1.40013 0) (0.389112 0.0222939 -1.30744e-16) (0.137108 0.135518 3.86581e-17) (0.786707 0.839194 1.61194e-16) (0.867885 1.59534 2.89478e-16) (2.27432 3.14864 -1.24752e-16) (5.52893 -0.414917 -1.82248e-17) (0.607794 1.75824 -3.72973e-16) (0.136469 4.4797 -7.3951e-17) (0.361841 0.0150045 0) (6.35693 1.33707 0) (0.382009 1.85188 -1.75652e-16) (0.211619 0.181208 -2.4751e-16) (3.34648 -0.444933 -2.42614e-16) (0.121829 0.348042 2.21927e-16) (0.397556 2.40944 3.7588e-16) (0.475454 0.0359013 -6.96381e-17) (0.415526 0.060333 1.83316e-16) (0.226937 1.91436 7.54669e-17) (0.299181 1.57048 -8.42288e-17) (9.30407 0.367724 -8.38995e-18) (10.4029 0.791951 3.75163e-18) (0.450765 0.0239832 3.67095e-16) (0.493648 -0.10475 -1.49139e-18) (1.59879 0.177389 1.29349e-16) (8.72622 0.158563 -2.17846e-17) (0.266296 4.06462 3.19837e-17) (2.74535 0.187257 -3.88338e-17) (0.385437 1.40588 -1.3015e-16) (-0.269525 0.257044 0) (-0.209486 0.136116 1.78296e-16) (3.48223 0.360881 6.19617e-19) (0.491681 0.013215 -3.16351e-17) (-0.31015 2.10598 0) (-0.434427 1.46346 3.75712e-16) (0.857667 -0.413892 2.44801e-16) (0.517746 0.0337186 0) (1.51641 0.388796 7.27339e-17) (6.97559 3.10675 -6.95485e-17) (2.19042 0.0305298 -2.38872e-17) (1.35904 0.0173285 -2.14549e-16) (0.383661 0.13756 -1.95041e-20) (2.09399 1.9646 1.99177e-16) (4.05866 0.420085 0) (-0.663213 1.25479 -1.71131e-16) (1.52577 0.192676 2.34494e-16) (0.109629 0.721114 -1.9908e-18) (4.93259 0.035611 3.26401e-17) (1.31431 0.170055 0) (-0.0127128 0.883296 -5.09408e-17) (1.87367 0.151963 -7.81351e-17) (1.17834 2.11048 -2.35929e-17) (1.10727 0.137027 -1.98629e-17) (5.21934 1.81979 8.01209e-18) (0.659283 0.296416 6.90453e-17) (0.61562 -0.0282128 0) (0.741899 -0.0619456 1.87982e-17) (2.17855 -0.0934415 -6.21159e-17) (2.10005 0.0777351 0) (0.528478 0.0145988 1.5267e-16) (1.20926 0.151888 -1.5416e-16) (-0.0484685 1.85857 -1.88992e-16) (1.69898 0.175985 -1.0438e-16) (0.436768 0.0293471 8.34799e-17) (0.551421 -0.251902 -6.06962e-16) (-0.286429 2.35696 0) (0.0882464 5.53351 -1.044e-17) (1.18051 1.03734 -9.10852e-18) (1.36146 0.418615 -1.36247e-16) (7.5541 -0.0846331 -6.80602e-17) (-1.35625 2.92946 -2.23212e-16) (0.0580144 0.263958 3.36379e-16) (0.638918 0.34651 -1.17732e-18) (2.04215 0.290249 0) (0.267588 0.119001 -1.62039e-16) (1.6721 0.125955 3.02412e-16) (0.195447 0.197202 -3.4219e-16) (0.610195 0.231219 7.95172e-16) (0.486068 3.10625 0) (1.18491 0.924084 -1.83422e-16) (0.414136 0.156016 1.53829e-16) (1.77046 0.182203 4.25876e-18) (1.4237 0.186593 -1.10296e-16) (0.555209 -0.00791981 6.54864e-16) (0.208234 1.86739 9.85037e-17) (0.224926 0.397353 1.25603e-16) (0.274556 0.934633 -2.89173e-17) (3.4222 1.64105 -2.57841e-17) (0.522734 0.0132592 1.9845e-16) (1.2448 0.60534 -2.28613e-16) (0.675131 0.10573 5.04397e-17) (-0.170723 1.53158 2.35783e-17) (2.51288 0.191322 -8.32061e-19) (0.0941795 0.163165 -2.31551e-17) (1.46677 0.464863 0) (0.304446 1.51581 9.45744e-17) (1.7773 0.491723 0) (2.10329 0.00888854 0) (0.459862 2.55962 1.63594e-16) (0.481208 2.28333 2.43579e-16) (1.1729 1.73156 5.5347e-18) (-0.283892 4.1908 7.10031e-19) (5.69755 0.86409 0) (0.0842411 0.106124 -1.70386e-16) (1.61525 0.0587701 -4.40313e-16) (1.76685 3.34104 1.54485e-16) (0.465936 0.0746917 1.11234e-16) (0.561358 -0.158831 -2.30454e-16) (0.456902 0.0882676 3.77509e-17) (2.5667 0.0961001 1.03914e-16) (0.0223911 0.079946 -2.21758e-16) (2.89179 0.0729309 -1.06046e-16) (7.30817 0.477171 1.68544e-16) (0.426062 -0.0192951 -3.13517e-17) (1.16192 0.436162 -3.55424e-16) (0.224288 0.673176 -7.90688e-17) (4.73363 0.448873 8.66862e-18) (0.913679 0.120742 2.85177e-16) (2.51123 2.41689 -5.65757e-17) (0.70768 0.0901784 -6.31031e-16) (8.71441 0.07316 -3.25121e-18) (-0.165107 2.27926 1.87965e-16) (0.0322631 1.20793 0) (6.46947 5.51928 1.03241e-16) (9.47729 0.912535 -3.19652e-16) (2.34145 0.0729451 1.76593e-16) (1.24983 0.0961894 0) (0.501649 0.277952 -1.29069e-15) (-0.444148 -1.13429 -5.43316e-18) (0.210256 1.41731 2.29223e-17) (0.946138 0.00926429 -3.51527e-16) (0.0809056 0.59245 0) (0.114816 1.09187 1.2171e-16) (0.177723 2.57002 1.5936e-16) (-0.402125 5.44314 -1.89765e-17) (2.05684 -0.00849303 -2.82178e-16) (1.91553 0.364894 9.81451e-17) (1.49622 0.16921 -1.30741e-16) (0.107008 0.811331 -3.14042e-17) (0.044033 0.981118 0) (7.27033 -0.0533699 -6.11941e-17) (0.518269 -0.0279054 -5.53507e-17) (6.11047 1.57388 1.39947e-17) (0.495974 4.36448 0) (0.374672 1.93989 -6.8859e-17) (5.33796 6.67426 0) (1.94711 0.222382 8.37656e-17) (0.441 0.121718 -1.43501e-16) (-0.109142 2.65165 -1.39295e-16) (0.21807 0.726651 -1.74169e-16) (1.33665 0.403437 -4.81816e-17) (1.1719 3.17149 -3.94878e-16) (-0.0554363 0.25586 0) (0.0230769 0.197272 -3.03715e-16) (0.82397 0.557204 6.58173e-17) (0.548729 0.401336 3.66566e-19) (1.46231 0.0312596 -2.74581e-16) (1.46424 -0.00437522 -6.37905e-21) (0.729853 -0.260018 -3.97979e-16) (0.446147 2.38868 -1.71417e-16) (0.413771 2.15329 1.52237e-16) (0.541544 1.76313 0) (1.06258 0.0997722 7.51848e-17) (0.851528 0.0627596 -2.39332e-16) (0.967855 0.0864245 -1.37788e-16) (1.55336 0.0448148 -4.83446e-16) (0.34575 0.448817 3.22201e-16) (0.628918 1.08674 1.78576e-16) (2.81223 2.60637 2.08154e-17) (1.35443 0.142307 0) (0.371659 0.112476 0) (-0.106881 0.91774 -4.2794e-16) (0.469546 0.0128738 1.07588e-16) (0.184611 0.875261 0) (-0.0246626 1.30316 3.49402e-16) (1.69236 1.19362 -6.60373e-16) (2.0405 1.663 -6.12255e-16) (4.01313 6.60477 0) (-0.0522471 1.82037 0) (-0.125089 3.46326 -3.19705e-17) (1.51234 -0.38559 -1.8006e-16) (0.450037 0.0770746 -2.05741e-16) (0.506235 2.94543 -3.99331e-17) (0.112912 0.625568 -1.09076e-17) (2.08892 -0.0251463 7.40727e-17) (0.366004 0.308431 2.23655e-16) (2.78338 -0.706339 -7.30127e-17) (0.60256 0.568379 2.16148e-16) (-0.0257205 2.65591 0) (-0.059291 2.86053 2.08175e-16) (0.088364 1.74049 1.57738e-17) (0.495715 0.0340992 4.32007e-17) (0.112829 0.936394 -2.5098e-16) (0.0597686 0.409171 1.88415e-16) (0.33418 4.31513 -3.72936e-17) (0.128334 2.37515 0) (0.00444674 0.99223 4.65728e-17) (-0.167244 2.50949 -6.74552e-17) (-0.186946 4.22777 -1.43098e-18) (0.320188 3.81444 1.89506e-16) (0.227315 2.03537 0) (0.0851542 1.0141 3.43325e-16) (0.427503 4.61155 -2.66053e-17) (0.209888 2.53495 -1.49616e-16) (-0.0654047 1.9318 -3.71258e-17) (-0.132533 3.58734 -2.86952e-17) (6.9385 0.152875 1.14971e-17) (-0.0591911 1.88918 -8.2708e-17) (-0.142521 3.54351 3.18445e-17) (2.36382 0.0813042 -1.11304e-16) (10.07 0.322907 -1.15873e-17) (2.14481 0.0704547 3.65139e-17) (0.3344 2.71664 -1.46149e-16) (1.01912 7.03009 -2.81766e-17) (0.22876 1.56667 -2.42163e-17) (0.0695957 0.68186 -3.05943e-16) (0.252051 0.593009 6.2486e-16) (2.12035 0.0118954 8.20433e-17) (0.490434 0.0179452 -2.14957e-16) (6.98122 0.612352 4.43722e-17) (2.0479 0.221068 4.88205e-17) (0.493511 2.83715 2.38153e-16) (-0.489726 2.51178 2.09924e-16) (0.234914 0.0736694 0) (1.60225 0.081402 -1.44923e-16) (0.348218 0.0639429 -5.88847e-21) (0.571772 0.026213 -6.49324e-16) (-0.031828 0.84532 -1.69875e-16) (2.1563 0.0463379 1.14004e-16) (1.61516 9.84361 0) (1.62339 0.985154 -3.64486e-16) (0.409758 0.153372 5.77517e-16) (0.00217686 0.976627 1.6248e-16) (-0.0896608 2.3618 0) (0.034272 5.29005 0) (0.199161 0.95254 0) (0.601955 4.40217 4.8334e-16) (0.357122 2.39284 -1.83763e-16) (-0.124667 1.86829 4.8636e-17) (-0.131014 3.52156 7.20185e-17) (2.16003 0.0832343 -2.74168e-17) (2.01119 0.0332342 3.34211e-16) (7.1877 0.0424455 3.42758e-17) (0.456589 0.0379785 7.82998e-17) (-0.108419 1.41995 0) (-1.04525 2.53222 -9.19687e-17) (-0.535425 2.20892 1.78354e-17) (0.129713 1.95373 4.31888e-18) (-0.0235641 2.713 4.38903e-16) (7.25639 -0.175294 -1.80585e-17) (2.21046 4.15081 1.25752e-16) (0.352944 0.703668 -4.31788e-16) (2.15615 0.00732673 0) (0.112989 0.44498 0) (1.43531 0.591254 0) (1.46502 0.811693 1.99688e-16) (1.30233 0.199932 -1.05828e-16) (2.07007 0.0248264 0) (0.342553 0.0642524 1.28612e-16) (0.825274 0.118204 -8.07319e-17) (0.909968 0.10709 -4.84755e-16) (1.0542 0.118912 2.19393e-16) (0.464529 0.0322959 0) (0.451718 2.50936 4.59475e-16) (0.326095 1.4407 -5.69616e-16) (1.46982 1.80743 -4.88521e-20) (2.41914 3.68859 0) (0.915063 0.039007 -3.03289e-16) (0.897425 0.0276968 -6.76542e-17) (1.04358 0.0349513 0) (1.01836 0.0152219 1.02584e-16) (0.825376 0.0353686 -1.4968e-16) (0.82473 0.0189073 -4.0634e-16) (1.97418 0.182305 0) (0.464786 0.045337 -5.18895e-16) (9.07237 -0.215629 2.48048e-16) (-0.0962754 0.529401 -1.13181e-17) (8.92219 0.0852887 0) (0.492262 0.0646585 -5.87824e-17) (0.546698 0.0763362 -1.33914e-16) (0.47349 0.0248132 -6.5964e-17) (9.07095 -0.288461 -3.05081e-16) (7.52814 0.678047 -1.73113e-17) (2.43581 0.0960457 -1.50773e-16) (0.418192 -0.242749 0) (0.402949 0.00150974 -1.67142e-20) (1.87277 0.146466 -7.03706e-17) (2.07925 0.00483246 0) (0.425842 0.0130114 2.74131e-16) (0.855589 1.26986 0) (1.47886 0.350692 0) (0.895086 0.678055 -1.67568e-16) (1.08328 1.28061 7.45747e-16) (0.732609 0.0753191 5.41739e-16) (7.16908 0.23317 0) (0.188058 2.53609 -1.87799e-17) (0.151456 1.42561 -1.41784e-16) (0.690254 6.54042 8.58975e-17) (0.807531 2.47565 0) (0.548538 1.22635 -6.13948e-17) (2.81406 2.70301 1.02742e-16) (0.240563 2.18041 9.19376e-17) (0.510515 2.67381 -2.87712e-16) (0.583889 2.05719 -1.6348e-16) (0.492586 2.3937 -1.65211e-16) (7.88748 0.452383 0) (1.7301 0.0138272 -5.76326e-16) (7.27089 -0.129584 0) (1.98004 1.28482 -1.91331e-16) (1.34283 2.8854 2.83262e-16) (0.459666 0.0251738 -1.79164e-17) (2.04971 -0.0163855 4.14506e-16) (0.491182 2.78761 -1.49449e-16) (0.486934 2.48262 8.60036e-17) (0.585244 2.15634 -1.78092e-16) (-0.0220955 1.01216 -1.47192e-16) (1.47352 0.205332 3.69274e-17) (1.88523 -0.656289 -2.07478e-16) (0.625399 2.65681 -1.6797e-19) (0.587045 2.37024 -2.85053e-16) (0.678681 2.0758 1.53862e-16) (0.563671 3.30763 1.67242e-16) (0.0639374 0.0148606 6.6433e-16) (1.19892 0.100818 -5.58813e-16) (0.348718 0.0506544 7.97093e-17) (-0.157177 -0.050078 -7.77046e-17) (3.35872 -0.482043 4.30668e-19) (8.71057 0.105563 5.04607e-17) (6.65501 1.23329 0) (1.81122 0.189309 1.83976e-16) (0.411949 0.0673838 -3.40506e-16) (1.42492 1.60018 0) (0.56389 0.122951 -1.4523e-16) (2.62257 0.0465036 2.17307e-16) (1.17791 0.33643 1.62374e-16) (0.686184 0.0636932 -9.9306e-17) (1.39521 3.23006 -2.48206e-16) (0.110576 0.0285198 1.19381e-15) (1.81015 0.141416 5.73264e-16) (2.41026 0.434529 -3.96476e-16) (-0.587289 0.362928 6.17613e-16) (0.598348 -0.141013 0) (1.21196 2.82279 -2.73518e-16) (0.0451418 0.033724 -1.13658e-15) (2.39006 0.482977 -5.27599e-16) (-0.884746 -0.173476 -2.94334e-16) (-0.724533 0.262195 0) (0.925103 0.204778 2.85861e-16) (1.3803 2.56315 -7.34782e-16) (0.415593 -0.0535189 4.82082e-17) (0.167032 0.777854 4.60427e-16) (2.0825 0.082766 0) (2.42253 0.552089 0) (-0.146962 0.0374711 6.79968e-17) (1.66654 0.101852 0) (0.676679 0.0296547 0) (0.257667 0.149784 -1.33615e-16) (2.58126 -0.0368113 0) (3.3553 1.21526 0) (0.923939 0.214846 0) (1.86165 0.785458 1.99388e-16) (1.56183 0.130139 1.37608e-16) (4.79186 3.26601 -1.28017e-16) (3.89733 0.712802 1.57058e-16) (4.59872 0.919686 3.02802e-17) (-0.304873 0.284297 2.15663e-16) (0.880073 -0.00297433 -5.30885e-17) (1.45067 4.15614 0) (1.0364 0.0659548 -5.84969e-16) (2.87139 0.594128 -4.49452e-16) (-1.42109 0.758231 0) (0.640287 -0.207891 -1.45188e-16) (0.142197 0.545421 -5.58819e-16) (1.92498 0.460427 4.25004e-17) (-1.3862 0.201431 0) (0.479599 0.611532 -2.87569e-16) (-0.27296 0.228671 -1.17441e-15) (1.78658 0.0973386 -1.88215e-16) (-0.912846 0.401103 -7.64155e-18) (0.684861 0.403781 0) (-0.248056 0.425188 0) (1.37735 0.252937 1.42292e-16) (-0.580762 0.0684405 1.13093e-16) (0.848153 0.518132 -1.04644e-15) (-0.182622 0.0854471 1.24555e-15) (0.957314 0.130025 -7.23688e-17) (0.111672 0.098528 0) (1.92234 -0.00517863 1.32933e-16) (2.18431 0.0081007 4.81052e-16) (2.53181 0.10166 -2.17955e-17) (0.679303 -0.030519 1.93235e-16) (0.876909 0.0143977 3.07343e-17) (0.609362 -0.0267095 1.48843e-18) (0.796519 0.0252149 3.05941e-17) (1.00747 0.0187417 4.42505e-16) (1.43053 0.088487 -1.05542e-16) (-0.000649753 0.0526822 0) (0.170589 0.0337929 -1.22039e-16) (0.224308 -0.0314577 0) (-0.160298 0.0483586 0) (0.293375 -0.0158633 1.42495e-16) (0.0530909 -0.122081 0) (0.265512 0.0152071 -1.59277e-17) (0.348374 0.023694 -4.26824e-18) (0.376595 0.0299758 3.08937e-16) (0.520549 0.0173486 -4.70769e-16) (0.510595 -0.0564696 0) ) ; boundaryField { frontAndBack { type empty; } wallOuter { type noSlip; } inlet { type fixedValue; value uniform (10 0 0); } outlet { type zeroGradient; } wallInner { type noSlip; } } // ************************************************************************* //
90eb0497f95c9c5ac2df7f920f7a5aa2906ffa50
b79d708fafaf7b0296e6efe78c4ded60403d8317
/src/qt/lib/QGLViewer/VRender/PrimitivePositioning.h
414fc1e7d5783f3fbbb413d05ca78239fc705c8c
[]
no_license
harry75369/DiffusionCurves
4734b4cf5fd6c1b914d1479a40e67c72bd45e231
0f125089d9d93793a2bf7702a82f6cc014268212
refs/heads/master
2021-01-19T21:12:49.259610
2017-02-09T14:08:23
2017-02-09T14:08:23
88,625,015
9
2
null
null
null
null
UTF-8
C++
false
false
3,993
h
/* This file is part of the VRender library. Copyright (C) 2005 Cyril Soler ([email protected]) Version 1.0.0, released on June 27, 2005. http://artis.imag.fr/Members/Cyril.Soler/VRender VRender is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. VRender is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with VRender; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. */ /**************************************************************************** Copyright (C) 2002-2013 Gilles Debunne. All rights reserved. This file is part of the QGLViewer library version 2.5.2. http://www.libqglviewer.com - [email protected] This file may be used under the terms of the GNU General Public License versions 2.0 or 3.0 as published by the Free Software Foundation and appearing in the LICENSE file included in the packaging of this file. In addition, as a special exception, Gilles Debunne gives you certain additional rights, described in the file GPL_EXCEPTION in this package. libQGLViewer uses dual licensing. Commercial/proprietary software must purchase a libQGLViewer Commercial License. This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. *****************************************************************************/ #ifndef _PRIMITIVEPOSITIONING_H #define _PRIMITIVEPOSITIONING_H #include <vector> #include "gpc.h" namespace vrender { class Primitive ; // This class implements a static method for positioning two primitives relative to each other. class PrimitivePositioning { public: typedef enum { Independent = 0x0, Upper = 0x1, Lower = 0x2 } RelativePosition ; static int computeRelativePosition(const Primitive *p1,const Primitive *p2) ; static void splitPrimitive(Primitive *P,const NVector3& v,double c,Primitive *& prim_up,Primitive *& prim_lo) ; static void split(Segment *S, const NVector3& v,double C,Primitive * & P_plus,Primitive * & P_moins) ; static void split(Point *P, const NVector3& v,double C,Primitive * & P_plus,Primitive * & P_moins) ; static void split(Polygone *P,const NVector3& v,double C,Primitive * & P_plus,Primitive * & P_moins) ; private: static void getsigns(const Primitive *P,const NVector3& v, double C,std::vector<int>& signs,std::vector<double>& zvals, int& Smin,int& Smax,double I_EPS) ; static int computeRelativePosition(const Polygone *p1,const Polygone *p2) ; static int computeRelativePosition(const Polygone *p1,const Segment *p2) ; static int computeRelativePosition(const Polygone *p1,const Point *p2) ; static int computeRelativePosition(const Segment *p1,const Segment *p2) ; // 2D intersection/positioning methods. Parameter I_EPS may be positive of negative // depending on the wanted degree of conservativeness of the result. static bool pointOutOfPolygon_XY(const Vector3& P,const Polygone *Q,double I_EPS) ; static bool intersectSegments_XY(const Vector2& P1,const Vector2& Q1, const Vector2& P2,const Vector2& Q2, double I_EPS,double & t1,double & t2) ; static gpc_polygon createGPCPolygon_XY(const Polygone *P) ; static int inverseRP(int) ; // This value is *non negative*. It may be used with a negative sign // in 2D methods such as pointOutOfPolygon() so as to rule the behaviour of // the positionning. static double _EPS ; }; } #endif
a31ead3731a12e5bdce4cb98d25352be2e63bad6
1b6598e0e06522d978162d1112726a7cbf97943a
/Lab6Files/Square.h
83b8f2387022c12df4350742ed811da9dafa9669
[]
no_license
adri52/lab6
4a0c2b10a207e8f462c8b36484d350368ea5ce52
ff3112462ef5608f6b787811afb736bb1199cab8
refs/heads/master
2020-05-02T02:29:56.350621
2019-03-26T03:44:29
2019-03-26T03:44:29
177,705,709
0
0
null
null
null
null
UTF-8
C++
false
false
491
h
#ifndef SQUARE_H #define SQUARE_H #include "Shape.h" #include "Rectangle.h" #include<iostream> using namespace std; class Square: public Rectangle { private: double side; public: //This one will set the memer variables to 0 Square(); //this one will give the member variables a value Square(const double & s); void setSide(const double &s); virtual double getArea() const; virtual double getPerimeter() const; virtual void print(std::ostream&) const; }; #endif // !SQUARE_H
3dceea5b439e0966a29c94a50066281f3b112e1e
09cbc425566c5bb116e7957a0caad14881a87dd5
/HostingCLR_inject/HostingCLR/HostingCLR.cpp
19eb286f460d23640ad5df81b3054200df3229a2
[ "BSD-3-Clause" ]
permissive
attackgithub/metasploit-execute-assembly
a70edce537f564b67644853b2d00dfc5b3093877
f18d422c1965aadf347d51a122b60de49038c960
refs/heads/master
2020-04-13T02:25:31.730372
2018-12-23T12:20:13
2018-12-23T12:20:13
null
0
0
null
null
null
null
UTF-8
C++
false
false
4,894
cpp
// Author: B4rtik (@b4rtik) // Project: SharpGen (https://github.com/b4rtik/Execute-Assembly) // License: BSD 3-Clause // based on // https://github.com/etormadiv/HostingCLR // by Etor Madiv #include "stdafx.h" #include "HostingCLR.h" #define RAW_ASSEMBLY_LENGTH 1024000 #define RAW_AGRS_LENGTH 1024 unsigned char arg_s[RAW_AGRS_LENGTH]; unsigned char allData[RAW_ASSEMBLY_LENGTH + RAW_AGRS_LENGTH]; unsigned char rawData[RAW_ASSEMBLY_LENGTH]; int executeSharp(LPVOID lpPayload) { HRESULT hr; ICLRMetaHost* pMetaHost = NULL; ICLRRuntimeInfo* pRuntimeInfo = NULL; BOOL bLoadable; ICorRuntimeHost* pRuntimeHost = NULL; IUnknownPtr pAppDomainThunk = NULL; _AppDomainPtr pDefaultAppDomain = NULL; _AssemblyPtr pAssembly = NULL; SAFEARRAYBOUND rgsabound[1]; SIZE_T readed; _MethodInfoPtr pMethodInfo = NULL; VARIANT retVal; VARIANT obj; SAFEARRAY *psaStaticMethodArgs; VARIANT vtPsa; hr = CLRCreateInstance(CLSID_CLRMetaHost, IID_ICLRMetaHost, (VOID**)&pMetaHost); if(FAILED(hr)) { printf("CLRCreateInstance failed w/hr 0x%08lx\n", hr); return -1; } hr = pMetaHost->GetRuntime(L"v4.0.30319", IID_ICLRRuntimeInfo, (VOID**)&pRuntimeInfo); if(FAILED(hr)) { printf("ICLRMetaHost::GetRuntime failed w/hr 0x%08lx\n", hr); return -1; } hr = pRuntimeInfo->IsLoadable(&bLoadable); if(FAILED(hr) || !bLoadable) { printf("ICLRRuntimeInfo::IsLoadable failed w/hr 0x%08lx\n", hr); return -1; } hr = pRuntimeInfo->GetInterface(CLSID_CorRuntimeHost, IID_ICorRuntimeHost, (VOID**)&pRuntimeHost); if(FAILED(hr)) { printf("ICLRRuntimeInfo::GetInterface failed w/hr 0x%08lx\n", hr); return -1; } hr = pRuntimeHost->Start(); if(FAILED(hr)) { printf("CLR failed to start w/hr 0x%08lx\n", hr); return -1; } hr = pRuntimeHost->GetDefaultDomain(&pAppDomainThunk); if(FAILED(hr)) { printf("ICorRuntimeHost::GetDefaultDomain failed w/hr 0x%08lx\n", hr); return -1; } printf("ICorRuntimeHost->GetDefaultDomain(...) succeeded\n"); hr = pAppDomainThunk->QueryInterface(__uuidof(_AppDomain), (VOID**) &pDefaultAppDomain); if(FAILED(hr)) { printf("Failed to get default AppDomain w/hr 0x%08lx\n", hr); return -1; } rgsabound[0].cElements = RAW_ASSEMBLY_LENGTH; rgsabound[0].lLbound = 0; SAFEARRAY* pSafeArray = SafeArrayCreate(VT_UI1, 1, rgsabound); void* pvData = NULL; hr = SafeArrayAccessData(pSafeArray, &pvData); if(FAILED(hr)) { printf("Failed SafeArrayAccessData w/hr 0x%08lx\n", hr); return -1; } //Reading memory parameter + massembly ReadProcessMemory(GetCurrentProcess(), lpPayload, allData, RAW_ASSEMBLY_LENGTH + RAW_AGRS_LENGTH, &readed); //Store parameters memcpy(arg_s, allData, sizeof(arg_s)); //Taking pointer to assembly unsigned char *offset = allData + RAW_AGRS_LENGTH; //Store parameters memcpy(pvData, offset, RAW_ASSEMBLY_LENGTH); hr = SafeArrayUnaccessData(pSafeArray); if(FAILED(hr)) { printf("Failed SafeArrayUnaccessData w/hr 0x%08lx\n", hr); return -1; } hr = pDefaultAppDomain->Load_3(pSafeArray, &pAssembly); if(FAILED(hr)) { printf("Failed pDefaultAppDomain->Load_3 w/hr 0x%08lx\n", hr); return -1; } hr = pAssembly->get_EntryPoint(&pMethodInfo); if(FAILED(hr)) { printf("Failed pAssembly->get_EntryPoint w/hr 0x%08lx\n", hr); return -1; } ZeroMemory(&retVal, sizeof(VARIANT)); ZeroMemory(&obj, sizeof(VARIANT)); obj.vt = VT_NULL; vtPsa.vt = (VT_ARRAY | VT_BSTR); //Managing parameters if(arg_s[0] != '\x00') { //if we have at least 1 parameter set cEleemnt to 1 psaStaticMethodArgs = SafeArrayCreateVector(VT_VARIANT, 0, 1); int arg_n = 1; //Parameters number for (int i = 0; i < strlen((char*)arg_s); i++) { if (arg_s[i] == ' ') arg_n++; } //Set cElement to parametes number vtPsa.parray = SafeArrayCreateVector(VT_BSTR, 0, arg_n); char delim[] = " "; char *next_token = NULL; char *ptr = strtok_s((char*)arg_s, delim, &next_token); long i = 0; //Wallking parameters while (i < arg_n && ptr != NULL) { OLECHAR *sOleText1 = new OLECHAR[strlen(ptr) + 1]; hr = mbstowcs(sOleText1, ptr, strlen(ptr) + 1); BSTR strParam1 = SysAllocString(sOleText1); SafeArrayPutElement(vtPsa.parray, &i, strParam1); ptr = strtok_s(NULL, delim, &next_token); i++; } long iEventCdIdx(0); hr = SafeArrayPutElement(psaStaticMethodArgs, &iEventCdIdx, &vtPsa); } else { //if no parameters set cEleemnt to 0 psaStaticMethodArgs = SafeArrayCreateVector(VT_VARIANT, 0, 0); } //Assembly execution hr = pMethodInfo->Invoke_3(obj, psaStaticMethodArgs, &retVal); if(FAILED(hr)) { printf("Failed pMethodInfo->Invoke_3 w/hr 0x%08lx\n", hr); return -1; } wprintf(L"Succeeded\n"); return 0; } VOID Execute(LPVOID lpPayload) { if (!AttachConsole(-1)) AllocConsole(); wprintf(L"Execution started\n"); executeSharp(lpPayload); wprintf(L"Execution end\n"); }
4330df9d46d69e0156b59f8e70ed4bea3ab7e2e2
fbbc663c607c9687452fa3192b02933b9eb3656d
/tags/libopenmpt-0.2.6611-beta18/mptrack/dlg_misc.cpp
7c5d84fc3a512c146a22df87bf3b5c1195117d15
[ "BSD-3-Clause" ]
permissive
svn2github/OpenMPT
594837f3adcb28ba92a324e51c6172a8c1e8ea9c
a2943f028d334a8751b9f16b0512a5e0b905596a
refs/heads/master
2021-07-10T05:07:18.298407
2019-01-19T10:27:21
2019-01-19T10:27:21
106,434,952
2
1
null
null
null
null
UTF-8
C++
false
false
55,114
cpp
/* * dlg_misc.cpp * ------------ * Purpose: Implementation of various OpenMPT dialogs. * Notes : (currently none) * Authors: OpenMPT Devs * The OpenMPT source code is released under the BSD license. Read LICENSE for more details. */ #include "stdafx.h" #include "Mptrack.h" #include "Moddoc.h" #include "Mainfrm.h" #include "dlg_misc.h" #include "Dlsbank.h" #include "ChildFrm.h" #include "../soundlib/plugins/PlugInterface.h" #include "ChannelManagerDlg.h" #include "TempoSwingDialog.h" #include "../soundlib/mod_specifications.h" #include "../common/version.h" #include "../common/StringFixer.h" OPENMPT_NAMESPACE_BEGIN /////////////////////////////////////////////////////////////////////// // CModTypeDlg BEGIN_MESSAGE_MAP(CModTypeDlg, CDialog) //{{AFX_MSG_MAP(CModTypeDlg) ON_CBN_SELCHANGE(IDC_COMBO1, UpdateDialog) ON_CBN_SELCHANGE(IDC_COMBO_TEMPOMODE, OnTempoModeChanged) ON_COMMAND(IDC_CHECK_PT1X, OnPTModeChanged) ON_COMMAND(IDC_BUTTON1, OnTempoSwing) ON_COMMAND(IDC_BUTTON2, OnLegacyPlaybackSettings) ON_COMMAND(IDC_BUTTON3, OnDefaultBehaviour) ON_NOTIFY_EX(TTN_NEEDTEXT, 0, OnToolTipNotify) //}}AFX_MSG_MAP END_MESSAGE_MAP() void CModTypeDlg::DoDataExchange(CDataExchange* pDX) //-------------------------------------------------- { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CModTypeDlg) DDX_Control(pDX, IDC_COMBO1, m_TypeBox); DDX_Control(pDX, IDC_COMBO2, m_ChannelsBox); DDX_Control(pDX, IDC_COMBO_TEMPOMODE, m_TempoModeBox); DDX_Control(pDX, IDC_COMBO_MIXLEVELS, m_PlugMixBox); DDX_Control(pDX, IDC_CHECK1, m_CheckBox1); DDX_Control(pDX, IDC_CHECK2, m_CheckBox2); DDX_Control(pDX, IDC_CHECK3, m_CheckBox3); DDX_Control(pDX, IDC_CHECK4, m_CheckBox4); DDX_Control(pDX, IDC_CHECK5, m_CheckBox5); DDX_Control(pDX, IDC_CHECK_PT1X, m_CheckBoxPT1x); DDX_Control(pDX, IDC_CHECK_AMIGALIMITS, m_CheckBoxAmigaLimits); //}}AFX_DATA_MAP } BOOL CModTypeDlg::OnInitDialog() //------------------------------ { CDialog::OnInitDialog(); m_nType = sndFile.GetType(); m_nChannels = sndFile.GetNumChannels(); m_tempoSwing = sndFile.m_tempoSwing; m_playBehaviour = sndFile.m_playBehaviour; initialized = false; // Mod types m_TypeBox.SetItemData(m_TypeBox.AddString(_T("ProTracker MOD")), MOD_TYPE_MOD); m_TypeBox.SetItemData(m_TypeBox.AddString(_T("ScreamTracker S3M")), MOD_TYPE_S3M); m_TypeBox.SetItemData(m_TypeBox.AddString(_T("FastTracker XM")), MOD_TYPE_XM); m_TypeBox.SetItemData(m_TypeBox.AddString(_T("Impulse Tracker IT")), MOD_TYPE_IT); m_TypeBox.SetItemData(m_TypeBox.AddString(_T("OpenMPT MPTM")), MOD_TYPE_MPT); switch(m_nType) { case MOD_TYPE_S3M: m_TypeBox.SetCurSel(1); break; case MOD_TYPE_XM: m_TypeBox.SetCurSel(2); break; case MOD_TYPE_IT: m_TypeBox.SetCurSel(3); break; case MOD_TYPE_MPT: m_TypeBox.SetCurSel(4); break; default: m_TypeBox.SetCurSel(0); break; } // Time signature information SetDlgItemInt(IDC_ROWSPERBEAT, sndFile.m_nDefaultRowsPerBeat); SetDlgItemInt(IDC_ROWSPERMEASURE, sndFile.m_nDefaultRowsPerMeasure); // Version information if(sndFile.m_dwCreatedWithVersion) SetDlgItemText(IDC_EDIT_CREATEDWITH, _T("OpenMPT ") + FormatVersionNumber(sndFile.m_dwCreatedWithVersion)); SetDlgItemText(IDC_EDIT_SAVEDWITH, sndFile.m_madeWithTracker.c_str()); const int iconSize = Util::ScalePixels(32, m_hWnd); m_warnIcon = (HICON)::LoadImage(NULL, IDI_EXCLAMATION, IMAGE_ICON, iconSize, iconSize, LR_SHARED); UpdateDialog(); initialized = true; EnableToolTips(TRUE); return TRUE; } CString CModTypeDlg::FormatVersionNumber(DWORD version) //----------------------------------------------------- { return std::string(MptVersion::ToStr(version) + (MptVersion::IsTestBuild(version) ? " (test build)" : "")).c_str(); } void CModTypeDlg::UpdateChannelCBox() //----------------------------------- { const MODTYPE type = static_cast<MODTYPE>(m_TypeBox.GetItemData(m_TypeBox.GetCurSel())); CHANNELINDEX currChanSel = static_cast<CHANNELINDEX>(m_ChannelsBox.GetItemData(m_ChannelsBox.GetCurSel())); const CHANNELINDEX minChans = CSoundFile::GetModSpecifications(type).channelsMin; const CHANNELINDEX maxChans = CSoundFile::GetModSpecifications(type).channelsMax; if(m_ChannelsBox.GetCount() < 1 || m_ChannelsBox.GetItemData(0) != minChans || m_ChannelsBox.GetItemData(m_ChannelsBox.GetCount() - 1) != maxChans) { // Update channel list if number of supported channels has changed. if(m_ChannelsBox.GetCount() < 1) currChanSel = m_nChannels; m_ChannelsBox.ResetContent(); CString s; for(CHANNELINDEX i = minChans; i <= maxChans; i++) { s.Format(_T("%u Channel%s"), i, (i != 1) ? _T("s") : _T("")); m_ChannelsBox.SetItemData(m_ChannelsBox.AddString(s), i); } Limit(currChanSel, minChans, maxChans); m_ChannelsBox.SetCurSel(currChanSel - minChans); } } void CModTypeDlg::UpdateDialog() //------------------------------ { m_nType = static_cast<MODTYPE>(m_TypeBox.GetItemData(m_TypeBox.GetCurSel())); UpdateChannelCBox(); m_CheckBox1.SetCheck(sndFile.m_SongFlags[SONG_LINEARSLIDES] ? BST_CHECKED : BST_UNCHECKED); m_CheckBox2.SetCheck(sndFile.m_SongFlags[SONG_FASTVOLSLIDES] ? BST_CHECKED : BST_UNCHECKED); m_CheckBox3.SetCheck(sndFile.m_SongFlags[SONG_ITOLDEFFECTS] ? BST_CHECKED : BST_UNCHECKED); m_CheckBox4.SetCheck(sndFile.m_SongFlags[SONG_ITCOMPATGXX] ? BST_CHECKED : BST_UNCHECKED); m_CheckBox5.SetCheck(sndFile.m_SongFlags[SONG_EXFILTERRANGE] ? BST_CHECKED : BST_UNCHECKED); m_CheckBoxPT1x.SetCheck(sndFile.m_SongFlags[SONG_PT_MODE] ? BST_CHECKED : BST_UNCHECKED); m_CheckBoxAmigaLimits.SetCheck(sndFile.m_SongFlags[SONG_AMIGALIMITS] ? BST_CHECKED : BST_UNCHECKED); const FlagSet<SongFlags> allowedFlags(sndFile.GetModSpecifications(m_nType).songFlags); m_CheckBox1.EnableWindow(allowedFlags[SONG_LINEARSLIDES]); m_CheckBox2.EnableWindow(allowedFlags[SONG_FASTVOLSLIDES]); m_CheckBox3.EnableWindow(allowedFlags[SONG_ITOLDEFFECTS]); m_CheckBox4.EnableWindow(allowedFlags[SONG_ITCOMPATGXX]); m_CheckBox5.EnableWindow(allowedFlags[SONG_EXFILTERRANGE]); m_CheckBoxPT1x.EnableWindow(allowedFlags[SONG_PT_MODE]); m_CheckBoxAmigaLimits.EnableWindow(allowedFlags[SONG_AMIGALIMITS]); // These two checkboxes are mutually exclusive and share the same screen space m_CheckBoxPT1x.ShowWindow(m_nType == MOD_TYPE_MOD ? SW_SHOW : SW_HIDE); m_CheckBox5.ShowWindow(m_nType != MOD_TYPE_MOD ? SW_SHOW : SW_HIDE); if(allowedFlags[SONG_PT_MODE]) OnPTModeChanged(); // Tempo modes const TempoMode oldTempoMode = initialized ? static_cast<TempoMode>(m_TempoModeBox.GetItemData(m_TempoModeBox.GetCurSel())) : sndFile.m_nTempoMode; m_TempoModeBox.ResetContent(); m_TempoModeBox.SetItemData(m_TempoModeBox.AddString(_T("Classic")), tempoModeClassic); if(m_nType == MOD_TYPE_MPT || (sndFile.GetType() != MOD_TYPE_MPT && sndFile.m_nTempoMode == tempoModeAlternative)) m_TempoModeBox.SetItemData(m_TempoModeBox.AddString(_T("Alternative")), tempoModeAlternative); if(m_nType == MOD_TYPE_MPT || (sndFile.GetType() != MOD_TYPE_MPT && sndFile.m_nTempoMode == tempoModeModern)) m_TempoModeBox.SetItemData(m_TempoModeBox.AddString(_T("Modern (accurate)")), tempoModeModern); m_TempoModeBox.SetCurSel(0); for(int i = m_TempoModeBox.GetCount(); i > 0; i--) { if(static_cast<TempoMode>(m_TempoModeBox.GetItemData(i)) == oldTempoMode) { m_TempoModeBox.SetCurSel(i); break; } } OnTempoModeChanged(); // Mix levels const MixLevels oldMixLevels = initialized ? static_cast<MixLevels>(m_PlugMixBox.GetItemData(m_PlugMixBox.GetCurSel())) : sndFile.GetMixLevels(); m_PlugMixBox.ResetContent(); if(m_nType == MOD_TYPE_MPT || (sndFile.GetType() != MOD_TYPE_MPT && sndFile.GetMixLevels() == mixLevels1_17RC3)) // In XM/IT, this is only shown for backwards compatibility with existing tunes m_PlugMixBox.SetItemData(m_PlugMixBox.AddString(_T("OpenMPT 1.17RC3")), mixLevels1_17RC3); if(sndFile.GetMixLevels() == mixLevels1_17RC2) // Only shown for backwards compatibility with existing tunes m_PlugMixBox.SetItemData(m_PlugMixBox.AddString(_T("OpenMPT 1.17RC2")), mixLevels1_17RC2); if(sndFile.GetMixLevels() == mixLevels1_17RC1) // Ditto m_PlugMixBox.SetItemData(m_PlugMixBox.AddString(_T("OpenMPT 1.17RC1")), mixLevels1_17RC1); if(sndFile.GetMixLevels() == mixLevelsOriginal) // Ditto m_PlugMixBox.SetItemData(m_PlugMixBox.AddString(_T("Original (MPT 1.16)")), mixLevelsOriginal); int compatMixMode = m_PlugMixBox.AddString(_T("Compatible")); m_PlugMixBox.SetItemData(compatMixMode, mixLevelsCompatible); if(m_nType == MOD_TYPE_XM) m_PlugMixBox.SetItemData(m_PlugMixBox.AddString(_T("Compatible (FT2 Pan Law)")), mixLevelsCompatibleFT2); // Default to compatible mix mode m_PlugMixBox.SetCurSel(compatMixMode); int mixCount = m_PlugMixBox.GetCount(); for(int i = 0; i < mixCount; i++) { if(static_cast<MixLevels>(m_PlugMixBox.GetItemData(i)) == oldMixLevels) { m_PlugMixBox.SetCurSel(i); break; } } const bool XMorITorMPT = (m_nType & (MOD_TYPE_XM | MOD_TYPE_IT | MOD_TYPE_MPT)); // Mixmode Box GetDlgItem(IDC_TEXT_MIXMODE)->EnableWindow(XMorITorMPT); m_PlugMixBox.EnableWindow(XMorITorMPT); // Tempo mode box m_TempoModeBox.EnableWindow(XMorITorMPT); GetDlgItem(IDC_ROWSPERBEAT)->EnableWindow(XMorITorMPT); GetDlgItem(IDC_ROWSPERMEASURE)->EnableWindow(XMorITorMPT); GetDlgItem(IDC_TEXT_ROWSPERBEAT)->EnableWindow(XMorITorMPT); GetDlgItem(IDC_TEXT_ROWSPERMEASURE)->EnableWindow(XMorITorMPT); GetDlgItem(IDC_TEXT_TEMPOMODE)->EnableWindow(XMorITorMPT); GetDlgItem(IDC_FRAME_TEMPOMODE)->EnableWindow(XMorITorMPT); // Compatibility settings PlayBehaviourSet defaultBehaviour = CSoundFile::GetDefaultPlaybackBehaviour(m_nType); bool usesDefaultBehaviour = true; const bool isMPTM = (m_nType == MOD_TYPE_MPT); if(m_nType & (MOD_TYPE_MPT | MOD_TYPE_IT | MOD_TYPE_XM)) { for(size_t i = 0; i < m_playBehaviour.size(); i++) { // Some flags are not really important for "default" behaviour. if(defaultBehaviour[i] != m_playBehaviour[i] && i != MSF_COMPATIBLE_PLAY && i != kFT2VolumeRamping) { usesDefaultBehaviour = false; break; } } } static_cast<CStatic *>(GetDlgItem(IDC_STATIC1))->SetIcon((usesDefaultBehaviour || isMPTM) ? NULL : m_warnIcon); GetDlgItem(IDC_STATIC2)->SetWindowText((usesDefaultBehaviour || isMPTM) ? _T("Compatibility settings are currently optimal. It is advised to not edit them.") : _T("Playback settings have been set to compatibility mode. Click \"Set Defaults\" to use the recommended settings instead.")); GetDlgItem(IDC_BUTTON3)->EnableWindow(usesDefaultBehaviour ? FALSE : TRUE); } void CModTypeDlg::OnPTModeChanged() //--------------------------------- { // PT1/2 mode enforces Amiga limits const bool ptMode = IsDlgButtonChecked(IDC_CHECK_PT1X) != BST_UNCHECKED; m_CheckBoxAmigaLimits.EnableWindow(!ptMode); if(ptMode) m_CheckBoxAmigaLimits.SetCheck(BST_CHECKED); } void CModTypeDlg::OnTempoModeChanged() //------------------------------------ { GetDlgItem(IDC_BUTTON1)->EnableWindow(m_TempoModeBox.GetItemData(m_TempoModeBox.GetCurSel()) == tempoModeModern); } void CModTypeDlg::OnTempoSwing() //------------------------------ { const ROWINDEX oldRPB = sndFile.m_nDefaultRowsPerBeat; const ROWINDEX oldRPM = sndFile.m_nDefaultRowsPerMeasure; const TempoMode oldMode = sndFile.m_nTempoMode; // Temporarily apply new tempo signature for preview ROWINDEX newRPB = std::max(1u, GetDlgItemInt(IDC_ROWSPERBEAT)); ROWINDEX newRPM = std::max(newRPB, GetDlgItemInt(IDC_ROWSPERMEASURE)); sndFile.m_nDefaultRowsPerBeat = newRPB; sndFile.m_nDefaultRowsPerMeasure = newRPM; sndFile.m_nTempoMode = tempoModeModern; m_tempoSwing.resize(GetDlgItemInt(IDC_ROWSPERBEAT), TempoSwing::Unity); CTempoSwingDlg dlg(this, m_tempoSwing, sndFile); if(dlg.DoModal() == IDOK) { m_tempoSwing = dlg.m_tempoSwing; } sndFile.m_nDefaultRowsPerBeat = oldRPB; sndFile.m_nDefaultRowsPerMeasure = oldRPM; sndFile.m_nTempoMode = oldMode; } void CModTypeDlg::OnLegacyPlaybackSettings() //------------------------------------------ { CLegacyPlaybackSettingsDlg dlg(this, m_playBehaviour, m_nType); dlg.DoModal(); UpdateDialog(); } void CModTypeDlg::OnDefaultBehaviour() //------------------------------------ { m_playBehaviour = CSoundFile::GetDefaultPlaybackBehaviour(m_nType); UpdateDialog(); } bool CModTypeDlg::VerifyData() //---------------------------- { int temp_nRPB = GetDlgItemInt(IDC_ROWSPERBEAT); int temp_nRPM = GetDlgItemInt(IDC_ROWSPERMEASURE); if(temp_nRPB > temp_nRPM) { Reporting::Warning("Error: Rows per measure must be greater than or equal to rows per beat."); GetDlgItem(IDC_ROWSPERMEASURE)->SetFocus(); return false; } int sel = m_ChannelsBox.GetItemData(m_ChannelsBox.GetCurSel()); MODTYPE type = static_cast<MODTYPE>(m_TypeBox.GetItemData(m_TypeBox.GetCurSel())); CHANNELINDEX maxChans = CSoundFile::GetModSpecifications(type).channelsMax; if(sel > maxChans) { CString error; error.Format(_T("Error: Maximum number of channels for this module type is %u."), maxChans); Reporting::Warning(error); return false; } if(maxChans < sndFile.GetNumChannels()) { if(Reporting::Confirm("New module type supports less channels than currently used, and reducing channel number is required. Continue?") != cnfYes) return false; } return true; } void CModTypeDlg::OnOK() //---------------------- { if (!VerifyData()) return; int sel = m_TypeBox.GetCurSel(); if (sel >= 0) { m_nType = static_cast<MODTYPE>(m_TypeBox.GetItemData(sel)); } sndFile.m_SongFlags.set(SONG_LINEARSLIDES, m_CheckBox1.GetCheck() != BST_UNCHECKED); sndFile.m_SongFlags.set(SONG_FASTVOLSLIDES, m_CheckBox2.GetCheck() != BST_UNCHECKED); sndFile.m_SongFlags.set(SONG_ITOLDEFFECTS, m_CheckBox3.GetCheck() != BST_UNCHECKED); sndFile.m_SongFlags.set(SONG_ITCOMPATGXX, m_CheckBox4.GetCheck() != BST_UNCHECKED); sndFile.m_SongFlags.set(SONG_EXFILTERRANGE, m_CheckBox5.GetCheck() != BST_UNCHECKED); sndFile.m_SongFlags.set(SONG_PT_MODE, m_CheckBoxPT1x.GetCheck() != BST_UNCHECKED); sndFile.m_SongFlags.set(SONG_AMIGALIMITS, m_CheckBoxAmigaLimits.GetCheck() != BST_UNCHECKED); sel = m_ChannelsBox.GetCurSel(); if (sel >= 0) { m_nChannels = static_cast<CHANNELINDEX>(m_ChannelsBox.GetItemData(sel)); } sndFile.m_nDefaultRowsPerBeat = GetDlgItemInt(IDC_ROWSPERBEAT); sndFile.m_nDefaultRowsPerMeasure = GetDlgItemInt(IDC_ROWSPERMEASURE); sel = m_TempoModeBox.GetCurSel(); if (sel >= 0) { sndFile.m_nTempoMode = static_cast<TempoMode>(m_TempoModeBox.GetItemData(sel)); } if(sndFile.m_nTempoMode == tempoModeModern) { sndFile.m_tempoSwing = m_tempoSwing; sndFile.m_tempoSwing.resize(sndFile.m_nDefaultRowsPerBeat); } else { sndFile.m_tempoSwing.clear(); } sel = m_PlugMixBox.GetCurSel(); if(sel >= 0) { sndFile.SetMixLevels(static_cast<MixLevels>(m_PlugMixBox.GetItemData(sel))); } PlayBehaviourSet allowedFlags = CSoundFile::GetSupportedPlaybackBehaviour(m_nType); for(size_t i = 0; i < kMaxPlayBehaviours; i++) { // Only set those flags which are supported by the new format or were already enabled previously sndFile.m_playBehaviour.set(i, m_playBehaviour[i] && (allowedFlags[i] || (sndFile.m_playBehaviour[i] && sndFile.GetType() == m_nType))); } if(CChannelManagerDlg::sharedInstance(FALSE) && CChannelManagerDlg::sharedInstance()->IsDisplayed()) CChannelManagerDlg::sharedInstance()->Update(); DestroyIcon(m_warnIcon); CDialog::OnOK(); } BOOL CModTypeDlg::OnToolTipNotify(UINT, NMHDR *pNMHDR, LRESULT *) //--------------------------------------------------------------- { TOOLTIPTEXT *pTTT = (TOOLTIPTEXTA*)pNMHDR; const TCHAR *text = _T(""); UINT_PTR nID = pNMHDR->idFrom; if(pTTT->uFlags & TTF_IDISHWND) { // idFrom is actually the HWND of the tool nID = ::GetDlgCtrlID((HWND)nID); } switch(nID) { case IDC_CHECK1: text = _T("Note slides always slide the same amount, not depending on the sample frequency."); break; case IDC_CHECK2: text = _T("Old ScreamTracker 3 volume slide behaviour (not recommended)."); break; case IDC_CHECK3: text = _T("Play some effects like in early versions of Impulse Tracker (not recommended)."); break; case IDC_CHECK4: text = _T("Gxx and Exx/Fxx won't share effect memory. Gxx resets instrument envelopes."); break; case IDC_CHECK5: text = _T("The resonant filter's frequency range is increased from about 5KHz to 10KHz."); break; case IDC_CHECK6: text = _T("The instrument settings of the external ITI files will be ignored."); break; case IDC_CHECK_PT1X: text = _T("Enforce Amiga frequency limits, ProTracker offset bug emulation."); break; case IDC_COMBO_MIXLEVELS: text = _T("Mixing method of sample and VST levels."); break; case IDC_BUTTON1: if(!GetDlgItem(IDC_BUTTON1)->IsWindowEnabled()) { text = _T("Tempo swing is only available in modern tempo mode."); } else { CString s = _T("Swing setting: "); if(m_tempoSwing.empty()) { s += _T("Default"); } else { for(size_t i = 0; i < m_tempoSwing.size(); i++) { if(i > 0) s += _T(" / "); s.AppendFormat(_T("%u%%"), Util::muldivr(m_tempoSwing[i], 100, TempoSwing::Unity)); } } mpt::String::CopyN(pTTT->szText, s); return TRUE; } } mpt::String::CopyN(pTTT->szText, text); return TRUE; } ////////////////////////////////////////////////////////////////////////////// // CLegacyPlaybackSettings BEGIN_MESSAGE_MAP(CLegacyPlaybackSettingsDlg, CDialog) ON_COMMAND(IDC_BUTTON1, OnSelectDefaults) ON_CLBN_CHKCHANGE(IDC_LIST1, UpdateSelectDefaults) END_MESSAGE_MAP() void CLegacyPlaybackSettingsDlg::DoDataExchange(CDataExchange* pDX) //----------------------------------------------------------------- { CDialog::DoDataExchange(pDX); DDX_Control(pDX, IDC_LIST1, m_CheckList); } BOOL CLegacyPlaybackSettingsDlg::OnInitDialog() //--------------------------------------------- { CDialog::OnInitDialog(); PlayBehaviourSet allowedFlags = CSoundFile::GetSupportedPlaybackBehaviour(m_modType); for(size_t i = 0; i < kMaxPlayBehaviours; i++) { const TCHAR *desc = _T(""); switch(i) { case MSF_COMPATIBLE_PLAY: continue; case kMPTOldSwingBehaviour: desc = _T("OpenMPT 1.17 compatible random variation behaviour for instruments"); break; case kMIDICCBugEmulation: desc = _T("Plugin volume MIDI CC bug emulation"); break; case kOldMIDIPitchBends: desc = _T("Old Pitch Wheel behaviour for instrument plugins"); break; case kFT2VolumeRamping: desc = _T("Use smooth Fasttracker 2 volume ramping"); break; case kMODVBlankTiming: desc = _T("VBlank timing: F21 and above sets speed instead of tempo"); break; case kSlidesAtSpeed1: desc = _T("Execute regular portamento slides at speed 1"); break; case kHertzInLinearMode: desc = _T("Compute note frequency in hertz rather than periods"); break; case kTempoClamp: desc = _T("Clamp tempo to 32-255 range"); break; case kPerChannelGlobalVolSlide: desc = _T("Global volume slide memory is per-channel"); break; case kPanOverride: desc = _T("Panning commands override surround and random pan variation"); break; case kITInstrWithoutNote: desc = _T("Retrigger instrument envelopes on instrument change"); break; case kITVolColFinePortamento: desc = _T("Volume column portamento never does fine portamento"); break; case kITArpeggio: desc = _T("IT arpeggio algorithm"); break; case kITOutOfRangeDelay: desc = _T("Out-of-range delay commands queue new instrument"); break; case kITPortaMemoryShare: desc = _T("Gxx shares memory with Exx and Fxx"); break; case kITPatternLoopTargetReset: desc = _T("After finishing a pattern loop, set the pattern loop target to the next row"); break; case kITFT2PatternLoop: desc = _T("Nested pattern loop behaviour"); break; case kITPingPongNoReset: desc = _T("Do not reset ping pong direction with instrument numbers"); break; case kITEnvelopeReset: desc = _T("IT envelope reset behaviour"); break; case kITClearOldNoteAfterCut: desc = _T("Forget the previous note after cutting it"); break; case kITVibratoTremoloPanbrello: desc = _T("More IT-like Vibrato, Tremolo and Panbrello handling"); break; case kITTremor: desc = _T("Ixx behaves like in IT"); break; case kITRetrigger: desc = _T("Qxx behaves like in IT"); break; case kITMultiSampleBehaviour: desc = _T("Properly update C-5 frequency when changing note in multisampled instrument"); break; case kITPortaTargetReached: desc = _T("Clear portamento target after it has been reached"); break; case kITPatternLoopBreak: desc = _T("Do not reset loop count on pattern break."); break; case kITOffset: desc = _T("Offset after sample end is treated like in IT"); break; case kITSwingBehaviour: desc = _T("Volume and panning random variation work more like in IT"); break; case kITNNAReset: desc = _T("NNA is reset on every note change, not every instrument change"); break; case kITSCxStopsSample: desc = _T("SCx really stops the sample and does not just mute it"); break; case kITEnvelopePositionHandling: desc = _T("IT-style envelope position advance + enable/disable behaviour"); break; case kITPortamentoInstrument: desc = _T("More compatible instrument change + portamento"); break; case kITPingPongMode: desc = _T("Do not repeat last sample point in ping pong loop, like IT's software mixer"); break; case kITRealNoteMapping: desc = _T("Use triggered note rather than translated note for PPS and DNA note check"); break; case kITHighOffsetNoRetrig: desc = _T("SAx does not apply an offset effect to a note next to it"); break; case kITFilterBehaviour: desc = _T("User IT's filter coefficients (unless extended filter range is used) and behaviour"); break; case kITNoSurroundPan: desc = _T("Panning modulation is disabled on surround channels"); break; case kITShortSampleRetrig: desc = _T("Do not retrigger already stopped channels"); break; case kITPortaNoNote: desc = _T("Do not apply any portamento if no previous note is playing"); break; case kITDontResetNoteOffOnPorta: desc = _T("Only reset note-off status on portamento in IT Compatible Gxx mode"); break; case kITVolColMemory: desc = _T("Volume column effects share their memory with the effect column"); break; case kITPortamentoSwapResetsPos: desc = _T("Portamento with sample swap plays the new sample from the beginning"); break; case kITEmptyNoteMapSlot: desc = _T("Ignore instrument note map entries with no note completely"); break; case kITFirstTickHandling: desc = _T("IT-style first tick handling"); break; case kITSampleAndHoldPanbrello: desc = _T("IT-style sample&hold panbrello waveform"); break; case kITClearPortaTarget: desc = _T("New notes reset portamento target in IT"); break; case kITPanbrelloHold: desc = _T("Do not reset panbrello effect until next note or panning effect"); break; case kITPanningReset: desc = _T("Sample and instrument panning is only applied on note change, not instrument change"); break; case kITPatternLoopWithJumps: desc = _T("Bxx on the same row as SBx terminates the loop in IT"); break; case kITInstrWithNoteOff: desc = _T("Instrument number with note-off recalls default volume"); break; case kFT2Arpeggio: desc = _T("FT2 arpeggio algorithm"); break; case kFT2Retrigger: desc = _T("Rxx behaves like in FT2"); break; case kFT2VolColVibrato: desc = _T("Vibrato speed in volume column does not actually execute the vibrato effect"); break; case kFT2PortaNoNote: desc = _T("Do not play portamento-ed note if no previous note is playing"); break; case kFT2KeyOff: desc = _T("FT2-style Kxx handling"); break; case kFT2PanSlide: desc = _T("Volume-column pan slides are finer"); break; case kFT2OffsetOutOfRange: desc = _T("FT2-style 9xx edge case handling"); break; case kFT2RestrictXCommand: desc = _T("Do not allow ModPlug extensions to X command"); break; case kFT2RetrigWithNoteDelay: desc = _T("Retrigger envelopes if there is a note delay with no note"); break; case kFT2SetPanEnvPos: desc = _T("Lxx only sets the pan envelope position if the volume envelope's sustain flag is set"); break; case kFT2PortaIgnoreInstr: desc = _T("Portamento with instrument number applies volume settings of new sample, but not the new sample itself"); break; case kFT2VolColMemory: desc = _T("No volume column memory"); break; case kFT2LoopE60Restart: desc = _T("Next pattern starts on the same row as the last E60 command"); break; case kFT2ProcessSilentChannels: desc = _T("Keep processing faded channels for later portamento pickup"); break; case kFT2ReloadSampleSettings: desc = _T("Reload sample settings even if a note-off is placed next to an instrument number"); break; case kFT2PortaDelay: desc = _T("Portamento with note delay next to it is ignored"); break; case kFT2Transpose: desc = _T("Ignore out-of-range transposed notes"); break; case kFT2PatternLoopWithJumps: desc = _T("Bxx or Dxx on the same row as E6x terminates the loop"); break; case kFT2PortaTargetNoReset: desc = _T("Portamento target is not reset with new notes"); break; case kFT2EnvelopeEscape: desc = _T("Sustain point at end of envelope loop stops the loop after release"); break; case kFT2Tremor: desc = _T("Txx behaves like in FT2"); break; case kFT2OutOfRangeDelay: desc = _T("Do not trigger notes with out-of-range note delay"); break; case kFT2Periods: desc = _T("Use FT2's broken period handling"); break; case kFT2PanWithDelayedNoteOff: desc = _T("Panning command with delayed note-off is ignored"); break; case kFT2VolColDelay: desc = _T("FT2-style volume column handling if there is a note delay"); break; case kFT2FinetunePrecision: desc = _T("Round sample finetune to multiples of 16"); break; case kST3NoMutedChannels: desc = _T("Do not process any effects on muted S3M channels"); break; case kST3EffectMemory: desc = _T("Most effects share the same memory"); break; case kST3PortaSampleChange: desc = _T("Portamento with instrument number applies volume settings of new sample, but not the new sample itself."); break; case kST3VibratoMemory: desc = _T("Do not remember vibrato type in effect memory"); break; case kMODOneShotLoops: desc = _T("ProTracker one-shot loops"); break; case kMODIgnorePanning: desc = _T("Ignore panning commands."); break; case kMODSampleSwap: desc = _T("Enable on-the-fly sample swapping"); break; default: MPT_ASSERT(0); } if(m_playBehaviour[i] || allowedFlags[i]) { int item = m_CheckList.AddString(desc); m_CheckList.SetItemData(item, i); int check = m_playBehaviour[i] ? BST_CHECKED : BST_UNCHECKED; if(!allowedFlags[i]) check = BST_INDETERMINATE; // Is checked but not supported by format -> grey out m_CheckList.SetCheck(item, check); } } UpdateSelectDefaults(); return TRUE; } void CLegacyPlaybackSettingsDlg::OnOK() //------------------------------------- { CDialog::OnOK(); const int count = m_CheckList.GetCount(); for(int i = 0; i < count; i++) { m_playBehaviour.set(m_CheckList.GetItemData(i), m_CheckList.GetCheck(i) != BST_UNCHECKED); } } void CLegacyPlaybackSettingsDlg::OnSelectDefaults() //------------------------------------------------- { const int count = m_CheckList.GetCount(); PlayBehaviourSet defaults = CSoundFile::GetDefaultPlaybackBehaviour(m_modType); for(int i = 0; i < count; i++) { m_CheckList.SetCheck(i, defaults[m_CheckList.GetItemData(i)] ? BST_CHECKED : BST_UNCHECKED); } } void CLegacyPlaybackSettingsDlg::UpdateSelectDefaults() //----------------------------------------------------- { bool usesDefaults = false; const int count = m_CheckList.GetCount(); PlayBehaviourSet defaults = CSoundFile::GetDefaultPlaybackBehaviour(m_modType); for(int i = 0; i < count; i++) { if((m_CheckList.GetCheck(i) != BST_UNCHECKED) != defaults[m_CheckList.GetItemData(i)]) { usesDefaults = true; break; } } GetDlgItem(IDC_BUTTON1)->EnableWindow(usesDefaults ? TRUE : FALSE); } ////////////////////////////////////////////////////////////////////////////// // CShowLogDlg BOOL CShowLogDlg::OnInitDialog() //------------------------------ { CDialog::OnInitDialog(); if (m_lpszTitle) SetWindowText(m_lpszTitle); return FALSE; } UINT CShowLogDlg::ShowLog(LPCSTR pszLog, LPCSTR lpszTitle) //-------------------------------------------------------- { m_lpszLog = pszLog; m_lpszTitle = lpszTitle; return DoModal(); } /////////////////////////////////////////////////////////// // CRemoveChannelsDlg void CRemoveChannelsDlg::DoDataExchange(CDataExchange* pDX) //-------------------------------------------------- { CDialog::DoDataExchange(pDX); DDX_Control(pDX, IDC_REMCHANSLIST, m_RemChansList); } BEGIN_MESSAGE_MAP(CRemoveChannelsDlg, CDialog) ON_LBN_SELCHANGE(IDC_REMCHANSLIST, OnChannelChanged) END_MESSAGE_MAP() BOOL CRemoveChannelsDlg::OnInitDialog() //------------------------------------- { CHAR label[MAX(100, 20 + MAX_CHANNELNAME)]; CDialog::OnInitDialog(); for (UINT n = 0; n < m_nChannels; n++) { if(sndFile.ChnSettings[n].szName[0] >= 0x20) wsprintf(label, "Channel %d: %s", (n + 1), sndFile.ChnSettings[n].szName); else wsprintf(label, "Channel %d", n + 1); m_RemChansList.SetItemData(m_RemChansList.AddString(label), n); if (!m_bKeepMask[n]) m_RemChansList.SetSel(n); } if (m_nRemove > 0) { wsprintf(label, "Select %u channel%s to remove:", m_nRemove, (m_nRemove != 1) ? "s" : ""); } else { wsprintf(label, "Select channels to remove (the minimum number of remaining channels is %u)", sndFile.GetModSpecifications().channelsMin); } SetDlgItemText(IDC_QUESTION1, label); if(GetDlgItem(IDCANCEL)) GetDlgItem(IDCANCEL)->ShowWindow(m_ShowCancel); OnChannelChanged(); return TRUE; } void CRemoveChannelsDlg::OnOK() //----------------------------- { int nCount = m_RemChansList.GetSelCount(); CArray<int,int> aryListBoxSel; aryListBoxSel.SetSize(nCount); m_RemChansList.GetSelItems(nCount, aryListBoxSel.GetData()); m_bKeepMask.assign(m_nChannels, true); for (int n = 0; n < nCount; n++) { m_bKeepMask[aryListBoxSel[n]] = false; } if ((static_cast<CHANNELINDEX>(nCount) == m_nRemove && nCount > 0) || (m_nRemove == 0 && (sndFile.GetNumChannels() >= nCount + sndFile.GetModSpecifications().channelsMin))) CDialog::OnOK(); else CDialog::OnCancel(); } void CRemoveChannelsDlg::OnChannelChanged() //----------------------------------------- { UINT nr = 0; nr = m_RemChansList.GetSelCount(); GetDlgItem(IDOK)->EnableWindow(((nr == m_nRemove && nr >0) || (m_nRemove == 0 && (sndFile.GetNumChannels() >= nr + sndFile.GetModSpecifications().channelsMin) && nr > 0)) ? TRUE : FALSE); } //////////////////////////////////////////////////////////////////////////////// // Sound Bank Information CSoundBankProperties::CSoundBankProperties(CDLSBank &bank, CWnd *parent) : CDialog(IDD_SOUNDBANK_INFO, parent) //------------------------------------------------------------------------------------------------------------ { SOUNDBANKINFO bi; m_szInfo[0] = 0; fileName = bank.GetFileName(); UINT nType = bank.GetBankInfo(&bi); wsprintf(&m_szInfo[strlen(m_szInfo)], "Type:\t%s\r\n", (nType & SOUNDBANK_TYPE_SF2) ? "Sound Font (SF2)" : "Downloadable Sound (DLS)"); if (bi.szBankName[0]) wsprintf(&m_szInfo[strlen(m_szInfo)], "Name:\t\"%s\"\r\n", bi.szBankName); if (bi.szDescription[0]) wsprintf(&m_szInfo[strlen(m_szInfo)], "\t\"%s\"\r\n", bi.szDescription); if (bi.szCopyRight[0]) wsprintf(&m_szInfo[strlen(m_szInfo)], "Copyright:\t\"%s\"\r\n", bi.szCopyRight); if (bi.szEngineer[0]) wsprintf(&m_szInfo[strlen(m_szInfo)], "Author:\t\"%s\"\r\n", bi.szEngineer); if (bi.szSoftware[0]) wsprintf(&m_szInfo[strlen(m_szInfo)], "Software:\t\"%s\"\r\n", bi.szSoftware); // Last lines: comments if (bi.szComments[0]) { strncat(m_szInfo, "\r\nComments:\r\n", strlen(m_szInfo) - CountOf(m_szInfo) - 1); strncat(m_szInfo, bi.szComments, strlen(m_szInfo) - CountOf(m_szInfo) - 1); } } BOOL CSoundBankProperties::OnInitDialog() //--------------------------------------- { CDialog::OnInitDialog(); SetDlgItemText(IDC_EDIT1, m_szInfo); SetWindowTextW(m_hWnd, (fileName.AsNative() + L" - Sound Bank Information").c_str()); return TRUE; } //////////////////////////////////////////////////////////////////////////////////////////// // Keyboard Control static const uint8 whitetab[7] = {0,2,4,5,7,9,11}; static const uint8 blacktab[7] = {0xff,1,3,0xff,6,8,10}; BEGIN_MESSAGE_MAP(CKeyboardControl, CWnd) ON_WM_DESTROY() ON_WM_PAINT() ON_WM_MOUSEMOVE() ON_WM_LBUTTONDOWN() ON_WM_LBUTTONUP() END_MESSAGE_MAP() void CKeyboardControl::Init(HWND parent, UINT nOctaves, bool cursNotify) //---------------------------------------------------------------------- { m_hParent = parent; m_nOctaves = nOctaves; m_bCursorNotify = cursNotify; MemsetZero(KeyFlags); MemsetZero(m_sampleNum); // Point size to pixels int fontSize = -MulDiv(60, Util::GetDPIy(m_hWnd), 720); #if _WIN32_WINNT >= 0x0501 m_font.CreateFont(fontSize, 0, 0, 0, FW_NORMAL, FALSE, FALSE, FALSE, DEFAULT_CHARSET, OUT_RASTER_PRECIS, CLIP_DEFAULT_PRECIS, CLEARTYPE_QUALITY, FIXED_PITCH | FF_DONTCARE, "MS Shell Dlg"); #else m_font.CreateFont(fontSize, 0, 0, 0, FW_NORMAL, FALSE, FALSE, FALSE, DEFAULT_CHARSET, OUT_RASTER_PRECIS, CLIP_DEFAULT_PRECIS, DEFAULT_QUALITY, FIXED_PITCH | FF_DONTCARE, "MS Shell Dlg"); #endif } void CKeyboardControl::OnDestroy() //-------------------------------- { m_font.DeleteObject(); } void CKeyboardControl::OnPaint() //------------------------------ { HGDIOBJ oldpen, oldbrush; CRect rcClient, rect; CPaintDC dc(this); HDC hdc = dc.m_hDC; HBRUSH brushDot[2]; if (!m_nOctaves) m_nOctaves = 1; dc.SetBkMode(TRANSPARENT); GetClientRect(&rcClient); rect = rcClient; oldpen = ::SelectObject(hdc, CMainFrame::penBlack); oldbrush = ::SelectObject(hdc, CMainFrame::brushWhite); brushDot[0] = ::CreateSolidBrush(RGB(0xFF, 0, 0)); brushDot[1] = ::CreateSolidBrush(RGB(0xFF, 0xC0, 0xC0)); CFont *oldFont = dc.SelectObject(&m_font); // White notes for (UINT note=0; note<m_nOctaves*7; note++) { rect.right = ((note + 1) * rcClient.Width()) / (m_nOctaves * 7); int val = (note/7) * 12 + whitetab[note % 7]; if (val == m_nSelection) ::SelectObject(hdc, CMainFrame::brushGray); dc.Rectangle(&rect); if (val == m_nSelection) ::SelectObject(hdc, CMainFrame::brushWhite); if (val < NOTE_MAX && KeyFlags[val] != KEYFLAG_NORMAL && KeyFlags[val] < KEYFLAG_MAX) { CRect ellipseRect(rect.left + 2, rect.bottom - (rect.right - rect.left) + 2, rect.right - 2, rect.bottom - 2); ::SelectObject(hdc, brushDot[KeyFlags[val] - 1]); dc.Ellipse(ellipseRect); ::SelectObject(hdc, CMainFrame::brushWhite); if(m_sampleNum[val] != 0) { dc.SetTextColor(KeyFlags[val] == KEYFLAG_REDDOT ? RGB(255, 255, 255) : RGB(0, 0, 0)); TCHAR s[16]; wsprintf(s, _T("%u"), m_sampleNum[val]); dc.DrawText(s, -1, ellipseRect, DT_CENTER | DT_SINGLELINE | DT_VCENTER); } } rect.left = rect.right - 1; } // Black notes ::SelectObject(hdc, CMainFrame::brushBlack); rect = rcClient; rect.bottom -= rcClient.Height() / 3; for (UINT nblack=0; nblack<m_nOctaves*7; nblack++) { switch(nblack % 7) { case 1: case 2: case 4: case 5: case 6: { rect.left = (nblack * rcClient.Width()) / (m_nOctaves * 7); rect.right = rect.left; int delta = rcClient.Width() / (m_nOctaves * 7 * 3); rect.left -= delta; rect.right += delta; int val = (nblack/7)*12 + blacktab[nblack%7]; if (val == m_nSelection) ::SelectObject(hdc, CMainFrame::brushGray); dc.Rectangle(&rect); if (val == m_nSelection) ::SelectObject(hdc, CMainFrame::brushBlack); if (val < NOTE_MAX && KeyFlags[val] != KEYFLAG_NORMAL && KeyFlags[val] < KEYFLAG_MAX) { CRect ellipseRect(rect.left, rect.bottom - (rect.right - rect.left), rect.right, rect.bottom); ::SelectObject(hdc, brushDot[KeyFlags[val] - 1]); dc.Ellipse(ellipseRect); ::SelectObject(hdc, CMainFrame::brushBlack); if(m_sampleNum[val] != 0) { dc.SetTextColor(KeyFlags[val] == KEYFLAG_REDDOT ? RGB(255, 255, 255) : RGB(0, 0, 0)); TCHAR s[16]; wsprintf(s, _T("%u"), m_sampleNum[val]); dc.DrawText(s, -1, ellipseRect, DT_CENTER | DT_SINGLELINE | DT_VCENTER); } } } break; } } if (oldpen) ::SelectObject(hdc, oldpen); if (oldbrush) ::SelectObject(hdc, oldbrush); for(int i = 0; i < CountOf(brushDot); i++) { DeleteBrush(brushDot[i]); } dc.SelectObject(oldFont); } void CKeyboardControl::OnMouseMove(UINT flags, CPoint point) //---------------------------------------------------------- { int sel = -1, xmin, xmax; CRect rcClient, rect; if (!m_nOctaves) m_nOctaves = 1; GetClientRect(&rcClient); rect = rcClient; xmin = rcClient.right; xmax = rcClient.left; // White notes for (UINT note=0; note<m_nOctaves*7; note++) { int val = (note/7)*12 + whitetab[note % 7]; rect.right = ((note + 1) * rcClient.Width()) / (m_nOctaves * 7); if (val == m_nSelection) { if (rect.left < xmin) xmin = rect.left; if (rect.right > xmax) xmax = rect.right; } if (rect.PtInRect(point)) { sel = val; if (rect.left < xmin) xmin = rect.left; if (rect.right > xmax) xmax = rect.right; } rect.left = rect.right - 1; } // Black notes rect = rcClient; rect.bottom -= rcClient.Height() / 3; for (UINT nblack=0; nblack<m_nOctaves*7; nblack++) { switch(nblack % 7) { case 1: case 2: case 4: case 5: case 6: { int val = (nblack/7)*12 + blacktab[nblack % 7]; rect.left = (nblack * rcClient.Width()) / (m_nOctaves * 7); rect.right = rect.left; int delta = rcClient.Width() / (m_nOctaves * 7 * 3); rect.left -= delta; rect.right += delta; if (val == m_nSelection) { if (rect.left < xmin) xmin = rect.left; if (rect.right > xmax) xmax = rect.right; } if (rect.PtInRect(point)) { sel = val; if (rect.left < xmin) xmin = rect.left; if (rect.right > xmax) xmax = rect.right; } } break; } } // Check for selection change if (sel != m_nSelection) { m_nSelection = sel; rcClient.left = xmin; rcClient.right = xmax; InvalidateRect(&rcClient, FALSE); if ((m_bCursorNotify) && (m_hParent)) { ::PostMessage(m_hParent, WM_MOD_KBDNOTIFY, KBDNOTIFY_MOUSEMOVE, m_nSelection); if((flags & MK_LBUTTON)) { ::SendMessage(m_hParent, WM_MOD_KBDNOTIFY, KBDNOTIFY_LBUTTONDOWN, m_nSelection); } } } if (sel >= 0) { if (!m_bCapture) { m_bCapture = TRUE; SetCapture(); } } else { if (m_bCapture) { m_bCapture = FALSE; ReleaseCapture(); } } } void CKeyboardControl::OnLButtonDown(UINT, CPoint) //------------------------------------------------ { if ((m_nSelection != -1) && (m_hParent)) { ::SendMessage(m_hParent, WM_MOD_KBDNOTIFY, KBDNOTIFY_LBUTTONDOWN, m_nSelection); } } void CKeyboardControl::OnLButtonUp(UINT, CPoint) //---------------------------------------------- { if ((m_nSelection != -1) && (m_hParent)) { ::SendMessage(m_hParent, WM_MOD_KBDNOTIFY, KBDNOTIFY_LBUTTONUP, m_nSelection); } } //////////////////////////////////////////////////////////////////////////////// // // Sample Map // BEGIN_MESSAGE_MAP(CSampleMapDlg, CDialog) ON_MESSAGE(WM_MOD_KBDNOTIFY, OnKeyboardNotify) ON_WM_HSCROLL() ON_COMMAND(IDC_CHECK1, OnUpdateSamples) ON_CBN_SELCHANGE(IDC_COMBO1, OnUpdateKeyboard) END_MESSAGE_MAP() void CSampleMapDlg::DoDataExchange(CDataExchange* pDX) //---------------------------------------------------- { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CSampleMapDlg) DDX_Control(pDX, IDC_KEYBOARD1, m_Keyboard); DDX_Control(pDX, IDC_COMBO1, m_CbnSample); DDX_Control(pDX, IDC_SLIDER1, m_SbOctave); //}}AFX_DATA_MAP } BOOL CSampleMapDlg::OnInitDialog() //-------------------------------- { CDialog::OnInitDialog(); ModInstrument *pIns = sndFile.Instruments[m_nInstrument]; if (pIns) { for (UINT i=0; i<NOTE_MAX; i++) { KeyboardMap[i] = pIns->Keyboard[i]; } } m_Keyboard.Init(m_hWnd, 3, TRUE); m_SbOctave.SetRange(0, 7); m_SbOctave.SetPos(4); OnUpdateSamples(); OnUpdateOctave(); return TRUE; } void CSampleMapDlg::OnHScroll(UINT nCode, UINT nPos, CScrollBar *pBar) //-------------------------------------------------------------------- { CDialog::OnHScroll(nCode, nPos, pBar); OnUpdateKeyboard(); OnUpdateOctave(); } void CSampleMapDlg::OnUpdateSamples() //----------------------------------- { UINT nOldPos = 0; UINT nNewPos = 0; bool showAll; if ((m_nInstrument >= MAX_INSTRUMENTS)) return; if (m_CbnSample.GetCount() > 0) { nOldPos = m_CbnSample.GetItemData(m_CbnSample.GetCurSel()); } m_CbnSample.ResetContent(); showAll = (IsDlgButtonChecked(IDC_CHECK1) != FALSE); UINT nInsertPos; nInsertPos = m_CbnSample.AddString("0: No sample"); m_CbnSample.SetItemData(nInsertPos, 0); for (SAMPLEINDEX i = 1; i <= sndFile.GetNumSamples(); i++) { bool isUsed = showAll; if (!isUsed) { for (size_t j = 0; j < CountOf(KeyboardMap); j++) { if (KeyboardMap[j] == i) { isUsed = true; break; } } } if (isUsed) { CString sampleName; sampleName.Format("%d: %s", i, sndFile.GetSampleName(i)); nInsertPos = m_CbnSample.AddString(sampleName); m_CbnSample.SetItemData(nInsertPos, i); if (i == nOldPos) nNewPos = nInsertPos; } } m_CbnSample.SetCurSel(nNewPos); OnUpdateKeyboard(); } void CSampleMapDlg::OnUpdateOctave() //---------------------------------- { TCHAR s[64]; UINT nBaseOctave = m_SbOctave.GetPos() & 7; wsprintf(s, _T("Octaves %u-%u"), nBaseOctave, nBaseOctave+2); SetDlgItemText(IDC_TEXT1, s); } void CSampleMapDlg::OnUpdateKeyboard() //------------------------------------ { UINT nSample = m_CbnSample.GetItemData(m_CbnSample.GetCurSel()); UINT nBaseOctave = m_SbOctave.GetPos() & 7; BOOL bRedraw = FALSE; for (UINT iNote=0; iNote<3*12; iNote++) { uint8 nOld = m_Keyboard.GetFlags(iNote); SAMPLEINDEX oldSmp = m_Keyboard.GetSample(iNote); UINT ndx = nBaseOctave*12+iNote; uint8 nNew = CKeyboardControl::KEYFLAG_NORMAL; if(KeyboardMap[ndx] == nSample) nNew = CKeyboardControl::KEYFLAG_REDDOT; else if(KeyboardMap[ndx] != 0) nNew = CKeyboardControl::KEYFLAG_BRIGHTDOT; if (nNew != nOld || oldSmp != KeyboardMap[ndx]) { m_Keyboard.SetFlags(iNote, nNew); m_Keyboard.SetSample(iNote, KeyboardMap[ndx]); bRedraw = TRUE; } } if (bRedraw) m_Keyboard.InvalidateRect(NULL, FALSE); } LRESULT CSampleMapDlg::OnKeyboardNotify(WPARAM wParam, LPARAM lParam) //------------------------------------------------------------------- { CHAR s[32] = "--"; if ((lParam >= 0) && (lParam < 3*12)) { SAMPLEINDEX nSample = static_cast<SAMPLEINDEX>(m_CbnSample.GetItemData(m_CbnSample.GetCurSel())); UINT nBaseOctave = m_SbOctave.GetPos() & 7; const std::string temp = sndFile.GetNoteName(static_cast<ModCommand::NOTE>(lParam + 1 + 12 * nBaseOctave), m_nInstrument).c_str(); if(temp.size() >= CountOf(s)) wsprintf(s, "%s", "..."); else wsprintf(s, "%s", temp.c_str()); ModInstrument *pIns = sndFile.Instruments[m_nInstrument]; if ((wParam == KBDNOTIFY_LBUTTONDOWN) && (nSample < MAX_SAMPLES) && (pIns)) { UINT iNote = nBaseOctave * 12 + lParam; if(mouseAction == mouseUnknown) { // Mouse down -> decide if we are going to set or remove notes mouseAction = mouseSet; if(KeyboardMap[iNote] == nSample) { mouseAction = (KeyboardMap[iNote] == pIns->Keyboard[iNote]) ? mouseZero : mouseUnset; } } switch(mouseAction) { case mouseSet: KeyboardMap[iNote] = nSample; break; case mouseUnset: KeyboardMap[iNote] = pIns->Keyboard[iNote]; break; case mouseZero: if(KeyboardMap[iNote] == nSample) { KeyboardMap[iNote] = 0; } break; } /* rewbs.note: I don't think we need this with cust keys. // -> CODE#0009 // -> DESC="instrument editor note play & octave change" CMDIChildWnd *pMDIActive = CMainFrame::GetMainFrame() ? CMainFrame::GetMainFrame()->MDIGetActive() : NULL; CView *pView = pMDIActive ? pMDIActive->GetActiveView() : NULL; if(pView){ CModDoc *pModDoc = (CModDoc *)pView->GetDocument(); BOOL bNotPlaying = ((CMainFrame::GetMainFrame()->GetModPlaying() == pModDoc) && (CMainFrame::GetMainFrame()->IsPlaying())) ? FALSE : TRUE; pModDoc->PlayNote(iNote+1, m_nInstrument, 0, bNotPlaying); } // -! BEHAVIOUR_CHANGE#0009 */ OnUpdateKeyboard(); } } if(wParam == KBDNOTIFY_LBUTTONUP) { mouseAction = mouseUnknown; } SetDlgItemText(IDC_TEXT2, s); return 0; } void CSampleMapDlg::OnOK() //------------------------ { ModInstrument *pIns = sndFile.Instruments[m_nInstrument]; if (pIns) { BOOL bModified = FALSE; for (UINT i=0; i<NOTE_MAX; i++) { if (KeyboardMap[i] != pIns->Keyboard[i]) { pIns->Keyboard[i] = KeyboardMap[i]; bModified = TRUE; } } if (bModified) { CDialog::OnOK(); return; } } CDialog::OnCancel(); } //////////////////////////////////////////////////////////////////////////////////////////// // Edit history dialog BEGIN_MESSAGE_MAP(CEditHistoryDlg, CDialog) ON_COMMAND(IDC_BTN_CLEAR, OnClearHistory) END_MESSAGE_MAP() BOOL CEditHistoryDlg::OnInitDialog() //---------------------------------- { CDialog::OnInitDialog(); if(m_pModDoc == nullptr) return TRUE; CString s; uint64 totalTime = 0; const size_t num = m_pModDoc->GetrSoundFile().GetFileHistory().size(); for(size_t n = 0; n < num; n++) { const FileHistory *hist = &(m_pModDoc->GetrSoundFile().GetFileHistory().at(n)); totalTime += hist->openTime; // Date TCHAR szDate[32]; if(hist->loadDate.tm_mday != 0) _tcsftime(szDate, CountOf(szDate), _T("%d %b %Y, %H:%M:%S"), &hist->loadDate); else _tcscpy(szDate, _T("<unknown date>")); // Time + stuff uint32 duration = (uint32)((double)(hist->openTime) / HISTORY_TIMER_PRECISION); s.AppendFormat(_T("Loaded %s, open for %luh %02lum %02lus\r\n"), szDate, duration / 3600, (duration / 60) % 60, duration % 60); } if(num == 0) { s = _T("No information available about the previous edit history of this module."); } SetDlgItemText(IDC_EDIT_HISTORY, s); // Total edit time s = ""; if(totalTime) { totalTime = (uint64)((double)(totalTime) / HISTORY_TIMER_PRECISION); s.Format(_T("Total edit time: %lluh %02llum %02llus (%u session%s)"), totalTime / 3600, (totalTime / 60) % 60, totalTime % 60, num, (num != 1) ? _T("s") : _T("")); SetDlgItemText(IDC_TOTAL_EDIT_TIME, s); // Window title s.Format(_T("Edit history for %s"), m_pModDoc->GetTitle()); SetWindowText(s); } // Enable or disable Clear button GetDlgItem(IDC_BTN_CLEAR)->EnableWindow((m_pModDoc->GetrSoundFile().GetFileHistory().empty()) ? FALSE : TRUE); return TRUE; } void CEditHistoryDlg::OnClearHistory() //------------------------------------ { if(m_pModDoc != nullptr && !m_pModDoc->GetrSoundFile().GetFileHistory().empty()) { m_pModDoc->GetrSoundFile().GetFileHistory().clear(); m_pModDoc->SetModified(); OnInitDialog(); } } void CEditHistoryDlg::OnOK() //-------------------------- { CDialog::OnOK(); } ///////////////////////////////////////////////////////////////////////// // Generic input dialog void CInputDlg::DoDataExchange(CDataExchange* pDX) //------------------------------------------------ { CDialog::DoDataExchange(pDX); if(m_minValueInt == m_maxValueInt && m_minValueDbl == m_maxValueDbl) { // Only need this for freeform text DDX_Control(pDX, IDC_EDIT1, m_edit); } DDX_Control(pDX, IDC_SPIN1, m_spin); } BOOL CInputDlg::OnInitDialog() //---------------------------- { CDialog::OnInitDialog(); SetDlgItemText(IDC_PROMPT, m_description); // Get all current control sizes and positions CRect windowRect, labelRect, inputRect, okRect, cancelRect; GetWindowRect(windowRect); GetDlgItem(IDC_PROMPT)->GetWindowRect(labelRect); GetDlgItem(IDC_EDIT1)->GetWindowRect(inputRect); GetDlgItem(IDOK)->GetWindowRect(okRect); GetDlgItem(IDCANCEL)->GetWindowRect(cancelRect); ScreenToClient(labelRect); ScreenToClient(inputRect); ScreenToClient(okRect); ScreenToClient(cancelRect); // Find out how big our label shall be HDC dc = ::GetDC(m_hWnd); CRect textRect(0,0,0,0); DrawText(dc, m_description, m_description.GetLength(), textRect, DT_CALCRECT); LPtoDP(dc, &textRect.BottomRight(), 1); ::ReleaseDC(m_hWnd, dc); if(textRect.right < 320) textRect.right = 320; const int windowWidth = windowRect.Width() - labelRect.Width() + textRect.right; const int windowHeight = windowRect.Height() - labelRect.Height() + textRect.bottom; // Resize and move all controls GetDlgItem(IDC_PROMPT)->SetWindowPos(nullptr, 0, 0, textRect.right, textRect.bottom, SWP_NOMOVE | SWP_NOZORDER); GetDlgItem(IDC_EDIT1)->SetWindowPos(nullptr, inputRect.left, labelRect.top + textRect.bottom + (inputRect.top - labelRect.bottom), textRect.right, inputRect.Height(), SWP_NOZORDER); GetDlgItem(IDOK)->SetWindowPos(nullptr, windowWidth - (windowRect.Width() - okRect.left), windowHeight - (windowRect.Height() - okRect.top), 0, 0, SWP_NOSIZE | SWP_NOZORDER); GetDlgItem(IDCANCEL)->SetWindowPos(nullptr, windowWidth - (windowRect.Width() - cancelRect.left), windowHeight - (windowRect.Height() - cancelRect.top), 0, 0, SWP_NOSIZE | SWP_NOZORDER); SetWindowPos(nullptr, 0, 0, windowWidth, windowHeight, SWP_NOMOVE | SWP_NOZORDER); if(m_minValueInt != m_maxValueInt) { // Numeric (int) m_spin.SetRange32(m_minValueInt, m_maxValueInt); m_edit.SubclassDlgItem(IDC_EDIT1, this); m_edit.ModifyStyle(0, ES_NUMBER); m_edit.AllowNegative(m_minValueInt < 0); m_edit.AllowFractions(false); SetDlgItemInt(IDC_EDIT1, resultAsInt); m_spin.SetBuddy(&m_edit); } else if(m_minValueDbl != m_maxValueDbl) { // Numeric (double) m_spin.SetRange32(static_cast<int32>(m_minValueDbl), static_cast<int32>(m_maxValueDbl)); m_edit.SubclassDlgItem(IDC_EDIT1, this); m_edit.ModifyStyle(0, ES_NUMBER); m_edit.AllowNegative(m_minValueDbl < 0); m_edit.AllowFractions(true); m_edit.SetDecimalValue(resultAsDouble); m_spin.SetBuddy(&m_edit); } else { // Text m_spin.ShowWindow(SW_HIDE); SetDlgItemText(IDC_EDIT1, resultAsString); } return TRUE; } void CInputDlg::OnOK() //-------------------- { CDialog::OnOK(); GetDlgItemText(IDC_EDIT1, resultAsString); resultAsInt = static_cast<int32>(GetDlgItemInt(IDC_EDIT1)); Limit(resultAsInt, m_minValueInt, m_maxValueInt); m_edit.GetDecimalValue(resultAsDouble); Limit(resultAsDouble, m_minValueDbl, m_maxValueDbl); } /////////////////////////////////////////////////////////////////////////////////////// // Messagebox with 'don't show again'-option. //=================================== class CMsgBoxHidable : public CDialog //=================================== { public: CMsgBoxHidable(LPCTSTR strMsg, bool checkStatus = true, CWnd* pParent = NULL); enum { IDD = IDD_MSGBOX_HIDABLE }; int m_nCheckStatus; LPCTSTR m_StrMsg; protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support virtual BOOL OnInitDialog(); }; struct MsgBoxHidableMessage //========================= { LPCTSTR strMsg; uint32 nMask; bool bDefaultDontShowAgainStatus; // true for don't show again, false for show again. }; const MsgBoxHidableMessage HidableMessages[] = { {_T("Note: First two bytes of oneshot samples are silenced for ProTracker compatibility."), 1, true}, {_T("Hint: To create IT-files without MPT-specific extensions included, try compatibility export from File-menu."), 1 << 1, true}, {_T("Press OK to apply signed/unsigned conversion\n (note: this often significantly increases volume level)"), 1 << 2, false}, {_T("Hint: To create XM-files without MPT-specific extensions included, try compatibility export from File-menu."), 1 << 3, true}, {_T("Warning: The exported file will not contain any of MPT's file format hacks."), 1 << 4, true}, }; STATIC_ASSERT(CountOf(HidableMessages) == enMsgBoxHidableMessage_count); // Messagebox with 'don't show this again'-checkbox. Uses parameter 'enMsg' // to get the needed information from message array, and updates the variable that // controls the show/don't show-flags. void MsgBoxHidable(enMsgBoxHidableMessage enMsg) //---------------------------------------------- { // Check whether the message should be shown. if((TrackerSettings::Instance().gnMsgBoxVisiblityFlags & HidableMessages[enMsg].nMask) == 0) return; const LPCTSTR strMsg = HidableMessages[enMsg].strMsg; const uint32 mask = HidableMessages[enMsg].nMask; const bool defaulCheckStatus = HidableMessages[enMsg].bDefaultDontShowAgainStatus; // Show dialog. CMsgBoxHidable dlg(strMsg, defaulCheckStatus); dlg.DoModal(); // Update visibility flags. if(dlg.m_nCheckStatus == BST_CHECKED) TrackerSettings::Instance().gnMsgBoxVisiblityFlags &= ~mask; else TrackerSettings::Instance().gnMsgBoxVisiblityFlags |= mask; } CMsgBoxHidable::CMsgBoxHidable(LPCTSTR strMsg, bool checkStatus, CWnd* pParent) : CDialog(CMsgBoxHidable::IDD, pParent), m_StrMsg(strMsg), m_nCheckStatus((checkStatus) ? BST_CHECKED : BST_UNCHECKED) //---------------------------------------------------------------------------- {} BOOL CMsgBoxHidable::OnInitDialog() //---------------------------------- { CDialog::OnInitDialog(); SetDlgItemText(IDC_MESSAGETEXT, m_StrMsg); SetWindowText(AfxGetAppName()); return TRUE; } void CMsgBoxHidable::DoDataExchange(CDataExchange* pDX) //------------------------------------------------------ { CDialog::DoDataExchange(pDX); DDX_Check(pDX, IDC_DONTSHOWAGAIN, m_nCheckStatus); } ///////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////////// void AppendNotesToControl(CComboBox& combobox, ModCommand::NOTE noteStart, ModCommand::NOTE noteEnd) //-------------------------------------------------------------------------------------------------- { const ModCommand::NOTE upperLimit = std::min(ModCommand::NOTE(NOTE_MAX), noteEnd); for(ModCommand::NOTE note = noteStart; note <= upperLimit; note++) combobox.SetItemData(combobox.AddString(CSoundFile::GetNoteName(note).c_str()), note); } void AppendNotesToControlEx(CComboBox& combobox, const CSoundFile &sndFile, INSTRUMENTINDEX nInstr, ModCommand::NOTE noteStart, ModCommand::NOTE noteEnd) //------------------------------------------------------------------------------------------------------------------------------------------------------- { bool addSpecial = noteStart == noteEnd; if(noteStart == noteEnd) { noteStart = sndFile.GetModSpecifications().noteMin; noteEnd = sndFile.GetModSpecifications().noteMax; } for(ModCommand::NOTE note = noteStart; note <= noteEnd; note++) { combobox.SetItemData(combobox.AddString(sndFile.GetNoteName(note, nInstr).c_str()), note); } if(addSpecial) { for(ModCommand::NOTE note = NOTE_MIN_SPECIAL - 1; note++ < NOTE_MAX_SPECIAL;) { if(sndFile.GetModSpecifications().HasNote(note)) combobox.SetItemData(combobox.AddString(szSpecialNoteNamesMPT[note - NOTE_MIN_SPECIAL]), note); } } } OPENMPT_NAMESPACE_END
[ "manx@56274372-70c3-4bfc-bfc3-4c3a0b034d27" ]
manx@56274372-70c3-4bfc-bfc3-4c3a0b034d27
0feeed9c7781cd04b56cb45fd1134b6bc1332355
bcf138c82fcba9acc7d7ce4d3a92618b06ebe7c7
/rdr2/0x3EB1FE9E8E908E15.cpp
11ddf731fe2b985e5b4da51f058f3578f0b0bd4d
[]
no_license
DeepWolf413/additional-native-data
aded47e042f0feb30057e753910e0884c44121a0
e015b2500b52065252ffbe3c53865fe3cdd3e06c
refs/heads/main
2023-07-10T00:19:54.416083
2021-08-12T16:00:12
2021-08-12T16:00:12
395,340,507
1
0
null
null
null
null
UTF-8
C++
false
false
811
cpp
// beat_rat_infestation.ysc @ L1658 void func_34() { int iVar0; PED::_0xEEED8FAFEC331A70(iLocal_98[0], Global_36, 3); TASK::_0x2E1D6D87346BB7D2(iLocal_98[0], Global_35, 0, 0); if (!func_126(iLocal_98[0])) { func_127(iLocal_98[0], 0); if (!func_15(iLocal_34, 32)) { func_36(iLocal_98[0], Global_35, func_35("CALL_LAW"), 0, -1082130432 /* Float: -1f */, 0, 0, 0, 1, 1, 1, 291934926, 1, 0, 0); func_17(&iLocal_34, 32); } TASK::TASK_SMART_FLEE_PED(iLocal_98[0], Global_35, 500f, -1, 0, 1077936128 /* Float: 3f */, 0); } else { TASK::OPEN_SEQUENCE_TASK(&iVar0); TASK::TASK_FOLLOW_NAV_MESH_TO_COORD(0, 2795.592f, -1164.554f, 46.924f, 2f, 20000, 0.25f, 0, 40000f); TASK::TASK_COWER(0, -1, Global_35, 0); func_128(iLocal_98[0], &iVar0, 0, 0, 1, 1); } }
6ddbfda3cb7749a73c4bcb30103d63daefd37aea
732a527bf7aead3e01080613bf61cfe701cd0f27
/Targets/LPC177x_LPC178x/LPC17_UsbDevice.cpp
db9a769c1e9d2b23812f1e2f882e30c000e74069
[ "LicenseRef-scancode-generic-cla", "Apache-2.0" ]
permissive
dobova86/TinyCLR_Port
52f36fff674c108d21a01377cffa9bc87cbde371
e1b9ce4f935604e5b292687dcd61715bf0c7f09c
refs/heads/master
2021-04-09T11:01:49.138004
2019-03-04T11:08:35
2019-03-04T11:08:35
125,496,801
1
4
null
null
null
null
UTF-8
C++
false
false
31,732
cpp
// Copyright Microsoft Corporation // Copyright GHI Electronics, LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. #include <string.h> #include "LPC17.h" #include "../../Drivers/USBClient/USBClient.h" /////////////////////////////////////////////////////////////////////////////////////////// /// LPC17 USB Hardware state /////////////////////////////////////////////////////////////////////////////////////////// /* Device Interrupt Bit Definitions */ #define FRAME_INT 0x00000001 #define EP_FAST_INT 0x00000002 #define EP_SLOW_INT 0x00000004 #define DEV_STAT_INT 0x00000008 #define CCEMTY_INT 0x00000010 #define CDFULL_INT 0x00000020 #define RxENDPKT_INT 0x00000040 #define TxENDPKT_INT 0x00000080 #define EP_RLZED_INT 0x00000100 #define ERR_INT 0x00000200 /* Rx & Tx Packet Length Definitions */ #define PKT_LNGTH_MASK 0x000003FF #define PKT_DV 0x00000400 #define PKT_RDY 0x00000800 /* USB Control Definitions */ #define CTRL_RD_EN 0x00000001 #define CTRL_WR_EN 0x00000002 /* Command Codes */ #define CMD_SET_ADDR 0x00D00500 #define CMD_CFG_DEV 0x00D80500 #define CMD_SET_MODE 0x00F30500 #define CMD_RD_FRAME 0x00F50500 #define DAT_RD_FRAME 0x00F50200 #define CMD_RD_TEST 0x00FD0500 #define DAT_RD_TEST 0x00FD0200 #define CMD_SET_DEV_STAT 0x00FE0500 #define CMD_GET_DEV_STAT 0x00FE0500 #define DAT_GET_DEV_STAT 0x00FE0200 #define CMD_GET_ERR_CODE 0x00FF0500 #define DAT_GET_ERR_CODE 0x00FF0200 #define CMD_RD_ERR_STAT 0x00FB0500 #define DAT_RD_ERR_STAT 0x00FB0200 #define DAT_WR_BYTE(x) (0x00000100 | ((x) << 16)) #define CMD_SEL_EP(x) (0x00000500 | ((x) << 16)) #define DAT_SEL_EP(x) (0x00000200 | ((x) << 16)) #define CMD_SEL_EP_CLRI(x) (0x00400500 | ((x) << 16)) #define DAT_SEL_EP_CLRI(x) (0x00400200 | ((x) << 16)) #define CMD_SET_EP_STAT(x) (0x00400500 | ((x) << 16)) #define CMD_CLR_BUF 0x00F20500 #define DAT_CLR_BUF 0x00F20200 #define CMD_VALID_BUF 0x00FA0500 /* Device address Register Definitions */ #define DEV_ADDR_MASK 0x7F #define DEV_EN 0x80 /* Device Configure Register Definitions */ #define CONF_DVICE 0x01 /* Device Mode Register Definitions */ #define AP_CLK 0x01 #define INAK_CI 0x02 #define INAK_CO 0x04 #define INAK_II 0x08 #define INAK_IO 0x10 #define INAK_BI 0x20 #define INAK_BO 0x40 /* Device Status Register Definitions */ #define DEV_CON 0x01 #define DEV_CON_CH 0x02 #define DEV_SUS 0x04 #define DEV_SUS_CH 0x08 #define DEV_RST 0x10 /* Error Code Register Definitions */ #define ERR_EC_MASK 0x0F #define ERR_EA 0x10 /* Error Status Register Definitions */ #define ERR_PID 0x01 #define ERR_UEPKT 0x02 #define ERR_DCRC 0x04 #define ERR_TIMOUT 0x08 #define ERR_EOP 0x10 #define ERR_B_OVRN 0x20 #define ERR_BTSTF 0x40 #define ERR_TGL 0x80 /* Endpoint Select Register Definitions */ #define EP_SEL_F 0x01 #define EP_SEL_ST 0x02 #define EP_SEL_STP 0x04 #define EP_SEL_PO 0x08 #define EP_SEL_EPN 0x10 #define EP_SEL_B_1_FULL 0x20 #define EP_SEL_B_2_FULL 0x40 /* Endpoint Status Register Definitions */ #define EP_STAT_ST 0x01 #define EP_STAT_DA 0x20 #define EP_STAT_RF_MO 0x40 #define EP_STAT_CND_ST 0x80 /* USB registers*/ #define OTGStCtrl (*(volatile uint32_t *)0x2008C110) #define USBDevIntSt (*(volatile uint32_t *)0x2008C200) #define USBDevIntEn (*(volatile uint32_t *)0x2008C204) #define USBDevIntClr (*(volatile uint32_t *)0x2008C208) #define USBCmdCode (*(volatile uint32_t *)0x2008C210) #define USBCmdData (*(volatile uint32_t *)0x2008C214) #define USBRxData (*(volatile uint32_t *)0x2008C218) #define USBTxData (*(volatile uint32_t *)0x2008C21C) #define USBRxPLen (*(volatile uint32_t *)0x2008C220) #define USBTxPLen (*(volatile uint32_t *)0x2008C224) #define USBCtrl (*(volatile uint32_t *)0x2008C228) #define USBEpIntSt (*(volatile uint32_t *)0x2008C230) #define USBEpIntEn (*(volatile uint32_t *)0x2008C234) #define USBEpIntClr (*(volatile uint32_t *)0x2008C238) #define USBEpIntSet (*(volatile uint32_t *)0x2008C23C) #define USBReEp (*(volatile uint32_t *)0x2008C244) #define USBEpInd (*(volatile uint32_t *)0x2008C248) #define USBEpMaxPSize (*(volatile uint32_t *)0x2008C24C) #define USBClkCtrl (*(volatile uint32_t *)0x2008CFF4) #define USBClkSt (*(volatile uint32_t *)0x2008CFF8) #define OTGClkCtrl (*(volatile uint32_t *)0x2008CFF4) #define OTGClkSt (*(volatile uint32_t *)0x2008CFF8) struct UsbDeviceDriver { UsbClientState *usbClientState; bool txRunning[LPC17_USB_ENDPOINT_COUNT]; bool txNeedZLPS[LPC17_USB_ENDPOINT_COUNT]; uint8_t previousDeviceState; bool firstDescriptorPacket; }; UsbDeviceDriver usbDeviceDrivers[LPC17_TOTAL_USB_CONTROLLERS]; union EndpointConfiguration { struct { unsigned EE : 1; // Endpoint enable (1 = enable) unsigned DE : 1; // Double buffer enable (1 = double buffered) unsigned MPS : 10; // Maximum packet size (iso=1-1023, blk=8,16,32,64, int32_t=1-64 unsigned ED : 1; // Endpoint direction (1 = IN) unsigned ET : 2; // Endpoint type (1=iso, 2=blk, 3=int32_t) unsigned EN : 4; // Endpoint number (1-15) unsigned AISN : 3; // Alternate Interface number unsigned IN : 3; // Interface number unsigned CN : 2; // configuration number } bits; uint32_t word; }; static EndpointConfiguration EndpointInit[LPC17_USB_ENDPOINT_COUNT]; // Corresponds to endpoint configuration RAM at LPC17xx_USB::UDCCRx static int32_t nacking_rx_OUT_data[LPC17_USB_ENDPOINT_COUNT]; bool LPC17_UsbDevice_ProtectPins(int32_t controllerIndex, bool On); void LPC17_UsbDevice_InterruptHandler(void* param); void LPC17_UsbDevice_TxPacket(UsbClientState* usbClientState, int32_t endpoint); void LPC17_UsbDevice_ProcessEP0(UsbClientState* usbClientState, int32_t in, int32_t setup); void LPC17_UsbDevice_ProcessEndPoint(UsbClientState* usbClientState, int32_t ep, int32_t in); void LPC17_UsbDevice_Enpoint_TxInterruptHandler(UsbClientState* usbClientState, uint32_t endpoint); void LPC17_UsbDevice_Enpoint_RxInterruptHandler(UsbClientState* usbClientState, uint32_t endpoint); void LPC17_UsbDevice_ResetEvent(UsbClientState* usbClientState); void LPC17_UsbDevice_SuspendEvent(UsbClientState* usbClientState); void LPC17_UsbDevice_ResumeEvent(UsbClientState* usbClientState); void LPC17_UsbDevice_ControlNext(UsbClientState* usbClientState); uint32_t LPC17_UsbDevice_EPAdr(uint32_t EPNum, int8_t in); void LPC17_UsbDevice_AddApi(const TinyCLR_Api_Manager* apiManager) { TinyCLR_UsbClient_AddApi(apiManager); } const TinyCLR_Api_Info* LPC17_UsbDevice_GetRequiredApi() { return TinyCLR_UsbClient_GetRequiredApi(); } void LPC17_UsbDevice_Reset() { return TinyCLR_UsbClient_Reset(0); } void LPC17_UsbDevice_InitializeConfiguration(UsbClientState *usbClientState) { auto controllerIndex = 0; if (usbClientState != nullptr) { usbClientState->controllerIndex = controllerIndex; usbClientState->maxFifoPacketCountDefault = LPC17_USB_PACKET_FIFO_COUNT; usbClientState->totalEndpointsCount = LPC17_USB_ENDPOINT_COUNT; usbClientState->totalPipesCount = LPC17_USB_PIPE_COUNT; // Update endpoint size DeviceDescriptor Configuration if device value is different to default value usbClientState->deviceDescriptor.MaxPacketSizeEp0 = TinyCLR_UsbClient_GetEndpointSize(0); usbDeviceDrivers[controllerIndex].usbClientState = usbClientState; } } bool LPC17_UsbDevice_Initialize(UsbClientState *usbClientState) { DISABLE_INTERRUPTS_SCOPED(irq); if (usbClientState == nullptr) return false; auto controllerIndex = usbClientState->controllerIndex; LPC17_InterruptInternal_Activate(USB_IRQn, (uint32_t*)&LPC17_UsbDevice_InterruptHandler, 0); for (int32_t i = 0; i < LPC17_USB_ENDPOINT_COUNT; i++) EndpointInit[i].word = 0; // All useable endpoints initialize to unused for (auto pipe = 0; pipe < LPC17_USB_ENDPOINT_COUNT; pipe++) { auto idx = 0; if (usbClientState->pipes[pipe].RxEP != USB_ENDPOINT_NULL) { idx = usbClientState->pipes[pipe].RxEP; EndpointInit[idx].bits.ED = 0; EndpointInit[idx].bits.DE = 0; } if (usbClientState->pipes[pipe].TxEP != USB_ENDPOINT_NULL) { idx = usbClientState->pipes[pipe].TxEP; EndpointInit[idx].bits.ED = 1; EndpointInit[idx].bits.DE = 1; } if (idx != 0) { EndpointInit[idx].bits.EN = idx; EndpointInit[idx].bits.IN = 0;//itfc->bInterfaceNumber; EndpointInit[idx].bits.ET = USB_ENDPOINT_ATTRIBUTE_BULK & 0x03; //ep->bmAttributes & 0x03; EndpointInit[idx].bits.CN = 1; // Always only 1 configuration = 1 EndpointInit[idx].bits.AISN = 0; // No alternate interfaces EndpointInit[idx].bits.EE = 1; // Enable this endpoint EndpointInit[idx].bits.MPS = usbClientState->maxEndpointsPacketSize[idx]; } } usbClientState->firstGetDescriptor = true; LPC17_UsbDevice_ProtectPins(controllerIndex, true); return true; } bool LPC17_UsbDevice_Uninitialize(UsbClientState *usbClientState) { DISABLE_INTERRUPTS_SCOPED(irq); LPC17_InterruptInternal_Deactivate(USB_IRQn); if (usbClientState != nullptr) { LPC17_UsbDevice_ProtectPins(usbClientState->controllerIndex, false); usbClientState->currentState = USB_DEVICE_STATE_UNINITIALIZED; } return true; } bool LPC17_UsbDevice_StartOutput(UsbClientState* usbClientState, int32_t endpoint) { int32_t m, n, val; DISABLE_INTERRUPTS_SCOPED(irq); /* if the halt feature for this endpoint is set, then just clear all the characters */ if (usbClientState->endpointStatus[endpoint] & USB_STATUS_ENDPOINT_HALT) { TinyCLR_UsbClient_ClearEndpoints(usbClientState, endpoint); return true; } //If txRunning, interrupts will drain the queue if (!usbDeviceDrivers[usbClientState->controllerIndex].txRunning[endpoint]) { usbDeviceDrivers[usbClientState->controllerIndex].txRunning[endpoint] = true; // Calling both LPC17_UsbDevice_TxPacket & EP_TxISR in this routine could cause a TX FIFO overflow LPC17_UsbDevice_TxPacket(usbClientState, endpoint); } else if (irq.IsDisabled()) { n = LPC17_UsbDevice_EPAdr(endpoint, 1); // It is an output endpoint for sure if ((USBEpIntSt & (1 << n)))//&& (USBEpIntEn & (1 << n)) )//only if enabled { m = n >> 1; if (m == 0)//EP0 { USBEpIntClr = 1 << n; while ((USBDevIntSt & CDFULL_INT) == 0); val = USBCmdData; if (val & EP_SEL_STP) /* Setup Packet */ { LPC17_UsbDevice_ProcessEP0(usbClientState, 0, 1);// out setup } else { if ((n & 1) == 0) /* OUT Endpoint */ { LPC17_UsbDevice_ProcessEP0(usbClientState, 0, 0);// out not setup } else { LPC17_UsbDevice_ProcessEP0(usbClientState, 1, 0);// in not setup } } } else { if (usbClientState->queues[m] && usbClientState->isTxQueue[endpoint]) LPC17_UsbDevice_ProcessEndPoint(usbClientState, m, 1);//out else LPC17_UsbDevice_ProcessEndPoint(usbClientState, m, 0);//in } } } return true; } bool LPC17_UsbDevice_RxEnable(UsbClientState* usbClientState, int32_t endpoint) { if (endpoint >= LPC17_USB_ENDPOINT_COUNT) return false; DISABLE_INTERRUPTS_SCOPED(irq); if (nacking_rx_OUT_data[endpoint]) LPC17_UsbDevice_Enpoint_RxInterruptHandler(usbClientState, endpoint);//force interrupt to read the pending EP return true; } static uint8_t LPC17_UsbDevice_DeviceAddress = 0; #define CONTORL_EP_ADDR 0x80 #define USB_POWER 0 #define USB_IF_NUM 4 #define USB_EP_NUM 32 #define USB_MAX_PACKET0 64 #define USB_DMA 0 #define USB_DMA_EP 0x00000000 #define USB_POWER_EVENT 0 #define USB_RESET_EVENT 1 #define USB_WAKEUP_EVENT 0 #define USB_SOF_EVENT 0 #define USB_ERROR_EVENT 0 #define USB_EP_EVENT 0x0003 #define USB_CONFIGURE_EVENT 1 #define USB_INTERFACE_EVENT 0 #define USB_FEATURE_EVENT 0 #define EP_MSK_CTRL 0x0001 /* Control Endpoint Logical address Mask */ #define EP_MSK_BULK 0xC924 /* Bulk Endpoint Logical address Mask */ #define EP_MSK_INT 0x4492 /* Interrupt Endpoint Logical address Mask */ #define EP_MSK_ISO 0x1248 /* Isochronous Endpoint Logical address Mask */ static void LPC17_UsbDevice_WrCmd(uint32_t cmd) { USBDevIntClr = CCEMTY_INT | CDFULL_INT; USBCmdCode = cmd; while ((USBDevIntSt & CCEMTY_INT) == 0); } static void LPC17_UsbDevice_WrCmdDat(uint32_t cmd, uint32_t val) { USBDevIntClr = CCEMTY_INT; USBCmdCode = cmd; while ((USBDevIntSt & CCEMTY_INT) == 0); USBDevIntClr = CCEMTY_INT; USBCmdCode = val; while ((USBDevIntSt & CCEMTY_INT) == 0); } static uint32_t LPC17_UsbDevice_RdCmdDat(uint32_t cmd) { USBDevIntClr = CCEMTY_INT | CDFULL_INT; USBCmdCode = cmd; while ((USBDevIntSt & CDFULL_INT) == 0); return (USBCmdData); } static void LPC17_UsbDevice_SetAddress(uint32_t adr) { LPC17_UsbDevice_WrCmdDat(CMD_SET_ADDR, DAT_WR_BYTE(DEV_EN | adr)); /* Don't wait for next */ LPC17_UsbDevice_WrCmdDat(CMD_SET_ADDR, DAT_WR_BYTE(DEV_EN | adr)); /* Setup Status Phase */ } static void LPC17_UsbDevice_HardwareReset(void) { USBEpInd = 0; USBEpMaxPSize = USB_MAX_PACKET0; USBEpInd = 1; USBEpMaxPSize = USB_MAX_PACKET0; while ((USBDevIntSt & EP_RLZED_INT) == 0); USBEpIntClr = 0xFFFFFFFF; USBEpIntEn = 0xFFFFFFFF ^ USB_DMA_EP; USBDevIntClr = 0xFFFFFFFF; USBDevIntEn = DEV_STAT_INT | EP_SLOW_INT | (USB_SOF_EVENT ? FRAME_INT : 0) | (USB_ERROR_EVENT ? ERR_INT : 0); } void LPC17_UsbDevice_Connect(bool con) { LPC17_UsbDevice_WrCmdDat(CMD_SET_DEV_STAT, DAT_WR_BYTE(con ? DEV_CON : 0)); } uint32_t LPC17_UsbDevice_EPAdr(uint32_t EPNum, int8_t in) { uint32_t val; val = (EPNum & 0x0F) << 1; if (in) { val += 1; } return (val); } static uint32_t USB_WriteEP(uint32_t EPNum, uint8_t *pData, uint32_t cnt) { uint32_t n, g; USBCtrl = ((EPNum & 0x0F) << 2) | CTRL_WR_EN; USBTxPLen = cnt; for (n = 0; n < (cnt + 3) / 4; n++) { g = *(pData + 3); g <<= 8; g |= *(pData + 2); g <<= 8; g |= *(pData + 1); g <<= 8; g |= *pData; USBTxData = g; pData += 4; } USBCtrl = 0; LPC17_UsbDevice_WrCmd(CMD_SEL_EP(LPC17_UsbDevice_EPAdr(EPNum, 1))); LPC17_UsbDevice_WrCmd(CMD_VALID_BUF); return (cnt); } static uint32_t LPC17_UsbDevice_ReadEP(uint32_t EPNum, uint8_t *pData) { uint32_t cnt, n, d; USBCtrl = ((EPNum & 0x0F) << 2) | CTRL_RD_EN; do { cnt = USBRxPLen; } while ((cnt & PKT_RDY) == 0); cnt &= PKT_LNGTH_MASK; for (n = 0; n < (cnt + 3) / 4; n++) { d = USBRxData; *pData++ = d; *pData++ = d >> 8; *pData++ = d >> 16; *pData++ = d >> 24; } USBCtrl = 0; if (((EP_MSK_ISO >> EPNum) & 1) == 0) /* Non-Isochronous Endpoint */ { LPC17_UsbDevice_WrCmd(CMD_SEL_EP(LPC17_UsbDevice_EPAdr(EPNum, 0))); LPC17_UsbDevice_WrCmd(CMD_CLR_BUF); } return (cnt); } static void LPC17_UsbDevice_SetStallEP(uint32_t EPNum, int8_t in) { LPC17_UsbDevice_WrCmdDat(CMD_SET_EP_STAT(LPC17_UsbDevice_EPAdr(EPNum, in)), DAT_WR_BYTE(EP_STAT_ST)); } void LPC17_UsbDevice_ProcessEndPoint(UsbClientState* usbClientState, int32_t ep, int32_t in) { int32_t val; if (in) { LPC17_UsbDevice_Enpoint_TxInterruptHandler(usbClientState, ep); } else { USBEpIntClr = 1 << LPC17_UsbDevice_EPAdr(ep, in); while ((USBDevIntSt & CDFULL_INT) == 0); val = USBCmdData; LPC17_UsbDevice_Enpoint_RxInterruptHandler(usbClientState, ep); } } void LPC17_UsbDevice_ConfigEP(uint8_t ep_addr, int8_t in, uint8_t size) { uint32_t num; num = LPC17_UsbDevice_EPAdr(ep_addr, in); USBReEp |= (1 << num); USBEpInd = num; USBEpMaxPSize = size; while ((USBDevIntSt & EP_RLZED_INT) == 0); USBDevIntClr = EP_RLZED_INT; } void LPC17_UsbDevice_EnableEP(uint32_t EPNum, int8_t in) { LPC17_UsbDevice_WrCmdDat(CMD_SET_EP_STAT(LPC17_UsbDevice_EPAdr(EPNum, in)), DAT_WR_BYTE(0)); } void USB_DisableEP(int32_t EPNum, int8_t in) { LPC17_UsbDevice_WrCmdDat(CMD_SET_EP_STAT(LPC17_UsbDevice_EPAdr(EPNum, in)), DAT_WR_BYTE(EP_STAT_DA)); } void LPC17_UsbDevice_ResetEP(uint32_t EPNum, int8_t in) { LPC17_UsbDevice_WrCmdDat(CMD_SET_EP_STAT(LPC17_UsbDevice_EPAdr(EPNum, in)), DAT_WR_BYTE(0)); } void USB_HW_Configure(bool cfg) { LPC17_UsbDevice_WrCmdDat(CMD_CFG_DEV, DAT_WR_BYTE(cfg ? CONF_DVICE : 0)); USBReEp = 0x00000003; while ((USBDevIntSt & EP_RLZED_INT) == 0); USBDevIntClr = EP_RLZED_INT; } void LPC17_UsbDevice_StartHardware() { *(uint32_t*)0x400FC0C4 |= 0x80000000; USBClkCtrl = (1 << 1) | (1 << 3) | (1 << 4); OTGClkCtrl = 0x1F; while ((OTGClkSt & 0x1F) != 0x1F); LPC17_GpioInternal_ConfigurePin(14, LPC17_Gpio_Direction::Input, LPC17_Gpio_PinFunction::PinFunction3, LPC17_Gpio_ResistorMode::Inactive, LPC17_Gpio_Hysteresis::Disable, LPC17_Gpio_InputPolarity::NotInverted, LPC17_Gpio_SlewRate::StandardMode, LPC17_Gpio_OutputType::PushPull); LPC17_GpioInternal_ConfigurePin(31, LPC17_Gpio_Direction::Input, LPC17_Gpio_PinFunction::PinFunction1, LPC17_Gpio_ResistorMode::Inactive, LPC17_Gpio_Hysteresis::Disable, LPC17_Gpio_InputPolarity::NotInverted, LPC17_Gpio_SlewRate::StandardMode, LPC17_Gpio_OutputType::PushPull); OTGStCtrl |= 3; LPC17_UsbDevice_HardwareReset(); LPC17_UsbDevice_SetAddress(0); USBDevIntEn = DEV_STAT_INT; /* Enable Device Status Interrupt */ LPC17_UsbDevice_Connect(false); // delay if removed and then connected... LPC17_Time_Delay(nullptr, 120 * 1000); LPC17_UsbDevice_Connect(true); } void LPC17_UsbDevice_StopHardware() { LPC17_UsbDevice_Connect(false); } void LPC17_UsbDevice_TxPacket(UsbClientState* usbClientState, int32_t endpoint) { DISABLE_INTERRUPTS_SCOPED(irq); // transmit a packet on UsbPortNum, if there are no more packets to transmit, then die USB_PACKET64* Packet64; for (;;) { Packet64 = TinyCLR_UsbClient_TxDequeue(usbClientState, endpoint); if (Packet64 == nullptr || Packet64->Size > 0) { break; } } if (Packet64) { USB_WriteEP(endpoint, Packet64->Buffer, Packet64->Size); usbDeviceDrivers[usbClientState->controllerIndex].txNeedZLPS[endpoint] = false; if (Packet64->Size == 64) usbDeviceDrivers[usbClientState->controllerIndex].txNeedZLPS[endpoint] = true; } else { // send the zero length packet since we landed on the FIFO boundary before // (and we queued a zero length packet to transmit) if (usbDeviceDrivers[usbClientState->controllerIndex].txNeedZLPS[endpoint]) { USB_WriteEP(endpoint, (uint8_t*)nullptr, 0); usbDeviceDrivers[usbClientState->controllerIndex].txNeedZLPS[endpoint] = false; } // no more data usbDeviceDrivers[usbClientState->controllerIndex].txRunning[endpoint] = false; } } void LPC17_UsbDevice_ControlNext(UsbClientState *usbClientState) { if (usbClientState->dataCallback) { // this call can't fail usbClientState->dataCallback(usbClientState); if (usbClientState->dataSize == 0) { USB_WriteEP(CONTORL_EP_ADDR, (uint8_t*)nullptr, 0); usbClientState->dataCallback = nullptr; // Stop sending stuff if we're done } else { USB_WriteEP(CONTORL_EP_ADDR, usbClientState->ptrData, usbClientState->dataSize); if (usbClientState->dataSize < LPC17_USB_ENDPOINT_SIZE) // If packet is less than full length { usbClientState->dataCallback = nullptr; // Stop sending stuff if we're done } // special handling the USB state set address test, cannot use the first descriptor as the ADDRESS state is handle in the hardware if (usbDeviceDrivers[usbClientState->controllerIndex].firstDescriptorPacket) { usbClientState->dataCallback = nullptr; } } } } #define USB_USBCLIENT_ID 0 void LPC17_UsbDevice_InterruptHandler(void* param) { DISABLE_INTERRUPTS_SCOPED(irq); int32_t disr, val, n, m; disr = USBDevIntSt; /* Device Interrupt Status */ USBDevIntClr = disr; /* A known issue on LPC214x */ UsbClientState *usbClientState = usbDeviceDrivers[USB_USBCLIENT_ID].usbClientState; if (disr & DEV_STAT_INT) { LPC17_UsbDevice_WrCmd(CMD_GET_DEV_STAT); val = LPC17_UsbDevice_RdCmdDat(DAT_GET_DEV_STAT); /* Device Status */ if (val & DEV_RST) /* Reset */ { LPC17_UsbDevice_ResetEvent(usbClientState); } if (val & DEV_SUS_CH) /* Suspend/Resume */ { if (val & DEV_SUS) /* Suspend */ { LPC17_UsbDevice_SuspendEvent(usbClientState); } else /* Resume */ { LPC17_UsbDevice_ResumeEvent(usbClientState); } } goto isr_end; } /* Endpoint's Slow Interrupt */ if (disr & EP_SLOW_INT) { for (n = 0; n < USB_EP_NUM; n++) /* Check All Endpoints */ { if ((USBEpIntSt & (1 << n))) { m = n >> 1; if (m == 0)//EP0 { USBEpIntClr = 1 << n; while ((USBDevIntSt & CDFULL_INT) == 0); val = USBCmdData; if (val & EP_SEL_STP) /* Setup Packet */ { LPC17_UsbDevice_ProcessEP0(usbClientState, 0, 1);// out setup continue; } if ((n & 1) == 0) /* OUT Endpoint */ { LPC17_UsbDevice_ProcessEP0(usbClientState, 0, 0);// out not setup } else { LPC17_UsbDevice_ProcessEP0(usbClientState, 1, 0);// in not setup } continue; } if ((n & 1) == 0) /* OUT Endpoint */ { LPC17_UsbDevice_ProcessEndPoint(usbClientState, m, 0);//out } else /* IN Endpoint */ { LPC17_UsbDevice_ProcessEndPoint(usbClientState, m, 1);//in } } } } isr_end: return; } void LPC17_UsbDevice_ProcessEP0(UsbClientState *usbClientState, int32_t in, int32_t setup) { uint32_t EP_INTR; int32_t i; DISABLE_INTERRUPTS_SCOPED(irq); if (setup) { uint8_t len = 0; len = LPC17_UsbDevice_ReadEP(0x00, usbClientState->controlEndpointBuffer); // special handling for the very first SETUP command - Getdescriptor[DeviceType], the host looks for 8 bytes data only TinyCLR_UsbClient_SetupPacket* Setup = (TinyCLR_UsbClient_SetupPacket*)&usbClientState->controlEndpointBuffer[0]; if ((Setup->Request == USB_GET_DESCRIPTOR) && (((Setup->Value & 0xFF00) >> 8) == USB_DEVICE_DESCRIPTOR_TYPE) && (Setup->Length != 0x12)) usbDeviceDrivers[usbClientState->controllerIndex].firstDescriptorPacket = true; else usbDeviceDrivers[usbClientState->controllerIndex].firstDescriptorPacket = false; // send it to the upper layer usbClientState->ptrData = &usbClientState->controlEndpointBuffer[0]; usbClientState->dataSize = len; uint8_t result = TinyCLR_UsbClient_ControlCallback(usbClientState); switch (result) { case USB_STATE_ADDRESS: LPC17_UsbDevice_DeviceAddress = usbClientState->address | 0x80; break; case USB_STATE_DONE: usbClientState->dataCallback = nullptr; break; case USB_STATE_STALL: LPC17_UsbDevice_SetStallEP(0, 0); LPC17_UsbDevice_SetStallEP(0, 1); break; case USB_STATE_CONFIGURATION: USB_HW_Configure(true); for (i = 1; i < 16; i++) { // direction in LPC17_UsbDevice_ConfigEP(i, 1, 64); LPC17_UsbDevice_EnableEP(i, 1); LPC17_UsbDevice_ResetEP(i, 1); // direction out LPC17_UsbDevice_ConfigEP(i, 0, 64); LPC17_UsbDevice_EnableEP(i, 0); LPC17_UsbDevice_ResetEP(i, 0); } break; } if (result != USB_STATE_STALL) { LPC17_UsbDevice_ControlNext(usbClientState); // If the port is configured, then output any possible withheld data if (result == USB_STATE_CONFIGURATION) { for (int32_t ep = 0; ep < LPC17_USB_ENDPOINT_COUNT; ep++) { if (usbClientState->isTxQueue[ep]) LPC17_UsbDevice_StartOutput(usbClientState, ep); } } } } else if (in) { // If previous packet has been sent and UDC is ready for more LPC17_UsbDevice_ControlNext(usbClientState); // See if there is more to send if (LPC17_UsbDevice_DeviceAddress & 0x80) { LPC17_UsbDevice_DeviceAddress &= 0x7F; LPC17_UsbDevice_SetAddress(LPC17_UsbDevice_DeviceAddress); } } } void LPC17_UsbDevice_Enpoint_TxInterruptHandler(UsbClientState *usbClientState, uint32_t endpoint) { uint32_t EP_INTR; int32_t val; if (USBEpIntSt & (1 << LPC17_UsbDevice_EPAdr(endpoint, 1)))//done sending? { //clear interrupt flag USBEpIntClr = 1 << LPC17_UsbDevice_EPAdr(endpoint, 1); while ((USBDevIntSt & CDFULL_INT) == 0); val = USBCmdData; // successfully transmitted packet, time to send the next one LPC17_UsbDevice_TxPacket(usbClientState, endpoint); } } void LPC17_UsbDevice_Enpoint_RxInterruptHandler(UsbClientState *usbClientState, uint32_t endpoint) { bool DisableRx; USB_PACKET64* Packet64 = TinyCLR_UsbClient_RxEnqueue(usbClientState, endpoint, DisableRx); /* copy packet in, making sure that Packet64->Buffer is never overflowed */ if (Packet64) { uint8_t len = 0;//USB.UDCBCRx[EPno] & LPC17xx_USB::UDCBCR_mask; uint32_t* packetBuffer = (uint32_t*)Packet64->Buffer; len = LPC17_UsbDevice_ReadEP(endpoint, Packet64->Buffer); // clear packet status nacking_rx_OUT_data[endpoint] = 0; Packet64->Size = len; } else { /* flow control should absolutely protect us from ever getting here, so if we do, it is a bug */ nacking_rx_OUT_data[endpoint] = 1;//we will need to triger next interrupt } } void LPC17_UsbDevice_SuspendEvent(UsbClientState *usbClientState) { // SUSPEND event only happened when Host(PC) set the device to SUSPEND // as there is always SOF every 1ms on the BUS to keep the device from // suspending. Therefore, the REMOTE wake up is not necessary at the ollie side usbDeviceDrivers[usbClientState->controllerIndex].previousDeviceState = usbClientState->deviceState; usbClientState->deviceState = USB_DEVICE_STATE_SUSPENDED; TinyCLR_UsbClient_StateCallback(usbClientState); } void LPC17_UsbDevice_ResumeEvent(UsbClientState *usbClientState) { usbClientState->deviceState = usbDeviceDrivers[usbClientState->controllerIndex].previousDeviceState; TinyCLR_UsbClient_StateCallback(usbClientState); } void LPC17_UsbDevice_ResetEvent(UsbClientState *usbClientState) { LPC17_UsbDevice_HardwareReset(); LPC17_UsbDevice_DeviceAddress = 0; // clear all flags TinyCLR_UsbClient_ClearEvent(usbClientState, 0xFFFFFFFF); for (int32_t ep = 0; ep < LPC17_USB_ENDPOINT_COUNT; ep++) { usbDeviceDrivers[usbClientState->controllerIndex].txRunning[ep] = false; usbDeviceDrivers[usbClientState->controllerIndex].txNeedZLPS[ep] = false; } usbClientState->deviceState = USB_DEVICE_STATE_DEFAULT; usbClientState->address = 0; TinyCLR_UsbClient_StateCallback(usbClientState); } bool LPC17_UsbDevice_ProtectPins(int32_t controllerIndex, bool On) { UsbClientState *usbClientState = usbDeviceDrivers[controllerIndex].usbClientState; DISABLE_INTERRUPTS_SCOPED(irq); if (usbClientState) { if (On) { usbClientState->deviceState = USB_DEVICE_STATE_ATTACHED; TinyCLR_UsbClient_StateCallback(usbClientState); LPC17_UsbDevice_StartHardware(); } else { LPC17_UsbDevice_HardwareReset(); LPC17_UsbDevice_DeviceAddress = 0; LPC17_UsbDevice_StopHardware(); } return true; } return false; } bool TinyCLR_UsbClient_Initialize(UsbClientState* usbClientState) { return LPC17_UsbDevice_Initialize(usbClientState); } bool TinyCLR_UsbClient_Uninitialize(UsbClientState* usbClientState) { return LPC17_UsbDevice_Uninitialize(usbClientState); } bool TinyCLR_UsbClient_StartOutput(UsbClientState* usbClientState, int32_t endpoint) { return LPC17_UsbDevice_StartOutput(usbClientState, endpoint); } bool TinyCLR_UsbClient_RxEnable(UsbClientState* usbClientState, int32_t endpoint) { return LPC17_UsbDevice_RxEnable(usbClientState, endpoint); } void TinyCLR_UsbClient_Delay(uint64_t microseconds) { LPC17_Time_Delay(nullptr, microseconds); } uint64_t TinyCLR_UsbClient_Now() { return LPC17_Time_GetSystemTime(nullptr); } void TinyCLR_UsbClient_InitializeConfiguration(UsbClientState *usbClientState) { LPC17_UsbDevice_InitializeConfiguration(usbClientState); } uint32_t TinyCLR_UsbClient_GetEndpointSize(int32_t endpoint) { return endpoint == 0 ? LPC17_USB_ENDPOINT0_SIZE : LPC17_USB_ENDPOINT_SIZE; }
e77dd94f6bf07d03198071f05a75d0a0d650b654
0ad1e75df68fb14976c79c8921249dcd6e74f967
/Median of adjacent maximum numbers.cpp
6e83e2718d3788122cc04f2acf91dfbe96d9b678
[]
no_license
variablemayank/competetive-programming-codes
9010d215832f4937735d6b35b1df35df0f8a59e6
71bbc70049089fcc24444471dd4504b1d29c371f
refs/heads/master
2021-09-06T04:17:29.052221
2018-02-02T08:57:56
2018-02-02T08:57:56
119,955,414
1
1
null
null
null
null
UTF-8
C++
false
false
2,185
cpp
#include<bits/stdc++.h> using namespace std; #define jadu ios_base::sync_with_stdio(false); #define rep(i,a,b) for(int i = a; i <= b; i++) #define f first #define s second #define lelo(x) scanf("%d",&x); #define dedo(x) printf("%d",x); #define PB push_back #define MP make_pair #define sz(c) (int)c.size() typedef long long ll; typedef vector<int> vi; typedef pair<int,int> pi; const int mod = 1000000007; #define trace1(x) cerr<<#x<<": "<<x<<endl #define trace2(x, y) cerr<<#x<<": "<<x<<" | "<<#y<<": "<<y<<endl #define trace3(x, y, z) cerr<<#x<<":" <<x<<" | "<<#y<<": "<<y<<" | "<<#z<<": "<<z<<endl #define trace4(a, b, c, d) cerr<<#a<<": "<<a<<" | "<<#b<<": "<<b<<" | "<<#c<<": "<<c<<" | "<<#d<<": "<<d<<endl #define trace5(a, b, c, d, e) cerr<<#a<<": "<<a<<" | "<<#b<<": "<<b<<" | "<<#c<<": "<<c<<" | "<<#d<<": "<<d<<" | "<<#e<< ": "<<e<<endl #define trace6(a, b, c, d, e, f) cerr<<#a<<": "<<a<<" | "<<#b<<": "<<b<<" | "<<#c<<": "<<c<<" | "<<#d<<": "<<d<<" | "<<#e<< ": "<<e<<" | "<<#f<<": "<<f<<endl template<typename T> T gcd(T a,T b) { if(a==0) return b; return gcd(b%a,a);} template<typename T> T pow(T a,T b, ll m){T ans=1; while(b>0){ if(b%2==1) ans=(ans*a)%mod; b/=2; a=(a*a)%mod; } return ans%mod; } const int maxi =1000010; int arr[maxi]; int brr[maxi]; int n,m,k,l,j; int main() { int t; cin>>t; while(t--) { cin>>n; for(int i=1;i<=2*n;i++) { cin>>arr[i]; brr[i]=arr[i]; } sort(arr+1,arr+(2*n)+1); sort(brr+1,brr+(2*n)+1); //for(int i=1;i<=2*n;i++) cout<<arr[i]<<" "; //cout<<endl; int k = 2*n; int j=1; for(int i=1;i<=2*n;i++) { if(i&1) { arr[i] = brr[j++]; } else { arr[i]= brr[k--]; } } for(int i=1;i<=n;i++) { brr[i] = max(arr[2*i-1],arr[2*i]); } sort(brr+1,brr+n+1); // for(int i=1;i<=n;i++) // cout<<brr[i]<<" "; // cout<<endl; // if(n==1) // { // cout<<brr[n]<<"\n"; // for(int i=1;i<=2*n;i++) // { // cout<<arr[i]<<" "; // } // cout<<endl; // } /// else // { cout<<brr[((n/2)+1)]<<endl; for(int i=1;i<=2*n;i++) cout<<arr[i]<<" "; cout<<"\n"; // } } return 0; }
18d894acb65f922da7f29970dbf9e208f1f68362
dd18c75aad9e9e95c1e5c963b5387ba89b1c52ef
/functions.cpp
07822a0382710739787f6422bb9aee8de6856547
[]
no_license
btruemn/quadrilateralClassifier
93854f3baa63586a97877df2f8e299c356c0952f
18293981d1007d49e4374834c5bad84149b2f86e
refs/heads/master
2020-04-18T05:49:15.158617
2019-02-07T15:52:41
2019-02-07T15:52:41
167,292,982
0
0
null
null
null
null
UTF-8
C++
false
false
8,693
cpp
//// //// functions.cpp //// Assignment3 //// //// Created by Ben Trueman on 1/15/19. //// Copyright © 2019 Ben Trueman. All rights reserved. //// // //#include "functions.hpp" //#include <vector> //#include <vector> //#include <regex> //#include <sstream> //#include <cmath> //#include <iostream> // ////must contain 0-9 or space only. Returns true if an errof is found http://www.cplusplus.com/reference/string/string/find_first_not_of/ //bool error1(std::string s){ // size_t found = s.find_first_not_of("0123456789 "); // return (found != std::string::npos); //} // ////must contain 6 ints in range 0 to 100 //bool error1(std::vector<int> vect){ // if(vect.size() != 6) return true; // // for(int i: vect){ // if(i < 0 || i > 100) return true; // } // return false; //} // //void exitError(std::string error){ // std::cout << error << std::endl; //// exit (EXIT_FAILURE); //} // ////"error 2" -- if any two points coincide http://www.cplusplus.com/reference/vector/vector/operators/ //bool error2(std::vector<int> vect){ // std::vector<int> A = {0,0}; // std::vector<int> B = {vect[0],vect[1]}; // std::vector<int> C = {vect[2],vect[3]}; // std::vector<int> D = {vect[4],vect[5]}; // // if(A == B || A == C || A == D || B == C || B == D || C == D){ // return true; // } // return false; //} // // ////bool error3(std::vector<int> vect){ //// if(doIntersect(0, 0, vect[0], vect[1], vect[2], vect[3])) return true; //AB vs BC //// if(doIntersect(vect[0], vect[1], vect[2], vect[3], vect[4], vect[5])) return true; //BC vs CD //// if(doIntersect(vect[2], vect[3], vect[4], vect[5], 0,0)) return true; //CD vs DA //// if(doIntersect(vect[4], vect[5], 0, 0, vect[0], vect[1])) return true; //DA vs AB ////// if(doIntersect(0, 0, vect[0], vect[1], vect[4], vect[5], 0,0)) return true;//AB vs CD ////// if(doIntersect(vect[0], vect[1], vect[2], vect[3], vect[4], vect[5], 0,0)) return true;//BC vs DA //// return false; ////} // //////A1 and A2 are 0 and 1 == 0,0 //////B1 and B2 are 2 and 3 == vect[0] vect[1] //////C1 and C2 are 4 and 5 == vect[2] vect[3] //////D1 and D2 are 6 and 7 == vect[4] vect[5] //std::vector<double> lineLineIntersection(std::vector<int> vect) { // // Line AB represented as a1x + b1y = c1 // double a1 = vect[1] - 0; // double b1 = 0 - vect[2]; // double c1 = a1*(0) + b1*(0); // // // Line CD represented as a2x + b2y = c2 // double a2 = vect[5] - vect[3]; // double b2 = vect[2] - vect[4]; // double c2 = a2*(vect[2])+ b2*(vect[3]); // // double x = a1*b2; // double y = a2*b1; // double determinant = x - y; // // //Lines are parallel // if (determinant == 0) { // std::vector<double> returnPair; // // The lines are parallel. This is simplified // returnPair.push_back(__FLT_MAX__); // returnPair.push_back(__FLT_MAX__); // return returnPair; // } // //Lines intersect // else { // std::vector<double> returnPair; // double x = (b2*c1 - b1*c2)/determinant; // double y = (a1*c2 - a2*c1)/determinant; // returnPair.push_back(x); // returnPair.push_back(y); // return returnPair; // } //} // //////"error 3" -- if any two line segments representing sides cross each other ////bool error3(std::vector<int> points) { //// //// std::vector<double> intersection = lineLineIntersection(points); //// //// //If they're parallel return false //// if (intersection[0] == __FLT_MAX__ && intersection[1] == __FLT_MAX__) { //// return false; //// } //// return true; ////} // ////adapted from https://www.geeksforgeeks.org/program-check-three-points-collinear/ //bool collinear(int x1, int y1, int x2,int y2, int x3, int y3) { // int a = x1 * (y2 - y3) + x2 * (y3 - y1) + x3 * (y1 - y2); // return (a == 0); //} // ////"error 4" -- if any three points are colinear //bool error4(std::vector<int> vect){ // if(collinear(0, 0, vect[0], vect[1], vect[2], vect[3])) return true;//A B C // if(collinear(0, 0, vect[0], vect[1], vect[4], vect[5])) return true;//A B D // if(collinear(0, 0, vect[2], vect[3], vect[4], vect[5])) return true;//A C D // if(collinear(vect[0], vect[1], vect[2], vect[3], vect[4], vect[5])) return true;//B C D // return false; //} // //std::vector<int> parseToVector(std::string &string){ // //// if(error1(string)){ //// exitError("error 1"); //// } // std::stringstream iss(string); // std::string number; // std::vector<int> parsedInput; // while (iss >> number){ // parsedInput.push_back(std::stoi(number)); // } //// if(error1(parsedInput)){ //// exitError("error 1"); //// } //// if(error2(parsedInput)){ //// exitError("error 2"); //// } //// if(error3(parsedInput)){ //// exitError("error 3"); //// } //// if(error4(parsedInput)){ //// exitError("error 4"); //// } // return parsedInput; //} // ////slope = (Y2 - Y1)/(X2 - X1) //double slope(const int &xA, const int &yA, const int &xB, const int &yB){ // if(yB - yA == 0 || xB - xA == 0) return 0; //return zero for horizontal or vertical lines // double slopeAB = (double)(yB - yA)/(xB - xA); // return slopeAB; //} // ////distance between two vertices //double distance(const int &x1, const int &y1, const int &x2, const int &y2){ // double distance = 0; // distance = sqrt(pow((x2 - x1),2) + pow((y2 - y1),2)); // return distance; //} // //bool areParallel(const double &slopeA, const double &slopeB){ // return (std::abs((slopeA - slopeB)) < 0.001); //} // ////are both pairs of opposite sides parallel? . //bool isParallelogram(const double &slopeAB, const double &slopeBC, const double &slopeCD, const double &slopeDA){ // return areParallel(slopeAB, slopeCD) && areParallel(slopeDA, slopeBC); //} // //// Rectangle: four right angles (slopes of all 4 lines must be zero since one vertice is locked at 0,0) //bool isRectangle(const double &slopeAB, const double &slopeBC, const double &slopeCD, const double &slopeDA){ // return (slopeAB == 0 && slopeBC == 0 && slopeCD == 0 && slopeDA == 0); //} // //// Rhombus: four sides of the same length //bool isRhombus(const double &distanceAB, const double &distanceBC, const double &distanceCD, const double &distanceDA){ // return (distanceAB - distanceBC + distanceCD - distanceDA == 0); //} // //// Trapezoid: only one pair of parallel sides //bool isTrapezoid(const double &slopeAB, const double &slopeBC, const double &slopeCD, const double &slopeDA){ // return ((areParallel(slopeAB,slopeCD) && !areParallel(slopeBC, slopeDA)) || (!areParallel(slopeAB,slopeCD) && areParallel(slopeBC, slopeDA))); //} // //// Kite: two pairs of adjacent congruent sides //bool isKite(const double &distanceAB, const double &distanceBC, const double &distanceCD, const double &distanceDA){ // int counter = 0; // if(distanceAB == distanceBC || distanceAB == distanceDA) counter++; // if(distanceCD == distanceDA || distanceCD == distanceBC) counter++; // return counter == 2; //} // //void printQuadrilateralType(const std::vector<int> &vect){ // if(vect.size() != 0) { // double distanceAB = distance(0,0,vect[0],vect[1]); // double distanceBC = distance(vect[0],vect[1],vect[2],vect[3]); // double distanceCD = distance(vect[2],vect[3],vect[4],vect[5]); // double distanceDA = distance(vect[4],vect[5],0,0); // double slopeAB = slope(0,0,vect[0],vect[1]); // double slopeBC = slope(vect[0],vect[1],vect[2],vect[3]); // double slopeCD = slope(vect[2],vect[3],vect[4],vect[5]); // double slopeDA = slope(0,0,vect[4],vect[5]); // // if(isParallelogram(slopeAB, slopeBC, slopeCD, slopeDA)){ // if(isRectangle(slopeAB, slopeBC, slopeCD, slopeDA) && isRhombus(distanceAB, distanceBC, distanceCD, distanceDA)){ // std::cout << "square" << std::endl; // } else if (isRectangle(slopeAB, slopeBC, slopeCD, slopeDA)){ // std::cout << "rectangle" << std::endl; // } else if (isRhombus(distanceAB, distanceBC, distanceCD, distanceDA)){ // std::cout << "rhombus" << std::endl; // } else std::cout << "parallelogram" << std::endl; // } else if (isTrapezoid(slopeAB, slopeBC, slopeCD, slopeDA)){ // std::cout << "trapezoid" << std::endl; // } else if (isKite(distanceAB, distanceBC, distanceCD, distanceDA)){ // std::cout << "kite" << std::endl; // } else std::cout << "quadrilateral" << std::endl; // } //// std::cout << "BLANK LINE" << std::endl; //}
c9c457b4ab3a925f4293ae843451f50ea1ca55dc
9103f127a400f94ef17d77835935327a1afcdc1f
/solutions/life.cpp
e426445ec41db8819dfa8dfe3b4fbad34a2e2ab9
[]
no_license
gurus158/codingPractice
610eca8948006f7288afc74ea36e0b29551f4572
473a17815bc845a586fae7a22c194911e45ee923
refs/heads/master
2022-10-01T00:32:11.489969
2022-08-31T07:42:56
2022-08-31T07:42:56
238,144,580
0
0
null
null
null
null
UTF-8
C++
false
false
611
cpp
#include<bits/stdc++.h> using namespace std; class Life{ public: void startLife(){ var BIRTH=new birth(); const var DEATH= new death(BIRTH); Dream dreams= new dreams(BIRTH,DEATH); while(true){ if(BIRTH.time != DEATH.time) { if(BIRTH.time != "31-DEC-* 23:59:59 99" ) { workhard(dreams); BIRTH.incrementTimeOneUnit(); } else{ wishHappyNewYear(); workhard(dreams); BIRTH.incrementTimeOneUnit(); } } else{ endLife(); } } } void endLife(){ startLife(); } };
b8747aac062bf60f005d945ec11dabe013dc6942
fafecab73cb9fe25fbdf055ee77530ebc242052e
/src/qt/guiutil.cpp
edc3bdbe10f75f5b3ebd777cb7e85e104e1283fc
[ "MIT" ]
permissive
MTLCDevelopers2018/HighStakes
f26bd0e4cfe686b6094b043a21ab04ff50c2adfb
40fc9d09f5da4d092ac495fb8e60c6bfcc262ce6
refs/heads/master
2020-04-15T08:05:05.837270
2019-01-08T00:45:43
2019-01-08T00:45:43
137,939,904
0
0
null
null
null
null
UTF-8
C++
false
false
13,459
cpp
#include "guiutil.h" #include "bitcoinaddressvalidator.h" #include "walletmodel.h" #include "bitcoinunits.h" #include "util.h" #include "init.h" #include <QString> #include <QDateTime> #include <QDoubleValidator> #include <QFont> #include <QLineEdit> #include <QUrl> #include <QTextDocument> // For Qt::escape #include <QAbstractItemView> #include <QApplication> #include <QClipboard> #include <QFileDialog> #include <QDesktopServices> #include <QThread> #include <boost/filesystem.hpp> #include <boost/filesystem/fstream.hpp> #ifdef WIN32 #ifdef _WIN32_WINNT #undef _WIN32_WINNT #endif #define _WIN32_WINNT 0x0501 #ifdef _WIN32_IE #undef _WIN32_IE #endif #define _WIN32_IE 0x0501 #define WIN32_LEAN_AND_MEAN 1 #ifndef NOMINMAX #define NOMINMAX #endif #include "shlwapi.h" #include "shlobj.h" #include "shellapi.h" #endif namespace GUIUtil { QString dateTimeStr(const QDateTime &date) { return date.date().toString(Qt::SystemLocaleShortDate) + QString(" ") + date.toString("hh:mm"); } QString dateTimeStr(qint64 nTime) { return dateTimeStr(QDateTime::fromTime_t((qint32)nTime)); } QFont bitcoinAddressFont() { QFont font("Monospace"); #if QT_VERSION >= 0x040800 font.setStyleHint(QFont::Monospace); #else font.setStyleHint(QFont::TypeWriter); #endif return font; } void setupAddressWidget(QLineEdit *widget, QWidget *parent) { widget->setMaxLength(BitcoinAddressValidator::MaxAddressLength); widget->setValidator(new BitcoinAddressValidator(parent)); widget->setFont(bitcoinAddressFont()); } void setupAmountWidget(QLineEdit *widget, QWidget *parent) { QDoubleValidator *amountValidator = new QDoubleValidator(parent); amountValidator->setDecimals(8); amountValidator->setBottom(0.0); widget->setValidator(amountValidator); widget->setAlignment(Qt::AlignRight|Qt::AlignVCenter); } bool parseBitcoinURI(const QUrl &uri, SendCoinsRecipient *out) { // NovaCoin: check prefix if(uri.scheme() != QString("HighStakes")) return false; SendCoinsRecipient rv; rv.address = uri.path(); rv.amount = 0; QList<QPair<QString, QString> > items = uri.queryItems(); for (QList<QPair<QString, QString> >::iterator i = items.begin(); i != items.end(); i++) { bool fShouldReturnFalse = false; if (i->first.startsWith("req-")) { i->first.remove(0, 4); fShouldReturnFalse = true; } if (i->first == "label") { rv.label = i->second; fShouldReturnFalse = false; } else if (i->first == "amount") { if(!i->second.isEmpty()) { if(!BitcoinUnits::parse(BitcoinUnits::BTC, i->second, &rv.amount)) { return false; } } fShouldReturnFalse = false; } if (fShouldReturnFalse) return false; } if(out) { *out = rv; } return true; } bool parseBitcoinURI(QString uri, SendCoinsRecipient *out) { // Convert HighStakes:// to HighStakes: // // Cannot handle this later, because bitcoin:// will cause Qt to see the part after // as host, // which will lower-case it (and thus invalidate the address). if(uri.startsWith("HighStakes://")) { uri.replace(0, 12, "HighStakes:"); } QUrl uriInstance(uri); return parseBitcoinURI(uriInstance, out); } QString HtmlEscape(const QString& str, bool fMultiLine) { QString escaped = Qt::escape(str); if(fMultiLine) { escaped = escaped.replace("\n", "<br>\n"); } return escaped; } QString HtmlEscape(const std::string& str, bool fMultiLine) { return HtmlEscape(QString::fromStdString(str), fMultiLine); } void copyEntryData(QAbstractItemView *view, int column, int role) { if(!view || !view->selectionModel()) return; QModelIndexList selection = view->selectionModel()->selectedRows(column); if(!selection.isEmpty()) { // Copy first item QApplication::clipboard()->setText(selection.at(0).data(role).toString()); } } QString getSaveFileName(QWidget *parent, const QString &caption, const QString &dir, const QString &filter, QString *selectedSuffixOut) { QString selectedFilter; QString myDir; if(dir.isEmpty()) // Default to user documents location { myDir = QDesktopServices::storageLocation(QDesktopServices::DocumentsLocation); } else { myDir = dir; } QString result = QFileDialog::getSaveFileName(parent, caption, myDir, filter, &selectedFilter); /* Extract first suffix from filter pattern "Description (*.foo)" or "Description (*.foo *.bar ...) */ QRegExp filter_re(".* \\(\\*\\.(.*)[ \\)]"); QString selectedSuffix; if(filter_re.exactMatch(selectedFilter)) { selectedSuffix = filter_re.cap(1); } /* Add suffix if needed */ QFileInfo info(result); if(!result.isEmpty()) { if(info.suffix().isEmpty() && !selectedSuffix.isEmpty()) { /* No suffix specified, add selected suffix */ if(!result.endsWith(".")) result.append("."); result.append(selectedSuffix); } } /* Return selected suffix if asked to */ if(selectedSuffixOut) { *selectedSuffixOut = selectedSuffix; } return result; } Qt::ConnectionType blockingGUIThreadConnection() { if(QThread::currentThread() != QCoreApplication::instance()->thread()) { return Qt::BlockingQueuedConnection; } else { return Qt::DirectConnection; } } bool checkPoint(const QPoint &p, const QWidget *w) { QWidget *atW = qApp->widgetAt(w->mapToGlobal(p)); if (!atW) return false; return atW->topLevelWidget() == w; } bool isObscured(QWidget *w) { return !(checkPoint(QPoint(0, 0), w) && checkPoint(QPoint(w->width() - 1, 0), w) && checkPoint(QPoint(0, w->height() - 1), w) && checkPoint(QPoint(w->width() - 1, w->height() - 1), w) && checkPoint(QPoint(w->width() / 2, w->height() / 2), w)); } void openDebugLogfile() { boost::filesystem::path pathDebug = GetDataDir() / "debug.log"; /* Open debug.log with the associated application */ if (boost::filesystem::exists(pathDebug)) QDesktopServices::openUrl(QUrl::fromLocalFile(QString::fromStdString(pathDebug.string()))); } ToolTipToRichTextFilter::ToolTipToRichTextFilter(int size_threshold, QObject *parent) : QObject(parent), size_threshold(size_threshold) { } bool ToolTipToRichTextFilter::eventFilter(QObject *obj, QEvent *evt) { if(evt->type() == QEvent::ToolTipChange) { QWidget *widget = static_cast<QWidget*>(obj); QString tooltip = widget->toolTip(); if(tooltip.size() > size_threshold && !tooltip.startsWith("<qt>") && !Qt::mightBeRichText(tooltip)) { // Prefix <qt/> to make sure Qt detects this as rich text // Escape the current message as HTML and replace \n by <br> tooltip = "<qt>" + HtmlEscape(tooltip, true) + "<qt/>"; widget->setToolTip(tooltip); return true; } } return QObject::eventFilter(obj, evt); } #ifdef WIN32 boost::filesystem::path static StartupShortcutPath() { return GetSpecialFolderPath(CSIDL_STARTUP) / "HighStakes.lnk"; } bool GetStartOnSystemStartup() { // check for Bitcoin.lnk return boost::filesystem::exists(StartupShortcutPath()); } bool SetStartOnSystemStartup(bool fAutoStart) { // If the shortcut exists already, remove it for updating boost::filesystem::remove(StartupShortcutPath()); if (fAutoStart) { CoInitialize(NULL); // Get a pointer to the IShellLink interface. IShellLink* psl = NULL; HRESULT hres = CoCreateInstance(CLSID_ShellLink, NULL, CLSCTX_INPROC_SERVER, IID_IShellLink, reinterpret_cast<void**>(&psl)); if (SUCCEEDED(hres)) { // Get the current executable path TCHAR pszExePath[MAX_PATH]; GetModuleFileName(NULL, pszExePath, sizeof(pszExePath)); TCHAR pszArgs[5] = TEXT("-min"); // Set the path to the shortcut target psl->SetPath(pszExePath); PathRemoveFileSpec(pszExePath); psl->SetWorkingDirectory(pszExePath); psl->SetShowCmd(SW_SHOWMINNOACTIVE); psl->SetArguments(pszArgs); // Query IShellLink for the IPersistFile interface for // saving the shortcut in persistent storage. IPersistFile* ppf = NULL; hres = psl->QueryInterface(IID_IPersistFile, reinterpret_cast<void**>(&ppf)); if (SUCCEEDED(hres)) { WCHAR pwsz[MAX_PATH]; // Ensure that the string is ANSI. MultiByteToWideChar(CP_ACP, 0, StartupShortcutPath().string().c_str(), -1, pwsz, MAX_PATH); // Save the link by calling IPersistFile::Save. hres = ppf->Save(pwsz, TRUE); ppf->Release(); psl->Release(); CoUninitialize(); return true; } psl->Release(); } CoUninitialize(); return false; } return true; } #elif defined(Q_OS_LINUX) // Follow the Desktop Application Autostart Spec: // http://standards.freedesktop.org/autostart-spec/autostart-spec-latest.html boost::filesystem::path static GetAutostartDir() { namespace fs = boost::filesystem; char* pszConfigHome = getenv("XDG_CONFIG_HOME"); if (pszConfigHome) return fs::path(pszConfigHome) / "autostart"; char* pszHome = getenv("HOME"); if (pszHome) return fs::path(pszHome) / ".config" / "autostart"; return fs::path(); } boost::filesystem::path static GetAutostartFilePath() { return GetAutostartDir() / "HighStakes.desktop"; } bool GetStartOnSystemStartup() { boost::filesystem::ifstream optionFile(GetAutostartFilePath()); if (!optionFile.good()) return false; // Scan through file for "Hidden=true": std::string line; while (!optionFile.eof()) { getline(optionFile, line); if (line.find("Hidden") != std::string::npos && line.find("true") != std::string::npos) return false; } optionFile.close(); return true; } bool SetStartOnSystemStartup(bool fAutoStart) { if (!fAutoStart) boost::filesystem::remove(GetAutostartFilePath()); else { char pszExePath[MAX_PATH+1]; memset(pszExePath, 0, sizeof(pszExePath)); if (readlink("/proc/self/exe", pszExePath, sizeof(pszExePath)-1) == -1) return false; boost::filesystem::create_directories(GetAutostartDir()); boost::filesystem::ofstream optionFile(GetAutostartFilePath(), std::ios_base::out|std::ios_base::trunc); if (!optionFile.good()) return false; // Write a bitcoin.desktop file to the autostart directory: optionFile << "[Desktop Entry]\n"; optionFile << "Type=Application\n"; optionFile << "Name=HighStakes\n"; optionFile << "Exec=" << pszExePath << " -min\n"; optionFile << "Terminal=false\n"; optionFile << "Hidden=false\n"; optionFile.close(); } return true; } #else // TODO: OSX startup stuff; see: // https://developer.apple.com/library/mac/#documentation/MacOSX/Conceptual/BPSystemStartup/Articles/CustomLogin.html bool GetStartOnSystemStartup() { return false; } bool SetStartOnSystemStartup(bool fAutoStart) { return false; } #endif HelpMessageBox::HelpMessageBox(QWidget *parent) : QMessageBox(parent) { header = tr("HighStakes-Qt") + " " + tr("version") + " " + QString::fromStdString(FormatFullVersion()) + "\n\n" + tr("Usage:") + "\n" + " HighStakes-qt [" + tr("command-line options") + "] " + "\n"; coreOptions = QString::fromStdString(HelpMessage()); uiOptions = tr("UI options") + ":\n" + " -lang=<lang> " + tr("Set language, for example \"de_DE\" (default: system locale)") + "\n" + " -min " + tr("Start minimized") + "\n" + " -splash " + tr("Show splash screen on startup (default: 1)") + "\n"; setWindowTitle(tr("HighStakes-Qt")); setTextFormat(Qt::PlainText); // setMinimumWidth is ignored for QMessageBox so put in non-breaking spaces to make it wider. setText(header + QString(QChar(0x2003)).repeated(50)); setDetailedText(coreOptions + "\n" + uiOptions); } void HelpMessageBox::printToConsole() { // On other operating systems, the expected action is to print the message to the console. QString strUsage = header + "\n" + coreOptions + "\n" + uiOptions; fprintf(stdout, "%s", strUsage.toStdString().c_str()); } void HelpMessageBox::showOrPrint() { #if defined(WIN32) // On Windows, show a message box, as there is no stderr/stdout in windowed applications exec(); #else // On other operating systems, print help text to console printToConsole(); #endif } } // namespace GUIUtil
adda7cd2457723a2fdfe3df67c871a9c1425a823
c0729fc39d9bb56d00f4d38b6c931eb0e1cbe487
/Extensions/PhysicsBehavior/Box2D/Box2D/Box2D/Dynamics/b2ContactManager.h
d22bd258e1efffd7cbee4c56707e3c4508511272
[ "MIT", "LicenseRef-scancode-unknown-license-reference", "Zlib" ]
permissive
PawBud/GDevelop
babd76f7a255050ae08f80d24911842833753ed9
4b382cb191724e168bd1e9c5cebb6aa3fa6b760a
refs/heads/master
2021-07-12T05:01:55.902701
2021-05-30T18:21:42
2021-05-30T18:21:42
243,977,330
3
0
NOASSERTION
2020-02-29T13:51:10
2020-02-29T13:51:09
null
UTF-8
C++
false
false
1,528
h
/* * Copyright (c) 2006-2009 Erin Catto http://www.gphysics.com * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * Permission is granted to anyone to use this software for any purpose, * including commercial applications, and to alter it and redistribute it * freely, subject to the following restrictions: * 1. The origin of this software must not be misrepresented; you must not * claim that you wrote the original software. If you use this software * in a product, an acknowledgment in the product documentation would be * appreciated but is not required. * 2. Altered source versions must be plainly marked as such, and must not be * misrepresented as being the original software. * 3. This notice may not be removed or altered from any source distribution. */ #ifndef B2_CONTACT_MANAGER_H #define B2_CONTACT_MANAGER_H #include <Box2D/Collision/b2BroadPhase.h> class b2Contact; class b2ContactFilter; class b2ContactListener; class b2BlockAllocator; // Delegate of b2World. class b2ContactManager { public: b2ContactManager(); // Broad-phase callback. void AddPair(void* proxyUserDataA, void* proxyUserDataB); void FindNewContacts(); void Destroy(b2Contact* c); void Collide(); b2BroadPhase m_broadPhase; b2Contact* m_contactList; int32 m_contactCount; b2ContactFilter* m_contactFilter; b2ContactListener* m_contactListener; b2BlockAllocator* m_allocator; }; #endif
dadc4bae9e7305d48911afb4f79d975ed0a95ab9
d92d15e8e57d5cfb0945c8518a8889b75f41db74
/30-Day June Challenge/IsSubsequence.cpp
92e692b0032e467c3715bb3f27665a634faba63f
[]
no_license
PRASUN95/LeetCode
a0159a36ae01a8d18258530378a63f4f31f6a2b1
8d36ee0441b4bbe3b1b8f65b1d70bb0e17e8863a
refs/heads/master
2023-02-06T09:40:17.436461
2020-12-26T14:24:12
2020-12-26T14:24:12
208,606,620
0
0
null
null
null
null
UTF-8
C++
false
false
487
cpp
class Solution { bool Solve(string str1, string str2, int m, int n) { // Base Cases if (m == 0) return true; if (n == 0) return false; // If last characters of two strings are matching if (str1[m-1] == str2[n-1]) return Solve(str1, str2, m-1, n-1); // If last characters are not matching return Solve(str1, str2, m, n-1); } public: bool isSubsequence(string s, string t) { return Solve(s,t,s.size(),t.size()); } };
085db2247692af06c851db46a71e90eff695e74b
389358b4378bdf880d0c1f8fcbe0a9ca0c567bf6
/inc/HPlayer.hpp
67e9cbd943a3b4325903b87422f29e6a1f6bafea
[]
no_license
anat/gomoku
7b8f2074ded7fad6323014b30e3f1dfcfe412938
2cc0a2f533164c0ea6061f9d28eb626bdf323b13
refs/heads/master
2016-09-05T12:14:42.482944
2011-07-28T06:10:36
2011-07-28T06:10:36
null
0
0
null
null
null
null
UTF-8
C++
false
false
360
hpp
/* * File: HPlayer.h * Author: Calimeraw93 * * Created on May 8, 2011, 2:13 PM */ #ifndef HPLAYER_H #define HPLAYER_H #include "APlayer.hpp" class HPlayer : public APlayer { public: HPlayer(unsigned int player); virtual ~HPlayer(); private: bool doAction(Board & gameboard, Referee & referee, int x, int y); }; #endif /* HPLAYER_H */
430fadb85562cdcebf408a6e29eba63cff3e6437
f9e23433aaa32cca6567ef0a5295af2600a3f236
/src/graphics/set_polygon.cpp
d2b962b5972215ae0ea9401c380d212e1d8ee9b1
[ "BSD-2-Clause" ]
permissive
TetraSomia/liblapin
72d8bbcf48b4acb39d079884e50d80cd38827c52
f5ee3ce9b0fff8459ec15d5e24287f2c16e5ae35
refs/heads/main
2023-06-02T02:28:38.107596
2021-06-13T18:54:09
2021-06-13T18:54:09
376,612,564
1
0
null
null
null
null
UTF-8
C++
false
false
1,737
cpp
// Jason Brillante "Damdoshi" // Hanged Bunny Studio 2014-2016 // // Lapin library #include "lapin_private.h" void bunny_set_polygon(t_bunny_buffer *buffer, const t_bunny_position *position, const unsigned int *color) { size_t *type = (size_t*)buffer; sf::Vertex vert[3] = { sf::Vertex (sf::Vector2f(position[0].x, position[0].y), sf::Color ((color[0] >> (RED_CMP * 8)) & 0xFF, (color[0] >> (GREEN_CMP * 8)) & 0xFF, (color[0] >> (BLUE_CMP * 8)) & 0xFF, (color[0] >> (ALPHA_CMP * 8)) & 0xFF ) ), sf::Vertex (sf::Vector2f(position[1].x, position[1].y), sf::Color ((color[1] >> (RED_CMP * 8)) & 0xFF, (color[1] >> (GREEN_CMP * 8)) & 0xFF, (color[1] >> (BLUE_CMP * 8)) & 0xFF, (color[1] >> (ALPHA_CMP * 8)) & 0xFF ) ), sf::Vertex (sf::Vector2f(position[2].x, position[2].y), sf::Color ((color[2] >> (RED_CMP * 8)) & 0xFF, (color[2] >> (GREEN_CMP * 8)) & 0xFF, (color[2] >> (BLUE_CMP * 8)) & 0xFF, (color[2] >> (ALPHA_CMP * 8)) & 0xFF ) ) }; switch (*type) { case WINDOW: { struct bunny_window *pic = (struct bunny_window*)buffer; pic->window->draw(vert, 3, sf::Triangles); return ; } case TTF_TEXT: case GRAPHIC_TEXT: case GRAPHIC_RAM: { struct bunny_picture *pic = (struct bunny_picture*)buffer; pic->texture->draw(vert, 3, sf::Triangles); return ; } case SYSTEM_RAM: { t_bunny_pixelarray *pix = (t_bunny_pixelarray*)buffer; if (gl_bunny_my_set_polygon == NULL) fprintf(stderr, "gl_bunny_my_set_polygon is not set.\n"); else gl_bunny_my_set_polygon(pix, position, color); return ; } default: return ; } }
4148e65e12410f85337acf03c0a70b80fac1bbd9
310c48d7bc2227a69ab4b7f80a89a097475e6400
/src/SceneList.cpp
f5344428a996114e422d5a55cdfd81194c3d646f
[ "BSD-3-Clause" ]
permissive
GPSnoopy/RayTracingInVulkan
2358a48892883e4759f68677b141d9af57a82a95
531685923084b6e2a7fb6c651dc70f2919dc6afc
refs/heads/master
2023-08-11T09:56:04.097083
2023-04-23T18:38:37
2023-04-23T18:38:37
175,968,151
1,044
111
BSD-3-Clause
2023-04-23T18:38:38
2019-03-16T12:17:47
C++
UTF-8
C++
false
false
9,182
cpp
#include "SceneList.hpp" #include "Assets/Material.hpp" #include "Assets/Model.hpp" #include "Assets/Texture.hpp" #include <functional> #include <random> using namespace glm; using Assets::Material; using Assets::Model; using Assets::Texture; namespace { void AddRayTracingInOneWeekendCommonScene(std::vector<Assets::Model>& models, const bool& isProc, std::function<float ()>& random) { // Common models from the final scene from Ray Tracing In One Weekend book. Only the three central spheres are missing. // Calls to random() are always explicit and non-inlined to avoid C++ undefined evaluation order of function arguments, // this guarantees consistent and reproducible behaviour across different platforms and compilers. models.push_back(Model::CreateSphere(vec3(0, -1000, 0), 1000, Material::Lambertian(vec3(0.5f, 0.5f, 0.5f)), isProc)); for (int i = -11; i < 11; ++i) { for (int j = -11; j < 11; ++j) { const float chooseMat = random(); const float center_y = static_cast<float>(j) + 0.9f * random(); const float center_x = static_cast<float>(i) + 0.9f * random(); const vec3 center(center_x, 0.2f, center_y); if (length(center - vec3(4, 0.2f, 0)) > 0.9f) { if (chooseMat < 0.8f) // Diffuse { const float b = random() * random(); const float g = random() * random(); const float r = random() * random(); models.push_back(Model::CreateSphere(center, 0.2f, Material::Lambertian(vec3(r, g, b)), isProc)); } else if (chooseMat < 0.95f) // Metal { const float fuzziness = 0.5f * random(); const float b = 0.5f * (1 + random()); const float g = 0.5f * (1 + random()); const float r = 0.5f * (1 + random()); models.push_back(Model::CreateSphere(center, 0.2f, Material::Metallic(vec3(r, g, b), fuzziness), isProc)); } else // Glass { models.push_back(Model::CreateSphere(center, 0.2f, Material::Dielectric(1.5f), isProc)); } } } } } } const std::vector<std::pair<std::string, std::function<SceneAssets (SceneList::CameraInitialSate&)>>> SceneList::AllScenes = { {"Cube And Spheres", CubeAndSpheres}, {"Ray Tracing In One Weekend", RayTracingInOneWeekend}, {"Planets In One Weekend", PlanetsInOneWeekend}, {"Lucy In One Weekend", LucyInOneWeekend}, {"Cornell Box", CornellBox}, {"Cornell Box & Lucy", CornellBoxLucy}, }; SceneAssets SceneList::CubeAndSpheres(CameraInitialSate& camera) { // Basic test scene. camera.ModelView = translate(mat4(1), vec3(0, 0, -2)); camera.FieldOfView = 90; camera.Aperture = 0.05f; camera.FocusDistance = 2.0f; camera.ControlSpeed = 2.0f; camera.GammaCorrection = false; camera.HasSky = true; std::vector<Model> models; std::vector<Texture> textures; models.push_back(Model::LoadModel("../assets/models/cube_multi.obj")); models.push_back(Model::CreateSphere(vec3(1, 0, 0), 0.5, Material::Metallic(vec3(0.7f, 0.5f, 0.8f), 0.2f), true)); models.push_back(Model::CreateSphere(vec3(-1, 0, 0), 0.5, Material::Dielectric(1.5f), true)); models.push_back(Model::CreateSphere(vec3(0, 1, 0), 0.5, Material::Lambertian(vec3(1.0f), 0), true)); textures.push_back(Texture::LoadTexture("../assets/textures/land_ocean_ice_cloud_2048.png", Vulkan::SamplerConfig())); return std::forward_as_tuple(std::move(models), std::move(textures)); } SceneAssets SceneList::RayTracingInOneWeekend(CameraInitialSate& camera) { // Final scene from Ray Tracing In One Weekend book. camera.ModelView = lookAt(vec3(13, 2, 3), vec3(0, 0, 0), vec3(0, 1, 0)); camera.FieldOfView = 20; camera.Aperture = 0.1f; camera.FocusDistance = 10.0f; camera.ControlSpeed = 5.0f; camera.GammaCorrection = true; camera.HasSky = true; const bool isProc = true; std::mt19937 engine(42); std::function<float ()> random = std::bind(std::uniform_real_distribution<float>(), engine); std::vector<Model> models; AddRayTracingInOneWeekendCommonScene(models, isProc, random); models.push_back(Model::CreateSphere(vec3(0, 1, 0), 1.0f, Material::Dielectric(1.5f), isProc)); models.push_back(Model::CreateSphere(vec3(-4, 1, 0), 1.0f, Material::Lambertian(vec3(0.4f, 0.2f, 0.1f)), isProc)); models.push_back(Model::CreateSphere(vec3(4, 1, 0), 1.0f, Material::Metallic(vec3(0.7f, 0.6f, 0.5f), 0.0f), isProc)); return std::forward_as_tuple(std::move(models), std::vector<Texture>()); } SceneAssets SceneList::PlanetsInOneWeekend(CameraInitialSate& camera) { // Same as RayTracingInOneWeekend but using textures. camera.ModelView = lookAt(vec3(13, 2, 3), vec3(0, 0, 0), vec3(0, 1, 0)); camera.FieldOfView = 20; camera.Aperture = 0.1f; camera.FocusDistance = 10.0f; camera.ControlSpeed = 5.0f; camera.GammaCorrection = true; camera.HasSky = true; const bool isProc = true; std::mt19937 engine(42); std::function<float()> random = std::bind(std::uniform_real_distribution<float>(), engine); std::vector<Model> models; std::vector<Texture> textures; AddRayTracingInOneWeekendCommonScene(models, isProc, random); models.push_back(Model::CreateSphere(vec3(0, 1, 0), 1.0f, Material::Metallic(vec3(1.0f), 0.1f, 2), isProc)); models.push_back(Model::CreateSphere(vec3(-4, 1, 0), 1.0f, Material::Lambertian(vec3(1.0f), 0), isProc)); models.push_back(Model::CreateSphere(vec3(4, 1, 0), 1.0f, Material::Metallic(vec3(1.0f), 0.0f, 1), isProc)); textures.push_back(Texture::LoadTexture("../assets/textures/2k_mars.jpg", Vulkan::SamplerConfig())); textures.push_back(Texture::LoadTexture("../assets/textures/2k_moon.jpg", Vulkan::SamplerConfig())); textures.push_back(Texture::LoadTexture("../assets/textures/land_ocean_ice_cloud_2048.png", Vulkan::SamplerConfig())); return std::forward_as_tuple(std::move(models), std::move(textures)); } SceneAssets SceneList::LucyInOneWeekend(CameraInitialSate& camera) { // Same as RayTracingInOneWeekend but using the Lucy 3D model. camera.ModelView = lookAt(vec3(13, 2, 3), vec3(0, 1.0, 0), vec3(0, 1, 0)); camera.FieldOfView = 20; camera.Aperture = 0.05f; camera.FocusDistance = 10.0f; camera.ControlSpeed = 5.0f; camera.GammaCorrection = true; camera.HasSky = true; const bool isProc = true; std::mt19937 engine(42); std::function<float()> random = std::bind(std::uniform_real_distribution<float>(), engine); std::vector<Model> models; AddRayTracingInOneWeekendCommonScene(models, isProc, random); auto lucy0 = Model::LoadModel("../assets/models/lucy.obj"); auto lucy1 = lucy0; auto lucy2 = lucy0; const auto i = mat4(1); const float scaleFactor = 0.0035f; lucy0.Transform( rotate( scale( translate(i, vec3(0, -0.08f, 0)), vec3(scaleFactor)), radians(90.0f), vec3(0, 1, 0))); lucy1.Transform( rotate( scale( translate(i, vec3(-4, -0.08f, 0)), vec3(scaleFactor)), radians(90.0f), vec3(0, 1, 0))); lucy2.Transform( rotate( scale( translate(i, vec3(4, -0.08f, 0)), vec3(scaleFactor)), radians(90.0f), vec3(0, 1, 0))); lucy0.SetMaterial(Material::Dielectric(1.5f)); lucy1.SetMaterial(Material::Lambertian(vec3(0.4f, 0.2f, 0.1f))); lucy2.SetMaterial(Material::Metallic(vec3(0.7f, 0.6f, 0.5f), 0.05f)); models.push_back(std::move(lucy0)); models.push_back(std::move(lucy1)); models.push_back(std::move(lucy2)); return std::forward_as_tuple(std::move(models), std::vector<Texture>()); } SceneAssets SceneList::CornellBox(CameraInitialSate& camera) { camera.ModelView = lookAt(vec3(278, 278, 800), vec3(278, 278, 0), vec3(0, 1, 0)); camera.FieldOfView = 40; camera.Aperture = 0.0f; camera.FocusDistance = 10.0f; camera.ControlSpeed = 500.0f; camera.GammaCorrection = true; camera.HasSky = false; const auto i = mat4(1); const auto white = Material::Lambertian(vec3(0.73f, 0.73f, 0.73f)); auto box0 = Model::CreateBox(vec3(0, 0, -165), vec3(165, 165, 0), white); auto box1 = Model::CreateBox(vec3(0, 0, -165), vec3(165, 330, 0), white); box0.Transform(rotate(translate(i, vec3(555 - 130 - 165, 0, -65)), radians(-18.0f), vec3(0, 1, 0))); box1.Transform(rotate(translate(i, vec3(555 - 265 - 165, 0, -295)), radians(15.0f), vec3(0, 1, 0))); std::vector<Model> models; models.push_back(Model::CreateCornellBox(555)); models.push_back(box0); models.push_back(box1); return std::make_tuple(std::move(models), std::vector<Texture>()); } SceneAssets SceneList::CornellBoxLucy(CameraInitialSate& camera) { camera.ModelView = lookAt(vec3(278, 278, 800), vec3(278, 278, 0), vec3(0, 1, 0)); camera.FieldOfView = 40; camera.Aperture = 0.0f; camera.FocusDistance = 10.0f; camera.ControlSpeed = 500.0f; camera.GammaCorrection = true; camera.HasSky = false; const auto i = mat4(1); const auto sphere = Model::CreateSphere(vec3(555 - 130, 165.0f, -165.0f / 2 - 65), 80.0f, Material::Dielectric(1.5f), true); auto lucy0 = Model::LoadModel("../assets/models/lucy.obj"); lucy0.Transform( rotate( scale( translate(i, vec3(555 - 300 - 165/2, -9, -295 - 165/2)), vec3(0.6f)), radians(75.0f), vec3(0, 1, 0))); std::vector<Model> models; models.push_back(Model::CreateCornellBox(555)); models.push_back(sphere); models.push_back(lucy0); return std::forward_as_tuple(std::move(models), std::vector<Texture>()); }
3e6d976ff0c824f871cee8849168021ad5968534
575731c1155e321e7b22d8373ad5876b292b0b2f
/examples/native/ios/Pods/boost-for-react-native/boost/math/tools/detail/polynomial_horner1_7.hpp
d122b1c5dfdcd03b5589f9daef549ee21d0db3d4
[ "BSL-1.0", "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
Nozbe/zacs
802a84ffd47413a1687a573edda519156ca317c7
c3d455426bc7dfb83e09fdf20781c2632a205c04
refs/heads/master
2023-06-12T20:53:31.482746
2023-06-07T07:06:49
2023-06-07T07:06:49
201,777,469
432
10
MIT
2023-01-24T13:29:34
2019-08-11T14:47:50
JavaScript
UTF-8
C++
false
false
2,192
hpp
// (C) Copyright John Maddock 2007. // Use, modification and distribution are subject to the // Boost Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // // This file is machine generated, do not edit by hand // Polynomial evaluation using Horners rule #ifndef BOOST_MATH_TOOLS_POLY_EVAL_7_HPP #define BOOST_MATH_TOOLS_POLY_EVAL_7_HPP namespace boost{ namespace math{ namespace tools{ namespace detail{ template <class T, class V> inline V evaluate_polynomial_c_imp(const T*, const V&, const mpl::int_<0>*) BOOST_MATH_NOEXCEPT(V) { return static_cast<V>(0); } template <class T, class V> inline V evaluate_polynomial_c_imp(const T* a, const V&, const mpl::int_<1>*) BOOST_MATH_NOEXCEPT(V) { return static_cast<V>(a[0]); } template <class T, class V> inline V evaluate_polynomial_c_imp(const T* a, const V& x, const mpl::int_<2>*) BOOST_MATH_NOEXCEPT(V) { return static_cast<V>(a[1] * x + a[0]); } template <class T, class V> inline V evaluate_polynomial_c_imp(const T* a, const V& x, const mpl::int_<3>*) BOOST_MATH_NOEXCEPT(V) { return static_cast<V>((a[2] * x + a[1]) * x + a[0]); } template <class T, class V> inline V evaluate_polynomial_c_imp(const T* a, const V& x, const mpl::int_<4>*) BOOST_MATH_NOEXCEPT(V) { return static_cast<V>(((a[3] * x + a[2]) * x + a[1]) * x + a[0]); } template <class T, class V> inline V evaluate_polynomial_c_imp(const T* a, const V& x, const mpl::int_<5>*) BOOST_MATH_NOEXCEPT(V) { return static_cast<V>((((a[4] * x + a[3]) * x + a[2]) * x + a[1]) * x + a[0]); } template <class T, class V> inline V evaluate_polynomial_c_imp(const T* a, const V& x, const mpl::int_<6>*) BOOST_MATH_NOEXCEPT(V) { return static_cast<V>(((((a[5] * x + a[4]) * x + a[3]) * x + a[2]) * x + a[1]) * x + a[0]); } template <class T, class V> inline V evaluate_polynomial_c_imp(const T* a, const V& x, const mpl::int_<7>*) BOOST_MATH_NOEXCEPT(V) { return static_cast<V>((((((a[6] * x + a[5]) * x + a[4]) * x + a[3]) * x + a[2]) * x + a[1]) * x + a[0]); } }}}} // namespaces #endif // include guard
0cc7287ec7512a8979fed583965ef483153584d7
d42ea103f71eddd10d1cfb2c5491fe5d6b1333ef
/bb_lib/mat4.cpp
7d3b73692ab149d05a2028731f04b429c58ec13b
[]
no_license
whztt07/happy
f270080cca26525f06e6ae79481bc5f47f2e4aba
334410e9dcf2771b55f6c1515ca1a22a8f405569
refs/heads/master
2020-03-17T20:50:21.876719
2017-07-21T15:09:12
2017-07-21T15:09:12
null
0
0
null
null
null
null
UTF-8
C++
false
false
10,808
cpp
#include "mat4.h" #include "mat3.h" #include "vec4.h" #include "vec3.h" #include "vec2.h" #include "math_util.h" #include <cmath> #include <cstring> #include <exception> #define PI 3.1415926535897932384626433832795f namespace bb { mat4::mat4() { for (int i = 0; i < 16; i++) { m[i] = 0; } } mat4::mat4(const mat4& other) { for (int i = 0; i < 16; i++) { m[i] = other.m[i]; } } float& mat4::operator()(int i, int j) { return m[i * 4 + j]; } float mat4::operator()(int i, int j) const { return m[i * 4 + j]; } mat4& mat4::operator= (const mat4 &other) { for (int i = 0; i < 16; i++) { m[i] = other.m[i]; } return *this; } mat4& mat4::operator= (const float *other) { for (int i = 0; i < 16; i++) { m[i] = other[i]; } return *this; } bool mat4::operator== (const mat4 &other) const { for (int i = 0; i < 16; i++) { if (m[i] != other.m[i]) { return false; } } return true; } vec4 mat4::operator* (const vec4 &other) const { vec4 tmp; float *v = &tmp.x; for (int i = 0; i < 4; i++) { v[i] = m[i + 0] * other.x + m[i + 4] * other.y + m[i + 8] * other.z + m[i + 12] * other.w; } return tmp; } mat4 mat4::operator* (const mat4 &other) const { const mat4 *srcA = this; const mat4 *srcB = &other; mat4 tmp; for (int i = 0; i < 4; i++) { int a = 4 * i; int b = a + 1; int c = a + 2; int d = a + 3; tmp.m[a] = srcA->m[a] * srcB->m[0] + srcA->m[b] * srcB->m[4] + srcA->m[c] * srcB->m[8] + srcA->m[d] * srcB->m[12]; tmp.m[b] = srcA->m[a] * srcB->m[1] + srcA->m[b] * srcB->m[5] + srcA->m[c] * srcB->m[9] + srcA->m[d] * srcB->m[13]; tmp.m[c] = srcA->m[a] * srcB->m[2] + srcA->m[b] * srcB->m[6] + srcA->m[c] * srcB->m[10] + srcA->m[d] * srcB->m[14]; tmp.m[d] = srcA->m[a] * srcB->m[3] + srcA->m[b] * srcB->m[7] + srcA->m[c] * srcB->m[11] + srcA->m[d] * srcB->m[15]; } return tmp; } void mat4::scale(vec3 s) { m[0] *= s.x; m[1] *= s.x; m[2] *= s.x; m[3] *= s.x; m[4] *= s.y; m[5] *= s.y; m[6] *= s.y; m[7] *= s.y; m[8] *= s.z; m[9] *= s.z; m[10] *= s.z; m[11] *= s.z; } void mat4::translate(vec3 t) { m[12] += (m[0] * t.x + m[4] * t.y + m[8] * t.z); m[13] += (m[1] * t.x + m[5] * t.y + m[9] * t.z); m[14] += (m[2] * t.x + m[6] * t.y + m[10] * t.z); m[15] += (m[3] * t.x + m[7] * t.y + m[11] * t.z); } void mat4::rotate(vec4 q) { mat4 rotationMatrix; rotationMatrix.m[0] = 1 - 2 * q.y * q.y - 2 * q.z * q.z; rotationMatrix.m[1] = 2 * q.x * q.y + 2 * q.w * q.z; rotationMatrix.m[2] = 2 * q.x * q.z - 2 * q.w * q.y; rotationMatrix.m[3] = 0.0f; rotationMatrix.m[4] = 2 * q.x * q.y - 2 * q.w * q.z; rotationMatrix.m[5] = 1 - 2 * q.x * q.x - 2 * q.z * q.z; rotationMatrix.m[6] = 2 * q.y * q.z + 2 * q.w * q.x; rotationMatrix.m[7] = 0.0f; rotationMatrix.m[8] = 2 * q.x * q.z + 2 * q.w * q.y; rotationMatrix.m[9] = 2 * q.y * q.z - 2 * q.w * q.x; rotationMatrix.m[10] = 1 - 2 * q.x * q.x - 2 * q.y * q.y; rotationMatrix.m[11] = 0.0f; rotationMatrix.m[12] = 0.0f; rotationMatrix.m[13] = 0.0f; rotationMatrix.m[14] = 0.0f; rotationMatrix.m[15] = 1.0f; multiply(rotationMatrix); } void mat4::rotate(float angle, vec3 a) { float sinAngle = sinf(angle * PI / 180.0f); float cosAngle = cosf(angle * PI / 180.0f); float oneMinusCos = 1.0f - cosAngle; float mag = sqrtf(a.x * a.x + a.y * a.y + a.z * a.z); if (mag != 0.0f && mag != 1.0f) { a.x /= mag; a.y /= mag; a.z /= mag; } float xx = a.x * a.x; float yy = a.y * a.y; float zz = a.z * a.z; float xy = a.x * a.y; float yz = a.y * a.z; float zx = a.z * a.x; float xs = a.x * sinAngle; float ys = a.y * sinAngle; float zs = a.z * sinAngle; mat4 rotationMatrix; rotationMatrix.m[0] = (oneMinusCos * xx) + cosAngle; rotationMatrix.m[1] = (oneMinusCos * xy) - zs; rotationMatrix.m[2] = (oneMinusCos * zx) + ys; rotationMatrix.m[3] = 0.0f; rotationMatrix.m[4] = (oneMinusCos * xy) + zs; rotationMatrix.m[5] = (oneMinusCos * yy) + cosAngle; rotationMatrix.m[6] = (oneMinusCos * yz) - xs; rotationMatrix.m[7] = 0.0f; rotationMatrix.m[8] = (oneMinusCos * zx) - ys; rotationMatrix.m[9] = (oneMinusCos * yz) + xs; rotationMatrix.m[10] = (oneMinusCos * zz) + cosAngle; rotationMatrix.m[11] = 0.0f; rotationMatrix.m[12] = 0.0f; rotationMatrix.m[13] = 0.0f; rotationMatrix.m[14] = 0.0f; rotationMatrix.m[15] = 1.0f; multiply(rotationMatrix); } void mat4::lookat(vec3 eye, vec3 at, vec3 up) { mat4 m; vec3 forward, side; //------------------ forward[0] = at.x - eye.x; forward[1] = at.y - eye.y; forward[2] = at.z - eye.z; forward.normalize(); //------------------ //Side = forward x up side = forward.cross(up).normalized(); //------------------ //Recompute up as: up = side x forward up = side.cross(forward); //------------------ m.m[0] = side[0]; m.m[4] = side[1]; m.m[8] = side[2]; m.m[12] = 0.0; //------------------ m.m[1] = up[0]; m.m[5] = up[1]; m.m[9] = up[2]; m.m[13] = 0.0; //------------------ m.m[2] = -forward[0]; m.m[6] = -forward[1]; m.m[10] = -forward[2]; m.m[14] = 0.0; //------------------ m.m[3] = m.m[7] = m.m[11] = 0.0; m.m[15] = 1.0; multiply(m); translate(eye * -1.0f); } void mat4::frustum(float left, float right, float bottom, float top, float nearZ, float farZ) { float deltaX = right - left; float deltaY = top - bottom; float deltaZ = farZ - nearZ; mat4 frust; if ((nearZ <= 0.0f) || (farZ <= 0.0f) || (deltaX <= 0.0f) || (deltaY <= 0.0f) || (deltaZ <= 0.0f)) { throw std::exception("invalid frustum"); return; } frust.m[0] = 2.0f * nearZ / deltaX; frust.m[1] = frust.m[2] = frust.m[3] = 0.0f; frust.m[5] = 2.0f * nearZ / deltaY; frust.m[4] = frust.m[6] = frust.m[7] = 0.0f; frust.m[8] = (right + left) / deltaX; frust.m[9] = (top + bottom) / deltaY; frust.m[10] = -(nearZ + farZ) / deltaZ; frust.m[11] = -1.0f; frust.m[14] = -2.0f * nearZ * farZ / deltaZ; frust.m[12] = frust.m[13] = frust.m[15] = 0.0f; multiply(frust); } void mat4::perspective(float fovY, float aspect, float _near, float _far) { float frustumHeight = tanf(fovY / 360 * PI) * _near; float frustumWidth = frustumHeight * aspect; frustum(-frustumWidth, frustumWidth, -frustumHeight, frustumHeight, _near, _far); } void mat4::ortho(float left, float right, float bottom, float top, float nearZ, float farZ) { float deltaX = right - left; float deltaY = top - bottom; float deltaZ = farZ - nearZ; mat4 ortho; if ((deltaX == 0) || (deltaY == 0) || (deltaZ == 0)) { throw std::exception("invalid ortho"); return; } ortho.identity(); ortho.m[0] = 2 / deltaX; ortho.m[12] = -(right + left) / deltaX; ortho.m[5] = 2 / deltaY; ortho.m[13] = -(top + bottom) / deltaY; ortho.m[10] = -2 / deltaZ; ortho.m[14] = -(nearZ + farZ) / deltaZ; multiply(ortho); } void mat4::swapHandedness() { float tmp[16]; tmp[0] = m[0]; tmp[1] = m[1]; tmp[2] = -m[2]; tmp[3] = m[3]; tmp[4] = m[4]; tmp[5] = m[5]; tmp[6] = -m[6]; tmp[7] = m[7]; tmp[8] = -m[8]; tmp[9] = -m[9]; tmp[10] = m[10]; tmp[11] = -m[11]; tmp[12] = m[12]; tmp[13] = m[13]; tmp[14] = -m[14]; tmp[15] = m[15]; memcpy(m, tmp, sizeof(m)); } void mat4::transpose() { float tmp[16]; tmp[0] = m[0]; tmp[1] = m[4]; tmp[2] = m[8]; tmp[3] = m[12]; tmp[4] = m[1]; tmp[5] = m[5]; tmp[6] = m[9]; tmp[7] = m[13]; tmp[8] = m[2]; tmp[9] = m[6]; tmp[10] = m[10]; tmp[11] = m[14]; tmp[12] = m[3]; tmp[13] = m[7]; tmp[14] = m[11]; tmp[15] = m[15]; memcpy(m, tmp, sizeof(m)); } void mat4::inverse() { mat4 *src = this; mat4 *result = this; int swap; float t; float temp[4][4]; for (int i = 0; i < 4; i++) { for (int j = 0; j < 4; j++) { temp[i][j] = (*src)(i, j); } } identity(); for (int i = 0; i < 4; i++) { swap = i; for (int j = i + 1; j < 4; j++) { if (fabs(temp[j][i]) > fabs(temp[i][i])) { swap = j; } } if (swap != i) { for (int k = 0; k < 4; k++) { t = temp[i][k]; temp[i][k] = temp[swap][k]; temp[swap][k] = t; t = (*result)(i, k); (*result)(i, k) = (*result)(swap, k); (*result)(swap, k) = t; } } if (temp[i][i] == 0) { throw std::exception("Matrix is singular, can't inverse"); return; } t = temp[i][i]; for (int k = 0; k < 4; k++) { temp[i][k] /= t; (*result)(i, k) /= t; } for (int j = 0; j < 4; j++) { if (j != i) { t = temp[j][i]; for (int k = 0; k < 4; k++) { temp[j][k] -= temp[i][k] * t; (*result)(j, k) -= (*result)(i, k) * t; } } } } } void mat4::identity() { memset(m, 0, sizeof(m)); m[0] = 1; m[5] = 1; m[10] = 1; m[15] = 1; } void mat4::multiply(const mat4 &with) { const mat4 *srcA = &with; const mat4 *srcB = this; float tmp[16]; for (int i = 0; i < 4; i++) { int a = 4 * i; int b = a + 1; int c = a + 2; int d = a + 3; tmp[a] = srcA->m[a] * srcB->m[0] + srcA->m[b] * srcB->m[4] + srcA->m[c] * srcB->m[8] + srcA->m[d] * srcB->m[12]; tmp[b] = srcA->m[a] * srcB->m[1] + srcA->m[b] * srcB->m[5] + srcA->m[c] * srcB->m[9] + srcA->m[d] * srcB->m[13]; tmp[c] = srcA->m[a] * srcB->m[2] + srcA->m[b] * srcB->m[6] + srcA->m[c] * srcB->m[10] + srcA->m[d] * srcB->m[14]; tmp[d] = srcA->m[a] * srcB->m[3] + srcA->m[b] * srcB->m[7] + srcA->m[c] * srcB->m[11] + srcA->m[d] * srcB->m[15]; } memcpy(m, tmp, sizeof(m)); } void mat4::interpolate(mat4& other, float x) { for (int i = 0; i<16; ++i) { m[i] = m[i] * (1.0f - x) + other.m[i] * x; } } vec3 mat4::unproject(vec3 _v, float* viewport) const { mat4 i = *this; i.inverse(); vec4 v(_v.x, _v.y, _v.z, 1.0f); v.x = (v.x - viewport[0]) / viewport[2]; v.y = (v.y - viewport[1]) / viewport[3]; v.x = v.x * 2.0f - 1.0f; v.y = v.y * 2.0f - 1.0f; v.z = v.z * 2.0f - 1.0f; vec4 o = i * v; float factor = 1.0f / o.w; return vec3(o.x*factor, o.y*factor, o.z*factor); } vec2 mat4::project(vec3 _v, float* viewport) const { //vec4 v(_v.x, _v.y, _v.z, 1.0f); //vec4 o = (*this) * v; float v[4]; for (int i = 0; i < 4; i++) { v[i] = m[i + 0] * _v.x + m[i + 4] * _v.y + m[i + 8] * _v.z + m[i + 12]; } float _x = (v[0] / v[3])*0.5f + 0.5f; float _y = (v[1] / v[3])*0.5f + 0.5f; return vec2( lerp<float>(viewport[0], viewport[2], _x), lerp<float>(viewport[3], viewport[1], _y)); } void mat4::setRow(int r, vec4 val) { m[r * 4 + 0] = val.x; m[r * 4 + 1] = val.y; m[r * 4 + 2] = val.z; m[r * 4 + 3] = val.w; } }
515c5c27ab998cfc6afd95f412744d31b76f7b8a
718efe6ea4306c386d373459fed0c51d24705626
/Ds & Algo/linked list/DLL_implement.cpp
0be8a7e3708ffb7cf4ec7303e990c146b3a949c3
[]
no_license
saidheerajnvs29/ncrwork
acd80331d64d58377c38ed00ad7b56083a1fa453
964f53892ff4cba36c67d1c23850ce80951c9c63
refs/heads/master
2020-04-20T04:56:43.563329
2019-02-27T05:24:12
2019-02-27T05:24:12
168,643,302
1
0
null
null
null
null
UTF-8
C++
false
false
3,810
cpp
#include<iostream> using namespace std; typedef struct jode { int data; struct jode *next; struct jode *prev; }Node; void print(Node *); class DLL { Node *start; public: DLL() { start=NULL; } void traverse() { Node *curr; for(curr=start;curr!=NULL;curr=curr->next) { cout<<curr->data<<" "; } cout<<endl; } void insert_begin(int n) { Node *curr=start,*temp; temp=new Node; temp->data=n; if(start!=NULL) { temp->next=curr; curr->prev=temp; temp->prev=NULL; } else { temp->next=NULL; temp->prev=NULL; } start=temp; } void insert_last(int n) { Node *curr,*temp; temp=new Node; temp->data=n; temp->next=NULL; if(start!=NULL) { curr=start; while(curr->next!=NULL) { curr=curr->next; } curr->next=temp; temp->prev=curr; } else { temp->prev=NULL; start=temp; } } void insert_after(int sele,int ele) { Node *curr=start,*temp; if(curr!=NULL) { while(curr!=NULL && curr->data!=sele) { curr=curr->next; } if(curr!=NULL) { temp=new Node; temp->data=ele; temp->next=curr->next; curr->next->prev=temp; temp->prev=curr; curr->next=temp; } else { cout<<sele<<" not found\n"; } } else { cout<<"no list\n"; } } void insert_before(int sele,int ele) { Node *curr=start,*temp; if(curr!=NULL) { if(curr->data==sele) { temp=new Node; temp->data=ele; temp->next=start; temp->prev=NULL; curr->prev=temp; start=temp; return; } while(curr->next!=NULL && curr->next->data!=sele) { curr=curr->next; } if(curr->next!=NULL) { temp=new Node; temp->data=ele; temp->next=curr->next; temp->prev=curr; temp->next->prev=temp; curr->next=temp; } else { cout<<sele<<" not found\n"; } } else { cout<<"no list\n"; } } ~DLL() { Node *temp,*curr=start; while(start!=NULL) { temp=start; start=start->next; delete temp; } } void traverse_back() { Node *curr; for(curr=start;curr->next!=NULL;curr=curr->next) { ; } while(curr!=NULL) { cout<<curr->data<<" "; curr=curr->prev; } cout<<endl; } int delete_begin() { int x=-1; Node *curr,*temp; if(curr!=NULL) { temp=start; x=temp->data; start=start->next; curr=start; curr->prev=NULL; delete temp; } return x; } int delete_last() { int x=-1; Node *curr=start,*temp; if(curr!=NULL) { if(curr->next==NULL) { x=curr->data; start=NULL; delete curr; return x; } while(curr->next!=NULL) { curr=curr->next; } curr->prev->next=NULL; x=curr->data; delete curr; } return x; } void delete_spec(int ele) { Node *curr=start,*temp; if(curr!=NULL) { if(curr->data==ele) { temp=curr; start=temp->next; curr=start; curr->prev=NULL; delete temp; return; } while(curr!=NULL && curr->data!=ele) { curr=curr->next; } if(curr!=NULL) { if(curr->next!=NULL) { temp=curr; curr->prev->next=curr->next; curr->next->prev=curr->prev; delete temp; } else { curr->prev->next=NULL; temp=curr; delete temp; } } else { cout<<ele<<" no found\n"; } } else { cout<<"no list\n"; } } }; int main() { DLL node; node.insert_after(4,7); node.insert_last(6); node.traverse(); node.insert_begin(4); node.traverse(); node.insert_begin(9); node.traverse(); node.insert_last(14); node.insert_after(4,12); node.traverse(); node.insert_before(9,23); node.traverse_back(); node.delete_begin(); node.traverse(); node.delete_last(); node.traverse(); node.delete_spec(4); node.traverse_back(); return 0; }
c05cbd34fdfbc5404b163e2538d6e1096620b256
0e8bd6ecee37b391299e8a41c842ce2786864e55
/src/Magnum/Implementation/MeshState.cpp
0c39666de7a53db6810f13853d975965020a2053
[ "MIT" ]
permissive
91yuan/magnum
c3fc8a0287bcd2a8d62ac5db5aec905b9e185468
929329b1f8363ac5e6f8688423c6c6854014865e
refs/heads/master
2021-01-19T16:41:37.924578
2017-08-21T17:23:50
2017-08-21T20:17:31
101,019,156
1
0
null
2017-08-22T03:54:43
2017-08-22T03:54:43
null
UTF-8
C++
false
false
7,892
cpp
/* This file is part of Magnum. Copyright © 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017 Vladimír Vondruš <[email protected]> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ #include "MeshState.h" #include "Magnum/Context.h" #include "Magnum/Extensions.h" #include "Magnum/MeshView.h" #include "State.h" namespace Magnum { namespace Implementation { MeshState::MeshState(Context& context, ContextState& contextState, std::vector<std::string>& extensions): currentVAO(0) #ifndef MAGNUM_TARGET_GLES2 , maxElementIndex{0}, maxElementsIndices{0}, maxElementsVertices{0} #endif { #ifndef MAGNUM_TARGET_GLES if(context.isExtensionSupported<Extensions::GL::ARB::vertex_array_object>()) #elif defined(MAGNUM_TARGET_GLES2) if(context.isExtensionSupported<Extensions::GL::OES::vertex_array_object>()) #else static_cast<void>(context); static_cast<void>(extensions); #endif { #ifndef MAGNUM_TARGET_GLES extensions.emplace_back(Extensions::GL::ARB::vertex_array_object::string()); #elif defined(MAGNUM_TARGET_GLES2) extensions.push_back(Extensions::GL::OES::vertex_array_object::string()); #endif createImplementation = &Mesh::createImplementationVAO; destroyImplementation = &Mesh::destroyImplementationVAO; #ifndef MAGNUM_TARGET_GLES if(context.isExtensionSupported<Extensions::GL::EXT::direct_state_access>()) { extensions.emplace_back(Extensions::GL::EXT::direct_state_access::string()); attributePointerImplementation = &Mesh::attributePointerImplementationDSAEXT; } else #endif { attributePointerImplementation = &Mesh::attributePointerImplementationVAO; } bindIndexBufferImplementation = &Mesh::bindIndexBufferImplementationVAO; bindImplementation = &Mesh::bindImplementationVAO; unbindImplementation = &Mesh::unbindImplementationVAO; } #if !defined(MAGNUM_TARGET_GLES) || defined(MAGNUM_TARGET_GLES2) else { createImplementation = &Mesh::createImplementationDefault; destroyImplementation = &Mesh::destroyImplementationDefault; attributePointerImplementation = &Mesh::attributePointerImplementationDefault; bindIndexBufferImplementation = &Mesh::bindIndexBufferImplementationDefault; bindImplementation = &Mesh::bindImplementationDefault; unbindImplementation = &Mesh::unbindImplementationDefault; } #endif #ifndef MAGNUM_TARGET_GLES /* DSA create implementation (other cases handled above) */ if(context.isExtensionSupported<Extensions::GL::ARB::direct_state_access>()) { extensions.emplace_back(Extensions::GL::ARB::direct_state_access::string()); createImplementation = &Mesh::createImplementationVAODSA; } #endif #ifdef MAGNUM_TARGET_GLES #ifndef MAGNUM_TARGET_WEBGL /* Multi draw implementation on ES */ if(context.isExtensionSupported<Extensions::GL::EXT::multi_draw_arrays>()) { extensions.push_back(Extensions::GL::EXT::multi_draw_arrays::string()); multiDrawImplementation = &MeshView::multiDrawImplementationDefault; } else multiDrawImplementation = &MeshView::multiDrawImplementationFallback; #else multiDrawImplementation = &MeshView::multiDrawImplementationFallback; #endif #endif #ifdef MAGNUM_TARGET_GLES2 /* Instanced draw ímplementation on ES2 */ if(context.isExtensionSupported<Extensions::GL::ANGLE::instanced_arrays>()) { extensions.push_back(Extensions::GL::ANGLE::instanced_arrays::string()); drawArraysInstancedImplementation = &Mesh::drawArraysInstancedImplementationANGLE; drawElementsInstancedImplementation = &Mesh::drawElementsInstancedImplementationANGLE; } #ifndef MAGNUM_TARGET_WEBGL else if(context.isExtensionSupported<Extensions::GL::EXT::draw_instanced>()) { extensions.push_back(Extensions::GL::EXT::draw_instanced::string()); drawArraysInstancedImplementation = &Mesh::drawArraysInstancedImplementationEXT; drawElementsInstancedImplementation = &Mesh::drawElementsInstancedImplementationEXT; } else if(context.isExtensionSupported<Extensions::GL::NV::draw_instanced>()) { extensions.push_back(Extensions::GL::NV::draw_instanced::string()); drawArraysInstancedImplementation = &Mesh::drawArraysInstancedImplementationNV; drawElementsInstancedImplementation = &Mesh::drawElementsInstancedImplementationNV; } #endif else { drawArraysInstancedImplementation = nullptr; drawElementsInstancedImplementation = nullptr; } #endif #ifndef MAGNUM_TARGET_GLES /* Partial EXT_DSA implementation of vertex attrib divisor */ if(context.isExtensionSupported<Extensions::GL::EXT::direct_state_access>()) { if(glVertexArrayVertexAttribDivisorEXT) vertexAttribDivisorImplementation = &Mesh::vertexAttribDivisorImplementationDSAEXT; else vertexAttribDivisorImplementation = &Mesh::vertexAttribDivisorImplementationVAO; } else vertexAttribDivisorImplementation = nullptr; #elif defined(MAGNUM_TARGET_GLES2) /* Instanced arrays implementation on ES2 */ if(context.isExtensionSupported<Extensions::GL::ANGLE::instanced_arrays>()) { /* Extension added above */ vertexAttribDivisorImplementation = &Mesh::vertexAttribDivisorImplementationANGLE; } #ifndef MAGNUM_TARGET_WEBGL else if(context.isExtensionSupported<Extensions::GL::EXT::instanced_arrays>()) { extensions.push_back(Extensions::GL::EXT::instanced_arrays::string()); vertexAttribDivisorImplementation = &Mesh::vertexAttribDivisorImplementationEXT; } else if(context.isExtensionSupported<Extensions::GL::NV::instanced_arrays>()) { extensions.push_back(Extensions::GL::NV::instanced_arrays::string()); vertexAttribDivisorImplementation = &Mesh::vertexAttribDivisorImplementationNV; } #endif else vertexAttribDivisorImplementation = nullptr; #endif #ifndef MAGNUM_TARGET_GLES /* If we are on core profile and ARB_VAO was explicitly disabled by the user, we need to bind a default VAO so we are still able to draw things */ if(context.isExtensionDisabled<Extensions::GL::ARB::vertex_array_object>() && context.isCoreProfileInternal(contextState)) { glGenVertexArrays(1, &defaultVAO); glBindVertexArray(defaultVAO); } #else static_cast<void>(contextState); #endif } MeshState::~MeshState() { #ifndef MAGNUM_TARGET_GLES /* If the default VAO was created, we need to delete it to avoid leaks */ if(defaultVAO) glDeleteVertexArrays(1, &defaultVAO); #endif } void MeshState::reset() { currentVAO = State::DisengagedBinding; } }}
fe6533e7f134db877118acbdeae46663dbd91bf3
f0fed75abcf38c92193362b36d1fbf3aa30f0e73
/android/device/realtek/proprietary/libs/Include/Application/AppClass/VoutUtil.h
36a96bf00a563bc3e4080ac6f59de322d65e25d2
[]
no_license
jannson/BPI-1296-Android7
b8229d0e7fa0da6e7cafd5bfe3ba18f5ec3c7867
d377aa6e73ed42f125603961da0f009604c0754e
refs/heads/master
2023-04-28T08:46:02.016267
2020-07-27T11:47:47
2020-07-27T11:47:47
null
0
0
null
null
null
null
UTF-8
C++
false
false
10,558
h
#ifndef _SYSTEM_VIDEO_OUT_ #define _SYSTEM_VIDEO_OUT_ #include <sys/types.h> //#include "IPC/include/xdr/xdr.h" #include "IPC/generate/include/system/VideoRPCBaseDS_data.h" #include "IPC/generate/include/system/VideoRPC_System.h" #include "setupdef.h" #include <Platform_Lib/HDMIControl/HDMITVSystemTypes.h> class VoutUtil { public: #ifdef REALTEK_SKYPE enum { VIDEO_PLANE_NUM = VO_VIDEO_PLANE_WIN2+1, }; // V1, V2, NONE, WIN1, WIN2 #else enum { VIDEO_PLANE_NUM = 2, }; #endif private: static VO_RECTANGLE m_VideoRect [VIDEO_PLANE_NUM][VIDEO_SYSTEM_NUM]; static bool bIs4K2K3DMode; public: static VoutUtil& instance(bool bNeedInitRPC = true); private: VoutUtil(bool bNeedInitRPC); ~VoutUtil(); static void cleanup(); static VoutUtil* mInstance; // not copyable VoutUtil(VoutUtil const&); void operator=(VoutUtil const&); void initRPC(); public: CLNT_STRUCT m_clnt; enum VO_STANDARD m_tv_standard; public: HRESULT SetVideoStandard( enum VO_STANDARD standard, u_char enProg, u_char enDIF, u_char enCompRGB, enum VO_PEDESTAL_TYPE pedType, u_int dataInt0 = 0, u_int dataInt1 = 0, bool bHdmi = true, #if IS_CHIP(JUPITER)|| IS_CHIP(SATURN) int format3d = -1, VIDEO_RPC_VOUT_CONFIG_TV_SYSTEM *tvSystemConfig = NULL, VIDEO_RPC_VOUT_CONFIG_TV_SYSTEM *nandTvSystemConfig = NULL, bool bUpdateVideo = true); #else int format3d = -1); #endif #if IS_CHIP(JUPITER)|| IS_CHIP(SATURN) HRESULT SetTvSystem( VIDEO_RPC_VOUT_CONFIG_VIDEO_STANDARD structSetVideoStandard, bool bUpdateHdmi, ENUM_VIDEO_SYSTEM hdmiSystem, u_char enProg, VIDEO_RPC_VOUT_CONFIG_TV_SYSTEM *tvSystemConfig = NULL, VIDEO_RPC_VOUT_CONFIG_TV_SYSTEM *nandTvSystemConfig = NULL, bool bUpdateVideo = true); #endif HRESULT setTvResolution( ENUM_VIDEO_SYSTEM videoSystem, ENUM_VIDEO_STANDARD videoStandard, ENUM_VIDEO_SYSTEM dp_videoSystem = VIDEO_NTSC, ENUM_VIDEO_STANDARD dp_videoStandard = VIDEO_INTERLACED, int videoType = 0); public: void UpdateVoutRectangleSetup (VO_VIDEO_PLANE videoPlane, ENUM_VIDEO_SYSTEM videoSystem, VO_RECTANGLE rect); VO_RECTANGLE GetVoutRectangleSetup (VO_VIDEO_PLANE videoPlane, ENUM_VIDEO_SYSTEM videoSystem); HRESULT ApplyVoutDisplayWindowSetup (VO_COLOR borderColor, u_char enBorder = 0, ENUM_VIDEO_SYSTEM videoSystem = VIDEO_SYSTEM_NUM); #if IS_CHIP(JUPITER)|| IS_CHIP(SATURN) HRESULT ApplyVideoStandardSetup (VIDEO_RPC_VOUT_CONFIG_TV_SYSTEM *tvSystemConfig = NULL, VIDEO_RPC_VOUT_CONFIG_TV_SYSTEM *nandTvSystemConfig = NULL, bool bUpdateVideo = true, ENUM_VIDEO_SYSTEM vSystem = VIDEO_SYSTEM_NUM, bool bCheck = true); #else HRESULT ApplyVideoStandardSetup (); #endif #ifdef REALTEK_SKYPE HRESULT ApplyVoutDisplayWindowSetup (VO_VIDEO_PLANE videoPlane, VO_COLOR borderColor, u_char enBorder = 0); HRESULT ConfigMixerWindow(int showWin1=1, int showWin2=1); HRESULT ResetMixerWindow(); #endif public: HRESULT SetTVtype(VO_TV_TYPE tvType); HRESULT SetBackground( struct VO_COLOR bgColor, u_char bgEnable); HRESULT SetClosedCaption( u_char enCC_odd, u_char enCC_even); HRESULT SetAPS( u_char enExt, enum VO_VBI_APS APS); HRESULT SetCopyMode( u_char enExt, enum VO_VBI_COPY_MODE copyMode); HRESULT SetAspectRatio( u_char enExt, enum VO_VBI_ASPECT_RATIO aspectRatio); public: HRESULT ConfigureDisplayWindow( enum VO_VIDEO_PLANE videoPlane, struct VO_RECTANGLE videoWin, struct VO_RECTANGLE borderWin, struct VO_COLOR borderColor, u_char enBorder); HRESULT ConfigureDisplayWindowZoomWin( enum VO_VIDEO_PLANE videoPlane, struct VO_RECTANGLE videoWin, struct VO_RECTANGLE srcZoomWin, struct VO_RECTANGLE borderWin, struct VO_COLOR borderColor, u_char enBorder); HRESULT ConfigureDisplayWindowDispZoomWin( enum VO_VIDEO_PLANE videoPlane, struct VO_RECTANGLE videoWin, struct VO_RECTANGLE dispZoomWin, struct VO_RECTANGLE borderWin, struct VO_COLOR borderColor, u_char enBorder); HRESULT GetFirmwareVersion(u_int * version); public: HRESULT SetV2alpha(u_char v2Alpha); HRESULT SetRescaleMode( enum VO_VIDEO_PLANE videoPlane, enum VO_RESCALE_MODE rescaleMode, struct VO_RECTANGLE rescaleWindow); HRESULT SetDeintMode( enum VO_VIDEO_PLANE videoPlane, enum VO_DEINT_MODE deintMode); HRESULT Zoom( enum VO_VIDEO_PLANE videoPlane, struct VO_RECTANGLE zoomWin); #if (IS_CHIP(JUPITER)||IS_CHIP(SATURN)) //zoom video based on actual video size HRESULT Zoom( enum VO_VIDEO_PLANE videoPlane, enum VO_ZOOM_TYPE type); #endif HRESULT ConfigureOSD( enum VO_OSD_LPF_TYPE lpfType, short RGB2YUVcoeff[12]); //It the OSD window is successfully created, return the ID of the just created OSD window // //(a positive integer). Otherwise return the error code (a negative integer). int CreateOSDwindow( struct VO_RECTANGLE winPos, enum VO_OSD_COLOR_FORMAT colorFmt, int colorKey, u_char alpha); HRESULT ModifyOSDwindow( u_char winID, u_char reqMask, struct VO_RECTANGLE winPos, enum VO_OSD_COLOR_FORMAT colorFmt, int colorKey, u_char alpha, u_short startX, u_short startY, u_short imgPitch, long pImage, bool bBatchJob=false); HRESULT DeleteOSDwindow(u_char winID, bool bBatchJob=false); HRESULT DrawOSDwindow( u_char winID, u_short startX, u_short startY, u_short imgPitch, long pImage, bool bBatchJob=false); HRESULT HideOSDwindow(u_char winID, bool bBatchJob=false); HRESULT ConfigOSDCanvas ( struct VO_RECTANGLE srcWin, struct VO_RECTANGLE dispWin, bool bBatchJob=false); #if !IS_CHIP(VENUS) HRESULT ConfigGraphicCanvas (VO_GRAPHIC_PLANE plane, struct VO_RECTANGLE srcWin, struct VO_RECTANGLE dispWin, bool bBatchJob=false); #endif HRESULT ConfigureCursor( char alpha, char colorKey, struct VO_COLOR colorMap[4], enum VO_OSD_LPF_TYPE lpfType, long pCursorImg); HRESULT DrawCursor( u_short x, u_short y); HRESULT HideCursor(); HRESULT SetPeakingStrength(u_char peakingStrength); HRESULT SetBrightness(u_char brightness); HRESULT SetContrast(u_char contrast); HRESULT SetHue(u_char hue); HRESULT SetSaturation(u_char saturation); HRESULT GetTvDim (VO_STANDARD standard, int *pwidth, int *pheight); #if IS_CHIP(MARS) || IS_CHIP(JUPITER) || IS_CHIP(SATURN) HRESULT SetSubtitleYoffset(short yOffset); #endif HRESULT SetFormat3d(int format3d, float fps = 0, bool bCheck = true); #if IS_CHIP(SATURN) HRESULT SetShiftOffset3d(bool exchange_eyeview, bool shift_direction, int delta_offset, VO_VIDEO_PLANE targetPlane); #endif HRESULT set3Dto2D(VO_3D_MODE_TYPE srcformat3D); HRESULT set3DSub(u_char sub); #if IS_CHIP(JUPITER) HRESULT SetComposite3d(long sbsEnable); #endif #if IS_CHIP(JUPITER) || IS_CHIP(SATURN) HRESULT SetAnaglyphConversion(long enable, long switchSrcEye = 0, VO_3D_SOURCE_FORMAT srcFormat = VO_SIDE_BY_SIDE); #endif #if defined(BITLAND_VGA) HRESULT SetVGAOutput(); #endif #if IS_CHIP(SATURN) HRESULT ConfigFullWin3dMode(int mode); #endif HRESULT ConfigLowDelayMode(int mode); HRESULT Configure_Z_Order(VIDEO_RPC_VOUT_SET_MIXER_ORDER * z_config); #if IS_CHIP(SATURN) /* If return is S_OK, you can check 'out' content to know the detailed info * If return is S_FALSE, it means the display plan is disabled or invalid. * out->result == 0: display plane is disabled. * out->result == -1: display plane is invalid. * If return is E_FAIL, it means the function failed. Ignore 'out' result. */ HRESULT QueryDisplayWin(VIDEO_RPC_VOUT_QUERY_DISP_WIN_IN disp_plane_id, VIDEO_RPC_VOUT_QUERY_DISP_WIN_OUT *out); /* If return is S_OK, you can check 'out' content to know the detailed info. * If return is S_FAILE, it means the display plane or graphic win id is invalid. * If return is E_FAIL, it means the function failed. Ignore 'out' result. */ HRESULT QueryGraphicWinInfo(VIDEO_RPC_VOUT_QUERY_GRAPHIC_WIN_INFO_IN graphic_win_id, VIDEO_RPC_VOUT_QUERY_GRAPHIC_WIN_INFO_OUT *out); /* Call VIDEO_RPC_VOUT_ToAgent_QueryConfigTVSystem_0 */ HRESULT QueryConfigTVSystem(VIDEO_RPC_VOUT_CONFIG_TV_SYSTEM *out); #endif HRESULT ShowVideoWindow(long videoPlaneInstanceId, enum VO_VIDEO_PLANE videoPlane = VO_VIDEO_PLANE_V1); HRESULT HideVideoWindow(long videoPlaneInstanceId, enum VO_VIDEO_PLANE videoPlane = VO_VIDEO_PLANE_V1); void getTVS(video_system videoSystem, VO_STANDARD *standard, VO_PEDESTAL_TYPE *pedType); HRESULT SetDisplayRatio(int ratio); HRESULT SetDisplayPosition(int x, int y, int w, int h); HRESULT getHWCV1Rect(VO_RECTANGLE* rect); HRESULT get3DFormat(float fps, ENUM_VIDEO_SYSTEM* video_system, ENUM_VIDEO_STANDARD* video_standard); bool isHdmi3dSupported(ENUM_VIDEO_ID_CODE videoFormat3D, unsigned char *capabilityResolution); #if defined(__LINARO_SDK__) HRESULT ApplyTVSystem(ENUM_VIDEO_ID_CODE vic, ENUM_COLOR_FORMAT colorFormat,ENUM_DEEP_COLOR deepColor, ENUM_COLOR_SPACE colorSpace); HRESULT ApplyVoutDisplayWindow(ENUM_VIDEO_ID_CODE vic); private: void getVOStandard(ENUM_VIDEO_ID_CODE vic, VO_STANDARD *standard, VO_PEDESTAL_TYPE *pedType, unsigned char *enProg); void updateVOStandard(VO_STANDARD *standard, int format3d = -1); #endif public: HRESULT SetEnhancedSDR(ENUM_SDRFLAG flag); HRESULT QueryTVCapability(VIDEO_RPC_VOUT_QUERYTVCAP *tvCap); bool isCVBSOn(); HRESULT setCVBSOff(int cvbs_power_off); HRESULT SetPeakLuminance(int flag); HRESULT SetHdrSaturation(int flag); HRESULT setHdmiRange(int rangeMode); HRESULT SetCVBSDisplayRatio(int ratio); HRESULT setEmbedSubDisplayFixed(int sub_fixed); HRESULT SetSuperResolutionOff(int sr_off); HRESULT SetHdrtoSDRgma(int mode); HRESULT SetMaxCLLMaxFALLDisable(int disable); }; #endif
384886576c143b01e1a0d48bd39b85049ac75645
6d7f632f69405270380159f856e463b2a0efc0f3
/dipcc/dipcc/tests/test_gen_civil_disorder.cc
6e2c59358284ae6c5615dea049b9a6b045d9db05
[ "MIT" ]
permissive
codeaudit/diplomacy_searchbot
e22061aa35cf9057cef5f84c30fa484148606209
d212d380ecc5a724f2ec36c13dfef1202d8252cf
refs/heads/master
2023-05-08T00:29:19.961607
2021-05-04T02:23:50
2021-05-28T00:05:33
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,350
cc
/* Copyright (c) Facebook, Inc. and its affiliates. This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree. */ #include <queue> #include <unordered_set> #include <utility> #include "../cc/adjacencies.h" #include "../cc/game.h" #include "../cc/loc.h" #include "../cc/thirdparty/nlohmann/json.hpp" #include "../cc/util.h" #include "consts.h" #include "gmock/gmock.h" #include "gtest/gtest.h" using namespace std; namespace dipcc { class TestGenCivilDisorder : public ::testing::Test {}; int get_civil_disorder_distance(Loc init, const vector<Loc> &targets, bool is_army) { queue<pair<Loc, int>> todo; todo.push(make_pair(init, 0)); set<Loc> visited{}; while (todo.size() > 0) { pair<Loc, int> cur = todo.front(); todo.pop(); Loc loc = cur.first; int dist = cur.second; if (set_contains(visited, loc)) { continue; } visited.insert(loc); if (vec_contains(targets, root_loc(loc))) { return dist; } if (is_army) { // armies can travel over water for the purpose of civil disorder // distance calculations for (Loc loc_var : expand_coasts(loc)) { for (Loc adj_loc : ADJ_A[static_cast<int>(loc_var)]) { todo.push(make_pair(adj_loc, dist + 1)); } for (Loc adj_loc : ADJ_F[static_cast<int>(loc_var)]) { todo.push(make_pair(adj_loc, dist + 1)); } } } else { for (Loc adj_loc : ADJ_F[static_cast<int>(loc)]) { todo.push(make_pair(adj_loc, dist + 1)); } } } return -1; } TEST_F(TestGenCivilDisorder, TestGenCivilDisorder) { for (Power power : POWERS) { vector<int> dists_a(81, -1); vector<int> dists_f(81, -1); for (Loc loc : LOCS) { dists_a[static_cast<int>(loc) - 1] = get_civil_disorder_distance(loc, home_centers(power), true); dists_f[static_cast<int>(loc) - 1] = get_civil_disorder_distance(loc, home_centers(power), false); } std::cout << power_str(power) << " ARMY {"; for (int d : dists_a) { std::cout << d << ","; } std::cout << "}\n"; std::cout << power_str(power) << " FLEET {"; for (int d : dists_f) { std::cout << d << ","; } std::cout << "}\n"; } } } // namespace dipcc
9257530fce6de21f1810c689307327000154431b
edcee8898161a62c168d90e8b526a156d0a21ab9
/Control.h
d9ccfc2b29de17098f65c0ab1c328d9d9d5ab6a7
[]
no_license
rodetas/vsss-rodetas-2016
7dea1aa1f66da2c876e106f211b50da12fde63dc
cb59fca56005468765e7d9febb976191facccc19
refs/heads/master
2021-03-30T17:09:48.549338
2018-03-25T03:07:16
2018-03-25T03:07:16
97,332,317
0
0
null
null
null
null
UTF-8
C++
false
false
720
h
#ifndef CONTROL_H_ #define CONTROL_H_ #include "Header.h" #include "Vision.h" #include "GUI/Graphic.h" #include "GUI/Menu.h" #include "Calibration.h" #include "Transmission.h" #include "Strategy.h" #include "utils/Fps.h" #include "GUI/Simulator.h" #include "GUI/Arduino.h" #include "utils/Test.h" #include "CRUD/Manipulation.h" class Control{ private: Menu menu; Calibration calibration; Manipulation manipulation; Transmission transmission; Strategy strategy; Vision vision; Graphic graphic; Fps fps; Simulator simulator; Arduino arduino; Test test; bool program; bool game; vector<Object> objects; vector<string> movements; public: Control(); void setInformations(); void handle(); }; #endif
903cb7c210db3f252b0e72146619a7db5752d27e
0f7a4119185aff6f48907e8a5b2666d91a47c56b
/sstd_utility/windows_boost/boost/iostreams/filter/lzma.hpp
fc61618e7a794fe4abe0e43b84dbe2a08b7967d5
[]
no_license
jixhua/QQmlQuickBook
6636c77e9553a86f09cd59a2e89a83eaa9f153b6
782799ec3426291be0b0a2e37dc3e209006f0415
refs/heads/master
2021-09-28T13:02:48.880908
2018-11-17T10:43:47
2018-11-17T10:43:47
null
0
0
null
null
null
null
UTF-8
C++
false
false
12,453
hpp
// (C) Copyright Milan Svoboda 2008. // Originally developed under the fusecompress project. // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt.) // See http://www.boost.org/libs/iostreams for documentation. // Note: custom allocators are not supported on VC6, since that compiler // had trouble finding the function lzma_base::do_init. #ifndef BOOST_IOSTREAMS_LZMA_HPP_INCLUDED #define BOOST_IOSTREAMS_LZMA_HPP_INCLUDED #if defined(_MSC_VER) # pragma once #endif #include <cassert> #include <iosfwd> // streamsize. #include <memory> // allocator, bad_alloc. #include <new> #include <boost/config.hpp> // MSVC, STATIC_CONSTANT, DEDUCED_TYPENAME, DINKUM. #include <boost/detail/workaround.hpp> #include <boost/iostreams/constants.hpp> // buffer size. #include <boost/iostreams/detail/config/auto_link.hpp> #include <boost/iostreams/detail/config/dyn_link.hpp> #include <boost/iostreams/detail/config/wide_streams.hpp> #include <boost/iostreams/detail/ios.hpp> // failure, streamsize. #include <boost/iostreams/filter/symmetric.hpp> #include <boost/iostreams/pipeline.hpp> #include <boost/type_traits/is_same.hpp> // Must come last. #ifdef BOOST_MSVC # pragma warning(push) # pragma warning(disable:4251 4231 4660) // Dependencies not exported. #endif #include <boost/config/abi_prefix.hpp> namespace boost { namespace iostreams { namespace lzma { typedef void* (*alloc_func)(void*, size_t, size_t); typedef void (*free_func)(void*, void*); // Compression levels BOOST_IOSTREAMS_DECL extern const uint32_t no_compression; BOOST_IOSTREAMS_DECL extern const uint32_t best_speed; BOOST_IOSTREAMS_DECL extern const uint32_t best_compression; BOOST_IOSTREAMS_DECL extern const uint32_t default_compression; // Status codes BOOST_IOSTREAMS_DECL extern const int okay; BOOST_IOSTREAMS_DECL extern const int stream_end; BOOST_IOSTREAMS_DECL extern const int unsupported_check; BOOST_IOSTREAMS_DECL extern const int mem_error; BOOST_IOSTREAMS_DECL extern const int options_error; BOOST_IOSTREAMS_DECL extern const int data_error; BOOST_IOSTREAMS_DECL extern const int buf_error; BOOST_IOSTREAMS_DECL extern const int prog_error; // Flush codes BOOST_IOSTREAMS_DECL extern const int finish; BOOST_IOSTREAMS_DECL extern const int full_flush; BOOST_IOSTREAMS_DECL extern const int sync_flush; BOOST_IOSTREAMS_DECL extern const int run; // Code for current OS // Null pointer constant. const int null = 0; // Default values } // End namespace lzma. // // Class name: lzma_params. // Description: Encapsulates the parameters passed to lzmadec_init // to customize compression and decompression. // struct lzma_params { // Non-explicit constructor. lzma_params( uint32_t level = lzma::default_compression ) : level(level) { } uint32_t level; }; // // Class name: lzma_error. // Description: Subclass of std::ios::failure thrown to indicate // lzma errors other than out-of-memory conditions. // class BOOST_IOSTREAMS_DECL lzma_error : public BOOST_IOSTREAMS_FAILURE { public: explicit lzma_error(int error); int error() const { return error_; } static void check BOOST_PREVENT_MACRO_SUBSTITUTION(int error); private: int error_; }; namespace detail { template<typename Alloc> struct lzma_allocator_traits { #ifndef BOOST_NO_STD_ALLOCATOR #if defined(BOOST_NO_CXX11_ALLOCATOR) typedef typename Alloc::template rebind<char>::other type; #else typedef typename std::allocator_traits<Alloc>::template rebind_alloc<char> type; #endif #else typedef std::allocator<char> type; #endif }; template< typename Alloc, typename Base = // VC6 workaround (C2516) BOOST_DEDUCED_TYPENAME lzma_allocator_traits<Alloc>::type > struct lzma_allocator : private Base { private: #if defined(BOOST_NO_CXX11_ALLOCATOR) || defined(BOOST_NO_STD_ALLOCATOR) typedef typename Base::size_type size_type; #else typedef typename std::allocator_traits<Base>::size_type size_type; #endif public: BOOST_STATIC_CONSTANT(bool, custom = (!is_same<std::allocator<char>, Base>::value)); typedef typename lzma_allocator_traits<Alloc>::type allocator_type; static void* allocate(void* self, size_t items, size_t size); static void deallocate(void* self, void* address); }; class BOOST_IOSTREAMS_DECL lzma_base { public: typedef char char_type; protected: lzma_base(); ~lzma_base(); void* stream() { return stream_; } template<typename Alloc> void init( const lzma_params& p, bool compress, lzma_allocator<Alloc>& zalloc ) { bool custom = lzma_allocator<Alloc>::custom; do_init( p, compress, custom ? lzma_allocator<Alloc>::allocate : 0, custom ? lzma_allocator<Alloc>::deallocate : 0, &zalloc ); } void before( const char*& src_begin, const char* src_end, char*& dest_begin, char* dest_end ); void after( const char*& src_begin, char*& dest_begin, bool compress ); int deflate(int action); int inflate(int action); void reset(bool compress, bool realloc); private: void do_init( const lzma_params& p, bool compress, lzma::alloc_func, lzma::free_func, void* derived ); void* stream_; // Actual type: lzmadec_stream*. uint32_t level; }; // // Template name: lzma_compressor_impl // Description: Model of C-Style Filter implementing compression by // delegating to the lzma function deflate. // template<typename Alloc = std::allocator<char> > class lzma_compressor_impl : public lzma_base, public lzma_allocator<Alloc> { public: lzma_compressor_impl(const lzma_params& = lzma::default_compression); ~lzma_compressor_impl(); bool filter( const char*& src_begin, const char* src_end, char*& dest_begin, char* dest_end, bool flush ); void close(); }; // // Template name: lzma_compressor_impl // Description: Model of C-Style Filte implementing decompression by // delegating to the lzma function inflate. // template<typename Alloc = std::allocator<char> > class lzma_decompressor_impl : public lzma_base, public lzma_allocator<Alloc> { public: lzma_decompressor_impl(const lzma_params&); lzma_decompressor_impl(); ~lzma_decompressor_impl(); bool filter( const char*& begin_in, const char* end_in, char*& begin_out, char* end_out, bool flush ); void close(); }; } // End namespace detail. // // Template name: lzma_compressor // Description: Model of InputFilter and OutputFilter implementing // compression using lzma. // template<typename Alloc = std::allocator<char> > struct basic_lzma_compressor : symmetric_filter<detail::lzma_compressor_impl<Alloc>, Alloc> { private: typedef detail::lzma_compressor_impl<Alloc> impl_type; typedef symmetric_filter<impl_type, Alloc> base_type; public: typedef typename base_type::char_type char_type; typedef typename base_type::category category; basic_lzma_compressor( const lzma_params& = lzma::default_compression, std::streamsize buffer_size = default_device_buffer_size ); }; BOOST_IOSTREAMS_PIPABLE(basic_lzma_compressor, 1) typedef basic_lzma_compressor<> lzma_compressor; // // Template name: lzma_decompressor // Description: Model of InputFilter and OutputFilter implementing // decompression using lzma. // template<typename Alloc = std::allocator<char> > struct basic_lzma_decompressor : symmetric_filter<detail::lzma_decompressor_impl<Alloc>, Alloc> { private: typedef detail::lzma_decompressor_impl<Alloc> impl_type; typedef symmetric_filter<impl_type, Alloc> base_type; public: typedef typename base_type::char_type char_type; typedef typename base_type::category category; basic_lzma_decompressor( std::streamsize buffer_size = default_device_buffer_size ); basic_lzma_decompressor( const lzma_params& p, std::streamsize buffer_size = default_device_buffer_size ); }; BOOST_IOSTREAMS_PIPABLE(basic_lzma_decompressor, 1) typedef basic_lzma_decompressor<> lzma_decompressor; //----------------------------------------------------------------------------// //------------------Implementation of lzma_allocator--------------------------// namespace detail { template<typename Alloc, typename Base> void* lzma_allocator<Alloc, Base>::allocate (void* self, size_t items, size_t size) { size_type len = items * size; char* ptr = static_cast<allocator_type*>(self)->allocate (len + sizeof(size_type) #if BOOST_WORKAROUND(BOOST_DINKUMWARE_STDLIB, == 1) , (char*)0 #endif ); *reinterpret_cast<size_type*>(ptr) = len; return ptr + sizeof(size_type); } template<typename Alloc, typename Base> void lzma_allocator<Alloc, Base>::deallocate(void* self, void* address) { char* ptr = reinterpret_cast<char*>(address) - sizeof(size_type); size_type len = *reinterpret_cast<size_type*>(ptr) + sizeof(size_type); static_cast<allocator_type*>(self)->deallocate(ptr, len); } //------------------Implementation of lzma_compressor_impl--------------------// template<typename Alloc> lzma_compressor_impl<Alloc>::lzma_compressor_impl(const lzma_params& p) { init(p, true, static_cast<lzma_allocator<Alloc>&>(*this)); } template<typename Alloc> lzma_compressor_impl<Alloc>::~lzma_compressor_impl() { reset(true, false); } template<typename Alloc> bool lzma_compressor_impl<Alloc>::filter ( const char*& src_begin, const char* src_end, char*& dest_begin, char* dest_end, bool flush ) { before(src_begin, src_end, dest_begin, dest_end); int result = deflate(flush ? lzma::finish : lzma::run); after(src_begin, dest_begin, true); lzma_error::check BOOST_PREVENT_MACRO_SUBSTITUTION(result); return result != lzma::stream_end; } template<typename Alloc> void lzma_compressor_impl<Alloc>::close() { reset(true, true); } //------------------Implementation of lzma_decompressor_impl------------------// template<typename Alloc> lzma_decompressor_impl<Alloc>::lzma_decompressor_impl(const lzma_params& p) { init(p, false, static_cast<lzma_allocator<Alloc>&>(*this)); } template<typename Alloc> lzma_decompressor_impl<Alloc>::~lzma_decompressor_impl() { reset(false, false); } template<typename Alloc> lzma_decompressor_impl<Alloc>::lzma_decompressor_impl() { lzma_params p; init(p, false, static_cast<lzma_allocator<Alloc>&>(*this)); } template<typename Alloc> bool lzma_decompressor_impl<Alloc>::filter ( const char*& src_begin, const char* src_end, char*& dest_begin, char* dest_end, bool flush ) { before(src_begin, src_end, dest_begin, dest_end); int result = inflate(flush ? lzma::finish : lzma::run); after(src_begin, dest_begin, false); lzma_error::check BOOST_PREVENT_MACRO_SUBSTITUTION(result); return result != lzma::stream_end; } template<typename Alloc> void lzma_decompressor_impl<Alloc>::close() { reset(false, true); } } // End namespace detail. //------------------Implementation of lzma_compressor-----------------------// template<typename Alloc> basic_lzma_compressor<Alloc>::basic_lzma_compressor (const lzma_params& p, std::streamsize buffer_size) : base_type(buffer_size, p) { } //------------------Implementation of lzma_decompressor-----------------------// template<typename Alloc> basic_lzma_decompressor<Alloc>::basic_lzma_decompressor (std::streamsize buffer_size) : base_type(buffer_size) { } template<typename Alloc> basic_lzma_decompressor<Alloc>::basic_lzma_decompressor (const lzma_params& p, std::streamsize buffer_size) : base_type(buffer_size, p) { } //----------------------------------------------------------------------------// } } // End namespaces iostreams, boost. #include <boost/config/abi_suffix.hpp> // Pops abi_suffix.hpp pragmas. #ifdef BOOST_MSVC # pragma warning(pop) #endif #endif // #ifndef BOOST_IOSTREAMS_LZMA_HPP_INCLUDED
4917f0ebc1eefb5cec346d4dcd3730a48a01f9b3
d94a9fdb3266913dd9863604bbe6947b40b1c69e
/1296-e1.cpp
18a1c1fdc322a95ff47b82d713434681e7e599a8
[]
no_license
Gastonm123/codeforces
3f28f558d8cf6eab109369c102207e07c0b002f9
ea4505dba4ca1b5eda5f13b9cc958a87d55cc7e3
refs/heads/master
2021-10-27T22:00:36.079063
2021-10-13T18:17:37
2021-10-13T18:17:37
237,847,779
1
0
null
null
null
null
UTF-8
C++
false
false
957
cpp
#include <iostream> #include <vector> #define forn(i, n) for(int i=0; i<n; i++) using namespace std; void resolver(int n, string s) { vector<bool> colores_ordenados(n); vector<bool> colores(n); forn (i, n) { if (i > 0 && s[i-1] > s[i]) { colores[i] = !colores_ordenados[i-1]; colores_ordenados[i] = colores[i]; } for (int j=i; j>0; j--) { if (s[j-1] > s[j]) { if (colores_ordenados[j] != colores_ordenados[j-1]) { swap(colores_ordenados[j], colores_ordenados[j-1]); swap(s[j], s[j-1]); } else { cout << "NO" << endl; return; } } } } cout << "YES" << endl; forn (i, n) cout << colores[i]; cout << endl; } int main() { int n; cin >> n; string s; cin >> s; resolver(n, s); }
9358398c832de61f2272c6e83a0d00b7285cf11d
1262394c499d4ec75c2d1990ab1aabdde55c7ba2
/ellipticalSolving/ddMultigrid/CommonFile/gui/Renderer.cpp
2c192a7c9400e337835bc17afc67cc1b173fdc18
[]
no_license
quadmotor/Evaluation_code_SGP2017
8041969765b06433623a26c1623c5ed49cdd4a43
2daae83552fc272c02633f127cfec3c999bb97fe
refs/heads/master
2021-06-17T13:41:43.231002
2017-06-09T16:23:15
2017-06-09T16:23:15
null
0
0
null
null
null
null
UTF-8
C++
false
false
13,891
cpp
#include "glsl.h" #include "Renderer.h" #include "../MathBasic.h" #include <fstream> #include <GL/freeglut.h> USE_PRJ_NAMESPACE //Renderable void Renderable::drawObject() { { GLfloat material_Ka[] = {0.5f, 0.0f, 0.0f, 1.0f}; GLfloat material_Kd[] = {0.4f, 0.4f, 0.5f, 1.0f}; GLfloat material_Ks[] = {0.8f, 0.8f, 0.0f, 1.0f}; GLfloat material_Ke[] = {0.1f, 0.0f, 0.0f, 0.0f}; GLfloat material_Se = 20.0f; glMaterialfv(GL_FRONT_AND_BACK, GL_AMBIENT, material_Ka); glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, material_Kd); glMaterialfv(GL_FRONT_AND_BACK, GL_SPECULAR, material_Ks); glMaterialfv(GL_FRONT_AND_BACK, GL_EMISSION, material_Ke); glMaterialf(GL_FRONT_AND_BACK, GL_SHININESS, material_Se); glutSolidSphere(0.5,16,16); } { GLfloat material_Ka[] = {0.5f, 0.5f, 0.5f, 1.0f}; GLfloat material_Kd[] = {0.4f, 0.4f, 0.4f, 1.0f}; GLfloat material_Ks[] = {0.8f, 0.8f, 0.0f, 1.0f}; GLfloat material_Ke[] = {0.1f, 0.0f, 0.0f, 0.0f}; GLfloat material_Se = 20.0f; glMaterialfv(GL_FRONT_AND_BACK, GL_AMBIENT, material_Ka); glMaterialfv(GL_FRONT_AND_BACK, GL_DIFFUSE, material_Kd); glMaterialfv(GL_FRONT_AND_BACK, GL_SPECULAR, material_Ks); glMaterialfv(GL_FRONT_AND_BACK, GL_EMISSION, material_Ke); glMaterialf(GL_FRONT_AND_BACK, GL_SHININESS, material_Se); GLfloat y=-0.8f; glBegin(GL_TRIANGLES); glNormal3d(0.0f,1.0f,0.0f); glVertex3d(-10.0f,y,-10.0f); glNormal3d(0.0f,1.0f,0.0f); glVertex3d( 10.0f,y,-10.0f); glNormal3d(0.0f,1.0f,0.0f); glVertex3d( 10.0f,y, 10.0f); glNormal3d(0.0f,1.0f,0.0f); glVertex3d(-10.0f,y,-10.0f); glNormal3d(0.0f,1.0f,0.0f); glVertex3d( 10.0f,y, 10.0f); glNormal3d(0.0f,1.0f,0.0f); glVertex3d(-10.0f,y, 10.0f); glEnd(); } } //DefaultRenderer DefaultRenderer::~DefaultRenderer() {} void DefaultRenderer::init() { _SM.reset(new cwc::glShaderManager); } void DefaultRenderer::render(Renderable& rend) { glViewport(0,0,_w,_h); glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT); rend.drawObject(); } void DefaultRenderer::reshape(int w,int h) { _w=w; _h=h; } void DefaultRenderer::drawLights() { GLfloat pos[4]; glPushMatrix(); for(int i=0; i<MAX_LIGHTS; i++) { glColor3f(0.0f,0.0f,0.0f); if(glIsEnabled(GL_LIGHT0+i)) { glDisable(GL_LIGHTING); glGetLightfv(GL_LIGHT0+i,GL_POSITION,pos); glTranslatef(pos[0],pos[1],pos[2]); glutSolidSphere(_rad,16,16); glEnable(GL_LIGHTING); } } glPopMatrix(); } void DefaultRenderer::setShowLights(bool show,GLfloat rad) { _showLight=show; _rad=rad; } cwc::glShaderManager& DefaultRenderer::getManager() { return *_SM; } //utility GLuint DefaultRenderer::getMaxNumLight() { return MAX_LIGHTS; } void DefaultRenderer::checkGLError() { GLenum glErr; //int retCode=0; glErr=glGetError(); while(glErr != GL_NO_ERROR) { const GLubyte* sError=gluErrorString(glErr); if(sError) std::cout << "GL Error #%d (%s)" << sError << std::endl; else std::cout << "GL Error #" << glErr << " (no message available)" << std::endl; //system("pause"); //retCode=1; glErr=glGetError(); } } void DefaultRenderer::drawQuad() { //Drawing quad glBegin(GL_QUADS); glTexCoord2d(0,0); glVertex3f(0,0,0); glTexCoord2d(1,0); glVertex3f(1,0,0); glTexCoord2d(1,1); glVertex3f(1,1,0); glTexCoord2d(0,1); glVertex3f(0,1,0); glEnd(); } void DefaultRenderer::checkFBO() { // check FBO status GLenum FBOstatus = glCheckFramebufferStatusEXT(GL_FRAMEBUFFER_EXT); if(FBOstatus != GL_FRAMEBUFFER_COMPLETE_EXT) WARNING("GL_FRAMEBUFFER_COMPLETE_EXT failed, CANNOT use FBO"); } void DefaultRenderer::genTexture(GLuint& tid,GLsizei w,GLsizei h,GLint internalFormat,GLenum format,GLenum type,GLint filter,GLint wrap) { glGenTextures(1,&tid); glBindTexture(GL_TEXTURE_2D,tid); // GL_LINEAR does not make sense for depth texture. However, next tutorial shows usage of GL_LINEAR and PCF glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,filter); glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,filter); // Remove artefact on the edges of the shadowmap glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_WRAP_S,wrap); glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_WRAP_T,wrap); //glTexParameterfv( GL_TEXTURE_2D, GL_TEXTURE_BORDER_COLOR, borderColor ); // No need to force GL_DEPTH_COMPONENT24, drivers usually give you the max precision if available glTexImage2D(GL_TEXTURE_2D,0,internalFormat,w,h,0,format,type,0); glBindTexture(GL_TEXTURE_2D,0); } void DefaultRenderer::writeTexture(GLuint tid,GLenum format,std::string path) { GLint w,h; glBindTexture(GL_TEXTURE_2D,tid); glGetTexLevelParameteriv(GL_TEXTURE_2D,0,GL_TEXTURE_WIDTH,&w); glGetTexLevelParameteriv(GL_TEXTURE_2D,0,GL_TEXTURE_HEIGHT,&h); std::vector<GLubyte> pixels(w*h,0); glGetTexImage(GL_TEXTURE_2D,0,format,GL_UNSIGNED_BYTE,&(pixels[0])); std::ofstream os(path.c_str()); os << "P5\n" << w << " " << h << "\n255\n"; os.write((char*)&(pixels[0]),pixels.size()); std::cout << *min_element(pixels.begin(),pixels.end()) << std::endl; std::cout << *max_element(pixels.begin(),pixels.end()) << std::endl; checkGLError(); } void DefaultRenderer::writeColorTexture(GLuint tid,std::string path) { writeTexture(tid,GL_RED,std::string(path).append("Red.ppm")); writeTexture(tid,GL_BLUE,std::string(path).append("Blue.ppm")); writeTexture(tid,GL_GREEN,std::string(path).append("Green.ppm")); } //PerPixelRenderer PerPixelRenderer::~PerPixelRenderer() { release(); } void PerPixelRenderer::init() { DefaultRenderer::init(); _shaderDepth=_SM->loadfromFile("VSMDepthVert.txt","VSMDepthFrag.txt"); _shaderDraw=_SM->loadfromFile("PerPixelVert.txt","PerPixelFrag.txt"); _showLight=true; _released=true; _shadowRatio=1; } void PerPixelRenderer::render(Renderable& rend) { if(_released) { DefaultRenderer::render(rend); return; } glEnable(GL_TEXTURE_2D); //render shadow map glMatrixMode(GL_MODELVIEW); glPushMatrix(); glMatrixMode(GL_PROJECTION); glPushMatrix(); for(int i=0; i<MAX_LIGHTS; i++) if(glIsEnabled(GL_LIGHT0+i)) { glBindFramebufferEXT(GL_FRAMEBUFFER_EXT,_fboId[i]); glViewport(0,0,shadowSz(),shadowSz()); setupMatrices(i); setTextureMatrix(i); glCullFace(GL_FRONT); beforeShadowDraw(i); rend.drawObject(); glBindFramebufferEXT(GL_FRAMEBUFFER_EXT,0); afterShadowDraw(i); } glMatrixMode(GL_MODELVIEW); glPopMatrix(); glMatrixMode(GL_PROJECTION); glPopMatrix(); //render scene glViewport(0,0,_w,_h); glClearColor(1.0f,1.0f,1.0f,1.0f); glColorMask(GL_TRUE,GL_TRUE,GL_TRUE,GL_TRUE); glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT); if(_showLight)drawLights(); if(_shaderDraw)_shaderDraw->begin(); glCullFace(GL_BACK); beforeShadowRender(_shaderDraw); rend.drawObject(); if(_shaderDraw)_shaderDraw->end(); } void PerPixelRenderer::reshape(int w,int h) { DefaultRenderer::reshape(w,h); release(); for(int i=0; i<MAX_LIGHTS; i++) { genTexture(_tid[i],shadowSz(),shadowSz(),GL_DEPTH_COMPONENT32,GL_DEPTH_COMPONENT,GL_UNSIGNED_BYTE); genTexture(_ctid[i],shadowSz(),shadowSz(),GL_RGB32F_ARB,GL_RGB,GL_FLOAT,GL_LINEAR); //create a framebuffer object glGenFramebuffersEXT(1,&(_fboId[i])); glBindFramebufferEXT(GL_FRAMEBUFFER_EXT,_fboId[i]); //Instruct openGL that we won't bind a color texture with the currently binded FBO //glDrawBuffer(GL_NONE); //glReadBuffer(GL_NONE); //attach the texture to FBO depth attachment point glFramebufferTexture2DEXT(GL_FRAMEBUFFER_EXT,GL_DEPTH_ATTACHMENT_EXT,GL_TEXTURE_2D,_tid[i],0); glFramebufferTexture2DEXT(GL_FRAMEBUFFER_EXT,GL_COLOR_ATTACHMENT0_EXT,GL_TEXTURE_2D,_ctid[i],0); checkFBO(); //switch back to window-system-provided framebuffer glBindFramebufferEXT(GL_FRAMEBUFFER_EXT,0); } _released=false; } void PerPixelRenderer::disableShadowReceive() { if(_shaderDraw && _shaderDraw->inUse()) { _shaderDraw->begin(); _shaderDraw->setUniform1f("zOff",1000000.0f); } } void PerPixelRenderer::enableShadowReceive() { if(_shaderDraw && _shaderDraw->inUse()) { _shaderDraw->begin(); _shaderDraw->setUniform1f("zOff",0.001f); } } void PerPixelRenderer::disableShadowCast() { if(_shaderDepth && _shaderDepth->inUse()) { glColorMask(GL_FALSE,GL_FALSE,GL_FALSE,GL_FALSE); glDepthMask(GL_FALSE); } } void PerPixelRenderer::enableShadowCast() { if(_shaderDepth && _shaderDepth->inUse()) { glColorMask(GL_TRUE,GL_TRUE,GL_TRUE,GL_FALSE); glDepthMask(GL_TRUE); } } void PerPixelRenderer::release() { if(!_released) for(int i=0; i<MAX_LIGHTS; i++) { glDeleteTextures(1,&_tid[i]); glDeleteTextures(1,&_ctid[i]); glDeleteFramebuffersEXT(1,&_fboId[i]); } _released=true; } void PerPixelRenderer::setupMatrices(int L) const { GLfloat pos[4],dir[3]; glGetLightfv(GL_LIGHT0+L,GL_POSITION,pos); glGetLightfv(GL_LIGHT0+L,GL_SPOT_DIRECTION,dir); dir[0]+=pos[0]; dir[1]+=pos[1]; dir[2]+=pos[2]; glMatrixMode(GL_PROJECTION); glLoadIdentity(); gluPerspective(80.0f,1,1.0f,100.0f); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); gluLookAt(pos[0],pos[1],pos[2], dir[0],dir[1],dir[2], 0,1,0); } void PerPixelRenderer::setTextureMatrix(int L) const { static GLdouble modelView[16]; static GLdouble projection[16]; // This is matrix transform every coordinate x,y,z // x = x* 0.5 + 0.5 // y = y* 0.5 + 0.5 // z = z* 0.5 + 0.5 // Moving from unit cube [-1,1] to [0,1] const GLdouble bias[16] = { 0.5, 0.0, 0.0, 0.0, 0.0, 0.5, 0.0, 0.0, 0.0, 0.0, 0.5, 0.0, 0.5, 0.5, 0.5, 1.0 }; // Grab modelview and transformation matrices glGetDoublev(GL_MODELVIEW_MATRIX,modelView); glGetDoublev(GL_PROJECTION_MATRIX,projection); glMatrixMode(GL_TEXTURE); glActiveTextureARB(GL_TEXTURE0+L); glLoadIdentity(); glLoadMatrixd(bias); // concatating all matrice into one. glMultMatrixd(projection); glMultMatrixd(modelView); // Go back to normal matrix mode glMatrixMode(GL_MODELVIEW); } void PerPixelRenderer::beforeShadowDraw(int L) { if(_shaderDepth)_shaderDepth->begin(); glClearColor(0.0f,0.0f,0.0f,1.0f); glColorMask(GL_TRUE,GL_TRUE,GL_TRUE,GL_FALSE); glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT); } void PerPixelRenderer::beforeShadowRender(cwc::glShader* shader) { GLint tids[MAX_LIGHTS]; for(int i=0; i<MAX_LIGHTS; i++) { tids[i]=i; glActiveTextureARB(GL_TEXTURE0+i); glBindTexture(GL_TEXTURE_2D,_ctid[i]); } if(shader)shader->setUniform1iv("STex",MAX_LIGHTS,tids); enableShadowReceive(); } void PerPixelRenderer::afterShadowDraw(int L) { if(_shaderDepth)_shaderDepth->end(); } //VSMPerPixelRenderer void VSMPerPixelRenderer::init() { PerPixelRenderer::init(); _shaderBlur=_SM->loadfromFile("VSMDepthVert.txt","VSMBlurFrag.txt"); generateBlurKernel(3); } void VSMPerPixelRenderer::reshape(int w,int h) { PerPixelRenderer::reshape(w,h); { genTexture(_ctTmp,shadowSz(),shadowSz(),GL_RGB32F_ARB,GL_RGB,GL_FLOAT,GL_LINEAR); //create a framebuffer object glGenFramebuffersEXT(1,&_fboTmp); glBindFramebufferEXT(GL_FRAMEBUFFER_EXT,_fboTmp); //Instruct openGL that we won't bind a color texture with the currently binded FBO //glDrawBuffer(GL_NONE); //glReadBuffer(GL_NONE); //attach the texture to FBO depth attachment point glFramebufferTexture2DEXT(GL_FRAMEBUFFER_EXT,GL_COLOR_ATTACHMENT0_EXT,GL_TEXTURE_2D,_ctTmp,0); checkFBO(); //switch back to window-system-provided framebuffer glBindFramebufferEXT(GL_FRAMEBUFFER_EXT,0); } _released=false; } void VSMPerPixelRenderer::enableShadowReceive() { if(_shaderDraw && _shaderDraw->inUse()) { _shaderDraw->begin(); _shaderDraw->setUniform1f("zOff",-0.001f); } } void VSMPerPixelRenderer::release() { if(!_released) { PerPixelRenderer::release(); glDeleteTextures(1,&_ctTmp); glDeleteFramebuffersEXT(1,&_fboTmp); } _released=true; } void VSMPerPixelRenderer::afterShadowDraw(int L) { if(_shaderDepth)_shaderDepth->end(); //begin blur glDisable(GL_DEPTH_TEST); glDepthMask(GL_FALSE); glMatrixMode(GL_PROJECTION); glLoadIdentity(); gluOrtho2D(0.0f,1.0f,0.0f,1.0f); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); //blur horizontally blurPass(1.0f/shadowSz(),0.0f,_fboTmp,_ctid[L]); //blur vertically blurPass(0.0f,1.0f/shadowSz(),_fboId[L],_ctTmp); //end blur glEnable(GL_DEPTH_TEST); glDepthMask(GL_TRUE); checkGLError(); } void VSMPerPixelRenderer::blurPass(GLfloat dx,GLfloat dy,GLuint fbo,GLuint color) const { glBindFramebufferEXT(GL_FRAMEBUFFER_EXT,fbo); glViewport(0,0,shadowSz(),shadowSz()); if(_shaderBlur)_shaderBlur->begin(); if(_shaderBlur)_shaderBlur->setUniform2f("scaleU",dx,dy); if(_shaderBlur)_shaderBlur->setUniform1fv("offB",(GLsizei)_off.size(),(GLfloat*)&(_off[0])); if(_shaderBlur)_shaderBlur->setUniform1fv("coefB",(GLsizei)_coef.size(),(GLfloat*)&(_coef[0])); if(_shaderBlur)_shaderBlur->setUniform1i("nrB",(GLint)_off.size()); if(_shaderBlur)_shaderBlur->setUniform1i("motions",0); glActiveTextureARB(GL_TEXTURE0); glBindTexture(GL_TEXTURE_2D,color); drawQuad(); if(_shaderBlur)_shaderBlur->end(); glBindFramebufferEXT(GL_FRAMEBUFFER_EXT,0); } void VSMPerPixelRenderer::generateBlurKernel(GLint nr) { GLfloat sigma=(GLfloat)nr*3.0f,total=0.0f; _off.clear(); _coef.clear(); for(GLint i=-nr; i<=nr; i++) { GLfloat fi=(GLfloat)i; _off.push_back(fi); _coef.push_back(std::exp(-0.5f*(fi*fi)/(sigma*sigma))); total+=_coef.back(); } for(GLint i=0; i<(GLint)_coef.size(); i++) _coef[i]/=total; } void VSMPerPixelRenderer::beforeShadowRender(cwc::glShader* shader) { PerPixelRenderer::beforeShadowRender(shader); enableShadowReceive(); }
de83faaaddcdbe0131336450210dd9f9ba3db514
032d543216d03166d5091ae414f1d4ebc66043b1
/VMsvga2/tags/1.1.0/AC/VMsvga2Accel.cpp
b27a36235daea06da33d06df94467cf8ec72162a
[]
no_license
ivanagui2/vmsvga2-code
785b8d54b0f57ed28caaa70803b2a089bfbdb216
039ff9f313bc6b7ea5f28c2865c19064d3d92eef
refs/heads/master
2020-03-11T20:14:36.216541
2013-09-26T10:01:36
2013-09-26T10:01:36
130,231,303
1
0
null
null
null
null
UTF-8
C++
false
false
29,717
cpp
/* * VMsvga2Accel.cpp * VMsvga2Accel * * Created by Zenith432 on July 29th 2009. * Copyright 2009 Zenith432. All rights reserved. * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, copy, * modify, merge, publish, distribute, sublicense, and/or sell copies * of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #include <libkern/OSAtomic.h> #include <IOKit/pci/IOPCIDevice.h> #include <IOKit/graphics/IOGraphicsInterfaceTypes.h> #include "vmw_options_ac.h" #include "VMsvga2Accel.h" #include "VMsvga2Surface.h" #include "VMsvga22DContext.h" #include "VMsvga2GLContext.h" #include "VMsvga2Allocator.h" #include "VMsvga2.h" #define UPDATES_COUNTER_THRESHOLD 10 #define CLASS VMsvga2Accel #define super IOAccelerator OSDefineMetaClassAndStructors(VMsvga2Accel, IOAccelerator); UInt32 vmw_options_ac = 0; #define VLOG_PREFIX_STR "log IOAC: " #define VLOG_PREFIX_LEN (sizeof VLOG_PREFIX_STR - 1) #define VLOG_BUF_SIZE 256 extern "C" char VMLog_SendString(char const* str); #if LOGGING_LEVEL >= 1 #define ACLog(log_level, fmt, ...) do { if (log_level <= m_log_level_ac) VLog(fmt, ##__VA_ARGS__); } while(false) #else #define ACLog(log_level, fmt, ...) #endif #pragma mark - #pragma mark Static Functions #pragma mark - static inline int log_2_32(UInt32 x) { int y = 0; if (x & 0xFFFF0000U) { y |= 16; x >>= 16; } if (x & 0xFF00U) { y |= 8; x >>= 8; } if (x & 0xF0U) { y |= 4; x >>= 4; } if (x & 0xCU) { y |= 2; x >>= 2; } if (x & 0x2U) { y |= 1; x >>= 1; } if (!(x & 0x1U)) return -1; return y; } static inline int log_2_64(UInt64 x) { int y = 0; if (x & 0xFFFFFFFF00000000ULL) { y |= 32; x >>= 32; } y |= log_2_32(static_cast<UInt32>(x)); return y; } #pragma mark - #pragma mark Private Methods #pragma mark - void CLASS::Cleanup() { if (bHaveSVGA3D) { bHaveSVGA3D = false; svga3d.Init(0); } #ifdef FB_NOTIFIER if (m_fbNotifier) { m_fbNotifier->remove(); m_fbNotifier = 0; } #endif if (m_allocator) { m_allocator->release(); m_allocator = 0; } if (m_bar1) { m_bar1->release(); m_bar1 = 0; } if (m_framebuffer) { m_svga = 0; m_framebuffer->release(); m_framebuffer = 0; } if (m_iolock) { IOLockFree(m_iolock); m_iolock = 0; } } void CLASS::VLog(char const* fmt, ...) { va_list ap; char print_buf[VLOG_BUF_SIZE]; va_start(ap, fmt); strlcpy(&print_buf[0], VLOG_PREFIX_STR, sizeof print_buf); vsnprintf(&print_buf[VLOG_PREFIX_LEN], sizeof print_buf - VLOG_PREFIX_LEN, fmt, ap); va_end(ap); VMLog_SendString(&print_buf[0]); } #ifdef TIMING void CLASS::timeSyncs() { static uint32_t first_stamp = 0; static uint32_t num_syncs = 0; static uint32_t last_stamp; uint32_t current_stamp; uint32_t dummy; float freq; if (!first_stamp) { clock_get_system_microtime(&first_stamp, &dummy); last_stamp = first_stamp; return; } ++num_syncs; clock_get_system_microtime(&current_stamp, &dummy); if (current_stamp >= last_stamp + 60) { last_stamp = current_stamp; freq = static_cast<float>(num_syncs)/static_cast<float>(current_stamp - first_stamp); if (m_framebuffer) m_framebuffer->setProperty("VMwareSVGASyncFrequency", static_cast<UInt64>(freq * 1000.0F), 64U); } } #endif bool CLASS::createMasterSurface(UInt32 width, UInt32 height) { UInt32 cid; m_master_surface_id = AllocSurfaceID(); if (createSurface(m_master_surface_id, SVGA3dSurfaceFlags(0), SVGA3D_X8R8G8B8, width, height) != kIOReturnSuccess) { FreeSurfaceID(m_master_surface_id); return false; } cid = AllocContextID(); if (createContext(cid) != kIOReturnSuccess) { FreeContextID(cid); destroySurface(m_master_surface_id); FreeSurfaceID(m_master_surface_id); return false; } setupRenderContext(cid, m_master_surface_id); clearContext(cid, static_cast<SVGA3dClearFlag>(SVGA3D_CLEAR_COLOR), 0, 0, width, height, 0, 1.0F, 0); destroyContext(cid); FreeContextID(cid); return true; } void CLASS::destroyMasterSurface() { destroySurface(m_master_surface_id); FreeSurfaceID(m_master_surface_id); } void CLASS::processOptions() { UInt32 boot_arg; vmw_options_ac = VMW_OPTION_AC_2D_CONTEXT | VMW_OPTION_AC_SURFACE_CONNECT; if (PE_parse_boot_argn("vmw_options_ac", &boot_arg, sizeof boot_arg)) vmw_options_ac = boot_arg; if (PE_parse_boot_argn("-svga3d", &boot_arg, sizeof boot_arg)) vmw_options_ac |= VMW_OPTION_AC_SVGA3D; if (PE_parse_boot_argn("-vmw_no_yuv", &boot_arg, sizeof boot_arg)) vmw_options_ac |= VMW_OPTION_AC_NO_YUV; if (PE_parse_boot_argn("-vmw_direct_blit", &boot_arg, sizeof boot_arg)) vmw_options_ac |= VMW_OPTION_AC_DIRECT_BLIT; setProperty("VMwareSVGAAccelOptions", static_cast<UInt64>(vmw_options_ac), 32U); if (PE_parse_boot_argn("vmw_options_ga", &boot_arg, sizeof boot_arg)) { m_options_ga = boot_arg; setProperty("VMwareSVGAGAOptions", static_cast<UInt64>(m_options_ga), 32U); } if (PE_parse_boot_argn("vmw_log_ac", &boot_arg, sizeof boot_arg)) m_log_level_ac = static_cast<SInt32>(boot_arg); setProperty("VMwareSVGAAccelLogLevel", static_cast<UInt64>(m_log_level_ac), 32U); if (PE_parse_boot_argn("vmw_log_ga", &boot_arg, sizeof boot_arg)) { m_log_level_ga = static_cast<SInt32>(boot_arg); setProperty("VMwareSVGAGALogLevel", static_cast<UInt64>(m_log_level_ga), 32U); } } IOReturn CLASS::findFramebuffer() { OSIterator* it; OSObject* obj; VMsvga2* fb = 0; if (!m_provider) return kIOReturnNotReady; it = m_provider->getClientIterator(); if (!it) return kIOReturnNotFound; while ((obj = it->getNextObject()) != 0) { fb = OSDynamicCast(VMsvga2, obj); if (!fb) continue; if (!fb->supportsAccel()) { fb = 0; continue; } break; } if (!fb) { it->release(); return kIOReturnNotFound; } fb->retain(); m_framebuffer = fb; it->release(); return kIOReturnSuccess; } IOReturn CLASS::setupAllocator() { IOReturn rc; IOByteCount bytes_reserve, s; void* p; if (m_bar1) return kIOReturnSuccess; if (!m_framebuffer) return kIOReturnNotReady; m_bar1 = m_framebuffer->getVRAMRange(); if (!m_bar1) return kIOReturnInternalError; p = reinterpret_cast<void*>(m_framebuffer->getVRAMPtr()); s = m_bar1->getLength(); rc = m_allocator->Init(p, s); if (rc != kIOReturnSuccess) { ACLog(1, "%s: Allocator Init(%p, 0x%lx) failed with 0x%x\n", __FUNCTION__, p, static_cast<size_t>(s), rc); m_bar1->release(); m_bar1 = 0; return rc; } bytes_reserve = bHaveSVGA3D ? 0 : SVGA_FB_MAX_TRACEABLE_SIZE; rc = m_allocator->Release(bytes_reserve, s); if (rc != kIOReturnSuccess) { ACLog(1, "%s: Allocator Release(0x%lx, 0x%lx) failed with 0x%x\n", __FUNCTION__, static_cast<size_t>(bytes_reserve), static_cast<size_t>(s), rc); m_bar1->release(); m_bar1 = 0; } return rc; } #ifdef FB_NOTIFIER IOReturn CLASS::fbNotificationHandler(void* ref, class IOFramebuffer* framebuffer, SInt32 event, void* info) { ACLog(3, "%s: ref == %p, framebuffer == %p, event == %u, info == %p\n", __FUNCTION__, ref, framebuffer, event, info); return kIOReturnSuccess; } #endif #pragma mark - #pragma mark Methods from IOService #pragma mark - bool CLASS::init(OSDictionary* dictionary) { if (!super::init(dictionary)) return false; svga3d.Init(0); m_log_level_ac = LOGGING_LEVEL; m_log_level_ga = -1; m_blitbug_result = kIOReturnNotFound; m_present_tracker.init(); return true; } bool CLASS::start(IOService* provider) { char pathbuf[256]; int len; OSObject* plug; m_provider = OSDynamicCast(IOPCIDevice, provider); if (!m_provider) return false; if (!super::start(provider)) return false; IOLog("IOAC: start\n"); VMLog_SendString("log IOAC: start\n"); processOptions(); /* * TBD: is there a possible race condition here where VMsvga2Accel::start * is called before VMsvga2 gets attached to its provider? */ if (findFramebuffer() != kIOReturnSuccess) { ACLog(1, "Unable to locate suitable framebuffer\n"); stop(provider); return false; } m_iolock = IOLockAlloc(); if (!m_iolock) { ACLog(1, "Unable to allocate IOLock\n"); stop(provider); return false; } m_allocator = VMsvga2Allocator::factory(); if (!m_allocator) { ACLog(1, "Unable to create Allocator\n"); stop(provider); return false; } m_svga = m_framebuffer->getDevice(); if (checkOptionAC(VMW_OPTION_AC_SVGA3D) && svga3d.Init(m_svga)) { bHaveSVGA3D = true; ACLog(1, "SVGA3D On\n"); } if (checkOptionAC(VMW_OPTION_AC_NO_YUV)) ACLog(1, "YUV Off\n"); plug = getProperty(kIOCFPlugInTypesKey); if (plug) m_framebuffer->setProperty(kIOCFPlugInTypesKey, plug); len = sizeof pathbuf; if (getPath(&pathbuf[0], &len, gIOServicePlane)) { m_framebuffer->setProperty(kIOAccelTypesKey, pathbuf); m_framebuffer->setProperty(kIOAccelIndexKey, 0ULL, 32U); m_framebuffer->setProperty(kIOAccelRevisionKey, static_cast<UInt64>(kCurrentGraphicsInterfaceRevision), 32U); } #ifdef FB_NOTIFIER m_fbNotifier = m_framebuffer->addFramebufferNotification(OSMemberFunctionCast(IOFramebufferNotificationHandler, this, &CLASS::fbNotificationHandler), this, 0); if (!m_fbNotifier) ACLog(1, "Unable to register framebuffer notification handler\n"); #endif return true; } void CLASS::stop(IOService* provider) { ACLog(2, "%s\n", __FUNCTION__); Cleanup(); super::stop(provider); } IOReturn CLASS::newUserClient(task_t owningTask, void* securityID, UInt32 type, IOUserClient ** handler) { IOUserClient* client; /* * Client Types * 0 - Surface * 1 - GL Context * 2 - 2D Context * 3 - DVD Context * 4 - DVD Context */ ACLog(2, "%s: owningTask==%p, securityID==%p, type==%u\n", __FUNCTION__, owningTask, securityID, type); if (!handler) return kIOReturnBadArgument; if (!m_framebuffer) return kIOReturnNoDevice; switch (type) { case kIOAccelSurfaceClientType: if (!checkOptionAC(VMW_OPTION_AC_SURFACE_CONNECT)) return kIOReturnUnsupported; if (setupAllocator() != kIOReturnSuccess) return kIOReturnNoMemory; client = VMsvga2Surface::withTask(owningTask, securityID, type); break; case 1: if (!checkOptionAC(VMW_OPTION_AC_GL_CONTEXT)) return kIOReturnUnsupported; client = VMsvga2GLContext::withTask(owningTask, securityID, type); break; case 2: if (!checkOptionAC(VMW_OPTION_AC_2D_CONTEXT)) return kIOReturnUnsupported; client = VMsvga22DContext::withTask(owningTask, securityID, type); break; case 3: if (!checkOptionAC(VMW_OPTION_AC_DVD_CONTEXT)) return kIOReturnUnsupported; default: return kIOReturnUnsupported; } if (!client) return kIOReturnNoResources; if (!client->attach(this)) { client->release(); return kIOReturnInternalError; } if (!client->start(this)) { client->detach(this); client->release(); return kIOReturnInternalError; } *handler = client; return kIOReturnSuccess; } #pragma mark - #pragma mark SVGA FIFO Sync Methods #pragma mark - IOReturn CLASS::SyncFIFO() { if (!m_framebuffer) return kIOReturnNoDevice; m_framebuffer->lockDevice(); m_svga->SyncFIFO(); m_framebuffer->unlockDevice(); return kIOReturnSuccess; } IOReturn CLASS::RingDoorBell() { if (!m_framebuffer) return kIOReturnNoDevice; m_framebuffer->lockDevice(); m_svga->RingDoorBell(); m_framebuffer->unlockDevice(); return kIOReturnSuccess; } IOReturn CLASS::SyncToFence(UInt32 fence) { if (!m_framebuffer) return kIOReturnNoDevice; m_framebuffer->lockDevice(); m_svga->SyncToFence(fence); m_framebuffer->unlockDevice(); return kIOReturnSuccess; } #pragma mark - #pragma mark SVGA FIFO Acceleration Methods for 2D Context #pragma mark - IOReturn CLASS::useAccelUpdates(uintptr_t state) { if (!m_framebuffer) return kIOReturnNoDevice; m_framebuffer->useAccelUpdates(state != 0); return kIOReturnSuccess; } /* * Note: RectCopy, RectFill, UpdateFramebuffer* and CopyRegion don't work in SVGA3D * mode. This is ok, since the WindowServer doesn't use them. * UpdateFramebuffer* are called from IOFBSynchronize in GA. The other functions * are called from the various blitters. In SVGA3D mode the WindowServer doesn't * use IOFBSynchronize (it uses surface_flush instead), and CopyRegion blits * are done to a surface destination. */ IOReturn CLASS::RectCopy(struct IOBlitCopyRectangleStruct const* copyRects, size_t copyRectsSize) { size_t i, count = copyRectsSize / sizeof(IOBlitCopyRectangle); bool rc; if (!count || !copyRects) return kIOReturnBadArgument; if (!m_framebuffer) return kIOReturnNoDevice; m_framebuffer->lockDevice(); for (i = 0; i < count; ++i) { rc = m_svga->RectCopy(reinterpret_cast<UInt32 const*>(&copyRects[i])); if (!rc) break; } m_framebuffer->unlockDevice(); return rc ? kIOReturnSuccess : kIOReturnNoMemory; } IOReturn CLASS::RectFill(uintptr_t color, struct IOBlitRectangleStruct const* rects, size_t rectsSize) { size_t i, count = rectsSize / sizeof(IOBlitRectangle); bool rc; if (!count || !rects) return kIOReturnBadArgument; if (!m_framebuffer) return kIOReturnNoDevice; m_framebuffer->lockDevice(); for (i = 0; i < count; ++i) { rc = m_svga->RectFill(static_cast<UInt32>(color), reinterpret_cast<UInt32 const*>(&rects[i])); if (!rc) break; } m_framebuffer->unlockDevice(); return rc ? kIOReturnSuccess : kIOReturnNoMemory; } IOReturn CLASS::UpdateFramebuffer(UInt32 const* rect) { if (!rect) return kIOReturnBadArgument; if (!m_framebuffer) return kIOReturnNoDevice; m_framebuffer->lockDevice(); m_svga->UpdateFramebuffer2(rect); m_framebuffer->unlockDevice(); return kIOReturnSuccess; } IOReturn CLASS::UpdateFramebufferAutoRing(UInt32 const* rect) { if (!rect) return kIOReturnBadArgument; if (!m_framebuffer) return kIOReturnNoDevice; ++m_updates_counter; if (m_updates_counter == UPDATES_COUNTER_THRESHOLD) m_updates_counter = 0; m_framebuffer->lockDevice(); m_svga->UpdateFramebuffer2(rect); if (!m_updates_counter) m_svga->RingDoorBell(); m_framebuffer->unlockDevice(); #ifdef TIMING timeSyncs(); #endif return kIOReturnSuccess; } IOReturn CLASS::CopyRegion(intptr_t destX, intptr_t destY, void /* IOAccelDeviceRegion */ const* region, size_t regionSize) { IOAccelDeviceRegion const* rgn = static_cast<IOAccelDeviceRegion const*>(region); IOAccelBounds const* rect; SInt32 deltaX, deltaY; UInt32 i, copyRect[6]; bool rc; if (!rgn || regionSize < IOACCEL_SIZEOF_DEVICE_REGION(rgn)) return kIOReturnBadArgument; if (!m_framebuffer) return kIOReturnNoDevice; m_framebuffer->lockDevice(); rect = &rgn->bounds; if (checkOptionAC(VMW_OPTION_AC_REGION_BOUNDS_COPY)) { copyRect[0] = rect->x; copyRect[1] = rect->y; copyRect[2] = static_cast<UInt32>(destX); copyRect[3] = static_cast<UInt32>(destY); copyRect[4] = rect->w; copyRect[5] = rect->h; rc = m_svga->RectCopy(&copyRect[0]); } else { deltaX = static_cast<SInt32>(destX) - rect->x; deltaY = static_cast<SInt32>(destY) - rect->y; for (i = 0; i < rgn->num_rects; ++i) { rect = &rgn->rect[i]; copyRect[0] = rect->x; copyRect[1] = rect->y; copyRect[2] = rect->x + deltaX; copyRect[3] = rect->y + deltaY; copyRect[4] = rect->w; copyRect[5] = rect->h; rc = m_svga->RectCopy(&copyRect[0]); if (!rc) break; } } m_framebuffer->unlockDevice(); return rc ? kIOReturnSuccess : kIOReturnNoMemory; } #pragma mark - #pragma mark Acceleration Methods for Surfaces #pragma mark - IOReturn CLASS::createSurface(UInt32 sid, SVGA3dSurfaceFlags surfaceFlags, SVGA3dSurfaceFormat surfaceFormat, UInt32 width, UInt32 height) { bool rc; SVGA3dSize* mipSizes; SVGA3dSurfaceFace* faces; if (!bHaveSVGA3D) return kIOReturnNoDevice; m_framebuffer->lockDevice(); rc = svga3d.BeginDefineSurface(sid, surfaceFlags, surfaceFormat, &faces, &mipSizes, 1U); if (!rc) goto exit; faces[0].numMipLevels = 1; mipSizes[0].width = width; mipSizes[0].height = height; mipSizes[0].depth = 1; m_svga->FIFOCommitAll(); exit: m_framebuffer->unlockDevice(); return kIOReturnSuccess; } IOReturn CLASS::destroySurface(UInt32 sid) { if (!bHaveSVGA3D) return kIOReturnNoDevice; m_framebuffer->lockDevice(); svga3d.DestroySurface(sid); m_framebuffer->unlockDevice(); return kIOReturnSuccess; } IOReturn CLASS::surfaceDMA2D(UInt32 sid, SVGA3dTransferType transfer, void /* IOAccelDeviceRegion */ const* region, ExtraInfo const* extra, UInt32* fence) { bool rc; UInt32 i, numCopyBoxes; SVGA3dCopyBox* copyBoxes; SVGA3dGuestImage guestImage; SVGA3dSurfaceImageId hostImage; IOAccelDeviceRegion const* rgn; if (!extra) return kIOReturnBadArgument; if (!bHaveSVGA3D) return kIOReturnNoDevice; rgn = static_cast<IOAccelDeviceRegion const*>(region); numCopyBoxes = rgn ? rgn->num_rects : 0; hostImage.sid = sid; hostImage.face = 0; hostImage.mipmap = 0; guestImage.ptr.gmrId = static_cast<UInt32>(-2) /* SVGA_GMR_FRAMEBUFFER */; guestImage.ptr.offset = static_cast<UInt32>(extra->mem_offset_in_bar1); guestImage.pitch = static_cast<UInt32>(extra->mem_pitch); m_framebuffer->lockDevice(); rc = svga3d.BeginSurfaceDMA(&guestImage, &hostImage, transfer, &copyBoxes, numCopyBoxes); if (!rc) goto exit; for (i = 0; i < numCopyBoxes; ++i) { IOAccelBounds const* src = &rgn->rect[i]; SVGA3dCopyBox* dst = &copyBoxes[i]; dst->srcx = src->x + extra->srcDeltaX; dst->srcy = src->y + extra->srcDeltaY; dst->x = src->x + extra->dstDeltaX; dst->y = src->y + extra->dstDeltaY; dst->w = src->w; dst->h = src->h; dst->d = 1; } m_svga->FIFOCommitAll(); if (fence) *fence = m_svga->InsertFence(); exit: m_framebuffer->unlockDevice(); return kIOReturnSuccess; } IOReturn CLASS::surfaceCopy(UInt32 src_sid, UInt32 dst_sid, void /* IOAccelDeviceRegion */ const* region, ExtraInfo const* extra) { bool rc; UInt32 i, numCopyBoxes; SVGA3dCopyBox* copyBoxes; SVGA3dSurfaceImageId srcImage, dstImage; IOAccelDeviceRegion const* rgn; if (!extra) return kIOReturnBadArgument; if (!bHaveSVGA3D) return kIOReturnNoDevice; rgn = static_cast<IOAccelDeviceRegion const*>(region); numCopyBoxes = rgn ? rgn->num_rects : 0; bzero(&srcImage, sizeof srcImage); bzero(&dstImage, sizeof dstImage); srcImage.sid = src_sid; dstImage.sid = dst_sid; m_framebuffer->lockDevice(); rc = svga3d.BeginSurfaceCopy(&srcImage, &dstImage, &copyBoxes, numCopyBoxes); if (!rc) goto exit; for (i = 0; i < numCopyBoxes; ++i) { IOAccelBounds const* src = &rgn->rect[i]; SVGA3dCopyBox* dst = &copyBoxes[i]; dst->srcx = src->x + extra->srcDeltaX; dst->srcy = src->y + extra->srcDeltaY; dst->x = src->x + extra->dstDeltaX; dst->y = src->y + extra->dstDeltaY; dst->w = src->w; dst->h = src->h; dst->d = 1; } m_svga->FIFOCommitAll(); exit: m_framebuffer->unlockDevice(); return kIOReturnSuccess; } IOReturn CLASS::surfaceStretch(UInt32 src_sid, UInt32 dst_sid, SVGA3dStretchBltMode mode, void /* IOAccelBounds */ const* src_rect, void /* IOAccelBounds */ const* dest_rect) { SVGA3dBox srcBox, dstBox; SVGA3dSurfaceImageId srcImage, dstImage; IOAccelBounds const* s_rect; IOAccelBounds const* d_rect; if (!bHaveSVGA3D) return kIOReturnNoDevice; s_rect = static_cast<IOAccelBounds const*>(src_rect); d_rect = static_cast<IOAccelBounds const*>(dest_rect); bzero(&srcImage, sizeof srcImage); bzero(&dstImage, sizeof dstImage); srcImage.sid = src_sid; dstImage.sid = dst_sid; srcBox.x = static_cast<UInt32>(s_rect->x); srcBox.y = static_cast<UInt32>(s_rect->y); srcBox.z = 0; srcBox.w = static_cast<UInt32>(s_rect->w); srcBox.h = static_cast<UInt32>(s_rect->h); srcBox.d = 1; dstBox.x = static_cast<UInt32>(d_rect->x); dstBox.y = static_cast<UInt32>(d_rect->y); dstBox.z = 0; dstBox.w = static_cast<UInt32>(d_rect->w); dstBox.h = static_cast<UInt32>(d_rect->h); dstBox.d = 1; m_framebuffer->lockDevice(); svga3d.SurfaceStretchBlt(&srcImage, &dstImage, &srcBox, &dstBox, mode); m_framebuffer->unlockDevice(); return kIOReturnSuccess; } IOReturn CLASS::surfacePresentAutoSync(UInt32 sid, void /* IOAccelDeviceRegion */ const* region, ExtraInfo const* extra) { bool rc; UInt32 i, numCopyRects; SVGA3dCopyRect* copyRects; IOAccelDeviceRegion const* rgn; if (!extra) return kIOReturnBadArgument; if (!bHaveSVGA3D) return kIOReturnNoDevice; rgn = static_cast<IOAccelDeviceRegion const*>(region); numCopyRects = rgn ? rgn->num_rects : 0; m_framebuffer->lockDevice(); m_svga->SyncToFence(m_present_tracker.before()); rc = svga3d.BeginPresent(sid, &copyRects, numCopyRects); if (!rc) goto exit; for (i = 0; i < numCopyRects; ++i) { IOAccelBounds const* src = &rgn->rect[i]; SVGA3dCopyRect* dst = &copyRects[i]; dst->srcx = src->x + extra->srcDeltaX; dst->srcy = src->y + extra->srcDeltaY; dst->x = src->x + extra->dstDeltaX; dst->y = src->y + extra->dstDeltaY; dst->w = src->w; dst->h = src->h; } m_svga->FIFOCommitAll(); m_present_tracker.after(m_svga->InsertFence()); exit: m_framebuffer->unlockDevice(); return kIOReturnSuccess; } IOReturn CLASS::surfacePresentReadback(void /* IOAccelDeviceRegion */ const* region) { bool rc; UInt32 i, numRects; SVGA3dRect* rects; IOAccelDeviceRegion const* rgn; if (!bHaveSVGA3D) return kIOReturnNoDevice; rgn = static_cast<IOAccelDeviceRegion const*>(region); numRects = rgn ? rgn->num_rects : 0; m_framebuffer->lockDevice(); rc = svga3d.BeginPresentReadback(&rects, numRects); if (!rc) goto exit; for (i = 0; i < numRects; ++i) { IOAccelBounds const* src = &rgn->rect[i]; SVGA3dRect* dst = &rects[i]; dst->x = src->x; dst->y = src->y; dst->w = src->w; dst->h = src->h; } m_svga->FIFOCommitAll(); exit: m_framebuffer->unlockDevice(); return kIOReturnSuccess; } #if 0 IOReturn CLASS::setupRenderContext(UInt32 cid, UInt32 color_sid, UInt32 depth_sid, UInt32 width, UInt32 height) { SVGA3dRenderState* rs; SVGA3dSurfaceImageId colorImage; SVGA3dSurfaceImageId depthImage; SVGA3dRect rect; if (!bHaveSVGA3D) return kIOReturnNoDevice; bzero(&colorImage, sizeof(SVGA3dSurfaceImageId)); bzero(&depthImage, sizeof(SVGA3dSurfaceImageId)); bzero(&rect, sizeof(SVGA3dRect)); colorImage.sid = color_sid; depthImage.sid = depth_sid; rect.w = width; rect.h = height; m_framebuffer->lockDevice(); svga3d.SetRenderTarget(cid, SVGA3D_RT_COLOR0, &colorImage); svga3d.SetRenderTarget(cid, SVGA3D_RT_DEPTH, &depthImage); svga3d.SetViewport(cid, &rect); svga3d.SetZRange(cid, 0.0F, 1.0F); if (svga3d.BeginSetRenderState(cid, &rs, 1)) { rs->state = SVGA3D_RS_SHADEMODE; rs->uintValue = SVGA3D_SHADEMODE_SMOOTH; m_svga->FIFOCommitAll(); } m_framebuffer->unlockDevice(); return kIOReturnSuccess; } #else IOReturn CLASS::setupRenderContext(UInt32 cid, UInt32 color_sid) { SVGA3dSurfaceImageId colorImage; if (!bHaveSVGA3D) return kIOReturnNoDevice; bzero(&colorImage, sizeof(SVGA3dSurfaceImageId)); colorImage.sid = color_sid; m_framebuffer->lockDevice(); svga3d.SetRenderTarget(cid, SVGA3D_RT_COLOR0, &colorImage); m_framebuffer->unlockDevice(); return kIOReturnSuccess; } #endif IOReturn CLASS::clearContext(UInt32 cid, SVGA3dClearFlag flags, UInt32 x, UInt32 y, UInt32 width, UInt32 height, UInt32 color, float depth, UInt32 stencil) { bool rc; SVGA3dRect* rect; if (!bHaveSVGA3D) return kIOReturnNoDevice; m_framebuffer->lockDevice(); rc = svga3d.BeginClear(cid, flags, color, depth, stencil, &rect, 1); if (!rc) goto exit; rect->x = x; rect->y = y; rect->w = width; rect->h = height; m_svga->FIFOCommitAll(); exit: m_framebuffer->unlockDevice(); return kIOReturnSuccess; } IOReturn CLASS::createContext(UInt32 cid) { if (!bHaveSVGA3D) return kIOReturnNoDevice; m_framebuffer->lockDevice(); svga3d.DefineContext(cid); m_framebuffer->unlockDevice(); return kIOReturnSuccess; } IOReturn CLASS::destroyContext(UInt32 cid) { if (!bHaveSVGA3D) return kIOReturnNoDevice; m_framebuffer->lockDevice(); svga3d.DestroyContext(cid); m_framebuffer->unlockDevice(); return kIOReturnSuccess; } #pragma mark - #pragma mark Misc Methods #pragma mark - IOReturn CLASS::getScreenInfo(IOAccelSurfaceReadData* info) { if (!info) return kIOReturnBadArgument; if (!m_framebuffer) return kIOReturnNoDevice; bzero(info, sizeof(IOAccelSurfaceReadData)); m_framebuffer->lockDevice(); info->w = m_svga->getCurrentWidth(); info->h = m_svga->getCurrentHeight(); #if IOACCELTYPES_10_5 || (IOACCEL_TYPES_REV < 12 && !defined(kIODescriptionKey)) info->client_addr = reinterpret_cast<void*>(m_framebuffer->getVRAMPtr()); #else info->client_addr = static_cast<mach_vm_address_t>(m_framebuffer->getVRAMPtr()); #endif info->client_row_bytes = m_svga->getCurrentPitch(); m_framebuffer->unlockDevice(); ACLog(2, "%s: width == %d, height == %d\n", __FUNCTION__, info->w, info->h); return kIOReturnSuccess; } bool CLASS::retainMasterSurface() { bool rc = true; UInt32 width, height; if (!bHaveSVGA3D) return false; if (OSIncrementAtomic(&m_master_surface_retain_count) == 0) { m_framebuffer->lockDevice(); width = m_svga->getCurrentWidth(); height = m_svga->getCurrentHeight(); m_framebuffer->unlockDevice(); ACLog(2, "%s: Master Surface width == %u, height == %u\n", __FUNCTION__, width, height); rc = createMasterSurface(width, height); if (!rc) m_master_surface_retain_count = 0; } return rc; } void CLASS::releaseMasterSurface() { if (!bHaveSVGA3D) return; SInt32 v = OSDecrementAtomic(&m_master_surface_retain_count); if (v <= 0) { m_master_surface_retain_count = 0; return; } if (v == 1) destroyMasterSurface(); } void CLASS::lockAccel() { IOLockLock(m_iolock); } void CLASS::unlockAccel() { IOLockUnlock(m_iolock); } #pragma mark - #pragma mark Video Methods #pragma mark - IOReturn CLASS::VideoSetRegsInRange(UInt32 streamId, struct SVGAOverlayUnit const* regs, UInt32 regMin, UInt32 regMax, UInt32* fence) { if (!m_framebuffer) return kIOReturnNoDevice; m_framebuffer->lockDevice(); if (regs) m_svga->VideoSetRegsInRange(streamId, regs, regMin, regMax); m_svga->VideoFlush(streamId); if (fence) *fence = m_svga->InsertFence(); m_svga->RingDoorBell(); m_framebuffer->unlockDevice(); return kIOReturnSuccess; } IOReturn CLASS::VideoSetReg(UInt32 streamId, UInt32 registerId, UInt32 value, UInt32* fence) { if (!m_framebuffer) return kIOReturnNoDevice; m_framebuffer->lockDevice(); m_svga->VideoSetReg(streamId, registerId, value); m_svga->VideoFlush(streamId); if (fence) *fence = m_svga->InsertFence(); m_svga->RingDoorBell(); m_framebuffer->unlockDevice(); return kIOReturnSuccess; } #pragma mark - #pragma mark ID Allocation Methods #pragma mark - UInt32 CLASS::AllocSurfaceID() { int i; UInt64 x; lockAccel(); x = (~m_surface_id_mask) & (m_surface_id_mask + 1); m_surface_id_mask |= x; i = log_2_64(x); if (i < 0) i = static_cast<int>(8U * sizeof(UInt64) + m_surface_ids_unmanaged++); unlockAccel(); return static_cast<UInt32>(i); } void CLASS::FreeSurfaceID(UInt32 sid) { if (sid >= 8U * static_cast<UInt32>(sizeof(UInt64))) return; lockAccel(); m_surface_id_mask &= ~(1ULL << sid); unlockAccel(); } UInt32 CLASS::AllocContextID() { int i; UInt64 x; lockAccel(); x = (~m_context_id_mask) & (m_context_id_mask + 1); m_context_id_mask |= x; i = log_2_64(x); if (i < 0) i = static_cast<int>(8U * sizeof(UInt64) + m_context_ids_unmanaged++); unlockAccel(); return static_cast<UInt32>(i); } void CLASS::FreeContextID(UInt32 cid) { if (cid >= 8U * static_cast<UInt32>(sizeof(UInt64))) return; lockAccel(); m_context_id_mask &= ~(1ULL << cid); unlockAccel(); } UInt32 CLASS::AllocStreamID() { int i; UInt32 x; lockAccel(); x = (~m_stream_id_mask) & (m_stream_id_mask + 1); m_stream_id_mask |= x; i = log_2_32(x); unlockAccel(); return static_cast<UInt32>(i); } void CLASS::FreeStreamID(UInt32 streamId) { if (streamId >= 8U * static_cast<UInt32>(sizeof(UInt32))) return; lockAccel(); m_stream_id_mask &= ~(1U << streamId); unlockAccel(); } #pragma mark - #pragma mark Memory Methods #pragma mark - void* CLASS::VRAMMalloc(size_t bytes) { IOReturn rc; void* p = 0; if (!m_allocator) return 0; lockAccel(); rc = m_allocator->Malloc(bytes, &p); unlockAccel(); if (rc != kIOReturnSuccess) ACLog(1, "%s(%lu) failed\n", __FUNCTION__, bytes); return p; } void* CLASS::VRAMRealloc(void* ptr, size_t bytes) { IOReturn rc; void* newp = 0; if (!m_allocator) return 0; lockAccel(); rc = m_allocator->Realloc(ptr, bytes, &newp); unlockAccel(); if (rc != kIOReturnSuccess) ACLog(1, "%s(%p, %lu) failed\n", __FUNCTION__, ptr, bytes); return newp; } void CLASS::VRAMFree(void* ptr) { IOReturn rc; if (!m_allocator) return; lockAccel(); rc = m_allocator->Free(ptr); unlockAccel(); if (rc != kIOReturnSuccess) ACLog(1, "%s(%p) failed\n", __FUNCTION__, ptr); } IOMemoryMap* CLASS::mapVRAMRangeForTask(task_t task, vm_offset_t offset_in_bar1, vm_size_t size) { if (!m_bar1) return 0; return m_bar1->createMappingInTask(task, 0, kIOMapAnywhere, offset_in_bar1, size); }
[ "zenith432@f31ded45-fcaa-4108-8aac-ff0a0b8cda5a" ]
zenith432@f31ded45-fcaa-4108-8aac-ff0a0b8cda5a
138d4395c5134a73c4738a01cc0313143e6043a8
e1ac5adc972a221ea87340caeacd5034c5754924
/src/DBase.h
6c4a603eb9949f8a728a765f3aeb0c71f6a5e2b4
[]
no_license
adiog/snoo-game
f76919c24f578bc0c1fd0d6649772af6f07f527e
c47a7db9519983c75e52c49256d37fcf5ba2a8e5
refs/heads/master
2020-03-28T09:05:57.724220
2018-02-04T16:50:22
2018-02-04T16:50:22
148,013,685
0
0
null
null
null
null
UTF-8
C++
false
false
547
h
#ifndef DBASE_H_ #define DBASE_H_ #include <mysql.h> #include <stdio.h> #include <stdlib.h> #include <string> #include <iostream> #include "DBaseParams.h" #include "GameStateInformation.h" int test(); bool DBaseConnect(); void DBaseDisconnect(); int DBaseInsert(std::string query); int DBaseAuthenticate(std::string user, std::string pass); int DBaseGetShotsForReplay(int id, int * id_array, int maxnum); void DBaseGetShot(int, network::GameStateInformation **); void DBaseGetLastShot(network::GameStateInformation **); #endif /* DBASE_H_ */
215a3b0aba91722795312f5d1333c344af9ee5ae
040edc2bdbefe7c0d640a18d23f25a8761d62f40
/21/nn_fg_test.cpp
7ef29bec9904463c39e12564ac8789e70fe2dcf0
[ "BSD-2-Clause" ]
permissive
johnrsibert/tagest
9d3be8352f6bb5603fbd0eb6140589bb852ff40b
0194b1fbafe062396cc32a0f5a4bbe824341e725
refs/heads/master
2021-01-24T00:18:24.231639
2018-01-16T19:10:25
2018-01-16T19:10:25
30,438,830
3
3
null
2016-12-08T17:59:28
2015-02-07T00:05:30
C++
UTF-8
C++
false
false
11,032
cpp
#include "par_t_nn.h" #include "precomp.h" #include "intersav.h" #include "fish_rec.h" #include <iomanip.h> #include "trace.h" #ifdef __GNUC__ #include <iostream.h> #include <fcntl.h> #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> #endif #ifdef __SUN__ #include <unistd.h> #include <fcntl.h> #endif #if !defined(__SUN__) && !defined(__GNUC__) #include <io.h> #include <fcntl.h> #include <sys\stat.h> #endif void resid_comp(const dmatrix& obs, const dmatrix& pred, const dmatrix& like, const int report); //void velpen(par_t_reg& param, double& temp, year_month& date); //void dfvelpen(par_t_reg& dfparam, par_t_reg& param, year_month& date); //void sigpen(par_t_reg& param, double& temp, year_month& date); //void dfsigpen(par_t_reg& dfparam, par_t_reg& param, year_month& date); void total_tag_penalty(dmatrix& tags, par_t& param, double& pen); void df_total_tag_penalty(dmatrix& tags, dmatrix& dftags, par_t& param, double& dfpen); void negative_tag_penalty(dmatrix& tags, par_t& param, double& pen, int& negatives); void df_negative_tag_penalty(dmatrix& tags, dmatrix& dftags, par_t& param, double& dfpen); void df_poisson_like(double& dflike, dmatrix& pred_tags, dmatrix& dfpred_tags, year_month& date, int cohort, recaptype_vector& recaps, int nrec, par_t& param, par_t& dfparam, dmatrix& z, dmatrix& dfz, ivector& effort_occured, d3_array& fmort, d3_array& dffmort); void poisson_like(double& like, dmatrix& pred_tags, year_month& date, int cohort, recaptype_vector& recaps, int nrec, par_t& param, dmatrix& z, ivector& effort_occured, d3_array& fmort); void df_nb_like(double& dflike, dmatrix& pred_tags, dmatrix& dfpred_tags, year_month& date, int cohort, recaptype_vector& recaps, int nrec, par_t& param, par_t& dfparam, dmatrix& z, dmatrix& dfz, ivector& effort_occured, d3_array& fmort, d3_array& dffmort, dvector& a, dvector& dfa, const int naa, const int nb_scale); void negative_binomial_like(double& like, dmatrix& pred_tags, year_month& date, int cohort, recaptype_vector& recaps, int nrec, par_t& param, dmatrix& z, ivector& effort_occured, d3_array& fmort, dvector& a, const int naa, const int nb_scale); void exponential_like(double& like, dmatrix& pred_tags, year_month& date, int cohort, recaptype_vector& recaps, int nrec, par_t& param, dmatrix& z, ivector& effort_occured, d3_array& fmort); void df_exp_like(double& dflike, dmatrix& pred_tags, dmatrix& dfpred_tags, year_month& date, int cohort, recaptype_vector& recaps, int nrec, par_t& param, par_t& dfparam, dmatrix& z, dmatrix& dfz, ivector& effort_occured, d3_array& fmort, d3_array& dffmort); //void sigpen(par_t_reg& param, double& temp, year_month& date); //void dfsigpen(par_t_reg& dfparam, par_t_reg& param, year_month& date); d3_array make_d3_array(int sl,int sh, int nrl, int nrh, const ivector& ncl, const ivector& nch); void clean(dvector& g, int nvar, par_t_nn& pdfpar, coff_t& dfcoff, dmatrix& dfrelease,d3_array& dfz, double& plike); void get_effort_array(par_t& param, indexed_regional_fishery_record& irfr, d3_array& effort, year_month& date, ivector& effort_occured); void dftotal_mort_comp(par_t& param, par_t& dfparam, d3_array& f_mort, d3_array& dff_mort, dmatrix& dfz); //void df_fish_mort_comp(par_t& dfparam, d3_array& dff_mort, d3_array& effort); void reverse(double& like, dvector& g, int nvar); extern int _global_report_flag; //Set in main(); 0 while in fmin loop else 1 extern setsaveinterflag interflag; extern intersavetype * isp; extern ofstream clogf; void par_t_nn::fgcomp(double& plike, dvector& x, dvector& g, int _nvar, recaptype_vector& recaps, int nrec, coff_t& coff, coff_t& dfcoff, indexed_regional_fishery_record& irfr) { int i, j, cohort; //clogf.setf(ios::fixed); clock_t time1 = clock(); par_t_nn dfparam(*this); imatrix jlbm(1,nfleet,1,m); imatrix jubm(1,nfleet,1,m); ivector ilbv(1,nfleet); ivector iubv(1,nfleet); for (int s = 1; s <= nfleet; s++) { ilbv(s) = 1; iubv(s) = m; //jlbm(s) = jlb; //jubm(s) = jub; for (int i = 1; i <= m; i++) { jlbm(s,i) = jlb(i); jubm(s,i) = jub(i); } //end_for } //end_for d3_array effort(1, nfleet, ilbv, iubv, jlbm, jubm); d3_array fish_mort(1, nfleet, ilbv, iubv, jlbm, jubm); d3_array dffish_mort(1, nfleet, ilbv, iubv, jlbm, jubm); dffish_mort.initialize(); dmatrix tot_mort(1,m, jlb, jub); //tot_mort.initialize(); dmatrix dftot_mort(1,m, jlb, jub); dftot_mort.initialize(); //Tags dmatrix release(1,m, jlb, jub); release.initialize(); dmatrix dfrelease(1, m, jlb, jub); dfrelease.initialize(); ivector effort_occured(1, nfleet); effort_occured.initialize(); #if !defined(__SUN__) && !defined(__GNUC__) if ( ( isp->savefile = open(isp->savefilename, O_RDWR|O_CREAT|O_BINARY,S_IREAD|S_IWRITE) ) < 0) #else #if defined ( __SUN__) || defined ( __GNUC__) if ( ( isp->savefile = open(isp->savefilename, O_RDWR | O_CREAT | O_TRUNC , 0660) ) < 0) //if ( ( isp->savefile = open(isp->savefilename, O_RDWR | O_CREAT | O_TRUNC , 0777) ) < 0) #else if ( ( isp->savefile = creat(isp->savefilename, O_RDWR) ) < 0) #endif #endif { cerr <<"Cannot open " << isp->savefilename <<" for output.\n"; exit(1); } plike = 0.0; fpen = 0.0; total_uv_penalty = 0; total_sigma_penalty = 0; total_negative_tag_penalty = 0; total_total_tag_penalty = 0 ; total_bounds_penalty = 0; //set usergrid, mort, q reset(x); plike -= fpen; total_bounds_penalty += fpen; int ncohort = nrelease; int pool_tags = m_ipar[13]; TRACE(pool_tags) int omit_release_month = 0; if (m_ipar[14]) { cerr << "Omit release month option (flag 14) not currently supported." << endl; exit(1); } //end_if int last_rn = 0; int c1 = 1; int c2 = ncohort; if (pool_tags == 1) { cohort = 0; c2 = 1; } //end_if else if (pool_tags == 2) { last_rn = 0; c1 = 1; c2 = ncohort; } //end_if //Use a macro for cleaner code ivector jlb1(0,m+1); ivector jub1(0,m+1); for (i = 1; i <= m; i++) { jlb1(i) = jlb(i) - 1; jub1(i) = jub(i) + 1; } //end_for jlb1(0) = 0; jlb1(m+1) = 0; jub1(0) = n+1; jub1(m+1) = n+1; // u v and sigma initializtion was commented out earlier. msa 2/12/2002 8:10PM dmatrix u(0, m+1, jlb1, jub1); u.initialize(); dmatrix v(0, m+1, jlb1, jub1); v.initialize(); dmatrix sigma(0, m+1, jlb1, jub1); sigma.initialize(); dmatrix df_u(0, m+1, jlb1, jub1); df_u.initialize(); dmatrix df_v(0, m+1, jlb1, jub1); df_v.initialize(); dmatrix df_sigma(0, m+1, jlb1, jub1); df_sigma.initialize(); year_month date; year_month local_start_date = start_date; year_month save_start_date = start_date; year_month final_date = get_tr_date(nrelease) + nmonth; double dfplike = 1.0; double dfneg_tag_pen = 0.0; double dftot_tag_pen = 0.0; dfcoff.clean(); g.initialize(); for (int cc = c1; cc <= c2; cc++) { interflag.isp_reset(); if (pool_tags == 2) { cohort = get_tr_cohort(cc); //clogf << "\nReleasing tags for cohort " << cohort << endl; local_start_date = get_tr_date(cc); final_date = local_start_date + nmonth; start_date = local_start_date; release.initialize(); while( (last_rn < ncohort) && (cohort == get_tr_cohort(last_rn+1)) ) { last_rn++; i = get_tr_i(last_rn); j = get_tr_j(last_rn); release(i,j) += get_tr_tags(last_rn); //clogf << local_start_date <<", released " // << get_tr_tags(last_rn) << " at " << i << "," << j << endl; } //end_while cc = last_rn; } //end_if int total_months = final_date - start_date + 1; //ivector coff_comp_called(0,total_months); //coff_comp_called.initialize(); int kmonth = 0; clogf << "---------- starting forward loop ----------" << endl; for (date = local_start_date; date <= final_date; date++) { kmonth ++; TTRACE(kmonth,date) if (pool_tags == 1) { while((last_rn < ncohort) && (date == get_tr_date(last_rn+1))) { last_rn++; i = get_tr_i(last_rn); j = get_tr_j(last_rn); release(i,j) += get_tr_tags(last_rn); //clogf << date <<", released " << get_tr_tags(last_rn) << " at " // << i << "," << j << endl; } //end_while } //end_if uvs_comp(u, v, sigma, date); plike += 1e-8*norm2(u); plike += 1e-8*norm2(v); plike += 1e-8*norm2(sigma); } //End of forward month loop interflag.iclose(isp); //clogf << "\n---------- starting reverse loop ----------" << endl; for (date = final_date; date >= local_start_date; date--) { //plike += 1e-9*norm2(sigma); uvs_comp(u, v, sigma, date); // recompute //plike += 1e-8*norm2(sigma); df_sigma += 1e-8*dfplike*2.0*sigma; //plike += 1e-8*norm2(v); df_v += 1e-8*dfplike*2.0*v; //plike += 1e-8*norm2(u); df_u += 1e-8*dfplike*2.0*u; dfparam.dfuvs_comp(*this, df_u, df_v, df_sigma, date); kmonth --; } //End reverse month loop if (pool_tags == 2) { //cohort = get_tr_cohort(cc); //local_start_date = get_tr_date(cc); //final_date = local_start_date + nmonth; //release.initialize(); dfrelease.initialize(); //while((last_rn < ncohort) // && (cohort == get_tr_cohort(last_rn+1))) //{ // last_rn++; // i = get_tr_i(last_rn); // j = get_tr_j(last_rn); // release(i,j) += get_tr_tags(last_rn); // clogf << local_start_date <<", released " // << get_tr_tags(last_rn) << " at " << i << "," << j << endl; //} } //end_if } //for (int cc = c1; cc <= c2; cc++) //End of cohort loop start_date = save_start_date; dfparam.dfreset(g, x); reverse(plike, g, _nvar); close(isp->savefile); if (_global_report_flag) resid_comp(release, release, release, 1); time_t time_sec; time(&time_sec); clock_t time2 = clock(); double elapsed_time = (double)(time2-time1)/CLOCKS_PER_SEC; clogf << "Objective function value = " << setprecision(8) << plike << "; elapsed time = " << setprecision(2) << elapsed_time << " seconds." << endl; }//End of fgcomp
3cfcc5f4d0c920b8198d3736d001dc04ae7857c5
727f6670a95ad8258b878c59929bfa938004f19b
/Dependencies/OgreOpcode/include/Opcode/Ice/IceTypes.h
1e08ee14bd2f7e9e97cfa4b354ed3c9419b0a39d
[]
no_license
zhouxh1023/Editor
b4f452a79c00a6790bebf72dc2a7ea9d0642752e
423e628696e4e3229cd5d8c734c95e957c221036
refs/heads/master
2021-01-14T14:28:40.925009
2015-01-04T04:48:28
2015-01-04T04:48:28
null
0
0
null
null
null
null
UTF-8
C++
false
false
7,730
h
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /** * Contains custom types. * \file IceTypes.h * \author Pierre Terdiman * \date April, 4, 2000 */ /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Include Guard #ifndef __ICETYPES_H__ #define __ICETYPES_H__ /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // Things to help us compile on non-windows platforms #if defined(__MACOSX__) || defined(__APPLE__) #undef bool #define bool char #undef true #define true ((bool)-1) #undef false #define false ((bool)0) #endif // mac stuff /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// #define USE_HANDLE_MANAGER // Constants #define PI 3.1415926535897932384626433832795028841971693993751f //!< PI #define HALFPI 1.57079632679489661923f //!< 0.5 * PI #define TWOPI 6.28318530717958647692f //!< 2.0 * PI #define INVPI 0.31830988618379067154f //!< 1.0 / PI #define RADTODEG 57.2957795130823208768f //!< 180.0 / PI, convert radians to degrees #define DEGTORAD 0.01745329251994329577f //!< PI / 180.0, convert degrees to radians #define EXP 2.71828182845904523536f //!< e #define INVLOG2 3.32192809488736234787f //!< 1.0 / log10(2) #define LN2 0.693147180559945f //!< ln(2) #define INVLN2 1.44269504089f //!< 1.0f / ln(2) #define INV3 0.33333333333333333333f //!< 1/3 #define INV6 0.16666666666666666666f //!< 1/6 #define INV7 0.14285714285714285714f //!< 1/7 #define INV9 0.11111111111111111111f //!< 1/9 #define INV255 0.00392156862745098039f //!< 1/255 #define SQRT2 1.41421356237f //!< sqrt(2) #define INVSQRT2 0.707106781188f //!< 1 / sqrt(2) #define SQRT3 1.73205080757f //!< sqrt(3) #define INVSQRT3 0.577350269189f //!< 1 / sqrt(3) #define null 0 //!< our own NULL pointer // Custom types used in ICE typedef signed char sbyte; //!< sizeof(sbyte) must be 1 typedef unsigned char ubyte; //!< sizeof(ubyte) must be 1 typedef signed short sword; //!< sizeof(sword) must be 2 typedef unsigned short uword; //!< sizeof(uword) must be 2 typedef signed int sdword; //!< sizeof(sdword) must be 4 typedef unsigned int udword; //!< sizeof(udword) must be 4 typedef signed __int64 sqword; //!< sizeof(sqword) must be 8 typedef unsigned __int64 uqword; //!< sizeof(uqword) must be 8 typedef float float32; //!< sizeof(float32) must be 4 typedef double float64; //!< sizeof(float64) must be 4 ICE_COMPILE_TIME_ASSERT(sizeof(bool)==1); // ...otherwise things might fail with VC++ 4.2 ! ICE_COMPILE_TIME_ASSERT(sizeof(ubyte)==1); ICE_COMPILE_TIME_ASSERT(sizeof(sbyte)==1); ICE_COMPILE_TIME_ASSERT(sizeof(sword)==2); ICE_COMPILE_TIME_ASSERT(sizeof(uword)==2); ICE_COMPILE_TIME_ASSERT(sizeof(udword)==4); ICE_COMPILE_TIME_ASSERT(sizeof(sdword)==4); ICE_COMPILE_TIME_ASSERT(sizeof(uqword)==8); ICE_COMPILE_TIME_ASSERT(sizeof(sqword)==8); //! TO BE DOCUMENTED #define DECLARE_ICE_HANDLE(name) struct name##__ { int unused; }; typedef struct name##__ *name typedef udword DynID; //!< Dynamic identifier #ifdef USE_HANDLE_MANAGER typedef udword KID; //!< Kernel ID // DECLARE_ICE_HANDLE(KID); #else typedef uword KID; //!< Kernel ID #endif typedef udword RTYPE; //!< Relationship-type (!) between owners and references #define INVALID_ID 0xffffffff //!< Invalid dword ID (counterpart of null pointers) #ifdef USE_HANDLE_MANAGER #define INVALID_KID 0xffffffff //!< Invalid Kernel ID #else #define INVALID_KID 0xffff //!< Invalid Kernel ID #endif #define INVALID_NUMBER 0xDEADBEEF //!< Standard junk value // Define BOOL if needed #ifndef BOOL typedef int BOOL; //!< Another boolean type. #endif //! Union of a float and a sdword typedef union { float f; //!< The float sdword d; //!< The integer }scell; //! Union of a float and a udword typedef union { float f; //!< The float udword d; //!< The integer }ucell; // Type ranges #define MAX_SBYTE 0x7f //!< max possible sbyte value #define MIN_SBYTE 0x80 //!< min possible sbyte value #define MAX_UBYTE 0xff //!< max possible ubyte value #define MIN_UBYTE 0x00 //!< min possible ubyte value #define MAX_SWORD 0x7fff //!< max possible sword value #define MIN_SWORD 0x8000 //!< min possible sword value #define MAX_UWORD 0xffff //!< max possible uword value #define MIN_UWORD 0x0000 //!< min possible uword value #define MAX_SDWORD 0x7fffffff //!< max possible sdword value #define MIN_SDWORD 0x80000000 //!< min possible sdword value #define MAX_UDWORD 0xffffffff //!< max possible udword value #define MIN_UDWORD 0x00000000 //!< min possible udword value #define MAX_FLOAT FLT_MAX //!< max possible float value #define MIN_FLOAT (-FLT_MAX) //!< min possible float value #define IEEE_1_0 0x3f800000 //!< integer representation of 1.0 #define IEEE_255_0 0x437f0000 //!< integer representation of 255.0 #define IEEE_MAX_FLOAT 0x7f7fffff //!< integer representation of MAX_FLOAT #define IEEE_MIN_FLOAT 0xff7fffff //!< integer representation of MIN_FLOAT #define IEEE_UNDERFLOW_LIMIT 0x1a000000 #define ONE_OVER_RAND_MAX (1.0f / float(RAND_MAX)) //!< Inverse of the max possible value returned by rand() typedef int (__stdcall* PROC)(); //!< A standard procedure call. typedef bool (*ENUMERATION)(udword value, udword param, udword context); //!< ICE standard enumeration call typedef void** VTABLE; //!< A V-Table. #undef MIN #undef MAX #define MIN(a, b) ((a) < (b) ? (a) : (b)) //!< Returns the min value between a and b #define MAX(a, b) ((a) > (b) ? (a) : (b)) //!< Returns the max value between a and b #define MAXMAX(a,b,c) ((a) > (b) ? MAX (a,c) : MAX (b,c)) //!< Returns the max value between a, b and c template<class T> inline_ const T& TMin (const T& a, const T& b) { return b < a ? b : a; } template<class T> inline_ const T& TMax (const T& a, const T& b) { return a < b ? b : a; } template<class T> inline_ void TSetMin (T& a, const T& b) { if(a>b) a = b; } template<class T> inline_ void TSetMax (T& a, const T& b) { if(a<b) a = b; } #define SQR(x) ((x)*(x)) //!< Returns x square #define CUBE(x) ((x)*(x)*(x)) //!< Returns x cube #define AND & //!< ... #define OR | //!< ... #define XOR ^ //!< ... #define QUADRAT(x) ((x)*(x)) //!< Returns x square #ifdef _WIN32 # define srand48(x) srand((unsigned int) (x)) # define srandom(x) srand((unsigned int) (x)) # define random() ((double) rand()) # define drand48() ((double) (((double) rand()) / ((double) RAND_MAX))) #endif #endif // __ICETYPES_H__
5a85c00400262bc3c90fbdcb633f6c9b97e558a2
1a0b5915bd64b83f3c94998867e04805e972690a
/TradingBook.hpp
1dd181190f44a9f1f80d3cb264df385f19d5572a
[]
no_license
patown/Fixed-Income-Trading-App
ed8b98e7ddfb3911a23fe250c4be8f693a620f95
2aeaca5f2c746ec4305fed12f1aff1a9e7523ee6
refs/heads/master
2020-07-17T14:28:45.388292
2017-02-10T22:04:44
2017-02-10T22:04:44
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,396
hpp
// // TradingBook.hpp // Midterm Submission // // Created by Satya Nedunuri on 10/24/15. // Copyright © 2015 Satya Nedunuri. All rights reserved. // #ifndef TradingBook_hpp #define TradingBook_hpp #include <stdio.h> #include "SBB_io.h" #include <vector> #include "Bond.hpp" #include "YieldCurve.hpp" class TradingBook{ public: TradingBook(SBB_instrument_fields* data, int num_bonds){ this->data = data; this->num_bonds = num_bonds; largest_long_position = std::numeric_limits<int>::min(); largest_short_position = std::numeric_limits<int>::max(); position_with_most_risk = 0.0; total_risk = 0.0; total_position = 0.0; total_LGD = 0.0; } ~TradingBook(){ } void process_bonds(YieldCurve yield_curve); void print_info_per_bond(); double market_value_change_100bp_up(); double calc_total_position(); std::vector<Bond> bond_collection; std::vector<Bond> two_yr_bucket; std::vector<Bond> five_yr_bucket; std::vector<Bond> ten_yr_bucket; std::vector<Bond> thirty_yr_bucket; int get_largest_long_position() { return largest_long_position; } int get_largest_short_position() { return largest_short_position; } double get_position_with_most_risk() { return position_with_most_risk; } double get_total_risk() { return total_risk; } double calc_30yr_hedge(YieldCurve yield_curve); double get_total_market_value() { return total_market_value * 1000; } double get_total_position() { return total_position; } double get_total_LGD() { return total_LGD; } std::vector<Bond> get_bond_collection() { return bond_collection; } void set_largest_long_position(int p) { largest_long_position = p; } void set_largest_short_position(int s) { largest_short_position = s; } void set_position_with_most_risk(double r) { position_with_most_risk = r; } void set_total_risk(double r) { total_risk = r; } private: SBB_instrument_fields *data; int num_bonds; int largest_long_position; int largest_short_position; double position_with_most_risk; double total_risk; double total_market_value; double total_position; double total_LGD; void place_in_bucket(Bond* current_bond, int remaining_term); }; #endif /* TradingBook_hpp */
73ed99549744c0a3671d06e232bbf5599fca2746
1465f11d378deae8a729e70923dae3a156a3fe96
/other-temp/0-C_Basic/2. struct.cpp
bf45a1cb9e4c6641c26a51a7a224b7a07bcce1b5
[]
no_license
1c71/_CS_Algorithm-Data-Structure
a2f6838efab17519d34ca41e82e02a848ee76c54
6d52136edd2d3116c41f76d41a0b70dbfee91b9f
refs/heads/master
2020-04-11T03:52:49.995307
2016-08-20T13:16:59
2016-08-20T13:16:59
42,096,588
0
0
null
null
null
null
UTF-8
C++
false
false
693
cpp
#include <stdio.h> #define MAXTITLE 41 #define MAXAUTHOR 33 // 结构 struct book{ char title[MAXTITLE]; char author[MAXAUTHOR]; float value; }; // 联合 union union hold{ int digit; double flo; char letter; }; enum a {aa,bb,cc,dd}; struct film{ char title[54]; int rating; struct film * next; } int main(void){ struct book libary = { "haha title", "handsome jack", 39.95 }; printf("%s\n", libary.title); union hold fit; union hold save[10]; union hold * pu; fit.digit = 23; fit.flo = 99.921233333333333333; printf("%d\n", fit.digit); printf("%f\n", fit.flo); // enum printf("%f\n", a); }
27257cda526d97012d28e939b89c8ee9abdf5343
5e98693fc42343879a62c4e86b06ccb449b8feb4
/cheat/internal_rewrite/chams.hpp
d7eb0231eb8ce5a4ad2fbbe08a55b8b2566c1de9
[]
no_license
navewindre/moneybot
6123137a0f75547edfc32186c281b7771b1c1ed0
7704114c9c9ee2500b72612b7c42012c6a04d6c2
refs/heads/master
2023-05-30T06:13:19.836743
2021-06-18T13:47:40
2021-06-18T13:47:40
378,163,122
4
4
null
null
null
null
UTF-8
C++
false
false
974
hpp
#pragma once #include "sdk.hpp" namespace features { enum ChamBufferType_t { TYPE_NORMAL, TYPE_FLAT, TYPE_SHINE }; class c_material { public: c_material( ) = default; void init( const char* mat, const char* buf ); void destroy( ); operator IMaterial*( ) { return m_mat; } public: IMaterial* m_mat; KeyValues* m_keyvalues; }; class c_materials { public: c_material m_chams{ }; c_material m_chams_flat{ }; void make_cham_buffer( char* buf, int len, int type ); //type, 0 = normal, 1 = flat, 2 = shine public: void initialize_materials( ); void destroy_materials( ); void force_material( IMaterial* material, fclr_t color ); void update_materials( ); bool m_initialized{ }; }; class c_chams { public: c_materials m_materials; void d3d_render_textures( ); void d3d_render_chams( c_base_player* ent, int type, int v_index, uint32_t min_index, uint32_t num_vert, uint32_t start_index, uint32_t prim_count ); }; }
54e0277bc18d8057184e6880ab18b9f5cfccee22
c2f82fbc5b04eb2c887e10f7e915e7867c9f70da
/assembler/exp1.cpp
1f8a08ed16da6b4d0ee3586ab6bf4bfa6b2cfce2
[]
no_license
sophistcxf/study
8edd3034e60cc98a23bba94c0d485376cbce1955
96ea9cb2c4f2417dfeb5561c050c2005d822e978
refs/heads/master
2023-08-18T10:24:20.025104
2023-08-13T12:31:39
2023-08-13T12:31:39
56,153,810
0
8
null
2023-06-14T22:19:08
2016-04-13T13:23:53
C++
UTF-8
C++
false
false
122
cpp
#include <iostream> int add(int x, int y) { return x + y; } int main() { int sum = add(10, 20); return 0; }
8fd4d26774177a05a4c1eae051aa30bb074eb3ee
011006ca59cfe75fb3dd84a50b6c0ef6427a7dc3
/codeChef/Untitled-1.cpp
783e47bd8eb59606cdc8e2ef5cdaa91b603bd2f2
[]
no_license
ay2306/Competitive-Programming
34f35367de2e8623da0006135cf21ba6aec34049
8cc9d953b09212ab32b513acf874dba4fa1d2848
refs/heads/master
2021-06-26T16:46:28.179504
2021-01-24T15:32:57
2021-01-24T15:32:57
205,185,905
5
3
null
null
null
null
UTF-8
C++
false
false
688
cpp
void add_to_current(int x){ if(arr[x] < 2)return; // printf("add %lld to current\nIts primes factors: ",arr[x]); map<int,int> f; x = arr[x]; while(x > 1){ f[pr[x]]++; x/=pr[x]; } for(auto &i: f){ // printf("(p = %d, c = %d) ",i.F,i.S); ans*=power(current[i.F]+1,MOD-2); ans%=MOD; current[i.F]+=i.S; ans*=(current[i.F]+1); ans%=MOD; } // printf("\n"); } void remove_from_current(int x){ if(arr[x] < 2)return; // printf("removing %lld from current\n",arr[x]); map<int,int> f; x = arr[x]; while(x > 1){ f[pr[x]]++; x/=pr[x]; } for(auto &i: f){ ans*=power(current[i.F]+1,MOD-2); ans%=MOD; current[i.F]+=i.S; ans*=(current[i.F]+1); ans%=MOD; } }
a9c1d906318521e3a79ba4231b1d65233a15bd07
bafe2e6b4623722e68fe3357ad62b75f8fd33d32
/Yolov5Swift/Yolov5Swift/CustomLayer/YoloV5Focus.hpp
3219e1d27be95fbf020e04aad85545ae6f188485
[]
no_license
willbetheone/ncnn-swift
6cfbe14f7bbc3ff2cb4ca400d8aa3b900d5d6e81
2bc5839798d25067426bca705a52765f978cd6f6
refs/heads/main
2023-02-28T05:28:32.216762
2021-02-10T06:57:16
2021-02-10T12:34:58
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,322
hpp
// // YoloV5Focus.hpp // Yolov5Swift // // Created by Zilin Zhu on 2021/1/30. // #ifndef YoloV5Focus_hpp #define YoloV5Focus_hpp #include <ncnn/ncnn/layer.h> class YoloV5Focus : public ncnn::Layer { public: YoloV5Focus() { one_blob_only = true; } virtual int forward(const ncnn::Mat& bottom_blob, ncnn::Mat& top_blob, const ncnn::Option& opt) const { int w = bottom_blob.w; int h = bottom_blob.h; int channels = bottom_blob.c; int outw = w / 2; int outh = h / 2; int outc = channels * 4; top_blob.create(outw, outh, outc, 4u, 1, opt.blob_allocator); if (top_blob.empty()) return -100; #pragma omp parallel for num_threads(opt.num_threads) for (int p = 0; p < outc; p++) { const float* ptr = bottom_blob.channel(p % channels).row((p / channels) % 2) + ((p / channels) / 2); float* outptr = top_blob.channel(p); for (int i = 0; i < outh; i++) { for (int j = 0; j < outw; j++) { *outptr = *ptr; outptr += 1; ptr += 2; } ptr += w; } } return 0; } }; #endif /* YoloV5Focus_hpp */
a65a918ee2da43deb6e823bff7097b98bdb3c7d2
d67f09c1411969f028caa11dba4255bf54a7d6cc
/DM4Ch-GM/udptransport.ino
3ae7e0995530cb559242c15d9e241856c66d8c6d
[]
no_license
funfox2906/Arduino-Projects
36e29400d2c0e36e5395aef917bc45f90a4fa757
07ae7e6da8dcac1dfea6d5e88ed89e7461fbd61d
refs/heads/master
2023-04-24T02:57:51.266947
2021-05-02T11:44:31
2021-05-02T11:44:31
295,798,543
0
0
null
null
null
null
UTF-8
C++
false
false
3,475
ino
// A UDP instance to let us send and receive packets over UDP void sendto_udpServer(String groupknx,int value){ char ipBuffer[255]; String message; message="group " + groupknx +" "; message += (value)?"ON":"OFF"; //message += (value)?"OFF":"ON"; //Đảo gá trị trước khi gửi message.toCharArray(ipBuffer, message.length()+1); Serial.println(message); if (isKNX) { //Udp.beginPacket(Udpserver_IP, udpPort); Udp.beginPacket(Stringtoip(udpServer), udpPort); Udp.write(ipBuffer); Udp.endPacket(); } } void send_udp(String message,IPAddress rIP,int rPort){ char ipBuffer[255]; message.toCharArray(ipBuffer, message.length()); //Serial.println(ipBuffer); Udp.beginPacket(rIP, rPort); Udp.write(ipBuffer); Udp.endPacket(); //Serial.print("Send register to Udp server : ");Serial.println(ipToString(rIP)); } void init_udp(){ //Khởi tạo Udp và lắng nghe cổng udpPort_local; Gửi string cấu hình cho server Udp.begin(udpPort_local); //Dieu khien: group 1/1/1 on(off) hoac value (03 cụm) //Dang ky : register chipID switch/blind addr1;addr2;addr3;addr4 (04 or 05 cụm) String stt="register "; stt = stt + typeDevice + ESP.getChipId(); stt += " "; stt += ipToString(WiFi.localIP()); stt = stt + " switch " + groupknx_O1 + ";"+ groupknx_O2 +";"+ groupknx_O3 + ";"+ groupknx_O4+ "; "+ groupknx_I1 + ";"+ groupknx_I2 +";"+ groupknx_I3 + ";"+ groupknx_I4+ ";"; Serial.println(stt); send_udp(stt,Stringtoip(udpServer),udpPort); } void loop_udp(){ int noBytes = Udp.parsePacket(); String received_command = ""; if (noBytes ) { Serial.print(millis() / 1000); Serial.print(":Packet of "); /*Serial.print(noBytes); Serial.print(" received from "); Serial.print(Udp.remoteIP()); Serial.print(":"); Serial.println(Udp.remotePort());*/ // We've received a packet, read the data from it Udp.read(packetBuffer,noBytes); // read the packet into the buffer // display the packet contents in HEX for (int i=1;i<=noBytes;i++) { //Serial.print(packetBuffer[i-1],HEX); received_command = received_command + char(packetBuffer[i - 1]); if (i % 32 == 0) { Serial.println(); } else Serial.print(' '); } // end for //Serial.println(); Serial.println(received_command); Serial.println(); String stt=received_command; //Xử lý lệnh Udp từ KNX //Cú pháp : a/b/c ON(OFF) String Addr=stt.substring(0, stt.indexOf(' ')); String Comm=stt.substring(stt.indexOf(' ')+1,stt.length()); int value=((Comm=="ON" or Comm=="on")?1:0); //int value=((Comm=="ON" or Comm=="on")?0:1); //Đảo gá trị khi nhận về if (Addr==groupknx_O1){ state_1 = value; digitalWrite(OUTPIN_1, !state_1); }else if (Addr==groupknx_O2){ state_2 = value; digitalWrite(OUTPIN_2, !state_2); }else if (Addr==groupknx_O3){ state_3 = value; digitalWrite(OUTPIN_3, !state_3); }else if (Addr==groupknx_O4){ state_4 = value; digitalWrite(OUTPIN_4, !state_4); } //Phan hoi lai goi Udp Udp.beginPacket(Udp.remoteIP(), Udp.remotePort()); String stans="Answer "; stans = stans + typeDevice + ESP.getChipId(); stans = stans + " " + ipToString(WiFi.localIP()) + " " + Addr + " " + value; Udp.println(stans); Udp.endPacket(); } }
da0cc508e6d7a844c5608e6c86a856ec638687b4
3e77a0b38401c34975d7640ad5d19e6701360faf
/pemfcSinglePhaseModel-4.0/run/0/fuel/p
6abfd0ea5dd300bc6d18b784bbbaa54dc45f69f6
[]
no_license
mariduake/DMFC
1d48816094d505e67e4d1925d6b019389c61d1ef
e41ea503d221dafdc92f723f1f923b2308a69785
refs/heads/main
2023-03-28T04:47:04.317118
2021-03-22T20:33:34
2021-03-22T20:33:34
346,133,122
2
0
null
null
null
null
UTF-8
C++
false
false
1,497
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 4.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volScalarField; location "0/fuel"; object p; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [1 -1 -2 0 0 0 0]; internalField uniform 101325.0; boundaryField { fuelInlet { type zeroGradient; } fuelOutlet { type fixedValue; value $internalField; } fuelSides { type zeroGradient; } agdlSides { type zeroGradient; } aclSides { type zeroGradient; } fuel_to_electrolyte //anode { type fixedGradient; gradient uniform 0; } fuel_to_abp { type zeroGradient; } } // ************************************************************************* //
68bc9e8b325713ffa27c0f3c967fd8d77eef8c81
d543bd6e66eebbef9f9f8df69f5eb1143b1b280c
/VirtualHDDManager/VirtualHDDManagerDlg.cpp
28fbb37b91869774d881f204bd4d6cb838b0ccd5
[]
no_license
byeongkeunahn/VirtualHDDManager
de9218558abcf1fc46eabc762cdf5b23790d849c
4ad4188dfc7f907930b536ac1b3781ef9ab549d5
refs/heads/master
2021-01-22T22:57:23.530769
2017-03-20T15:19:00
2017-03-20T15:19:00
85,592,679
0
0
null
null
null
null
UHC
C++
false
false
25,472
cpp
// VirtualHDDManagerDlg.cpp : 구현 파일 // #include "stdafx.h" #include "VHMCommon/VHMBase.h" #include "VHMCommon/VHMUtility.h" #include "VHMCommon/VHMApiWrapper.h" #include "VHMCommon/Stream.h" #include "VHMCommon/StreamMemFixed.h" #include "VHMCommon/StreamMemDyn.h" #include "VirtualHDDManager.h" #include "SectorViewWnd.h" #include "VirtualHDDManagerDlg.h" #include "afxdialogex.h" #include "GotoSectorDlg.h" #include "SelectItemDlg.h" #include "VHMIOWrapper.h" #include "VHMDisk.h" #include "VHMDiskFile.h" #include "VHMDiskRam.h" #include "VHMDiskVHD.h" #include "VHMDiskVHDX.h" #include "VHMDiskVMDK.h" #include "VHMDiskVDI.h" #include "VHMPartition.h" #include "VHMFilesystem.h" #include "VHMRoot.h" //#include "../VHMScript/VHMScriptBase.h" //#include "../VHMScript/VHMScriptStack.h" //#include "../VHMScript/VHMScriptEngine.h" #include "VHMScript.h" #ifdef _DEBUG #define new DEBUG_NEW #endif // 응용 프로그램 정보에 사용되는 CAboutDlg 대화 상자입니다. class CAboutDlg : public CDialog { public: CAboutDlg(); // 대화 상자 데이터입니다. enum { IDD = IDD_ABOUTBOX }; protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 지원입니다. // 구현입니다. protected: DECLARE_MESSAGE_MAP() }; CAboutDlg::CAboutDlg() : CDialog(CAboutDlg::IDD) { } void CAboutDlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); } BEGIN_MESSAGE_MAP(CAboutDlg, CDialog) END_MESSAGE_MAP() // CVirtualHDDManagerDlg 대화 상자 CVirtualHDDManagerDlg::CVirtualHDDManagerDlg(CWnd* pParent /*=nullptr*/) : CDialog(CVirtualHDDManagerDlg::IDD, pParent) { m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME); m_bMRULoaded = FALSE; m_pVHMDisk = nullptr; } CVirtualHDDManagerDlg::~CVirtualHDDManagerDlg() { CloseDisk(); MRUFinialize(); } void CVirtualHDDManagerDlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); } BEGIN_MESSAGE_MAP(CVirtualHDDManagerDlg, CDialog) ON_WM_SYSCOMMAND() ON_WM_PAINT() ON_WM_QUERYDRAGICON() ON_COMMAND(ID_VHM_NEW, &CVirtualHDDManagerDlg::OnVhmNew) ON_COMMAND(ID_VHM_OPEN, &CVirtualHDDManagerDlg::OnVhmOpen) ON_COMMAND(ID_VHM_CLOSE, &CVirtualHDDManagerDlg::OnVhmClose) ON_COMMAND_RANGE(ID_VHM_MRU_BASE, (ID_VHM_MRU_BASE + VHM_MRU_COUNT_MAX), &CVirtualHDDManagerDlg::OnVhmOpenMRU) ON_WM_KEYDOWN() ON_COMMAND(ID_GOTO_SECTOR, &CVirtualHDDManagerDlg::OnGotoSector) ON_COMMAND(ID_VHM_NEWRD, &CVirtualHDDManagerDlg::OnVhmNewrd) ON_COMMAND(ID_VBR_WRITE, &CVirtualHDDManagerDlg::OnVbrWrite) ON_COMMAND(ID_SELECT_PARTITON, &CVirtualHDDManagerDlg::OnSelectPartiton) ON_COMMAND(ID_ABOUT, &CVirtualHDDManagerDlg::OnAbout) ON_COMMAND(ID_SCRIPT_EXECUTE, &CVirtualHDDManagerDlg::OnScriptExecute) ON_COMMAND(ID_EXIT, &CVirtualHDDManagerDlg::OnExit) ON_COMMAND(ID_TEST_1, &CVirtualHDDManagerDlg::OnTest1) END_MESSAGE_MAP() // CVirtualHDDManagerDlg 메시지 처리기 BOOL CVirtualHDDManagerDlg::PreTranslateMessage(MSG* pMsg) { if (pMsg->message == WM_KEYDOWN && m_wndSectorView.GetSafeHwnd() != nullptr) { m_wndSectorView.SendMessage(pMsg->message, pMsg->wParam, pMsg->lParam); return TRUE; } return CDialog::PreTranslateMessage(pMsg); } BOOL CVirtualHDDManagerDlg::OnInitDialog() { CDialog::OnInitDialog(); // 시스템 메뉴에 "정보..." 메뉴 항목을 추가합니다. // IDM_ABOUTBOX는 시스템 명령 범위에 있어야 합니다. ASSERT((IDM_ABOUTBOX & 0xFFF0) == IDM_ABOUTBOX); ASSERT(IDM_ABOUTBOX < 0xF000); CMenu* pSysMenu = GetSystemMenu(FALSE); if (pSysMenu != nullptr) { BOOL bNameValid; CString strAboutMenu; bNameValid = strAboutMenu.LoadString(IDS_ABOUTBOX); ASSERT(bNameValid); if (!strAboutMenu.IsEmpty()) { pSysMenu->AppendMenu(MF_SEPARATOR); pSysMenu->AppendMenu(MF_STRING, IDM_ABOUTBOX, strAboutMenu); } } // 이 대화 상자의 아이콘을 설정합니다. 응용 프로그램의 주 창이 대화 상자가 아닐 경우에는 // 프레임워크가 이 작업을 자동으로 수행합니다. SetIcon(m_hIcon, TRUE); // 큰 아이콘을 설정합니다. SetIcon(m_hIcon, FALSE); // 작은 아이콘을 설정합니다. // 섹터 표시 윈도우 생성 CSize sz; m_wndSectorView.CalculateAreaSize(SECTORSIZE, &sz); m_wndSectorView.Create(nullptr, nullptr, WS_VISIBLE|WS_CHILD, CRect(CPoint(0,0), sz), this, 0x3F3F); // MRU (Most Recent Used) 목록 로드 MRUInitialize(); return TRUE; // 포커스를 컨트롤에 설정하지 않으면 TRUE를 반환합니다. } void CVirtualHDDManagerDlg::OnSysCommand(UINT nID, LPARAM lParam) { if ((nID & 0xFFF0) == IDM_ABOUTBOX) { CAboutDlg dlgAbout; dlgAbout.DoModal(); } else { CDialog::OnSysCommand(nID, lParam); } } // 대화 상자에 최소화 단추를 추가할 경우 아이콘을 그리려면 // 아래 코드가 필요합니다. 문서/뷰 모델을 사용하는 MFC 응용 프로그램의 경우에는 // 프레임워크에서 이 작업을 자동으로 수행합니다. void CVirtualHDDManagerDlg::OnPaint() { if (IsIconic()) { CPaintDC dc(this); // 그리기를 위한 디바이스 컨텍스트입니다. SendMessage(WM_ICONERASEBKGND, reinterpret_cast<WPARAM>(dc.GetSafeHdc()), 0); // 클라이언트 사각형에서 아이콘을 가운데에 맞춥니다. int cxIcon = GetSystemMetrics(SM_CXICON); int cyIcon = GetSystemMetrics(SM_CYICON); CRect rect; GetClientRect(&rect); int x = (rect.Width() - cxIcon + 1) / 2; int y = (rect.Height() - cyIcon + 1) / 2; // 아이콘을 그립니다. dc.DrawIcon(x, y, m_hIcon); } else { CDialog::OnPaint(); } } // 사용자가 최소화된 창을 끄는 동안에 커서가 표시되도록 시스템에서 // 이 함수를 호출합니다. HCURSOR CVirtualHDDManagerDlg::OnQueryDragIcon() { return static_cast<HCURSOR>(m_hIcon); } int CVirtualHDDManagerDlg::SVWCallbackProc(UINT64 uiCommand, VPARAM vparam1, VPARAM vparam2, VPARAM vuserparam) { CVirtualHDDManagerDlg *pDlg = (CVirtualHDDManagerDlg *) vuserparam; switch(uiCommand) { case SVWM_READ: { BYTE *pBuffer = (BYTE *) vparam1; SVWM_DATA_PACKET *pDataPacket = (SVWM_DATA_PACKET *) vparam2; return pDlg->Read(pDataPacket->uiStartSector, pDataPacket->uiSectorCount, pBuffer, pDataPacket->uiSectorCount * pDataPacket->uiSectorSize); } break; case SVWM_WRITE: { BYTE *pBuffer = (BYTE *) vparam1; SVWM_DATA_PACKET *pDataPacket = (SVWM_DATA_PACKET *) vparam2; return pDlg->Write(pDataPacket->uiStartSector, pDataPacket->uiSectorCount, pBuffer); } break; case SVWM_QUERY: { SVWM_QUERY_PACKET *pQueryPacket = (SVWM_QUERY_PACKET *) vparam1; pQueryPacket->uiFirstSector = 0; pQueryPacket->uiLastSector = pDlg->GetVHMDiskClass()->GetSectorCount() - 1; } break; default: return -1; // Unsupported } return 0; } int CVirtualHDDManagerDlg::CreateDisk() { if(m_pVHMDisk != nullptr) return -1; CFileDialog dlg(FALSE, _T("*.vhm"), nullptr, OFN_OVERWRITEPROMPT, _T("가상 디스크 파일|*.vhm|모든 파일|*.*|")); if(dlg.DoModal() != IDOK) return -1; AfxMessageBox(dlg.GetFileName()); /* CVHMDiskFile *pVHMDiskFile = new CVHMDiskFile; if (pVHMDiskFile->CreateDisk(dlg.GetOFN().lpstrFile, SECTORSIZE, 1024) == -1) { AfxMessageBox(_T("Fail")); delete pVHMDiskFile; return -1; } // MRU에 추가 MRUAdd(dlg.GetOFN().lpstrFile); m_pVHMDisk = pVHMDiskFile; m_wndSectorView.SetCallbackFunc(CVirtualHDDManagerDlg::SVWCallbackProc, (VPARAM) this); m_wndSectorView.SetSectorSize(SECTORSIZE); m_wndSectorView.SetOffset(0); m_qwPartitionID = INVALID_PARTITION_ID; return VHM_ERROR_SUCCESS; */ return CreateDisk(dlg.GetOFN().lpstrFile, SECTORSIZE, 1024, VIRTUAL_DISK_FORMAT_VHM); } int CVirtualHDDManagerDlg::CreateDisk(LPCTSTR lpszPath, DWORD dwSectorSize, QWORD qwSectorCount, DWORD dwDiskType, QWORD qwFlags) { int err_code; CVHMDisk *pVHMDisk; switch (dwDiskType) { case VIRTUAL_DISK_FORMAT_VHM: pVHMDisk = (CVHMDisk *) new CVHMDiskFile; err_code = ((CVHMDiskFile *)pVHMDisk)->CreateDisk(lpszPath, dwSectorSize, qwSectorCount); break; default: err_code = VHM_ERROR_UNSUPPORTED; break; } if (err_code != VHM_ERROR_SUCCESS) return err_code; m_pVHMDisk = pVHMDisk; m_wndSectorView.SetCallbackFunc(CVirtualHDDManagerDlg::SVWCallbackProc, (VPARAM) this); m_wndSectorView.SetSectorSize(SECTORSIZE); m_wndSectorView.SetOffset(0); m_qwPartitionID = INVALID_PARTITION_ID; MRUAdd(lpszPath); return VHM_ERROR_SUCCESS; } int CVirtualHDDManagerDlg::OpenDisk() { if(m_pVHMDisk != nullptr) return -1; CFileDialog dlg(TRUE, _T("*.vhm"), nullptr, 0, _T("가상 디스크 파일|*.vhm|모든 파일|*.*|")); if(dlg.DoModal() != IDOK) return -1; AfxMessageBox(dlg.GetFileName()); return OpenDisk(dlg.GetOFN().lpstrFile); /* BOOL bSuccess = FALSE; // 가상 디스크 VHD CVHMDiskVHD *pVHMDiskVHD = new CVHMDiskVHD; if (pVHMDiskVHD->OpenDisk(dlg.GetOFN().lpstrFile) == 0) { bSuccess = TRUE; AfxMessageBox(_T("Disk file recognized as VHD")); m_pVHMDisk = pVHMDiskVHD; goto final_1; } delete pVHMDiskVHD; // 가상 디스크 VHDX CVHMDiskVHDX *pVHMDiskVHDX = new CVHMDiskVHDX; if (pVHMDiskVHDX->OpenDisk(dlg.GetOFN().lpstrFile) == 0) { bSuccess = TRUE; AfxMessageBox(_T("Disk file recognized as VHDX")); m_pVHMDisk = pVHMDiskVHDX; goto final_1; } delete pVHMDiskVHDX; // 가상 디스크 VMDK CVHMDiskVMDK *pVHMDiskVMDK = new CVHMDiskVMDK; if (pVHMDiskVMDK->OpenDisk(dlg.GetOFN().lpstrFile) == 0) { bSuccess = TRUE; AfxMessageBox(_T("Disk file recognized as VDI")); m_pVHMDisk = pVHMDiskVMDK; goto final_1; } delete pVHMDiskVMDK; // 가상 디스크 VDI CVHMDiskVDI *pVHMDiskVDI = new CVHMDiskVDI; if (pVHMDiskVDI->OpenDisk(dlg.GetOFN().lpstrFile) == 0) { bSuccess = TRUE; AfxMessageBox(_T("Disk file recognized as VDI")); m_pVHMDisk = pVHMDiskVDI; goto final_1; } delete pVHMDiskVDI; // 가상 디스크 VHM CVHMDiskFile *pVHMDiskFile = new CVHMDiskFile; if(pVHMDiskFile->OpenDisk(dlg.GetOFN().lpstrFile) == 0) { bSuccess = TRUE; AfxMessageBox(_T("Disk file recognized as VHM")); m_pVHMDisk = pVHMDiskFile; goto final_1; } // 가상 디스크 (raw) if(pVHMDiskFile->OpenDiskRaw(dlg.GetOFN().lpstrFile) == 0) { bSuccess = TRUE; AfxMessageBox(_T("Disk file recognized as RAW format")); m_pVHMDisk = pVHMDiskFile; goto final_1; } delete pVHMDiskFile; final_1: if(!bSuccess) return FALSE; // MRU에 추가 MRUAdd(dlg.GetOFN().lpstrFile); m_wndSectorView.SetCallbackFunc(CVirtualHDDManagerDlg::SVWCallbackProc, (VPARAM) this); m_wndSectorView.SetSectorSize(m_pVHMDisk->GetSectorSize()); m_wndSectorView.SetOffset(0); m_qwPartitionID = INVALID_PARTITION_ID; return 0; */ } int CVirtualHDDManagerDlg::OpenDisk(LPCTSTR lpszPath, BOOL bMRU) { BOOL bSuccess = FALSE; int err_code; err_code = VHM_ERROR_GENERIC; if (CheckFileExistence(lpszPath) == FALSE) { if (bMRU) { if (AfxMessageBox(_T("Can't open file\r\nDo you want to remove this file from MRU list?"), MB_ICONEXCLAMATION|MB_YESNO) == IDYES) MRUDelete(MRUCheckExistence(lpszPath)); } else AfxMessageBox(_T("Can't open file")); goto final_1; } // 가상 디스크 VHD CVHMDiskVHD *pVHMDiskVHD = new CVHMDiskVHD; if (pVHMDiskVHD->OpenDisk(lpszPath) == 0) { bSuccess = TRUE; AfxMessageBox(_T("Disk file recognized as VHD")); m_pVHMDisk = pVHMDiskVHD; goto final_1; } delete pVHMDiskVHD; // 가상 디스크 VHDX CVHMDiskVHDX *pVHMDiskVHDX = new CVHMDiskVHDX; if (pVHMDiskVHDX->OpenDisk(lpszPath) == 0) { bSuccess = TRUE; AfxMessageBox(_T("Disk file recognized as VHDX")); m_pVHMDisk = pVHMDiskVHDX; goto final_1; } delete pVHMDiskVHDX; // 가상 디스크 VMDK CVHMDiskVMDK *pVHMDiskVMDK = new CVHMDiskVMDK; if (pVHMDiskVMDK->OpenDisk(lpszPath) == 0) { bSuccess = TRUE; AfxMessageBox(_T("Disk file recognized as VDI")); m_pVHMDisk = pVHMDiskVMDK; goto final_1; } delete pVHMDiskVMDK; // 가상 디스크 VDI CVHMDiskVDI *pVHMDiskVDI = new CVHMDiskVDI; if (pVHMDiskVDI->OpenDisk(lpszPath) == 0) { bSuccess = TRUE; AfxMessageBox(_T("Disk file recognized as VDI")); m_pVHMDisk = pVHMDiskVDI; goto final_1; } delete pVHMDiskVDI; // 가상 디스크 VHM CVHMDiskFile *pVHMDiskFile = new CVHMDiskFile; if (pVHMDiskFile->OpenDisk(lpszPath) == 0) { bSuccess = TRUE; AfxMessageBox(_T("Disk file recognized as VHM")); m_pVHMDisk = pVHMDiskFile; goto final_1; } // 가상 디스크 (raw) if (pVHMDiskFile->OpenDiskRaw(lpszPath) == 0) { bSuccess = TRUE; AfxMessageBox(_T("Disk file recognized as RAW format")); m_pVHMDisk = pVHMDiskFile; goto final_1; } delete pVHMDiskFile; final_1: if (!bSuccess) return VHM_ERROR_GENERIC; // MRU에 추가 MRUAdd(lpszPath); m_wndSectorView.SetCallbackFunc(CVirtualHDDManagerDlg::SVWCallbackProc, (VPARAM) this); m_wndSectorView.SetSectorSize(m_pVHMDisk->GetSectorSize()); m_wndSectorView.SetOffset(0); m_qwPartitionID = INVALID_PARTITION_ID; return VHM_ERROR_SUCCESS; } int CVirtualHDDManagerDlg::Read(UINT64 nStartSector, UINT64 nSectorCount, BYTE *pBuffer, UINT64 nBufferSize) { if(!m_pVHMDisk) return -1; return m_pVHMDisk->ReadSector(nStartSector, nSectorCount, pBuffer, nBufferSize); } int CVirtualHDDManagerDlg::Write(UINT64 nStartSector, UINT64 nSectorCount, BYTE *pBuffer) { if(!m_pVHMDisk) return -1; return m_pVHMDisk->WriteSector(nStartSector, nSectorCount, pBuffer); } CVHMDisk *CVirtualHDDManagerDlg::GetVHMDiskClass() { return m_pVHMDisk; } int CVirtualHDDManagerDlg::CloseDisk() { if(!m_pVHMDisk) return 0; m_pVHMDisk->CloseDisk(); delete m_pVHMDisk; m_pVHMDisk = nullptr; m_wndSectorView.NotifyDiskClosed(); return 0; } void CVirtualHDDManagerDlg::MRUInitialize() { UINT uiMRUCount; UINT i; // MRU 항목 개수 로드 uiMRUCount = VHMRegReadInt(HKCU, _T("Software\\AhnOS\\VirtualHDDManager\\MRU"), _T("Count"), VHM_MRU_NONE); if (uiMRUCount == VHM_MRU_NONE) uiMRUCount = 10; else if (uiMRUCount > VHM_MRU_COUNT_MAX) uiMRUCount = VHM_MRU_COUNT_MAX; VHMRegWriteInt(HKCU, _T("Software\\AhnOS\\VirtualHDDManager\\MRU"), _T("Count"), uiMRUCount); m_uiMRUCount = uiMRUCount; // MRU 항목 메모리 할당 m_pstrMRU = new CString[m_uiMRUCount]; for (i = 0; i < m_uiMRUCount; ++i) m_pstrMRU[i].Empty(); // MRU 항목 로드 MRULoad(); // MRU를 메뉴에 업데이트 MRUUpdateMenu(); } void CVirtualHDDManagerDlg::MRUFinialize() { if (!m_bMRULoaded) return; MRUFlush(); delete[] m_pstrMRU; m_bMRULoaded = FALSE; } void CVirtualHDDManagerDlg::MRULoad() { CString strItem; BYTE *pbMRU; TCHAR *pszMRU; DWORD cbData; UINT uiMRUEntryCount; UINT i; uiMRUEntryCount = 0; for (i = 0; i < m_uiMRUCount; ++i) { strItem.Format(_T("MRU%02d"), i); VHMRegReadStringGetSize(HKCU, _T("Software\\AhnOS\\VirtualHDDManager\\MRU"), strItem.GetBuffer(), &cbData); if (!cbData) continue; pbMRU = new BYTE[cbData]; pszMRU = (TCHAR *)pbMRU; if (VHMRegReadString(HKCU, _T("Software\\AhnOS\\VirtualHDDManager\\MRU"), strItem.GetBuffer(), _T(""), pszMRU, cbData) != TRUE || pszMRU[0] == _T('\0')) { delete[] pbMRU; continue; } m_pstrMRU[uiMRUEntryCount] = pszMRU; delete[] pbMRU; TRACE(_T("MRU: Key: %s, Path: %s\n"), strItem, m_pstrMRU[uiMRUEntryCount]); ++uiMRUEntryCount; } m_uiMRUEntryCount = uiMRUEntryCount; m_bMRULoaded = TRUE; // MRU 중복 제거 MRUDeduplicate(); } void CVirtualHDDManagerDlg::MRUDeduplicate() { if (!m_bMRULoaded) return; if (m_uiMRUEntryCount <= 1) return; UINT i; UINT uiIndex; for (i = 0; i < m_uiMRUEntryCount - 1; ++i) { for (;;) { uiIndex = MRUCheckExistence(m_pstrMRU[i], i + 1); if (uiIndex == VHM_MRU_NONE) break; MRUDelete(uiIndex); } } } void CVirtualHDDManagerDlg::MRUFlush() { if (!m_bMRULoaded) return; CString strItem; UINT uiIndex; UINT i; // 기존 값 삭제 RegDeleteKeyValue(HKCU, _T("Software\\AhnOS\\VirtualHDDManager\\MRU"), _T("Count")); for (i = 0; i < m_uiMRUCount; ++i) { strItem.Format(_T("MRU%02d"), i); RegDeleteKeyValue(HKCU, _T("Software\\AhnOS\\VirtualHDDManager\\MRU"), strItem); } // 새 값 쓰기 VHMRegWriteInt(HKCU, _T("Software\\AhnOS\\VirtualHDDManager\\MRU"), _T("Count"), m_uiMRUCount); uiIndex = 0; for (i = 0; i < m_uiMRUCount; ++i) { if (!m_pstrMRU[i].IsEmpty()) { strItem.Format(_T("MRU%02d"), uiIndex); VHMRegWriteString(HKCU, _T("Software\\AhnOS\\VirtualHDDManager\\MRU"), strItem, m_pstrMRU[uiIndex].GetBuffer()); ++uiIndex; } } } void CVirtualHDDManagerDlg::MRUSetMaxItemCount(UINT ccMax) { if (!m_bMRULoaded) return; } void CVirtualHDDManagerDlg::MRUAdd(LPCTSTR lpszString) { if (!m_bMRULoaded) return; CString strAdd; UINT uiMRUEntryCountNew; UINT i; strAdd.Format(_T("%s"), lpszString); // 이미 항목이 존재하는가? i = MRUCheckExistence(lpszString); if (i != -1) MRUDelete(i); uiMRUEntryCountNew = min(m_uiMRUEntryCount + 1, m_uiMRUCount); for (i = uiMRUEntryCountNew - 1; i > 0; --i) m_pstrMRU[i].Format(_T("%s"), m_pstrMRU[i - 1]); m_pstrMRU[0].Format(_T("%s"), strAdd); m_uiMRUEntryCount = uiMRUEntryCountNew; // 메뉴 업데이트 MRUUpdateMenu(); } void CVirtualHDDManagerDlg::MRUDelete(UINT uiIndex) { if (!m_bMRULoaded) return; if (!m_uiMRUEntryCount || uiIndex >= m_uiMRUEntryCount) return; UINT i; // 이전 항목들을 하나씩 당겨옴 for (i = uiIndex; i < m_uiMRUEntryCount - 1; ++i) m_pstrMRU[i].Format(_T("%s"), m_pstrMRU[i + 1]); // 마지막 중복을 제거 m_pstrMRU[m_uiMRUEntryCount - 1].Empty(); // MRU 엔트리 수 업데이트 --m_uiMRUEntryCount; // 메뉴 업데이트 MRUUpdateMenu(); } UINT CVirtualHDDManagerDlg::MRUCheckExistence(LPCTSTR lpszString, UINT uiIndexToStart) { if (!m_bMRULoaded) return FALSE; if (uiIndexToStart >= m_uiMRUEntryCount) return VHM_MRU_NONE; UINT i; for (i = uiIndexToStart; i < m_uiMRUEntryCount; ++i) { // 항목이 존재하면 index 리턴 if (m_pstrMRU[i] == lpszString) return i; } return VHM_MRU_NONE; } BOOL CVirtualHDDManagerDlg::MRUIsFull() { if (!m_bMRULoaded) return FALSE; return (m_uiMRUCount == m_uiMRUEntryCount); } void CVirtualHDDManagerDlg::MRUUpdateMenu() { if (!m_bMRULoaded || !GetSafeHwnd()) return; CMenu *pMenuTemp; CMenu *pSubMenu; UINT uiCount; UINT i; // 메뉴 핸들 얻기 pMenuTemp = GetMenu(); if (!pMenuTemp) return; pMenuTemp = pMenuTemp->GetSubMenu(0); if (!pMenuTemp) return; pSubMenu = pMenuTemp->GetSubMenu(5); if (!pSubMenu) return; // 기존 항목 제거 uiCount = pSubMenu->GetMenuItemCount(); for (i = 0; i < uiCount; ++i) pSubMenu->DeleteMenu(0, MF_BYPOSITION); // MRU 항목 추가 if (!m_uiMRUEntryCount) { pSubMenu->AppendMenu(MF_STRING | MF_GRAYED, ID_VHM_MRU_BASE, _T("(None)")); } else { for (i = 0; i < m_uiMRUEntryCount; ++i) pSubMenu->AppendMenu(MF_STRING, ID_VHM_MRU_BASE + i, m_pstrMRU[i]); } } void CVirtualHDDManagerDlg::OnVhmNew() { if(!m_pVHMDisk) CreateDisk(); } void CVirtualHDDManagerDlg::OnVhmNewrd() { if (m_pVHMDisk) return; CVHMDiskRam *pVHMDiskRam = new CVHMDiskRam; if (pVHMDiskRam->CreateDisk(SECTORSIZE, 1048576) == -1) { AfxMessageBox(_T("Fail")); delete pVHMDiskRam; return; } m_pVHMDisk = pVHMDiskRam; m_wndSectorView.SetCallbackFunc(CVirtualHDDManagerDlg::SVWCallbackProc, (VPARAM) this); m_wndSectorView.SetSectorSize(SECTORSIZE); m_wndSectorView.SetOffset(0); } void CVirtualHDDManagerDlg::OnVhmOpen() { if (m_pVHMDisk) return; OpenDisk(); } void CVirtualHDDManagerDlg::OnVhmClose() { if (m_pVHMDisk) CloseDisk(); } void CVirtualHDDManagerDlg::OnExit() { OnOK(); } void CVirtualHDDManagerDlg::OnVhmOpenMRU(UINT nID) { if (m_pVHMDisk) return; if (!m_bMRULoaded) return; UINT uiIndex; uiIndex = nID - ID_VHM_MRU_BASE; if (uiIndex >= m_uiMRUEntryCount) return; OpenDisk(m_pstrMRU[uiIndex], TRUE); } void CVirtualHDDManagerDlg::OnGotoSector() { if (!m_pVHMDisk) return; CGotoSectorDlg dlg; dlg.SetMinRange(0); dlg.SetMaxRange(m_pVHMDisk->GetSectorCount()-1); dlg.SetValue(m_wndSectorView.GetOffset()); if (dlg.DoModal() == IDOK) { m_wndSectorView.SetOffset(dlg.GetValue()); } } void CVirtualHDDManagerDlg::OnSelectPartiton() { if (!m_pVHMDisk) return; CSelectItemDlg dlg; CString str; CVHMPartition *pVHMPartition; QWORD qwHandle; QWORD qwPartitionID; UINT i; LPARAM lParam; PARTITION_DESCRIPTOR pd; LPCTSTR ppszTypeString[3] = { _T("Volume Label"), _T("Starting LBA"), _T("Sector Count") }; pVHMPartition = m_pVHMDisk->GetVHMPartition(); if (!pVHMPartition) return; WCHAR pwszBuff[40]; dlg.InitDataStorage(3); dlg.SetTypeString(0, ppszTypeString[0]); dlg.SetTypeString(1, ppszTypeString[1]); dlg.SetTypeString(2, ppszTypeString[2]); qwPartitionID = m_pVHMDisk->GetFirstPartitionID(); for (i = 0; i < m_pVHMDisk->GetPartitionCount(); qwPartitionID = m_pVHMDisk->GetNextPartitionID(qwPartitionID), ++i) { if (pVHMPartition->GetPartitionDescriptor(qwPartitionID, &pd) != VHM_ERROR_SUCCESS) continue; // 핸들 생성 qwHandle = dlg.CreateData(); // 파티션 ID 설정 dlg.SetUserParam(qwHandle, qwPartitionID); // 볼륨 레이블 설정 if (pd.pVHMFilesystem) { pd.pVHMFilesystem->GetVolumeLabel(pwszBuff, 40); dlg.SetDataBuffer(qwHandle, 0, pwszBuff); } else dlg.SetDataBuffer(qwHandle, 0, _T("(Unrecognized)")); // 시작 LBA 설정 str.Format(_T("%lld"), pd.StartLBA); dlg.SetDataBuffer(qwHandle, 1, str); // 섹터 수 설정 str.Format(_T("%lld"), pd.SectorCountLBA); dlg.SetDataBuffer(qwHandle, 2, str); } if (dlg.DoModal() != IDOK) return; lParam = dlg.GetSelectedUserParam(); if (lParam == SID_INVALID_LPARAM) qwPartitionID = INVALID_PARTITION_ID; else qwPartitionID = (QWORD)lParam; m_qwPartitionID = qwPartitionID; } void CVirtualHDDManagerDlg::OnVbrWrite() { if (!m_pVHMDisk) return; if (m_qwPartitionID == INVALID_PARTITION_ID) return; CFile fileVbr; BYTE *pVbr; DWORD dwSectorSize; CVHMPartition *pVHMPartition; CVHMFilesystem *pVHMFilesystem; int err_code; // 파티션에 파일시스템이 로드되었는지 확인 pVHMPartition = m_pVHMDisk->GetVHMPartition(); if (!pVHMPartition) return; pVHMFilesystem = pVHMPartition->GetVHMFilesystem(m_qwPartitionID); if (!pVHMFilesystem) return; pVbr = nullptr; // 파일 선택 CFileDialog dlg(TRUE, _T("*.*"), nullptr, 0, _T("VBR(Volume Boot Record) File|*.*|")); if (dlg.DoModal() != IDOK) return; // 파일 열기 if (fileVbr.Open(dlg.GetOFN().lpstrFile, CFile::modeRead | CFile::shareDenyWrite) == FALSE) { AfxMessageBox(_T("Failed to open file.")); return; } dwSectorSize = m_pVHMDisk->GetSectorSize(); // 파일 검사 if (fileVbr.GetLength() < dwSectorSize) { AfxMessageBox(_T("File is too small.")); goto cleanup; } // VBR 읽기 pVbr = new BYTE[dwSectorSize]; fileVbr.Read(pVbr, dwSectorSize); // 파일시스템을 통해 VBR 쓰기 err_code = pVHMFilesystem->WriteBootCode(pVbr); if (err_code != VHM_ERROR_SUCCESS) { AfxMessageBox(VHMErrorCodeToMessage(err_code)); } goto cleanup; cleanup: // 정리 if (pVbr) delete[] pVbr; fileVbr.Close(); } void CVirtualHDDManagerDlg::OnScriptExecute() { CVHMRoot vhmRoot; // 파일 선택 CFileDialog dlg(TRUE, _T("*.*"), nullptr, 0, _T("VHMScript File|*.vhmscript|All Files|*.*|"), this); if (dlg.DoModal() != IDOK) return; //CVHMScriptEngine vhmScriptEngine; //vhmScriptEngine.Create(); //vhmScriptEngine.RunScript(dlg.GetOFN().lpstrFile); //vhmScriptEngine.Destroy(); CVHMScript vhmScript; vhmScript.ExecuteScript(dlg.GetOFN().lpstrFile); } void CVirtualHDDManagerDlg::OnTest1() { #if 0 /* CStream 계열 Class Test */ const vhmsize_t stream_sz = 1024 * 1024 * 8; CStreamMemFixed smf; CStreamMemDyn smd; BYTE *test = (BYTE *)malloc(stream_sz); BYTE *smf_1 = (BYTE *)malloc(stream_sz); BYTE *smd_1 = (BYTE *)malloc(stream_sz); for (vhmsize_t i = 0; i < stream_sz; ++i) //test[i] = (BYTE)rand(); test[i] = i * 16; smf.Create(stream_sz); smf.Write(test, stream_sz); smf.Seek(0, SSEEK_BEGIN); smf.Read(smf_1, stream_sz); smd.Create(stream_sz); for (vhmsize_t i = 0; i < stream_sz; i += STREAM_MEM_DYN_DEF_GRANULARITY) smd.Write(test + i, STREAM_MEM_DYN_DEF_GRANULARITY); smd.Seek(0, SSEEK_BEGIN); smd.Read(smd_1, stream_sz); for (vhmsize_t i = 0; i < stream_sz; ++i) { if (test[i] != smf_1[i]) TRACE(_T("Error: smf: %d doesn't match\r\n"), i); } for (vhmsize_t i = 0; i < stream_sz; ++i) { if (test[i] != smd_1[i]) TRACE(_T("Error: smd: %d doesn't match\r\n"), i); } free(test); free(smf_1); free(smd_1); #endif #if 0 /* Stack Test */ const vhmsize_t multiple_sz = 1024*1024; const vhmsize_t push_sz = 5; const vhmsize_t con_sz = push_sz * multiple_sz; CVHMScriptStack stack; stack.Create(con_sz); BYTE *test = (BYTE *)malloc(con_sz); BYTE *popped = (BYTE *)malloc(con_sz); srand(time(NULL)); for (vhmsize_t i = 0; i < con_sz; ++i) test[i] = (BYTE)rand(); for (vhmsize_t i = 0; i < con_sz; i += push_sz) stack.push(test + i, push_sz); for (vhmsize_t i = 0; i < con_sz; i += push_sz) stack.pop(popped + (con_sz - i - push_sz), push_sz); for (vhmsize_t i = 0; i < con_sz; ++i) { if (test[i] != popped[i]) TRACE(_T("Error: %d doesn't match\r\n"), i); } free(test); free(popped); #endif } void CVirtualHDDManagerDlg::OnAbout() { CAboutDlg dlg; dlg.DoModal(); }
de4d46846ccf1df60ce5a9ebd9d23cbf82965f1f
7b095c258340c02139d9a9b55d95bde6c90a40b0
/Chapter 2/2_2.cpp
3cfd17281987a23ae75b3db290a210044e884e33
[]
no_license
PhoenixDD/Cracking-the-Coding-Interview-6th-Ed
3a5b6eb85b82331cb19a853b338af884cdb87ae3
c58273feeb4de1145306c3839e0930107a599ccf
refs/heads/master
2021-01-19T06:18:39.443174
2017-08-17T19:01:58
2017-08-17T19:01:58
100,635,161
0
0
null
null
null
null
UTF-8
C++
false
false
851
cpp
#include<iostream> #include<cstdlib> #include<ctime> #include<unordered_set> using namespace std; struct Node { int data; Node* Next; Node* Prev; Node(int a,Node* pr=NULL,Node* nxt=NULL) { data=a; Next=nxt; Prev=pr; } }; Node* kth(Node *head,int k) { Node *temp=head,*kth=head; int counter=0; while(temp) { if(counter>k) kth=kth->Next; counter++; temp=temp->Next; } cout<<endl<<kth->data; } int main() { Node *head=new Node(50); int i=30; Node *temp; temp=head; srand((int)time(0)); while(--i) { temp->Next=new Node(rand()%50,temp); temp=temp->Next; } temp=head; cout<<"Data :\t"; while(temp) { cout<<temp->data<<","; temp=temp->Next; } kth(head,10); }
40715499d1ec48b03c97c55c8f0abe43f6a64814
f51315e45f5fff4e5d2545e0e14b6b16583b53d6
/dataaccess/DataAccess.cpp
fa5d0dc4a92dc42f4c8dcbdaea38466b5fc35fd7
[]
no_license
jzpmoon/mxdx
01d7d2e445af4528d698b76ab97fa8d50b866dde
da28331a42cc2f60965d5b5bd282bf879dcf0ac8
refs/heads/master
2021-01-17T18:35:20.155645
2016-11-05T08:20:14
2016-11-05T08:20:14
71,554,335
0
0
null
null
null
null
UTF-8
C++
false
false
205
cpp
#include "DataAccess.h" void DataAccess::queryCln(CList<MxdxData*,MxdxData*>* list) { POSITION pos=list->GetHeadPosition(); while(pos!=NULL) { MxdxData* _data=list->GetNext(pos); delete _data; } }
c01f288e8bf3622b4aaed4c293b53e52d6779a5a
ae8d19fda14bd1ab8890937ff568d301efc60e33
/spiral3d/Classes/Native/Il2CppCompilerCalculateTypeValues_16Table.cpp
6eca75d250c373e432c8cd6fd70c7c29f7fe2a93
[]
no_license
timlenardo/spiral
3abe532629ae64154c867a43d5fad313e21d9254
b21cd845d87e849bde3b7f04b55a93fcea71d55d
refs/heads/master
2020-03-09T08:19:54.052282
2018-04-08T22:21:11
2018-04-08T22:21:11
128,686,688
0
0
null
null
null
null
UTF-8
C++
false
false
340,679
cpp
#include "il2cpp-config.h" #ifndef _MSC_VER # include <alloca.h> #else # include <malloc.h> #endif #include <cstring> #include <string.h> #include <stdio.h> #include <cmath> #include <limits> #include <assert.h> #include <stdint.h> #include "il2cpp-class-internals.h" #include "codegen/il2cpp-codegen.h" #include "il2cpp-object-internals.h" // System.Action`1<System.Boolean> struct Action_1_t269755560; // System.Action`2<System.Boolean,System.String> struct Action_2_t1290832230; // UnityEngine.SocialPlatforms.Impl.AchievementDescription[] struct AchievementDescriptionU5BU5D_t1886727686; // UnityEngine.SocialPlatforms.Impl.UserProfile[] struct UserProfileU5BU5D_t1895532524; // UnityEngine.SocialPlatforms.Impl.LocalUser struct LocalUser_t365094499; // System.Collections.Generic.List`1<UnityEngine.SocialPlatforms.GameCenter.GcLeaderboard> struct List_1_t1309380474; // System.String struct String_t; // UnityEngine.Texture2D struct Texture2D_t3840446185; // System.IntPtr[] struct IntPtrU5BU5D_t4013366056; // System.Collections.IDictionary struct IDictionary_t1363984059; // UnityEngine.Texture struct Texture_t3661962703; // System.Collections.Generic.List`1<UnityEngine.Rigidbody2D> struct List_1_t2411569343; // UnityEngine.GUILayoutGroup struct GUILayoutGroup_t2157789695; // UnityEngineInternal.GenericStack struct GenericStack_t1310059385; // System.Char[] struct CharU5BU5D_t3528271667; // System.Void struct Void_t1185182177; // UnityEngine.CharacterController struct CharacterController_t1138636865; // UnityEngine.Collider struct Collider_t1773347010; // UnityEngine.ContactPoint2D[] struct ContactPoint2DU5BU5D_t96683501; // UnityEngine.Collider2D struct Collider2D_t2806799626; // System.Reflection.MethodInfo struct MethodInfo_t; // System.DelegateData struct DelegateData_t1677132599; // System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.GUILayoutUtility/LayoutCache> struct Dictionary_2_t3261990503; // UnityEngine.GUILayoutUtility/LayoutCache struct LayoutCache_t78309876; // UnityEngine.GUIStyle struct GUIStyle_t3956901511; // System.Collections.Generic.Dictionary`2<System.String,System.Int32> struct Dictionary_2_t2736202052; // UnityEngine.SocialPlatforms.Impl.Leaderboard struct Leaderboard_t1065076763; // System.Action struct Action_t1264377477; // System.Func`3<System.Int32,System.IntPtr,System.Boolean> struct Func_3_t4119323734; // System.Func`2<System.Exception,System.Boolean> struct Func_2_t3450341358; // UnityEngine.SocialPlatforms.IScore struct IScore_t2559910621; // UnityEngine.SocialPlatforms.IScore[] struct IScoreU5BU5D_t527871248; // System.String[] struct StringU5BU5D_t1281789340; // UnityEngine.TouchScreenKeyboard struct TouchScreenKeyboard_t731888065; // UnityEngine.GUIContent struct GUIContent_t3050628031; // System.Int32[] struct Int32U5BU5D_t385246372; // UnityEngine.GUIStyleState struct GUIStyleState_t1397964415; // UnityEngine.RectOffset struct RectOffset_t1369453676; // UnityEngine.Font struct Font_t1956802104; // UnityEngine.Object struct Object_t631007953; // UnityEngine.AnimationState struct AnimationState_t1108360407; // System.Collections.Generic.List`1<UnityEngine.GUILayoutEntry> struct List_1_t391719016; // System.IAsyncResult struct IAsyncResult_t767004451; // System.AsyncCallback struct AsyncCallback_t3962456242; // UnityEngine.GUIStyle[] struct GUIStyleU5BU5D_t2383250302; // UnityEngine.GUISettings struct GUISettings_t1774757634; // System.Collections.Generic.Dictionary`2<System.String,UnityEngine.GUIStyle> struct Dictionary_2_t3742157810; // UnityEngine.GUISkin/SkinChangedDelegate struct SkinChangedDelegate_t1143955295; // UnityEngine.GUISkin struct GUISkin_t1244372282; // UnityEngine.SocialPlatforms.IUserProfile[] struct IUserProfileU5BU5D_t909679733; struct ContactPoint2D_t3390240644 ; struct GUIStyle_t3956901511_marshaled_pinvoke; struct GUIStyle_t3956901511_marshaled_com; struct GUIStyleState_t1397964415_marshaled_pinvoke; struct GUIStyleState_t1397964415_marshaled_com; struct RectOffset_t1369453676_marshaled_com; struct Object_t631007953_marshaled_com; #ifndef U3CMODULEU3E_T692745535_H #define U3CMODULEU3E_T692745535_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // <Module> struct U3CModuleU3E_t692745535 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // U3CMODULEU3E_T692745535_H #ifndef U3CMODULEU3E_T692745537_H #define U3CMODULEU3E_T692745537_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // <Module> struct U3CModuleU3E_t692745537 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // U3CMODULEU3E_T692745537_H #ifndef U3CMODULEU3E_T692745540_H #define U3CMODULEU3E_T692745540_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // <Module> struct U3CModuleU3E_t692745540 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // U3CMODULEU3E_T692745540_H #ifndef U3CMODULEU3E_T692745539_H #define U3CMODULEU3E_T692745539_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // <Module> struct U3CModuleU3E_t692745539 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // U3CMODULEU3E_T692745539_H #ifndef U3CMODULEU3E_T692745538_H #define U3CMODULEU3E_T692745538_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // <Module> struct U3CModuleU3E_t692745538 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // U3CMODULEU3E_T692745538_H #ifndef U3CMODULEU3E_T692745541_H #define U3CMODULEU3E_T692745541_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // <Module> struct U3CModuleU3E_t692745541 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // U3CMODULEU3E_T692745541_H #ifndef RUNTIMEOBJECT_H #define RUNTIMEOBJECT_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Object #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // RUNTIMEOBJECT_H #ifndef U3CMODULEU3E_T692745536_H #define U3CMODULEU3E_T692745536_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // <Module> struct U3CModuleU3E_t692745536 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // U3CMODULEU3E_T692745536_H #ifndef U3CUNITYENGINE_SOCIALPLATFORMS_ISOCIALPLATFORM_AUTHENTICATEU3EC__ANONSTOREY0_T1940008395_H #define U3CUNITYENGINE_SOCIALPLATFORMS_ISOCIALPLATFORM_AUTHENTICATEU3EC__ANONSTOREY0_T1940008395_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.SocialPlatforms.GameCenter.GameCenterPlatform/<UnityEngine_SocialPlatforms_ISocialPlatform_Authenticate>c__AnonStorey0 struct U3CUnityEngine_SocialPlatforms_ISocialPlatform_AuthenticateU3Ec__AnonStorey0_t1940008395 : public RuntimeObject { public: // System.Action`1<System.Boolean> UnityEngine.SocialPlatforms.GameCenter.GameCenterPlatform/<UnityEngine_SocialPlatforms_ISocialPlatform_Authenticate>c__AnonStorey0::callback Action_1_t269755560 * ___callback_0; public: inline static int32_t get_offset_of_callback_0() { return static_cast<int32_t>(offsetof(U3CUnityEngine_SocialPlatforms_ISocialPlatform_AuthenticateU3Ec__AnonStorey0_t1940008395, ___callback_0)); } inline Action_1_t269755560 * get_callback_0() const { return ___callback_0; } inline Action_1_t269755560 ** get_address_of_callback_0() { return &___callback_0; } inline void set_callback_0(Action_1_t269755560 * value) { ___callback_0 = value; Il2CppCodeGenWriteBarrier((&___callback_0), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // U3CUNITYENGINE_SOCIALPLATFORMS_ISOCIALPLATFORM_AUTHENTICATEU3EC__ANONSTOREY0_T1940008395_H #ifndef GAMECENTERPLATFORM_T2679391364_H #define GAMECENTERPLATFORM_T2679391364_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.SocialPlatforms.GameCenter.GameCenterPlatform struct GameCenterPlatform_t2679391364 : public RuntimeObject { public: public: }; struct GameCenterPlatform_t2679391364_StaticFields { public: // System.Action`2<System.Boolean,System.String> UnityEngine.SocialPlatforms.GameCenter.GameCenterPlatform::s_AuthenticateCallback Action_2_t1290832230 * ___s_AuthenticateCallback_0; // UnityEngine.SocialPlatforms.Impl.AchievementDescription[] UnityEngine.SocialPlatforms.GameCenter.GameCenterPlatform::s_adCache AchievementDescriptionU5BU5D_t1886727686* ___s_adCache_1; // UnityEngine.SocialPlatforms.Impl.UserProfile[] UnityEngine.SocialPlatforms.GameCenter.GameCenterPlatform::s_friends UserProfileU5BU5D_t1895532524* ___s_friends_2; // UnityEngine.SocialPlatforms.Impl.UserProfile[] UnityEngine.SocialPlatforms.GameCenter.GameCenterPlatform::s_users UserProfileU5BU5D_t1895532524* ___s_users_3; // System.Action`1<System.Boolean> UnityEngine.SocialPlatforms.GameCenter.GameCenterPlatform::s_ResetAchievements Action_1_t269755560 * ___s_ResetAchievements_4; // UnityEngine.SocialPlatforms.Impl.LocalUser UnityEngine.SocialPlatforms.GameCenter.GameCenterPlatform::m_LocalUser LocalUser_t365094499 * ___m_LocalUser_5; // System.Collections.Generic.List`1<UnityEngine.SocialPlatforms.GameCenter.GcLeaderboard> UnityEngine.SocialPlatforms.GameCenter.GameCenterPlatform::m_GcBoards List_1_t1309380474 * ___m_GcBoards_6; public: inline static int32_t get_offset_of_s_AuthenticateCallback_0() { return static_cast<int32_t>(offsetof(GameCenterPlatform_t2679391364_StaticFields, ___s_AuthenticateCallback_0)); } inline Action_2_t1290832230 * get_s_AuthenticateCallback_0() const { return ___s_AuthenticateCallback_0; } inline Action_2_t1290832230 ** get_address_of_s_AuthenticateCallback_0() { return &___s_AuthenticateCallback_0; } inline void set_s_AuthenticateCallback_0(Action_2_t1290832230 * value) { ___s_AuthenticateCallback_0 = value; Il2CppCodeGenWriteBarrier((&___s_AuthenticateCallback_0), value); } inline static int32_t get_offset_of_s_adCache_1() { return static_cast<int32_t>(offsetof(GameCenterPlatform_t2679391364_StaticFields, ___s_adCache_1)); } inline AchievementDescriptionU5BU5D_t1886727686* get_s_adCache_1() const { return ___s_adCache_1; } inline AchievementDescriptionU5BU5D_t1886727686** get_address_of_s_adCache_1() { return &___s_adCache_1; } inline void set_s_adCache_1(AchievementDescriptionU5BU5D_t1886727686* value) { ___s_adCache_1 = value; Il2CppCodeGenWriteBarrier((&___s_adCache_1), value); } inline static int32_t get_offset_of_s_friends_2() { return static_cast<int32_t>(offsetof(GameCenterPlatform_t2679391364_StaticFields, ___s_friends_2)); } inline UserProfileU5BU5D_t1895532524* get_s_friends_2() const { return ___s_friends_2; } inline UserProfileU5BU5D_t1895532524** get_address_of_s_friends_2() { return &___s_friends_2; } inline void set_s_friends_2(UserProfileU5BU5D_t1895532524* value) { ___s_friends_2 = value; Il2CppCodeGenWriteBarrier((&___s_friends_2), value); } inline static int32_t get_offset_of_s_users_3() { return static_cast<int32_t>(offsetof(GameCenterPlatform_t2679391364_StaticFields, ___s_users_3)); } inline UserProfileU5BU5D_t1895532524* get_s_users_3() const { return ___s_users_3; } inline UserProfileU5BU5D_t1895532524** get_address_of_s_users_3() { return &___s_users_3; } inline void set_s_users_3(UserProfileU5BU5D_t1895532524* value) { ___s_users_3 = value; Il2CppCodeGenWriteBarrier((&___s_users_3), value); } inline static int32_t get_offset_of_s_ResetAchievements_4() { return static_cast<int32_t>(offsetof(GameCenterPlatform_t2679391364_StaticFields, ___s_ResetAchievements_4)); } inline Action_1_t269755560 * get_s_ResetAchievements_4() const { return ___s_ResetAchievements_4; } inline Action_1_t269755560 ** get_address_of_s_ResetAchievements_4() { return &___s_ResetAchievements_4; } inline void set_s_ResetAchievements_4(Action_1_t269755560 * value) { ___s_ResetAchievements_4 = value; Il2CppCodeGenWriteBarrier((&___s_ResetAchievements_4), value); } inline static int32_t get_offset_of_m_LocalUser_5() { return static_cast<int32_t>(offsetof(GameCenterPlatform_t2679391364_StaticFields, ___m_LocalUser_5)); } inline LocalUser_t365094499 * get_m_LocalUser_5() const { return ___m_LocalUser_5; } inline LocalUser_t365094499 ** get_address_of_m_LocalUser_5() { return &___m_LocalUser_5; } inline void set_m_LocalUser_5(LocalUser_t365094499 * value) { ___m_LocalUser_5 = value; Il2CppCodeGenWriteBarrier((&___m_LocalUser_5), value); } inline static int32_t get_offset_of_m_GcBoards_6() { return static_cast<int32_t>(offsetof(GameCenterPlatform_t2679391364_StaticFields, ___m_GcBoards_6)); } inline List_1_t1309380474 * get_m_GcBoards_6() const { return ___m_GcBoards_6; } inline List_1_t1309380474 ** get_address_of_m_GcBoards_6() { return &___m_GcBoards_6; } inline void set_m_GcBoards_6(List_1_t1309380474 * value) { ___m_GcBoards_6 = value; Il2CppCodeGenWriteBarrier((&___m_GcBoards_6), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // GAMECENTERPLATFORM_T2679391364_H #ifndef ATTRIBUTE_T861562559_H #define ATTRIBUTE_T861562559_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Attribute struct Attribute_t861562559 : public RuntimeObject { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // ATTRIBUTE_T861562559_H #ifndef PHYSICS_T2310948930_H #define PHYSICS_T2310948930_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Physics struct Physics_t2310948930 : public RuntimeObject { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // PHYSICS_T2310948930_H #ifndef VALUETYPE_T3640485471_H #define VALUETYPE_T3640485471_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.ValueType struct ValueType_t3640485471 : public RuntimeObject { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of System.ValueType struct ValueType_t3640485471_marshaled_pinvoke { }; // Native definition for COM marshalling of System.ValueType struct ValueType_t3640485471_marshaled_com { }; #endif // VALUETYPE_T3640485471_H #ifndef ACHIEVEMENTDESCRIPTION_T3217594527_H #define ACHIEVEMENTDESCRIPTION_T3217594527_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.SocialPlatforms.Impl.AchievementDescription struct AchievementDescription_t3217594527 : public RuntimeObject { public: // System.String UnityEngine.SocialPlatforms.Impl.AchievementDescription::m_Title String_t* ___m_Title_0; // UnityEngine.Texture2D UnityEngine.SocialPlatforms.Impl.AchievementDescription::m_Image Texture2D_t3840446185 * ___m_Image_1; // System.String UnityEngine.SocialPlatforms.Impl.AchievementDescription::m_AchievedDescription String_t* ___m_AchievedDescription_2; // System.String UnityEngine.SocialPlatforms.Impl.AchievementDescription::m_UnachievedDescription String_t* ___m_UnachievedDescription_3; // System.Boolean UnityEngine.SocialPlatforms.Impl.AchievementDescription::m_Hidden bool ___m_Hidden_4; // System.Int32 UnityEngine.SocialPlatforms.Impl.AchievementDescription::m_Points int32_t ___m_Points_5; // System.String UnityEngine.SocialPlatforms.Impl.AchievementDescription::<id>k__BackingField String_t* ___U3CidU3Ek__BackingField_6; public: inline static int32_t get_offset_of_m_Title_0() { return static_cast<int32_t>(offsetof(AchievementDescription_t3217594527, ___m_Title_0)); } inline String_t* get_m_Title_0() const { return ___m_Title_0; } inline String_t** get_address_of_m_Title_0() { return &___m_Title_0; } inline void set_m_Title_0(String_t* value) { ___m_Title_0 = value; Il2CppCodeGenWriteBarrier((&___m_Title_0), value); } inline static int32_t get_offset_of_m_Image_1() { return static_cast<int32_t>(offsetof(AchievementDescription_t3217594527, ___m_Image_1)); } inline Texture2D_t3840446185 * get_m_Image_1() const { return ___m_Image_1; } inline Texture2D_t3840446185 ** get_address_of_m_Image_1() { return &___m_Image_1; } inline void set_m_Image_1(Texture2D_t3840446185 * value) { ___m_Image_1 = value; Il2CppCodeGenWriteBarrier((&___m_Image_1), value); } inline static int32_t get_offset_of_m_AchievedDescription_2() { return static_cast<int32_t>(offsetof(AchievementDescription_t3217594527, ___m_AchievedDescription_2)); } inline String_t* get_m_AchievedDescription_2() const { return ___m_AchievedDescription_2; } inline String_t** get_address_of_m_AchievedDescription_2() { return &___m_AchievedDescription_2; } inline void set_m_AchievedDescription_2(String_t* value) { ___m_AchievedDescription_2 = value; Il2CppCodeGenWriteBarrier((&___m_AchievedDescription_2), value); } inline static int32_t get_offset_of_m_UnachievedDescription_3() { return static_cast<int32_t>(offsetof(AchievementDescription_t3217594527, ___m_UnachievedDescription_3)); } inline String_t* get_m_UnachievedDescription_3() const { return ___m_UnachievedDescription_3; } inline String_t** get_address_of_m_UnachievedDescription_3() { return &___m_UnachievedDescription_3; } inline void set_m_UnachievedDescription_3(String_t* value) { ___m_UnachievedDescription_3 = value; Il2CppCodeGenWriteBarrier((&___m_UnachievedDescription_3), value); } inline static int32_t get_offset_of_m_Hidden_4() { return static_cast<int32_t>(offsetof(AchievementDescription_t3217594527, ___m_Hidden_4)); } inline bool get_m_Hidden_4() const { return ___m_Hidden_4; } inline bool* get_address_of_m_Hidden_4() { return &___m_Hidden_4; } inline void set_m_Hidden_4(bool value) { ___m_Hidden_4 = value; } inline static int32_t get_offset_of_m_Points_5() { return static_cast<int32_t>(offsetof(AchievementDescription_t3217594527, ___m_Points_5)); } inline int32_t get_m_Points_5() const { return ___m_Points_5; } inline int32_t* get_address_of_m_Points_5() { return &___m_Points_5; } inline void set_m_Points_5(int32_t value) { ___m_Points_5 = value; } inline static int32_t get_offset_of_U3CidU3Ek__BackingField_6() { return static_cast<int32_t>(offsetof(AchievementDescription_t3217594527, ___U3CidU3Ek__BackingField_6)); } inline String_t* get_U3CidU3Ek__BackingField_6() const { return ___U3CidU3Ek__BackingField_6; } inline String_t** get_address_of_U3CidU3Ek__BackingField_6() { return &___U3CidU3Ek__BackingField_6; } inline void set_U3CidU3Ek__BackingField_6(String_t* value) { ___U3CidU3Ek__BackingField_6 = value; Il2CppCodeGenWriteBarrier((&___U3CidU3Ek__BackingField_6), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // ACHIEVEMENTDESCRIPTION_T3217594527_H #ifndef SCROLLVIEWSTATE_T3797911395_H #define SCROLLVIEWSTATE_T3797911395_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.ScrollViewState struct ScrollViewState_t3797911395 : public RuntimeObject { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // SCROLLVIEWSTATE_T3797911395_H #ifndef EXCEPTION_T_H #define EXCEPTION_T_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Exception struct Exception_t : public RuntimeObject { public: // System.IntPtr[] System.Exception::trace_ips IntPtrU5BU5D_t4013366056* ___trace_ips_0; // System.Exception System.Exception::inner_exception Exception_t * ___inner_exception_1; // System.String System.Exception::message String_t* ___message_2; // System.String System.Exception::help_link String_t* ___help_link_3; // System.String System.Exception::class_name String_t* ___class_name_4; // System.String System.Exception::stack_trace String_t* ___stack_trace_5; // System.String System.Exception::_remoteStackTraceString String_t* ____remoteStackTraceString_6; // System.Int32 System.Exception::remote_stack_index int32_t ___remote_stack_index_7; // System.Int32 System.Exception::hresult int32_t ___hresult_8; // System.String System.Exception::source String_t* ___source_9; // System.Collections.IDictionary System.Exception::_data RuntimeObject* ____data_10; public: inline static int32_t get_offset_of_trace_ips_0() { return static_cast<int32_t>(offsetof(Exception_t, ___trace_ips_0)); } inline IntPtrU5BU5D_t4013366056* get_trace_ips_0() const { return ___trace_ips_0; } inline IntPtrU5BU5D_t4013366056** get_address_of_trace_ips_0() { return &___trace_ips_0; } inline void set_trace_ips_0(IntPtrU5BU5D_t4013366056* value) { ___trace_ips_0 = value; Il2CppCodeGenWriteBarrier((&___trace_ips_0), value); } inline static int32_t get_offset_of_inner_exception_1() { return static_cast<int32_t>(offsetof(Exception_t, ___inner_exception_1)); } inline Exception_t * get_inner_exception_1() const { return ___inner_exception_1; } inline Exception_t ** get_address_of_inner_exception_1() { return &___inner_exception_1; } inline void set_inner_exception_1(Exception_t * value) { ___inner_exception_1 = value; Il2CppCodeGenWriteBarrier((&___inner_exception_1), value); } inline static int32_t get_offset_of_message_2() { return static_cast<int32_t>(offsetof(Exception_t, ___message_2)); } inline String_t* get_message_2() const { return ___message_2; } inline String_t** get_address_of_message_2() { return &___message_2; } inline void set_message_2(String_t* value) { ___message_2 = value; Il2CppCodeGenWriteBarrier((&___message_2), value); } inline static int32_t get_offset_of_help_link_3() { return static_cast<int32_t>(offsetof(Exception_t, ___help_link_3)); } inline String_t* get_help_link_3() const { return ___help_link_3; } inline String_t** get_address_of_help_link_3() { return &___help_link_3; } inline void set_help_link_3(String_t* value) { ___help_link_3 = value; Il2CppCodeGenWriteBarrier((&___help_link_3), value); } inline static int32_t get_offset_of_class_name_4() { return static_cast<int32_t>(offsetof(Exception_t, ___class_name_4)); } inline String_t* get_class_name_4() const { return ___class_name_4; } inline String_t** get_address_of_class_name_4() { return &___class_name_4; } inline void set_class_name_4(String_t* value) { ___class_name_4 = value; Il2CppCodeGenWriteBarrier((&___class_name_4), value); } inline static int32_t get_offset_of_stack_trace_5() { return static_cast<int32_t>(offsetof(Exception_t, ___stack_trace_5)); } inline String_t* get_stack_trace_5() const { return ___stack_trace_5; } inline String_t** get_address_of_stack_trace_5() { return &___stack_trace_5; } inline void set_stack_trace_5(String_t* value) { ___stack_trace_5 = value; Il2CppCodeGenWriteBarrier((&___stack_trace_5), value); } inline static int32_t get_offset_of__remoteStackTraceString_6() { return static_cast<int32_t>(offsetof(Exception_t, ____remoteStackTraceString_6)); } inline String_t* get__remoteStackTraceString_6() const { return ____remoteStackTraceString_6; } inline String_t** get_address_of__remoteStackTraceString_6() { return &____remoteStackTraceString_6; } inline void set__remoteStackTraceString_6(String_t* value) { ____remoteStackTraceString_6 = value; Il2CppCodeGenWriteBarrier((&____remoteStackTraceString_6), value); } inline static int32_t get_offset_of_remote_stack_index_7() { return static_cast<int32_t>(offsetof(Exception_t, ___remote_stack_index_7)); } inline int32_t get_remote_stack_index_7() const { return ___remote_stack_index_7; } inline int32_t* get_address_of_remote_stack_index_7() { return &___remote_stack_index_7; } inline void set_remote_stack_index_7(int32_t value) { ___remote_stack_index_7 = value; } inline static int32_t get_offset_of_hresult_8() { return static_cast<int32_t>(offsetof(Exception_t, ___hresult_8)); } inline int32_t get_hresult_8() const { return ___hresult_8; } inline int32_t* get_address_of_hresult_8() { return &___hresult_8; } inline void set_hresult_8(int32_t value) { ___hresult_8 = value; } inline static int32_t get_offset_of_source_9() { return static_cast<int32_t>(offsetof(Exception_t, ___source_9)); } inline String_t* get_source_9() const { return ___source_9; } inline String_t** get_address_of_source_9() { return &___source_9; } inline void set_source_9(String_t* value) { ___source_9 = value; Il2CppCodeGenWriteBarrier((&___source_9), value); } inline static int32_t get_offset_of__data_10() { return static_cast<int32_t>(offsetof(Exception_t, ____data_10)); } inline RuntimeObject* get__data_10() const { return ____data_10; } inline RuntimeObject** get_address_of__data_10() { return &____data_10; } inline void set__data_10(RuntimeObject* value) { ____data_10 = value; Il2CppCodeGenWriteBarrier((&____data_10), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // EXCEPTION_T_H #ifndef SLIDERSTATE_T2207048770_H #define SLIDERSTATE_T2207048770_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.SliderState struct SliderState_t2207048770 : public RuntimeObject { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // SLIDERSTATE_T2207048770_H #ifndef GUILAYOUT_T3503650450_H #define GUILAYOUT_T3503650450_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.GUILayout struct GUILayout_t3503650450 : public RuntimeObject { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // GUILAYOUT_T3503650450_H #ifndef GUICONTENT_T3050628031_H #define GUICONTENT_T3050628031_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.GUIContent struct GUIContent_t3050628031 : public RuntimeObject { public: // System.String UnityEngine.GUIContent::m_Text String_t* ___m_Text_0; // UnityEngine.Texture UnityEngine.GUIContent::m_Image Texture_t3661962703 * ___m_Image_1; // System.String UnityEngine.GUIContent::m_Tooltip String_t* ___m_Tooltip_2; public: inline static int32_t get_offset_of_m_Text_0() { return static_cast<int32_t>(offsetof(GUIContent_t3050628031, ___m_Text_0)); } inline String_t* get_m_Text_0() const { return ___m_Text_0; } inline String_t** get_address_of_m_Text_0() { return &___m_Text_0; } inline void set_m_Text_0(String_t* value) { ___m_Text_0 = value; Il2CppCodeGenWriteBarrier((&___m_Text_0), value); } inline static int32_t get_offset_of_m_Image_1() { return static_cast<int32_t>(offsetof(GUIContent_t3050628031, ___m_Image_1)); } inline Texture_t3661962703 * get_m_Image_1() const { return ___m_Image_1; } inline Texture_t3661962703 ** get_address_of_m_Image_1() { return &___m_Image_1; } inline void set_m_Image_1(Texture_t3661962703 * value) { ___m_Image_1 = value; Il2CppCodeGenWriteBarrier((&___m_Image_1), value); } inline static int32_t get_offset_of_m_Tooltip_2() { return static_cast<int32_t>(offsetof(GUIContent_t3050628031, ___m_Tooltip_2)); } inline String_t* get_m_Tooltip_2() const { return ___m_Tooltip_2; } inline String_t** get_address_of_m_Tooltip_2() { return &___m_Tooltip_2; } inline void set_m_Tooltip_2(String_t* value) { ___m_Tooltip_2 = value; Il2CppCodeGenWriteBarrier((&___m_Tooltip_2), value); } }; struct GUIContent_t3050628031_StaticFields { public: // UnityEngine.GUIContent UnityEngine.GUIContent::s_Text GUIContent_t3050628031 * ___s_Text_3; // UnityEngine.GUIContent UnityEngine.GUIContent::s_Image GUIContent_t3050628031 * ___s_Image_4; // UnityEngine.GUIContent UnityEngine.GUIContent::s_TextImage GUIContent_t3050628031 * ___s_TextImage_5; // UnityEngine.GUIContent UnityEngine.GUIContent::none GUIContent_t3050628031 * ___none_6; public: inline static int32_t get_offset_of_s_Text_3() { return static_cast<int32_t>(offsetof(GUIContent_t3050628031_StaticFields, ___s_Text_3)); } inline GUIContent_t3050628031 * get_s_Text_3() const { return ___s_Text_3; } inline GUIContent_t3050628031 ** get_address_of_s_Text_3() { return &___s_Text_3; } inline void set_s_Text_3(GUIContent_t3050628031 * value) { ___s_Text_3 = value; Il2CppCodeGenWriteBarrier((&___s_Text_3), value); } inline static int32_t get_offset_of_s_Image_4() { return static_cast<int32_t>(offsetof(GUIContent_t3050628031_StaticFields, ___s_Image_4)); } inline GUIContent_t3050628031 * get_s_Image_4() const { return ___s_Image_4; } inline GUIContent_t3050628031 ** get_address_of_s_Image_4() { return &___s_Image_4; } inline void set_s_Image_4(GUIContent_t3050628031 * value) { ___s_Image_4 = value; Il2CppCodeGenWriteBarrier((&___s_Image_4), value); } inline static int32_t get_offset_of_s_TextImage_5() { return static_cast<int32_t>(offsetof(GUIContent_t3050628031_StaticFields, ___s_TextImage_5)); } inline GUIContent_t3050628031 * get_s_TextImage_5() const { return ___s_TextImage_5; } inline GUIContent_t3050628031 ** get_address_of_s_TextImage_5() { return &___s_TextImage_5; } inline void set_s_TextImage_5(GUIContent_t3050628031 * value) { ___s_TextImage_5 = value; Il2CppCodeGenWriteBarrier((&___s_TextImage_5), value); } inline static int32_t get_offset_of_none_6() { return static_cast<int32_t>(offsetof(GUIContent_t3050628031_StaticFields, ___none_6)); } inline GUIContent_t3050628031 * get_none_6() const { return ___none_6; } inline GUIContent_t3050628031 ** get_address_of_none_6() { return &___none_6; } inline void set_none_6(GUIContent_t3050628031 * value) { ___none_6 = value; Il2CppCodeGenWriteBarrier((&___none_6), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of UnityEngine.GUIContent struct GUIContent_t3050628031_marshaled_pinvoke { char* ___m_Text_0; Texture_t3661962703 * ___m_Image_1; char* ___m_Tooltip_2; }; // Native definition for COM marshalling of UnityEngine.GUIContent struct GUIContent_t3050628031_marshaled_com { Il2CppChar* ___m_Text_0; Texture_t3661962703 * ___m_Image_1; Il2CppChar* ___m_Tooltip_2; }; #endif // GUICONTENT_T3050628031_H #ifndef JSONUTILITY_T1659017423_H #define JSONUTILITY_T1659017423_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.JsonUtility struct JsonUtility_t1659017423 : public RuntimeObject { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // JSONUTILITY_T1659017423_H #ifndef PHYSICS2D_T1528932956_H #define PHYSICS2D_T1528932956_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Physics2D struct Physics2D_t1528932956 : public RuntimeObject { public: public: }; struct Physics2D_t1528932956_StaticFields { public: // System.Collections.Generic.List`1<UnityEngine.Rigidbody2D> UnityEngine.Physics2D::m_LastDisabledRigidbody2D List_1_t2411569343 * ___m_LastDisabledRigidbody2D_0; public: inline static int32_t get_offset_of_m_LastDisabledRigidbody2D_0() { return static_cast<int32_t>(offsetof(Physics2D_t1528932956_StaticFields, ___m_LastDisabledRigidbody2D_0)); } inline List_1_t2411569343 * get_m_LastDisabledRigidbody2D_0() const { return ___m_LastDisabledRigidbody2D_0; } inline List_1_t2411569343 ** get_address_of_m_LastDisabledRigidbody2D_0() { return &___m_LastDisabledRigidbody2D_0; } inline void set_m_LastDisabledRigidbody2D_0(List_1_t2411569343 * value) { ___m_LastDisabledRigidbody2D_0 = value; Il2CppCodeGenWriteBarrier((&___m_LastDisabledRigidbody2D_0), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // PHYSICS2D_T1528932956_H #ifndef LAYOUTCACHE_T78309876_H #define LAYOUTCACHE_T78309876_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.GUILayoutUtility/LayoutCache struct LayoutCache_t78309876 : public RuntimeObject { public: // UnityEngine.GUILayoutGroup UnityEngine.GUILayoutUtility/LayoutCache::topLevel GUILayoutGroup_t2157789695 * ___topLevel_0; // UnityEngineInternal.GenericStack UnityEngine.GUILayoutUtility/LayoutCache::layoutGroups GenericStack_t1310059385 * ___layoutGroups_1; // UnityEngine.GUILayoutGroup UnityEngine.GUILayoutUtility/LayoutCache::windows GUILayoutGroup_t2157789695 * ___windows_2; public: inline static int32_t get_offset_of_topLevel_0() { return static_cast<int32_t>(offsetof(LayoutCache_t78309876, ___topLevel_0)); } inline GUILayoutGroup_t2157789695 * get_topLevel_0() const { return ___topLevel_0; } inline GUILayoutGroup_t2157789695 ** get_address_of_topLevel_0() { return &___topLevel_0; } inline void set_topLevel_0(GUILayoutGroup_t2157789695 * value) { ___topLevel_0 = value; Il2CppCodeGenWriteBarrier((&___topLevel_0), value); } inline static int32_t get_offset_of_layoutGroups_1() { return static_cast<int32_t>(offsetof(LayoutCache_t78309876, ___layoutGroups_1)); } inline GenericStack_t1310059385 * get_layoutGroups_1() const { return ___layoutGroups_1; } inline GenericStack_t1310059385 ** get_address_of_layoutGroups_1() { return &___layoutGroups_1; } inline void set_layoutGroups_1(GenericStack_t1310059385 * value) { ___layoutGroups_1 = value; Il2CppCodeGenWriteBarrier((&___layoutGroups_1), value); } inline static int32_t get_offset_of_windows_2() { return static_cast<int32_t>(offsetof(LayoutCache_t78309876, ___windows_2)); } inline GUILayoutGroup_t2157789695 * get_windows_2() const { return ___windows_2; } inline GUILayoutGroup_t2157789695 ** get_address_of_windows_2() { return &___windows_2; } inline void set_windows_2(GUILayoutGroup_t2157789695 * value) { ___windows_2 = value; Il2CppCodeGenWriteBarrier((&___windows_2), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // LAYOUTCACHE_T78309876_H #ifndef GUITARGETATTRIBUTE_T25796337_H #define GUITARGETATTRIBUTE_T25796337_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.GUITargetAttribute struct GUITargetAttribute_t25796337 : public Attribute_t861562559 { public: // System.Int32 UnityEngine.GUITargetAttribute::displayMask int32_t ___displayMask_0; public: inline static int32_t get_offset_of_displayMask_0() { return static_cast<int32_t>(offsetof(GUITargetAttribute_t25796337, ___displayMask_0)); } inline int32_t get_displayMask_0() const { return ___displayMask_0; } inline int32_t* get_address_of_displayMask_0() { return &___displayMask_0; } inline void set_displayMask_0(int32_t value) { ___displayMask_0 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // GUITARGETATTRIBUTE_T25796337_H #ifndef GCSCOREDATA_T2125309831_H #define GCSCOREDATA_T2125309831_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.SocialPlatforms.GameCenter.GcScoreData struct GcScoreData_t2125309831 { public: // System.String UnityEngine.SocialPlatforms.GameCenter.GcScoreData::m_Category String_t* ___m_Category_0; // System.UInt32 UnityEngine.SocialPlatforms.GameCenter.GcScoreData::m_ValueLow uint32_t ___m_ValueLow_1; // System.Int32 UnityEngine.SocialPlatforms.GameCenter.GcScoreData::m_ValueHigh int32_t ___m_ValueHigh_2; // System.Int32 UnityEngine.SocialPlatforms.GameCenter.GcScoreData::m_Date int32_t ___m_Date_3; // System.String UnityEngine.SocialPlatforms.GameCenter.GcScoreData::m_FormattedValue String_t* ___m_FormattedValue_4; // System.String UnityEngine.SocialPlatforms.GameCenter.GcScoreData::m_PlayerID String_t* ___m_PlayerID_5; // System.Int32 UnityEngine.SocialPlatforms.GameCenter.GcScoreData::m_Rank int32_t ___m_Rank_6; public: inline static int32_t get_offset_of_m_Category_0() { return static_cast<int32_t>(offsetof(GcScoreData_t2125309831, ___m_Category_0)); } inline String_t* get_m_Category_0() const { return ___m_Category_0; } inline String_t** get_address_of_m_Category_0() { return &___m_Category_0; } inline void set_m_Category_0(String_t* value) { ___m_Category_0 = value; Il2CppCodeGenWriteBarrier((&___m_Category_0), value); } inline static int32_t get_offset_of_m_ValueLow_1() { return static_cast<int32_t>(offsetof(GcScoreData_t2125309831, ___m_ValueLow_1)); } inline uint32_t get_m_ValueLow_1() const { return ___m_ValueLow_1; } inline uint32_t* get_address_of_m_ValueLow_1() { return &___m_ValueLow_1; } inline void set_m_ValueLow_1(uint32_t value) { ___m_ValueLow_1 = value; } inline static int32_t get_offset_of_m_ValueHigh_2() { return static_cast<int32_t>(offsetof(GcScoreData_t2125309831, ___m_ValueHigh_2)); } inline int32_t get_m_ValueHigh_2() const { return ___m_ValueHigh_2; } inline int32_t* get_address_of_m_ValueHigh_2() { return &___m_ValueHigh_2; } inline void set_m_ValueHigh_2(int32_t value) { ___m_ValueHigh_2 = value; } inline static int32_t get_offset_of_m_Date_3() { return static_cast<int32_t>(offsetof(GcScoreData_t2125309831, ___m_Date_3)); } inline int32_t get_m_Date_3() const { return ___m_Date_3; } inline int32_t* get_address_of_m_Date_3() { return &___m_Date_3; } inline void set_m_Date_3(int32_t value) { ___m_Date_3 = value; } inline static int32_t get_offset_of_m_FormattedValue_4() { return static_cast<int32_t>(offsetof(GcScoreData_t2125309831, ___m_FormattedValue_4)); } inline String_t* get_m_FormattedValue_4() const { return ___m_FormattedValue_4; } inline String_t** get_address_of_m_FormattedValue_4() { return &___m_FormattedValue_4; } inline void set_m_FormattedValue_4(String_t* value) { ___m_FormattedValue_4 = value; Il2CppCodeGenWriteBarrier((&___m_FormattedValue_4), value); } inline static int32_t get_offset_of_m_PlayerID_5() { return static_cast<int32_t>(offsetof(GcScoreData_t2125309831, ___m_PlayerID_5)); } inline String_t* get_m_PlayerID_5() const { return ___m_PlayerID_5; } inline String_t** get_address_of_m_PlayerID_5() { return &___m_PlayerID_5; } inline void set_m_PlayerID_5(String_t* value) { ___m_PlayerID_5 = value; Il2CppCodeGenWriteBarrier((&___m_PlayerID_5), value); } inline static int32_t get_offset_of_m_Rank_6() { return static_cast<int32_t>(offsetof(GcScoreData_t2125309831, ___m_Rank_6)); } inline int32_t get_m_Rank_6() const { return ___m_Rank_6; } inline int32_t* get_address_of_m_Rank_6() { return &___m_Rank_6; } inline void set_m_Rank_6(int32_t value) { ___m_Rank_6 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of UnityEngine.SocialPlatforms.GameCenter.GcScoreData struct GcScoreData_t2125309831_marshaled_pinvoke { char* ___m_Category_0; uint32_t ___m_ValueLow_1; int32_t ___m_ValueHigh_2; int32_t ___m_Date_3; char* ___m_FormattedValue_4; char* ___m_PlayerID_5; int32_t ___m_Rank_6; }; // Native definition for COM marshalling of UnityEngine.SocialPlatforms.GameCenter.GcScoreData struct GcScoreData_t2125309831_marshaled_com { Il2CppChar* ___m_Category_0; uint32_t ___m_ValueLow_1; int32_t ___m_ValueHigh_2; int32_t ___m_Date_3; Il2CppChar* ___m_FormattedValue_4; Il2CppChar* ___m_PlayerID_5; int32_t ___m_Rank_6; }; #endif // GCSCOREDATA_T2125309831_H #ifndef EXITGUIEXCEPTION_T133215258_H #define EXITGUIEXCEPTION_T133215258_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.ExitGUIException struct ExitGUIException_t133215258 : public Exception_t { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // EXITGUIEXCEPTION_T133215258_H #ifndef ENUM_T4135868527_H #define ENUM_T4135868527_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Enum struct Enum_t4135868527 : public ValueType_t3640485471 { public: public: }; struct Enum_t4135868527_StaticFields { public: // System.Char[] System.Enum::split_char CharU5BU5D_t3528271667* ___split_char_0; public: inline static int32_t get_offset_of_split_char_0() { return static_cast<int32_t>(offsetof(Enum_t4135868527_StaticFields, ___split_char_0)); } inline CharU5BU5D_t3528271667* get_split_char_0() const { return ___split_char_0; } inline CharU5BU5D_t3528271667** get_address_of_split_char_0() { return &___split_char_0; } inline void set_split_char_0(CharU5BU5D_t3528271667* value) { ___split_char_0 = value; Il2CppCodeGenWriteBarrier((&___split_char_0), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of System.Enum struct Enum_t4135868527_marshaled_pinvoke { }; // Native definition for COM marshalling of System.Enum struct Enum_t4135868527_marshaled_com { }; #endif // ENUM_T4135868527_H #ifndef RANGE_T173988048_H #define RANGE_T173988048_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.SocialPlatforms.Range struct Range_t173988048 { public: // System.Int32 UnityEngine.SocialPlatforms.Range::from int32_t ___from_0; // System.Int32 UnityEngine.SocialPlatforms.Range::count int32_t ___count_1; public: inline static int32_t get_offset_of_from_0() { return static_cast<int32_t>(offsetof(Range_t173988048, ___from_0)); } inline int32_t get_from_0() const { return ___from_0; } inline int32_t* get_address_of_from_0() { return &___from_0; } inline void set_from_0(int32_t value) { ___from_0 = value; } inline static int32_t get_offset_of_count_1() { return static_cast<int32_t>(offsetof(Range_t173988048, ___count_1)); } inline int32_t get_count_1() const { return ___count_1; } inline int32_t* get_address_of_count_1() { return &___count_1; } inline void set_count_1(int32_t value) { ___count_1 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // RANGE_T173988048_H #ifndef GCACHIEVEMENTDATA_T675222246_H #define GCACHIEVEMENTDATA_T675222246_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.SocialPlatforms.GameCenter.GcAchievementData struct GcAchievementData_t675222246 { public: // System.String UnityEngine.SocialPlatforms.GameCenter.GcAchievementData::m_Identifier String_t* ___m_Identifier_0; // System.Double UnityEngine.SocialPlatforms.GameCenter.GcAchievementData::m_PercentCompleted double ___m_PercentCompleted_1; // System.Int32 UnityEngine.SocialPlatforms.GameCenter.GcAchievementData::m_Completed int32_t ___m_Completed_2; // System.Int32 UnityEngine.SocialPlatforms.GameCenter.GcAchievementData::m_Hidden int32_t ___m_Hidden_3; // System.Int32 UnityEngine.SocialPlatforms.GameCenter.GcAchievementData::m_LastReportedDate int32_t ___m_LastReportedDate_4; public: inline static int32_t get_offset_of_m_Identifier_0() { return static_cast<int32_t>(offsetof(GcAchievementData_t675222246, ___m_Identifier_0)); } inline String_t* get_m_Identifier_0() const { return ___m_Identifier_0; } inline String_t** get_address_of_m_Identifier_0() { return &___m_Identifier_0; } inline void set_m_Identifier_0(String_t* value) { ___m_Identifier_0 = value; Il2CppCodeGenWriteBarrier((&___m_Identifier_0), value); } inline static int32_t get_offset_of_m_PercentCompleted_1() { return static_cast<int32_t>(offsetof(GcAchievementData_t675222246, ___m_PercentCompleted_1)); } inline double get_m_PercentCompleted_1() const { return ___m_PercentCompleted_1; } inline double* get_address_of_m_PercentCompleted_1() { return &___m_PercentCompleted_1; } inline void set_m_PercentCompleted_1(double value) { ___m_PercentCompleted_1 = value; } inline static int32_t get_offset_of_m_Completed_2() { return static_cast<int32_t>(offsetof(GcAchievementData_t675222246, ___m_Completed_2)); } inline int32_t get_m_Completed_2() const { return ___m_Completed_2; } inline int32_t* get_address_of_m_Completed_2() { return &___m_Completed_2; } inline void set_m_Completed_2(int32_t value) { ___m_Completed_2 = value; } inline static int32_t get_offset_of_m_Hidden_3() { return static_cast<int32_t>(offsetof(GcAchievementData_t675222246, ___m_Hidden_3)); } inline int32_t get_m_Hidden_3() const { return ___m_Hidden_3; } inline int32_t* get_address_of_m_Hidden_3() { return &___m_Hidden_3; } inline void set_m_Hidden_3(int32_t value) { ___m_Hidden_3 = value; } inline static int32_t get_offset_of_m_LastReportedDate_4() { return static_cast<int32_t>(offsetof(GcAchievementData_t675222246, ___m_LastReportedDate_4)); } inline int32_t get_m_LastReportedDate_4() const { return ___m_LastReportedDate_4; } inline int32_t* get_address_of_m_LastReportedDate_4() { return &___m_LastReportedDate_4; } inline void set_m_LastReportedDate_4(int32_t value) { ___m_LastReportedDate_4 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of UnityEngine.SocialPlatforms.GameCenter.GcAchievementData struct GcAchievementData_t675222246_marshaled_pinvoke { char* ___m_Identifier_0; double ___m_PercentCompleted_1; int32_t ___m_Completed_2; int32_t ___m_Hidden_3; int32_t ___m_LastReportedDate_4; }; // Native definition for COM marshalling of UnityEngine.SocialPlatforms.GameCenter.GcAchievementData struct GcAchievementData_t675222246_marshaled_com { Il2CppChar* ___m_Identifier_0; double ___m_PercentCompleted_1; int32_t ___m_Completed_2; int32_t ___m_Hidden_3; int32_t ___m_LastReportedDate_4; }; #endif // GCACHIEVEMENTDATA_T675222246_H #ifndef ANIMATORTRANSITIONINFO_T2534804151_H #define ANIMATORTRANSITIONINFO_T2534804151_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.AnimatorTransitionInfo struct AnimatorTransitionInfo_t2534804151 { public: // System.Int32 UnityEngine.AnimatorTransitionInfo::m_FullPath int32_t ___m_FullPath_0; // System.Int32 UnityEngine.AnimatorTransitionInfo::m_UserName int32_t ___m_UserName_1; // System.Int32 UnityEngine.AnimatorTransitionInfo::m_Name int32_t ___m_Name_2; // System.Boolean UnityEngine.AnimatorTransitionInfo::m_HasFixedDuration bool ___m_HasFixedDuration_3; // System.Single UnityEngine.AnimatorTransitionInfo::m_Duration float ___m_Duration_4; // System.Single UnityEngine.AnimatorTransitionInfo::m_NormalizedTime float ___m_NormalizedTime_5; // System.Boolean UnityEngine.AnimatorTransitionInfo::m_AnyState bool ___m_AnyState_6; // System.Int32 UnityEngine.AnimatorTransitionInfo::m_TransitionType int32_t ___m_TransitionType_7; public: inline static int32_t get_offset_of_m_FullPath_0() { return static_cast<int32_t>(offsetof(AnimatorTransitionInfo_t2534804151, ___m_FullPath_0)); } inline int32_t get_m_FullPath_0() const { return ___m_FullPath_0; } inline int32_t* get_address_of_m_FullPath_0() { return &___m_FullPath_0; } inline void set_m_FullPath_0(int32_t value) { ___m_FullPath_0 = value; } inline static int32_t get_offset_of_m_UserName_1() { return static_cast<int32_t>(offsetof(AnimatorTransitionInfo_t2534804151, ___m_UserName_1)); } inline int32_t get_m_UserName_1() const { return ___m_UserName_1; } inline int32_t* get_address_of_m_UserName_1() { return &___m_UserName_1; } inline void set_m_UserName_1(int32_t value) { ___m_UserName_1 = value; } inline static int32_t get_offset_of_m_Name_2() { return static_cast<int32_t>(offsetof(AnimatorTransitionInfo_t2534804151, ___m_Name_2)); } inline int32_t get_m_Name_2() const { return ___m_Name_2; } inline int32_t* get_address_of_m_Name_2() { return &___m_Name_2; } inline void set_m_Name_2(int32_t value) { ___m_Name_2 = value; } inline static int32_t get_offset_of_m_HasFixedDuration_3() { return static_cast<int32_t>(offsetof(AnimatorTransitionInfo_t2534804151, ___m_HasFixedDuration_3)); } inline bool get_m_HasFixedDuration_3() const { return ___m_HasFixedDuration_3; } inline bool* get_address_of_m_HasFixedDuration_3() { return &___m_HasFixedDuration_3; } inline void set_m_HasFixedDuration_3(bool value) { ___m_HasFixedDuration_3 = value; } inline static int32_t get_offset_of_m_Duration_4() { return static_cast<int32_t>(offsetof(AnimatorTransitionInfo_t2534804151, ___m_Duration_4)); } inline float get_m_Duration_4() const { return ___m_Duration_4; } inline float* get_address_of_m_Duration_4() { return &___m_Duration_4; } inline void set_m_Duration_4(float value) { ___m_Duration_4 = value; } inline static int32_t get_offset_of_m_NormalizedTime_5() { return static_cast<int32_t>(offsetof(AnimatorTransitionInfo_t2534804151, ___m_NormalizedTime_5)); } inline float get_m_NormalizedTime_5() const { return ___m_NormalizedTime_5; } inline float* get_address_of_m_NormalizedTime_5() { return &___m_NormalizedTime_5; } inline void set_m_NormalizedTime_5(float value) { ___m_NormalizedTime_5 = value; } inline static int32_t get_offset_of_m_AnyState_6() { return static_cast<int32_t>(offsetof(AnimatorTransitionInfo_t2534804151, ___m_AnyState_6)); } inline bool get_m_AnyState_6() const { return ___m_AnyState_6; } inline bool* get_address_of_m_AnyState_6() { return &___m_AnyState_6; } inline void set_m_AnyState_6(bool value) { ___m_AnyState_6 = value; } inline static int32_t get_offset_of_m_TransitionType_7() { return static_cast<int32_t>(offsetof(AnimatorTransitionInfo_t2534804151, ___m_TransitionType_7)); } inline int32_t get_m_TransitionType_7() const { return ___m_TransitionType_7; } inline int32_t* get_address_of_m_TransitionType_7() { return &___m_TransitionType_7; } inline void set_m_TransitionType_7(int32_t value) { ___m_TransitionType_7 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of UnityEngine.AnimatorTransitionInfo struct AnimatorTransitionInfo_t2534804151_marshaled_pinvoke { int32_t ___m_FullPath_0; int32_t ___m_UserName_1; int32_t ___m_Name_2; int32_t ___m_HasFixedDuration_3; float ___m_Duration_4; float ___m_NormalizedTime_5; int32_t ___m_AnyState_6; int32_t ___m_TransitionType_7; }; // Native definition for COM marshalling of UnityEngine.AnimatorTransitionInfo struct AnimatorTransitionInfo_t2534804151_marshaled_com { int32_t ___m_FullPath_0; int32_t ___m_UserName_1; int32_t ___m_Name_2; int32_t ___m_HasFixedDuration_3; float ___m_Duration_4; float ___m_NormalizedTime_5; int32_t ___m_AnyState_6; int32_t ___m_TransitionType_7; }; #endif // ANIMATORTRANSITIONINFO_T2534804151_H #ifndef QUATERNION_T2301928331_H #define QUATERNION_T2301928331_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Quaternion struct Quaternion_t2301928331 { public: // System.Single UnityEngine.Quaternion::x float ___x_0; // System.Single UnityEngine.Quaternion::y float ___y_1; // System.Single UnityEngine.Quaternion::z float ___z_2; // System.Single UnityEngine.Quaternion::w float ___w_3; public: inline static int32_t get_offset_of_x_0() { return static_cast<int32_t>(offsetof(Quaternion_t2301928331, ___x_0)); } inline float get_x_0() const { return ___x_0; } inline float* get_address_of_x_0() { return &___x_0; } inline void set_x_0(float value) { ___x_0 = value; } inline static int32_t get_offset_of_y_1() { return static_cast<int32_t>(offsetof(Quaternion_t2301928331, ___y_1)); } inline float get_y_1() const { return ___y_1; } inline float* get_address_of_y_1() { return &___y_1; } inline void set_y_1(float value) { ___y_1 = value; } inline static int32_t get_offset_of_z_2() { return static_cast<int32_t>(offsetof(Quaternion_t2301928331, ___z_2)); } inline float get_z_2() const { return ___z_2; } inline float* get_address_of_z_2() { return &___z_2; } inline void set_z_2(float value) { ___z_2 = value; } inline static int32_t get_offset_of_w_3() { return static_cast<int32_t>(offsetof(Quaternion_t2301928331, ___w_3)); } inline float get_w_3() const { return ___w_3; } inline float* get_address_of_w_3() { return &___w_3; } inline void set_w_3(float value) { ___w_3 = value; } }; struct Quaternion_t2301928331_StaticFields { public: // UnityEngine.Quaternion UnityEngine.Quaternion::identityQuaternion Quaternion_t2301928331 ___identityQuaternion_4; public: inline static int32_t get_offset_of_identityQuaternion_4() { return static_cast<int32_t>(offsetof(Quaternion_t2301928331_StaticFields, ___identityQuaternion_4)); } inline Quaternion_t2301928331 get_identityQuaternion_4() const { return ___identityQuaternion_4; } inline Quaternion_t2301928331 * get_address_of_identityQuaternion_4() { return &___identityQuaternion_4; } inline void set_identityQuaternion_4(Quaternion_t2301928331 value) { ___identityQuaternion_4 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // QUATERNION_T2301928331_H #ifndef VECTOR2_T2156229523_H #define VECTOR2_T2156229523_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Vector2 struct Vector2_t2156229523 { public: // System.Single UnityEngine.Vector2::x float ___x_0; // System.Single UnityEngine.Vector2::y float ___y_1; public: inline static int32_t get_offset_of_x_0() { return static_cast<int32_t>(offsetof(Vector2_t2156229523, ___x_0)); } inline float get_x_0() const { return ___x_0; } inline float* get_address_of_x_0() { return &___x_0; } inline void set_x_0(float value) { ___x_0 = value; } inline static int32_t get_offset_of_y_1() { return static_cast<int32_t>(offsetof(Vector2_t2156229523, ___y_1)); } inline float get_y_1() const { return ___y_1; } inline float* get_address_of_y_1() { return &___y_1; } inline void set_y_1(float value) { ___y_1 = value; } }; struct Vector2_t2156229523_StaticFields { public: // UnityEngine.Vector2 UnityEngine.Vector2::zeroVector Vector2_t2156229523 ___zeroVector_2; // UnityEngine.Vector2 UnityEngine.Vector2::oneVector Vector2_t2156229523 ___oneVector_3; // UnityEngine.Vector2 UnityEngine.Vector2::upVector Vector2_t2156229523 ___upVector_4; // UnityEngine.Vector2 UnityEngine.Vector2::downVector Vector2_t2156229523 ___downVector_5; // UnityEngine.Vector2 UnityEngine.Vector2::leftVector Vector2_t2156229523 ___leftVector_6; // UnityEngine.Vector2 UnityEngine.Vector2::rightVector Vector2_t2156229523 ___rightVector_7; // UnityEngine.Vector2 UnityEngine.Vector2::positiveInfinityVector Vector2_t2156229523 ___positiveInfinityVector_8; // UnityEngine.Vector2 UnityEngine.Vector2::negativeInfinityVector Vector2_t2156229523 ___negativeInfinityVector_9; public: inline static int32_t get_offset_of_zeroVector_2() { return static_cast<int32_t>(offsetof(Vector2_t2156229523_StaticFields, ___zeroVector_2)); } inline Vector2_t2156229523 get_zeroVector_2() const { return ___zeroVector_2; } inline Vector2_t2156229523 * get_address_of_zeroVector_2() { return &___zeroVector_2; } inline void set_zeroVector_2(Vector2_t2156229523 value) { ___zeroVector_2 = value; } inline static int32_t get_offset_of_oneVector_3() { return static_cast<int32_t>(offsetof(Vector2_t2156229523_StaticFields, ___oneVector_3)); } inline Vector2_t2156229523 get_oneVector_3() const { return ___oneVector_3; } inline Vector2_t2156229523 * get_address_of_oneVector_3() { return &___oneVector_3; } inline void set_oneVector_3(Vector2_t2156229523 value) { ___oneVector_3 = value; } inline static int32_t get_offset_of_upVector_4() { return static_cast<int32_t>(offsetof(Vector2_t2156229523_StaticFields, ___upVector_4)); } inline Vector2_t2156229523 get_upVector_4() const { return ___upVector_4; } inline Vector2_t2156229523 * get_address_of_upVector_4() { return &___upVector_4; } inline void set_upVector_4(Vector2_t2156229523 value) { ___upVector_4 = value; } inline static int32_t get_offset_of_downVector_5() { return static_cast<int32_t>(offsetof(Vector2_t2156229523_StaticFields, ___downVector_5)); } inline Vector2_t2156229523 get_downVector_5() const { return ___downVector_5; } inline Vector2_t2156229523 * get_address_of_downVector_5() { return &___downVector_5; } inline void set_downVector_5(Vector2_t2156229523 value) { ___downVector_5 = value; } inline static int32_t get_offset_of_leftVector_6() { return static_cast<int32_t>(offsetof(Vector2_t2156229523_StaticFields, ___leftVector_6)); } inline Vector2_t2156229523 get_leftVector_6() const { return ___leftVector_6; } inline Vector2_t2156229523 * get_address_of_leftVector_6() { return &___leftVector_6; } inline void set_leftVector_6(Vector2_t2156229523 value) { ___leftVector_6 = value; } inline static int32_t get_offset_of_rightVector_7() { return static_cast<int32_t>(offsetof(Vector2_t2156229523_StaticFields, ___rightVector_7)); } inline Vector2_t2156229523 get_rightVector_7() const { return ___rightVector_7; } inline Vector2_t2156229523 * get_address_of_rightVector_7() { return &___rightVector_7; } inline void set_rightVector_7(Vector2_t2156229523 value) { ___rightVector_7 = value; } inline static int32_t get_offset_of_positiveInfinityVector_8() { return static_cast<int32_t>(offsetof(Vector2_t2156229523_StaticFields, ___positiveInfinityVector_8)); } inline Vector2_t2156229523 get_positiveInfinityVector_8() const { return ___positiveInfinityVector_8; } inline Vector2_t2156229523 * get_address_of_positiveInfinityVector_8() { return &___positiveInfinityVector_8; } inline void set_positiveInfinityVector_8(Vector2_t2156229523 value) { ___positiveInfinityVector_8 = value; } inline static int32_t get_offset_of_negativeInfinityVector_9() { return static_cast<int32_t>(offsetof(Vector2_t2156229523_StaticFields, ___negativeInfinityVector_9)); } inline Vector2_t2156229523 get_negativeInfinityVector_9() const { return ___negativeInfinityVector_9; } inline Vector2_t2156229523 * get_address_of_negativeInfinityVector_9() { return &___negativeInfinityVector_9; } inline void set_negativeInfinityVector_9(Vector2_t2156229523 value) { ___negativeInfinityVector_9 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // VECTOR2_T2156229523_H #ifndef INTPTR_T_H #define INTPTR_T_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.IntPtr struct IntPtr_t { public: // System.Void* System.IntPtr::m_value void* ___m_value_0; public: inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(IntPtr_t, ___m_value_0)); } inline void* get_m_value_0() const { return ___m_value_0; } inline void** get_address_of_m_value_0() { return &___m_value_0; } inline void set_m_value_0(void* value) { ___m_value_0 = value; } }; struct IntPtr_t_StaticFields { public: // System.IntPtr System.IntPtr::Zero intptr_t ___Zero_1; public: inline static int32_t get_offset_of_Zero_1() { return static_cast<int32_t>(offsetof(IntPtr_t_StaticFields, ___Zero_1)); } inline intptr_t get_Zero_1() const { return ___Zero_1; } inline intptr_t* get_address_of_Zero_1() { return &___Zero_1; } inline void set_Zero_1(intptr_t value) { ___Zero_1 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // INTPTR_T_H #ifndef SHAREDBETWEENANIMATORSATTRIBUTE_T2857104338_H #define SHAREDBETWEENANIMATORSATTRIBUTE_T2857104338_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.SharedBetweenAnimatorsAttribute struct SharedBetweenAnimatorsAttribute_t2857104338 : public Attribute_t861562559 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // SHAREDBETWEENANIMATORSATTRIBUTE_T2857104338_H #ifndef COLOR_T2555686324_H #define COLOR_T2555686324_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Color struct Color_t2555686324 { public: // System.Single UnityEngine.Color::r float ___r_0; // System.Single UnityEngine.Color::g float ___g_1; // System.Single UnityEngine.Color::b float ___b_2; // System.Single UnityEngine.Color::a float ___a_3; public: inline static int32_t get_offset_of_r_0() { return static_cast<int32_t>(offsetof(Color_t2555686324, ___r_0)); } inline float get_r_0() const { return ___r_0; } inline float* get_address_of_r_0() { return &___r_0; } inline void set_r_0(float value) { ___r_0 = value; } inline static int32_t get_offset_of_g_1() { return static_cast<int32_t>(offsetof(Color_t2555686324, ___g_1)); } inline float get_g_1() const { return ___g_1; } inline float* get_address_of_g_1() { return &___g_1; } inline void set_g_1(float value) { ___g_1 = value; } inline static int32_t get_offset_of_b_2() { return static_cast<int32_t>(offsetof(Color_t2555686324, ___b_2)); } inline float get_b_2() const { return ___b_2; } inline float* get_address_of_b_2() { return &___b_2; } inline void set_b_2(float value) { ___b_2 = value; } inline static int32_t get_offset_of_a_3() { return static_cast<int32_t>(offsetof(Color_t2555686324, ___a_3)); } inline float get_a_3() const { return ___a_3; } inline float* get_address_of_a_3() { return &___a_3; } inline void set_a_3(float value) { ___a_3 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // COLOR_T2555686324_H #ifndef RECT_T2360479859_H #define RECT_T2360479859_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Rect struct Rect_t2360479859 { public: // System.Single UnityEngine.Rect::m_XMin float ___m_XMin_0; // System.Single UnityEngine.Rect::m_YMin float ___m_YMin_1; // System.Single UnityEngine.Rect::m_Width float ___m_Width_2; // System.Single UnityEngine.Rect::m_Height float ___m_Height_3; public: inline static int32_t get_offset_of_m_XMin_0() { return static_cast<int32_t>(offsetof(Rect_t2360479859, ___m_XMin_0)); } inline float get_m_XMin_0() const { return ___m_XMin_0; } inline float* get_address_of_m_XMin_0() { return &___m_XMin_0; } inline void set_m_XMin_0(float value) { ___m_XMin_0 = value; } inline static int32_t get_offset_of_m_YMin_1() { return static_cast<int32_t>(offsetof(Rect_t2360479859, ___m_YMin_1)); } inline float get_m_YMin_1() const { return ___m_YMin_1; } inline float* get_address_of_m_YMin_1() { return &___m_YMin_1; } inline void set_m_YMin_1(float value) { ___m_YMin_1 = value; } inline static int32_t get_offset_of_m_Width_2() { return static_cast<int32_t>(offsetof(Rect_t2360479859, ___m_Width_2)); } inline float get_m_Width_2() const { return ___m_Width_2; } inline float* get_address_of_m_Width_2() { return &___m_Width_2; } inline void set_m_Width_2(float value) { ___m_Width_2 = value; } inline static int32_t get_offset_of_m_Height_3() { return static_cast<int32_t>(offsetof(Rect_t2360479859, ___m_Height_3)); } inline float get_m_Height_3() const { return ___m_Height_3; } inline float* get_address_of_m_Height_3() { return &___m_Height_3; } inline void set_m_Height_3(float value) { ___m_Height_3 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // RECT_T2360479859_H #ifndef VOID_T1185182177_H #define VOID_T1185182177_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void struct Void_t1185182177 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // VOID_T1185182177_H #ifndef ANIMATORSTATEINFO_T509032636_H #define ANIMATORSTATEINFO_T509032636_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.AnimatorStateInfo struct AnimatorStateInfo_t509032636 { public: // System.Int32 UnityEngine.AnimatorStateInfo::m_Name int32_t ___m_Name_0; // System.Int32 UnityEngine.AnimatorStateInfo::m_Path int32_t ___m_Path_1; // System.Int32 UnityEngine.AnimatorStateInfo::m_FullPath int32_t ___m_FullPath_2; // System.Single UnityEngine.AnimatorStateInfo::m_NormalizedTime float ___m_NormalizedTime_3; // System.Single UnityEngine.AnimatorStateInfo::m_Length float ___m_Length_4; // System.Single UnityEngine.AnimatorStateInfo::m_Speed float ___m_Speed_5; // System.Single UnityEngine.AnimatorStateInfo::m_SpeedMultiplier float ___m_SpeedMultiplier_6; // System.Int32 UnityEngine.AnimatorStateInfo::m_Tag int32_t ___m_Tag_7; // System.Int32 UnityEngine.AnimatorStateInfo::m_Loop int32_t ___m_Loop_8; public: inline static int32_t get_offset_of_m_Name_0() { return static_cast<int32_t>(offsetof(AnimatorStateInfo_t509032636, ___m_Name_0)); } inline int32_t get_m_Name_0() const { return ___m_Name_0; } inline int32_t* get_address_of_m_Name_0() { return &___m_Name_0; } inline void set_m_Name_0(int32_t value) { ___m_Name_0 = value; } inline static int32_t get_offset_of_m_Path_1() { return static_cast<int32_t>(offsetof(AnimatorStateInfo_t509032636, ___m_Path_1)); } inline int32_t get_m_Path_1() const { return ___m_Path_1; } inline int32_t* get_address_of_m_Path_1() { return &___m_Path_1; } inline void set_m_Path_1(int32_t value) { ___m_Path_1 = value; } inline static int32_t get_offset_of_m_FullPath_2() { return static_cast<int32_t>(offsetof(AnimatorStateInfo_t509032636, ___m_FullPath_2)); } inline int32_t get_m_FullPath_2() const { return ___m_FullPath_2; } inline int32_t* get_address_of_m_FullPath_2() { return &___m_FullPath_2; } inline void set_m_FullPath_2(int32_t value) { ___m_FullPath_2 = value; } inline static int32_t get_offset_of_m_NormalizedTime_3() { return static_cast<int32_t>(offsetof(AnimatorStateInfo_t509032636, ___m_NormalizedTime_3)); } inline float get_m_NormalizedTime_3() const { return ___m_NormalizedTime_3; } inline float* get_address_of_m_NormalizedTime_3() { return &___m_NormalizedTime_3; } inline void set_m_NormalizedTime_3(float value) { ___m_NormalizedTime_3 = value; } inline static int32_t get_offset_of_m_Length_4() { return static_cast<int32_t>(offsetof(AnimatorStateInfo_t509032636, ___m_Length_4)); } inline float get_m_Length_4() const { return ___m_Length_4; } inline float* get_address_of_m_Length_4() { return &___m_Length_4; } inline void set_m_Length_4(float value) { ___m_Length_4 = value; } inline static int32_t get_offset_of_m_Speed_5() { return static_cast<int32_t>(offsetof(AnimatorStateInfo_t509032636, ___m_Speed_5)); } inline float get_m_Speed_5() const { return ___m_Speed_5; } inline float* get_address_of_m_Speed_5() { return &___m_Speed_5; } inline void set_m_Speed_5(float value) { ___m_Speed_5 = value; } inline static int32_t get_offset_of_m_SpeedMultiplier_6() { return static_cast<int32_t>(offsetof(AnimatorStateInfo_t509032636, ___m_SpeedMultiplier_6)); } inline float get_m_SpeedMultiplier_6() const { return ___m_SpeedMultiplier_6; } inline float* get_address_of_m_SpeedMultiplier_6() { return &___m_SpeedMultiplier_6; } inline void set_m_SpeedMultiplier_6(float value) { ___m_SpeedMultiplier_6 = value; } inline static int32_t get_offset_of_m_Tag_7() { return static_cast<int32_t>(offsetof(AnimatorStateInfo_t509032636, ___m_Tag_7)); } inline int32_t get_m_Tag_7() const { return ___m_Tag_7; } inline int32_t* get_address_of_m_Tag_7() { return &___m_Tag_7; } inline void set_m_Tag_7(int32_t value) { ___m_Tag_7 = value; } inline static int32_t get_offset_of_m_Loop_8() { return static_cast<int32_t>(offsetof(AnimatorStateInfo_t509032636, ___m_Loop_8)); } inline int32_t get_m_Loop_8() const { return ___m_Loop_8; } inline int32_t* get_address_of_m_Loop_8() { return &___m_Loop_8; } inline void set_m_Loop_8(int32_t value) { ___m_Loop_8 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // ANIMATORSTATEINFO_T509032636_H #ifndef GCACHIEVEMENTDESCRIPTIONDATA_T643925653_H #define GCACHIEVEMENTDESCRIPTIONDATA_T643925653_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.SocialPlatforms.GameCenter.GcAchievementDescriptionData struct GcAchievementDescriptionData_t643925653 { public: // System.String UnityEngine.SocialPlatforms.GameCenter.GcAchievementDescriptionData::m_Identifier String_t* ___m_Identifier_0; // System.String UnityEngine.SocialPlatforms.GameCenter.GcAchievementDescriptionData::m_Title String_t* ___m_Title_1; // UnityEngine.Texture2D UnityEngine.SocialPlatforms.GameCenter.GcAchievementDescriptionData::m_Image Texture2D_t3840446185 * ___m_Image_2; // System.String UnityEngine.SocialPlatforms.GameCenter.GcAchievementDescriptionData::m_AchievedDescription String_t* ___m_AchievedDescription_3; // System.String UnityEngine.SocialPlatforms.GameCenter.GcAchievementDescriptionData::m_UnachievedDescription String_t* ___m_UnachievedDescription_4; // System.Int32 UnityEngine.SocialPlatforms.GameCenter.GcAchievementDescriptionData::m_Hidden int32_t ___m_Hidden_5; // System.Int32 UnityEngine.SocialPlatforms.GameCenter.GcAchievementDescriptionData::m_Points int32_t ___m_Points_6; public: inline static int32_t get_offset_of_m_Identifier_0() { return static_cast<int32_t>(offsetof(GcAchievementDescriptionData_t643925653, ___m_Identifier_0)); } inline String_t* get_m_Identifier_0() const { return ___m_Identifier_0; } inline String_t** get_address_of_m_Identifier_0() { return &___m_Identifier_0; } inline void set_m_Identifier_0(String_t* value) { ___m_Identifier_0 = value; Il2CppCodeGenWriteBarrier((&___m_Identifier_0), value); } inline static int32_t get_offset_of_m_Title_1() { return static_cast<int32_t>(offsetof(GcAchievementDescriptionData_t643925653, ___m_Title_1)); } inline String_t* get_m_Title_1() const { return ___m_Title_1; } inline String_t** get_address_of_m_Title_1() { return &___m_Title_1; } inline void set_m_Title_1(String_t* value) { ___m_Title_1 = value; Il2CppCodeGenWriteBarrier((&___m_Title_1), value); } inline static int32_t get_offset_of_m_Image_2() { return static_cast<int32_t>(offsetof(GcAchievementDescriptionData_t643925653, ___m_Image_2)); } inline Texture2D_t3840446185 * get_m_Image_2() const { return ___m_Image_2; } inline Texture2D_t3840446185 ** get_address_of_m_Image_2() { return &___m_Image_2; } inline void set_m_Image_2(Texture2D_t3840446185 * value) { ___m_Image_2 = value; Il2CppCodeGenWriteBarrier((&___m_Image_2), value); } inline static int32_t get_offset_of_m_AchievedDescription_3() { return static_cast<int32_t>(offsetof(GcAchievementDescriptionData_t643925653, ___m_AchievedDescription_3)); } inline String_t* get_m_AchievedDescription_3() const { return ___m_AchievedDescription_3; } inline String_t** get_address_of_m_AchievedDescription_3() { return &___m_AchievedDescription_3; } inline void set_m_AchievedDescription_3(String_t* value) { ___m_AchievedDescription_3 = value; Il2CppCodeGenWriteBarrier((&___m_AchievedDescription_3), value); } inline static int32_t get_offset_of_m_UnachievedDescription_4() { return static_cast<int32_t>(offsetof(GcAchievementDescriptionData_t643925653, ___m_UnachievedDescription_4)); } inline String_t* get_m_UnachievedDescription_4() const { return ___m_UnachievedDescription_4; } inline String_t** get_address_of_m_UnachievedDescription_4() { return &___m_UnachievedDescription_4; } inline void set_m_UnachievedDescription_4(String_t* value) { ___m_UnachievedDescription_4 = value; Il2CppCodeGenWriteBarrier((&___m_UnachievedDescription_4), value); } inline static int32_t get_offset_of_m_Hidden_5() { return static_cast<int32_t>(offsetof(GcAchievementDescriptionData_t643925653, ___m_Hidden_5)); } inline int32_t get_m_Hidden_5() const { return ___m_Hidden_5; } inline int32_t* get_address_of_m_Hidden_5() { return &___m_Hidden_5; } inline void set_m_Hidden_5(int32_t value) { ___m_Hidden_5 = value; } inline static int32_t get_offset_of_m_Points_6() { return static_cast<int32_t>(offsetof(GcAchievementDescriptionData_t643925653, ___m_Points_6)); } inline int32_t get_m_Points_6() const { return ___m_Points_6; } inline int32_t* get_address_of_m_Points_6() { return &___m_Points_6; } inline void set_m_Points_6(int32_t value) { ___m_Points_6 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of UnityEngine.SocialPlatforms.GameCenter.GcAchievementDescriptionData struct GcAchievementDescriptionData_t643925653_marshaled_pinvoke { char* ___m_Identifier_0; char* ___m_Title_1; Texture2D_t3840446185 * ___m_Image_2; char* ___m_AchievedDescription_3; char* ___m_UnachievedDescription_4; int32_t ___m_Hidden_5; int32_t ___m_Points_6; }; // Native definition for COM marshalling of UnityEngine.SocialPlatforms.GameCenter.GcAchievementDescriptionData struct GcAchievementDescriptionData_t643925653_marshaled_com { Il2CppChar* ___m_Identifier_0; Il2CppChar* ___m_Title_1; Texture2D_t3840446185 * ___m_Image_2; Il2CppChar* ___m_AchievedDescription_3; Il2CppChar* ___m_UnachievedDescription_4; int32_t ___m_Hidden_5; int32_t ___m_Points_6; }; #endif // GCACHIEVEMENTDESCRIPTIONDATA_T643925653_H #ifndef GCUSERPROFILEDATA_T2719720026_H #define GCUSERPROFILEDATA_T2719720026_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.SocialPlatforms.GameCenter.GcUserProfileData struct GcUserProfileData_t2719720026 { public: // System.String UnityEngine.SocialPlatforms.GameCenter.GcUserProfileData::userName String_t* ___userName_0; // System.String UnityEngine.SocialPlatforms.GameCenter.GcUserProfileData::userID String_t* ___userID_1; // System.Int32 UnityEngine.SocialPlatforms.GameCenter.GcUserProfileData::isFriend int32_t ___isFriend_2; // UnityEngine.Texture2D UnityEngine.SocialPlatforms.GameCenter.GcUserProfileData::image Texture2D_t3840446185 * ___image_3; public: inline static int32_t get_offset_of_userName_0() { return static_cast<int32_t>(offsetof(GcUserProfileData_t2719720026, ___userName_0)); } inline String_t* get_userName_0() const { return ___userName_0; } inline String_t** get_address_of_userName_0() { return &___userName_0; } inline void set_userName_0(String_t* value) { ___userName_0 = value; Il2CppCodeGenWriteBarrier((&___userName_0), value); } inline static int32_t get_offset_of_userID_1() { return static_cast<int32_t>(offsetof(GcUserProfileData_t2719720026, ___userID_1)); } inline String_t* get_userID_1() const { return ___userID_1; } inline String_t** get_address_of_userID_1() { return &___userID_1; } inline void set_userID_1(String_t* value) { ___userID_1 = value; Il2CppCodeGenWriteBarrier((&___userID_1), value); } inline static int32_t get_offset_of_isFriend_2() { return static_cast<int32_t>(offsetof(GcUserProfileData_t2719720026, ___isFriend_2)); } inline int32_t get_isFriend_2() const { return ___isFriend_2; } inline int32_t* get_address_of_isFriend_2() { return &___isFriend_2; } inline void set_isFriend_2(int32_t value) { ___isFriend_2 = value; } inline static int32_t get_offset_of_image_3() { return static_cast<int32_t>(offsetof(GcUserProfileData_t2719720026, ___image_3)); } inline Texture2D_t3840446185 * get_image_3() const { return ___image_3; } inline Texture2D_t3840446185 ** get_address_of_image_3() { return &___image_3; } inline void set_image_3(Texture2D_t3840446185 * value) { ___image_3 = value; Il2CppCodeGenWriteBarrier((&___image_3), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of UnityEngine.SocialPlatforms.GameCenter.GcUserProfileData struct GcUserProfileData_t2719720026_marshaled_pinvoke { char* ___userName_0; char* ___userID_1; int32_t ___isFriend_2; Texture2D_t3840446185 * ___image_3; }; // Native definition for COM marshalling of UnityEngine.SocialPlatforms.GameCenter.GcUserProfileData struct GcUserProfileData_t2719720026_marshaled_com { Il2CppChar* ___userName_0; Il2CppChar* ___userID_1; int32_t ___isFriend_2; Texture2D_t3840446185 * ___image_3; }; #endif // GCUSERPROFILEDATA_T2719720026_H #ifndef TIMESPAN_T881159249_H #define TIMESPAN_T881159249_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.TimeSpan struct TimeSpan_t881159249 { public: // System.Int64 System.TimeSpan::_ticks int64_t ____ticks_8; public: inline static int32_t get_offset_of__ticks_8() { return static_cast<int32_t>(offsetof(TimeSpan_t881159249, ____ticks_8)); } inline int64_t get__ticks_8() const { return ____ticks_8; } inline int64_t* get_address_of__ticks_8() { return &____ticks_8; } inline void set__ticks_8(int64_t value) { ____ticks_8 = value; } }; struct TimeSpan_t881159249_StaticFields { public: // System.TimeSpan System.TimeSpan::MaxValue TimeSpan_t881159249 ___MaxValue_5; // System.TimeSpan System.TimeSpan::MinValue TimeSpan_t881159249 ___MinValue_6; // System.TimeSpan System.TimeSpan::Zero TimeSpan_t881159249 ___Zero_7; public: inline static int32_t get_offset_of_MaxValue_5() { return static_cast<int32_t>(offsetof(TimeSpan_t881159249_StaticFields, ___MaxValue_5)); } inline TimeSpan_t881159249 get_MaxValue_5() const { return ___MaxValue_5; } inline TimeSpan_t881159249 * get_address_of_MaxValue_5() { return &___MaxValue_5; } inline void set_MaxValue_5(TimeSpan_t881159249 value) { ___MaxValue_5 = value; } inline static int32_t get_offset_of_MinValue_6() { return static_cast<int32_t>(offsetof(TimeSpan_t881159249_StaticFields, ___MinValue_6)); } inline TimeSpan_t881159249 get_MinValue_6() const { return ___MinValue_6; } inline TimeSpan_t881159249 * get_address_of_MinValue_6() { return &___MinValue_6; } inline void set_MinValue_6(TimeSpan_t881159249 value) { ___MinValue_6 = value; } inline static int32_t get_offset_of_Zero_7() { return static_cast<int32_t>(offsetof(TimeSpan_t881159249_StaticFields, ___Zero_7)); } inline TimeSpan_t881159249 get_Zero_7() const { return ___Zero_7; } inline TimeSpan_t881159249 * get_address_of_Zero_7() { return &___Zero_7; } inline void set_Zero_7(TimeSpan_t881159249 value) { ___Zero_7 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // TIMESPAN_T881159249_H #ifndef LAYERMASK_T3493934918_H #define LAYERMASK_T3493934918_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.LayerMask struct LayerMask_t3493934918 { public: // System.Int32 UnityEngine.LayerMask::m_Mask int32_t ___m_Mask_0; public: inline static int32_t get_offset_of_m_Mask_0() { return static_cast<int32_t>(offsetof(LayerMask_t3493934918, ___m_Mask_0)); } inline int32_t get_m_Mask_0() const { return ___m_Mask_0; } inline int32_t* get_address_of_m_Mask_0() { return &___m_Mask_0; } inline void set_m_Mask_0(int32_t value) { ___m_Mask_0 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // LAYERMASK_T3493934918_H #ifndef VECTOR3_T3722313464_H #define VECTOR3_T3722313464_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Vector3 struct Vector3_t3722313464 { public: // System.Single UnityEngine.Vector3::x float ___x_1; // System.Single UnityEngine.Vector3::y float ___y_2; // System.Single UnityEngine.Vector3::z float ___z_3; public: inline static int32_t get_offset_of_x_1() { return static_cast<int32_t>(offsetof(Vector3_t3722313464, ___x_1)); } inline float get_x_1() const { return ___x_1; } inline float* get_address_of_x_1() { return &___x_1; } inline void set_x_1(float value) { ___x_1 = value; } inline static int32_t get_offset_of_y_2() { return static_cast<int32_t>(offsetof(Vector3_t3722313464, ___y_2)); } inline float get_y_2() const { return ___y_2; } inline float* get_address_of_y_2() { return &___y_2; } inline void set_y_2(float value) { ___y_2 = value; } inline static int32_t get_offset_of_z_3() { return static_cast<int32_t>(offsetof(Vector3_t3722313464, ___z_3)); } inline float get_z_3() const { return ___z_3; } inline float* get_address_of_z_3() { return &___z_3; } inline void set_z_3(float value) { ___z_3 = value; } }; struct Vector3_t3722313464_StaticFields { public: // UnityEngine.Vector3 UnityEngine.Vector3::zeroVector Vector3_t3722313464 ___zeroVector_4; // UnityEngine.Vector3 UnityEngine.Vector3::oneVector Vector3_t3722313464 ___oneVector_5; // UnityEngine.Vector3 UnityEngine.Vector3::upVector Vector3_t3722313464 ___upVector_6; // UnityEngine.Vector3 UnityEngine.Vector3::downVector Vector3_t3722313464 ___downVector_7; // UnityEngine.Vector3 UnityEngine.Vector3::leftVector Vector3_t3722313464 ___leftVector_8; // UnityEngine.Vector3 UnityEngine.Vector3::rightVector Vector3_t3722313464 ___rightVector_9; // UnityEngine.Vector3 UnityEngine.Vector3::forwardVector Vector3_t3722313464 ___forwardVector_10; // UnityEngine.Vector3 UnityEngine.Vector3::backVector Vector3_t3722313464 ___backVector_11; // UnityEngine.Vector3 UnityEngine.Vector3::positiveInfinityVector Vector3_t3722313464 ___positiveInfinityVector_12; // UnityEngine.Vector3 UnityEngine.Vector3::negativeInfinityVector Vector3_t3722313464 ___negativeInfinityVector_13; public: inline static int32_t get_offset_of_zeroVector_4() { return static_cast<int32_t>(offsetof(Vector3_t3722313464_StaticFields, ___zeroVector_4)); } inline Vector3_t3722313464 get_zeroVector_4() const { return ___zeroVector_4; } inline Vector3_t3722313464 * get_address_of_zeroVector_4() { return &___zeroVector_4; } inline void set_zeroVector_4(Vector3_t3722313464 value) { ___zeroVector_4 = value; } inline static int32_t get_offset_of_oneVector_5() { return static_cast<int32_t>(offsetof(Vector3_t3722313464_StaticFields, ___oneVector_5)); } inline Vector3_t3722313464 get_oneVector_5() const { return ___oneVector_5; } inline Vector3_t3722313464 * get_address_of_oneVector_5() { return &___oneVector_5; } inline void set_oneVector_5(Vector3_t3722313464 value) { ___oneVector_5 = value; } inline static int32_t get_offset_of_upVector_6() { return static_cast<int32_t>(offsetof(Vector3_t3722313464_StaticFields, ___upVector_6)); } inline Vector3_t3722313464 get_upVector_6() const { return ___upVector_6; } inline Vector3_t3722313464 * get_address_of_upVector_6() { return &___upVector_6; } inline void set_upVector_6(Vector3_t3722313464 value) { ___upVector_6 = value; } inline static int32_t get_offset_of_downVector_7() { return static_cast<int32_t>(offsetof(Vector3_t3722313464_StaticFields, ___downVector_7)); } inline Vector3_t3722313464 get_downVector_7() const { return ___downVector_7; } inline Vector3_t3722313464 * get_address_of_downVector_7() { return &___downVector_7; } inline void set_downVector_7(Vector3_t3722313464 value) { ___downVector_7 = value; } inline static int32_t get_offset_of_leftVector_8() { return static_cast<int32_t>(offsetof(Vector3_t3722313464_StaticFields, ___leftVector_8)); } inline Vector3_t3722313464 get_leftVector_8() const { return ___leftVector_8; } inline Vector3_t3722313464 * get_address_of_leftVector_8() { return &___leftVector_8; } inline void set_leftVector_8(Vector3_t3722313464 value) { ___leftVector_8 = value; } inline static int32_t get_offset_of_rightVector_9() { return static_cast<int32_t>(offsetof(Vector3_t3722313464_StaticFields, ___rightVector_9)); } inline Vector3_t3722313464 get_rightVector_9() const { return ___rightVector_9; } inline Vector3_t3722313464 * get_address_of_rightVector_9() { return &___rightVector_9; } inline void set_rightVector_9(Vector3_t3722313464 value) { ___rightVector_9 = value; } inline static int32_t get_offset_of_forwardVector_10() { return static_cast<int32_t>(offsetof(Vector3_t3722313464_StaticFields, ___forwardVector_10)); } inline Vector3_t3722313464 get_forwardVector_10() const { return ___forwardVector_10; } inline Vector3_t3722313464 * get_address_of_forwardVector_10() { return &___forwardVector_10; } inline void set_forwardVector_10(Vector3_t3722313464 value) { ___forwardVector_10 = value; } inline static int32_t get_offset_of_backVector_11() { return static_cast<int32_t>(offsetof(Vector3_t3722313464_StaticFields, ___backVector_11)); } inline Vector3_t3722313464 get_backVector_11() const { return ___backVector_11; } inline Vector3_t3722313464 * get_address_of_backVector_11() { return &___backVector_11; } inline void set_backVector_11(Vector3_t3722313464 value) { ___backVector_11 = value; } inline static int32_t get_offset_of_positiveInfinityVector_12() { return static_cast<int32_t>(offsetof(Vector3_t3722313464_StaticFields, ___positiveInfinityVector_12)); } inline Vector3_t3722313464 get_positiveInfinityVector_12() const { return ___positiveInfinityVector_12; } inline Vector3_t3722313464 * get_address_of_positiveInfinityVector_12() { return &___positiveInfinityVector_12; } inline void set_positiveInfinityVector_12(Vector3_t3722313464 value) { ___positiveInfinityVector_12 = value; } inline static int32_t get_offset_of_negativeInfinityVector_13() { return static_cast<int32_t>(offsetof(Vector3_t3722313464_StaticFields, ___negativeInfinityVector_13)); } inline Vector3_t3722313464 get_negativeInfinityVector_13() const { return ___negativeInfinityVector_13; } inline Vector3_t3722313464 * get_address_of_negativeInfinityVector_13() { return &___negativeInfinityVector_13; } inline void set_negativeInfinityVector_13(Vector3_t3722313464 value) { ___negativeInfinityVector_13 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // VECTOR3_T3722313464_H #ifndef ANIMATORCLIPINFO_T3156717155_H #define ANIMATORCLIPINFO_T3156717155_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.AnimatorClipInfo struct AnimatorClipInfo_t3156717155 { public: // System.Int32 UnityEngine.AnimatorClipInfo::m_ClipInstanceID int32_t ___m_ClipInstanceID_0; // System.Single UnityEngine.AnimatorClipInfo::m_Weight float ___m_Weight_1; public: inline static int32_t get_offset_of_m_ClipInstanceID_0() { return static_cast<int32_t>(offsetof(AnimatorClipInfo_t3156717155, ___m_ClipInstanceID_0)); } inline int32_t get_m_ClipInstanceID_0() const { return ___m_ClipInstanceID_0; } inline int32_t* get_address_of_m_ClipInstanceID_0() { return &___m_ClipInstanceID_0; } inline void set_m_ClipInstanceID_0(int32_t value) { ___m_ClipInstanceID_0 = value; } inline static int32_t get_offset_of_m_Weight_1() { return static_cast<int32_t>(offsetof(AnimatorClipInfo_t3156717155, ___m_Weight_1)); } inline float get_m_Weight_1() const { return ___m_Weight_1; } inline float* get_address_of_m_Weight_1() { return &___m_Weight_1; } inline void set_m_Weight_1(float value) { ___m_Weight_1 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // ANIMATORCLIPINFO_T3156717155_H #ifndef INT32_T2950945753_H #define INT32_T2950945753_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Int32 struct Int32_t2950945753 { public: // System.Int32 System.Int32::m_value int32_t ___m_value_2; public: inline static int32_t get_offset_of_m_value_2() { return static_cast<int32_t>(offsetof(Int32_t2950945753, ___m_value_2)); } inline int32_t get_m_value_2() const { return ___m_value_2; } inline int32_t* get_address_of_m_value_2() { return &___m_value_2; } inline void set_m_value_2(int32_t value) { ___m_value_2 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // INT32_T2950945753_H #ifndef RECTOFFSET_T1369453676_H #define RECTOFFSET_T1369453676_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.RectOffset struct RectOffset_t1369453676 : public RuntimeObject { public: // System.IntPtr UnityEngine.RectOffset::m_Ptr intptr_t ___m_Ptr_0; // System.Object UnityEngine.RectOffset::m_SourceStyle RuntimeObject * ___m_SourceStyle_1; public: inline static int32_t get_offset_of_m_Ptr_0() { return static_cast<int32_t>(offsetof(RectOffset_t1369453676, ___m_Ptr_0)); } inline intptr_t get_m_Ptr_0() const { return ___m_Ptr_0; } inline intptr_t* get_address_of_m_Ptr_0() { return &___m_Ptr_0; } inline void set_m_Ptr_0(intptr_t value) { ___m_Ptr_0 = value; } inline static int32_t get_offset_of_m_SourceStyle_1() { return static_cast<int32_t>(offsetof(RectOffset_t1369453676, ___m_SourceStyle_1)); } inline RuntimeObject * get_m_SourceStyle_1() const { return ___m_SourceStyle_1; } inline RuntimeObject ** get_address_of_m_SourceStyle_1() { return &___m_SourceStyle_1; } inline void set_m_SourceStyle_1(RuntimeObject * value) { ___m_SourceStyle_1 = value; Il2CppCodeGenWriteBarrier((&___m_SourceStyle_1), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of UnityEngine.RectOffset struct RectOffset_t1369453676_marshaled_pinvoke { intptr_t ___m_Ptr_0; Il2CppIUnknown* ___m_SourceStyle_1; }; // Native definition for COM marshalling of UnityEngine.RectOffset struct RectOffset_t1369453676_marshaled_com { intptr_t ___m_Ptr_0; Il2CppIUnknown* ___m_SourceStyle_1; }; #endif // RECTOFFSET_T1369453676_H #ifndef DATETIMEKIND_T3468814247_H #define DATETIMEKIND_T3468814247_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.DateTimeKind struct DateTimeKind_t3468814247 { public: // System.Int32 System.DateTimeKind::value__ int32_t ___value___1; public: inline static int32_t get_offset_of_value___1() { return static_cast<int32_t>(offsetof(DateTimeKind_t3468814247, ___value___1)); } inline int32_t get_value___1() const { return ___value___1; } inline int32_t* get_address_of_value___1() { return &___value___1; } inline void set_value___1(int32_t value) { ___value___1 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // DATETIMEKIND_T3468814247_H #ifndef DBLCLICKSNAPPING_T2629979741_H #define DBLCLICKSNAPPING_T2629979741_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.TextEditor/DblClickSnapping struct DblClickSnapping_t2629979741 { public: // System.Byte UnityEngine.TextEditor/DblClickSnapping::value__ uint8_t ___value___1; public: inline static int32_t get_offset_of_value___1() { return static_cast<int32_t>(offsetof(DblClickSnapping_t2629979741, ___value___1)); } inline uint8_t get_value___1() const { return ___value___1; } inline uint8_t* get_address_of_value___1() { return &___value___1; } inline void set_value___1(uint8_t value) { ___value___1 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // DBLCLICKSNAPPING_T2629979741_H #ifndef OBJECT_T631007953_H #define OBJECT_T631007953_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Object struct Object_t631007953 : public RuntimeObject { public: // System.IntPtr UnityEngine.Object::m_CachedPtr intptr_t ___m_CachedPtr_0; public: inline static int32_t get_offset_of_m_CachedPtr_0() { return static_cast<int32_t>(offsetof(Object_t631007953, ___m_CachedPtr_0)); } inline intptr_t get_m_CachedPtr_0() const { return ___m_CachedPtr_0; } inline intptr_t* get_address_of_m_CachedPtr_0() { return &___m_CachedPtr_0; } inline void set_m_CachedPtr_0(intptr_t value) { ___m_CachedPtr_0 = value; } }; struct Object_t631007953_StaticFields { public: // System.Int32 UnityEngine.Object::OffsetOfInstanceIDInCPlusPlusObject int32_t ___OffsetOfInstanceIDInCPlusPlusObject_1; public: inline static int32_t get_offset_of_OffsetOfInstanceIDInCPlusPlusObject_1() { return static_cast<int32_t>(offsetof(Object_t631007953_StaticFields, ___OffsetOfInstanceIDInCPlusPlusObject_1)); } inline int32_t get_OffsetOfInstanceIDInCPlusPlusObject_1() const { return ___OffsetOfInstanceIDInCPlusPlusObject_1; } inline int32_t* get_address_of_OffsetOfInstanceIDInCPlusPlusObject_1() { return &___OffsetOfInstanceIDInCPlusPlusObject_1; } inline void set_OffsetOfInstanceIDInCPlusPlusObject_1(int32_t value) { ___OffsetOfInstanceIDInCPlusPlusObject_1 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of UnityEngine.Object struct Object_t631007953_marshaled_pinvoke { intptr_t ___m_CachedPtr_0; }; // Native definition for COM marshalling of UnityEngine.Object struct Object_t631007953_marshaled_com { intptr_t ___m_CachedPtr_0; }; #endif // OBJECT_T631007953_H #ifndef TRACKEDREFERENCE_T1199777556_H #define TRACKEDREFERENCE_T1199777556_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.TrackedReference struct TrackedReference_t1199777556 : public RuntimeObject { public: // System.IntPtr UnityEngine.TrackedReference::m_Ptr intptr_t ___m_Ptr_0; public: inline static int32_t get_offset_of_m_Ptr_0() { return static_cast<int32_t>(offsetof(TrackedReference_t1199777556, ___m_Ptr_0)); } inline intptr_t get_m_Ptr_0() const { return ___m_Ptr_0; } inline intptr_t* get_address_of_m_Ptr_0() { return &___m_Ptr_0; } inline void set_m_Ptr_0(intptr_t value) { ___m_Ptr_0 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of UnityEngine.TrackedReference struct TrackedReference_t1199777556_marshaled_pinvoke { intptr_t ___m_Ptr_0; }; // Native definition for COM marshalling of UnityEngine.TrackedReference struct TrackedReference_t1199777556_marshaled_com { intptr_t ___m_Ptr_0; }; #endif // TRACKEDREFERENCE_T1199777556_H #ifndef PLAYABLEHANDLE_T1095853803_H #define PLAYABLEHANDLE_T1095853803_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Playables.PlayableHandle struct PlayableHandle_t1095853803 { public: // System.IntPtr UnityEngine.Playables.PlayableHandle::m_Handle intptr_t ___m_Handle_0; // System.Int32 UnityEngine.Playables.PlayableHandle::m_Version int32_t ___m_Version_1; public: inline static int32_t get_offset_of_m_Handle_0() { return static_cast<int32_t>(offsetof(PlayableHandle_t1095853803, ___m_Handle_0)); } inline intptr_t get_m_Handle_0() const { return ___m_Handle_0; } inline intptr_t* get_address_of_m_Handle_0() { return &___m_Handle_0; } inline void set_m_Handle_0(intptr_t value) { ___m_Handle_0 = value; } inline static int32_t get_offset_of_m_Version_1() { return static_cast<int32_t>(offsetof(PlayableHandle_t1095853803, ___m_Version_1)); } inline int32_t get_m_Version_1() const { return ___m_Version_1; } inline int32_t* get_address_of_m_Version_1() { return &___m_Version_1; } inline void set_m_Version_1(int32_t value) { ___m_Version_1 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // PLAYABLEHANDLE_T1095853803_H #ifndef CONTROLLERCOLLIDERHIT_T240592346_H #define CONTROLLERCOLLIDERHIT_T240592346_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.ControllerColliderHit struct ControllerColliderHit_t240592346 : public RuntimeObject { public: // UnityEngine.CharacterController UnityEngine.ControllerColliderHit::m_Controller CharacterController_t1138636865 * ___m_Controller_0; // UnityEngine.Collider UnityEngine.ControllerColliderHit::m_Collider Collider_t1773347010 * ___m_Collider_1; // UnityEngine.Vector3 UnityEngine.ControllerColliderHit::m_Point Vector3_t3722313464 ___m_Point_2; // UnityEngine.Vector3 UnityEngine.ControllerColliderHit::m_Normal Vector3_t3722313464 ___m_Normal_3; // UnityEngine.Vector3 UnityEngine.ControllerColliderHit::m_MoveDirection Vector3_t3722313464 ___m_MoveDirection_4; // System.Single UnityEngine.ControllerColliderHit::m_MoveLength float ___m_MoveLength_5; // System.Int32 UnityEngine.ControllerColliderHit::m_Push int32_t ___m_Push_6; public: inline static int32_t get_offset_of_m_Controller_0() { return static_cast<int32_t>(offsetof(ControllerColliderHit_t240592346, ___m_Controller_0)); } inline CharacterController_t1138636865 * get_m_Controller_0() const { return ___m_Controller_0; } inline CharacterController_t1138636865 ** get_address_of_m_Controller_0() { return &___m_Controller_0; } inline void set_m_Controller_0(CharacterController_t1138636865 * value) { ___m_Controller_0 = value; Il2CppCodeGenWriteBarrier((&___m_Controller_0), value); } inline static int32_t get_offset_of_m_Collider_1() { return static_cast<int32_t>(offsetof(ControllerColliderHit_t240592346, ___m_Collider_1)); } inline Collider_t1773347010 * get_m_Collider_1() const { return ___m_Collider_1; } inline Collider_t1773347010 ** get_address_of_m_Collider_1() { return &___m_Collider_1; } inline void set_m_Collider_1(Collider_t1773347010 * value) { ___m_Collider_1 = value; Il2CppCodeGenWriteBarrier((&___m_Collider_1), value); } inline static int32_t get_offset_of_m_Point_2() { return static_cast<int32_t>(offsetof(ControllerColliderHit_t240592346, ___m_Point_2)); } inline Vector3_t3722313464 get_m_Point_2() const { return ___m_Point_2; } inline Vector3_t3722313464 * get_address_of_m_Point_2() { return &___m_Point_2; } inline void set_m_Point_2(Vector3_t3722313464 value) { ___m_Point_2 = value; } inline static int32_t get_offset_of_m_Normal_3() { return static_cast<int32_t>(offsetof(ControllerColliderHit_t240592346, ___m_Normal_3)); } inline Vector3_t3722313464 get_m_Normal_3() const { return ___m_Normal_3; } inline Vector3_t3722313464 * get_address_of_m_Normal_3() { return &___m_Normal_3; } inline void set_m_Normal_3(Vector3_t3722313464 value) { ___m_Normal_3 = value; } inline static int32_t get_offset_of_m_MoveDirection_4() { return static_cast<int32_t>(offsetof(ControllerColliderHit_t240592346, ___m_MoveDirection_4)); } inline Vector3_t3722313464 get_m_MoveDirection_4() const { return ___m_MoveDirection_4; } inline Vector3_t3722313464 * get_address_of_m_MoveDirection_4() { return &___m_MoveDirection_4; } inline void set_m_MoveDirection_4(Vector3_t3722313464 value) { ___m_MoveDirection_4 = value; } inline static int32_t get_offset_of_m_MoveLength_5() { return static_cast<int32_t>(offsetof(ControllerColliderHit_t240592346, ___m_MoveLength_5)); } inline float get_m_MoveLength_5() const { return ___m_MoveLength_5; } inline float* get_address_of_m_MoveLength_5() { return &___m_MoveLength_5; } inline void set_m_MoveLength_5(float value) { ___m_MoveLength_5 = value; } inline static int32_t get_offset_of_m_Push_6() { return static_cast<int32_t>(offsetof(ControllerColliderHit_t240592346, ___m_Push_6)); } inline int32_t get_m_Push_6() const { return ___m_Push_6; } inline int32_t* get_address_of_m_Push_6() { return &___m_Push_6; } inline void set_m_Push_6(int32_t value) { ___m_Push_6 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of UnityEngine.ControllerColliderHit struct ControllerColliderHit_t240592346_marshaled_pinvoke { CharacterController_t1138636865 * ___m_Controller_0; Collider_t1773347010 * ___m_Collider_1; Vector3_t3722313464 ___m_Point_2; Vector3_t3722313464 ___m_Normal_3; Vector3_t3722313464 ___m_MoveDirection_4; float ___m_MoveLength_5; int32_t ___m_Push_6; }; // Native definition for COM marshalling of UnityEngine.ControllerColliderHit struct ControllerColliderHit_t240592346_marshaled_com { CharacterController_t1138636865 * ___m_Controller_0; Collider_t1773347010 * ___m_Collider_1; Vector3_t3722313464 ___m_Point_2; Vector3_t3722313464 ___m_Normal_3; Vector3_t3722313464 ___m_MoveDirection_4; float ___m_MoveLength_5; int32_t ___m_Push_6; }; #endif // CONTROLLERCOLLIDERHIT_T240592346_H #ifndef FORCEMODE_T3656391766_H #define FORCEMODE_T3656391766_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.ForceMode struct ForceMode_t3656391766 { public: // System.Int32 UnityEngine.ForceMode::value__ int32_t ___value___1; public: inline static int32_t get_offset_of_value___1() { return static_cast<int32_t>(offsetof(ForceMode_t3656391766, ___value___1)); } inline int32_t get_value___1() const { return ___value___1; } inline int32_t* get_address_of_value___1() { return &___value___1; } inline void set_value___1(int32_t value) { ___value___1 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // FORCEMODE_T3656391766_H #ifndef RAYCASTHIT_T1056001966_H #define RAYCASTHIT_T1056001966_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.RaycastHit struct RaycastHit_t1056001966 { public: // UnityEngine.Vector3 UnityEngine.RaycastHit::m_Point Vector3_t3722313464 ___m_Point_0; // UnityEngine.Vector3 UnityEngine.RaycastHit::m_Normal Vector3_t3722313464 ___m_Normal_1; // System.Int32 UnityEngine.RaycastHit::m_FaceID int32_t ___m_FaceID_2; // System.Single UnityEngine.RaycastHit::m_Distance float ___m_Distance_3; // UnityEngine.Vector2 UnityEngine.RaycastHit::m_UV Vector2_t2156229523 ___m_UV_4; // UnityEngine.Collider UnityEngine.RaycastHit::m_Collider Collider_t1773347010 * ___m_Collider_5; public: inline static int32_t get_offset_of_m_Point_0() { return static_cast<int32_t>(offsetof(RaycastHit_t1056001966, ___m_Point_0)); } inline Vector3_t3722313464 get_m_Point_0() const { return ___m_Point_0; } inline Vector3_t3722313464 * get_address_of_m_Point_0() { return &___m_Point_0; } inline void set_m_Point_0(Vector3_t3722313464 value) { ___m_Point_0 = value; } inline static int32_t get_offset_of_m_Normal_1() { return static_cast<int32_t>(offsetof(RaycastHit_t1056001966, ___m_Normal_1)); } inline Vector3_t3722313464 get_m_Normal_1() const { return ___m_Normal_1; } inline Vector3_t3722313464 * get_address_of_m_Normal_1() { return &___m_Normal_1; } inline void set_m_Normal_1(Vector3_t3722313464 value) { ___m_Normal_1 = value; } inline static int32_t get_offset_of_m_FaceID_2() { return static_cast<int32_t>(offsetof(RaycastHit_t1056001966, ___m_FaceID_2)); } inline int32_t get_m_FaceID_2() const { return ___m_FaceID_2; } inline int32_t* get_address_of_m_FaceID_2() { return &___m_FaceID_2; } inline void set_m_FaceID_2(int32_t value) { ___m_FaceID_2 = value; } inline static int32_t get_offset_of_m_Distance_3() { return static_cast<int32_t>(offsetof(RaycastHit_t1056001966, ___m_Distance_3)); } inline float get_m_Distance_3() const { return ___m_Distance_3; } inline float* get_address_of_m_Distance_3() { return &___m_Distance_3; } inline void set_m_Distance_3(float value) { ___m_Distance_3 = value; } inline static int32_t get_offset_of_m_UV_4() { return static_cast<int32_t>(offsetof(RaycastHit_t1056001966, ___m_UV_4)); } inline Vector2_t2156229523 get_m_UV_4() const { return ___m_UV_4; } inline Vector2_t2156229523 * get_address_of_m_UV_4() { return &___m_UV_4; } inline void set_m_UV_4(Vector2_t2156229523 value) { ___m_UV_4 = value; } inline static int32_t get_offset_of_m_Collider_5() { return static_cast<int32_t>(offsetof(RaycastHit_t1056001966, ___m_Collider_5)); } inline Collider_t1773347010 * get_m_Collider_5() const { return ___m_Collider_5; } inline Collider_t1773347010 ** get_address_of_m_Collider_5() { return &___m_Collider_5; } inline void set_m_Collider_5(Collider_t1773347010 * value) { ___m_Collider_5 = value; Il2CppCodeGenWriteBarrier((&___m_Collider_5), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of UnityEngine.RaycastHit struct RaycastHit_t1056001966_marshaled_pinvoke { Vector3_t3722313464 ___m_Point_0; Vector3_t3722313464 ___m_Normal_1; int32_t ___m_FaceID_2; float ___m_Distance_3; Vector2_t2156229523 ___m_UV_4; Collider_t1773347010 * ___m_Collider_5; }; // Native definition for COM marshalling of UnityEngine.RaycastHit struct RaycastHit_t1056001966_marshaled_com { Vector3_t3722313464 ___m_Point_0; Vector3_t3722313464 ___m_Normal_1; int32_t ___m_FaceID_2; float ___m_Distance_3; Vector2_t2156229523 ___m_UV_4; Collider_t1773347010 * ___m_Collider_5; }; #endif // RAYCASTHIT_T1056001966_H #ifndef COLLISION2D_T2842956331_H #define COLLISION2D_T2842956331_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Collision2D struct Collision2D_t2842956331 : public RuntimeObject { public: // System.Int32 UnityEngine.Collision2D::m_Collider int32_t ___m_Collider_0; // System.Int32 UnityEngine.Collision2D::m_OtherCollider int32_t ___m_OtherCollider_1; // System.Int32 UnityEngine.Collision2D::m_Rigidbody int32_t ___m_Rigidbody_2; // System.Int32 UnityEngine.Collision2D::m_OtherRigidbody int32_t ___m_OtherRigidbody_3; // UnityEngine.ContactPoint2D[] UnityEngine.Collision2D::m_Contacts ContactPoint2DU5BU5D_t96683501* ___m_Contacts_4; // UnityEngine.Vector2 UnityEngine.Collision2D::m_RelativeVelocity Vector2_t2156229523 ___m_RelativeVelocity_5; // System.Int32 UnityEngine.Collision2D::m_Enabled int32_t ___m_Enabled_6; public: inline static int32_t get_offset_of_m_Collider_0() { return static_cast<int32_t>(offsetof(Collision2D_t2842956331, ___m_Collider_0)); } inline int32_t get_m_Collider_0() const { return ___m_Collider_0; } inline int32_t* get_address_of_m_Collider_0() { return &___m_Collider_0; } inline void set_m_Collider_0(int32_t value) { ___m_Collider_0 = value; } inline static int32_t get_offset_of_m_OtherCollider_1() { return static_cast<int32_t>(offsetof(Collision2D_t2842956331, ___m_OtherCollider_1)); } inline int32_t get_m_OtherCollider_1() const { return ___m_OtherCollider_1; } inline int32_t* get_address_of_m_OtherCollider_1() { return &___m_OtherCollider_1; } inline void set_m_OtherCollider_1(int32_t value) { ___m_OtherCollider_1 = value; } inline static int32_t get_offset_of_m_Rigidbody_2() { return static_cast<int32_t>(offsetof(Collision2D_t2842956331, ___m_Rigidbody_2)); } inline int32_t get_m_Rigidbody_2() const { return ___m_Rigidbody_2; } inline int32_t* get_address_of_m_Rigidbody_2() { return &___m_Rigidbody_2; } inline void set_m_Rigidbody_2(int32_t value) { ___m_Rigidbody_2 = value; } inline static int32_t get_offset_of_m_OtherRigidbody_3() { return static_cast<int32_t>(offsetof(Collision2D_t2842956331, ___m_OtherRigidbody_3)); } inline int32_t get_m_OtherRigidbody_3() const { return ___m_OtherRigidbody_3; } inline int32_t* get_address_of_m_OtherRigidbody_3() { return &___m_OtherRigidbody_3; } inline void set_m_OtherRigidbody_3(int32_t value) { ___m_OtherRigidbody_3 = value; } inline static int32_t get_offset_of_m_Contacts_4() { return static_cast<int32_t>(offsetof(Collision2D_t2842956331, ___m_Contacts_4)); } inline ContactPoint2DU5BU5D_t96683501* get_m_Contacts_4() const { return ___m_Contacts_4; } inline ContactPoint2DU5BU5D_t96683501** get_address_of_m_Contacts_4() { return &___m_Contacts_4; } inline void set_m_Contacts_4(ContactPoint2DU5BU5D_t96683501* value) { ___m_Contacts_4 = value; Il2CppCodeGenWriteBarrier((&___m_Contacts_4), value); } inline static int32_t get_offset_of_m_RelativeVelocity_5() { return static_cast<int32_t>(offsetof(Collision2D_t2842956331, ___m_RelativeVelocity_5)); } inline Vector2_t2156229523 get_m_RelativeVelocity_5() const { return ___m_RelativeVelocity_5; } inline Vector2_t2156229523 * get_address_of_m_RelativeVelocity_5() { return &___m_RelativeVelocity_5; } inline void set_m_RelativeVelocity_5(Vector2_t2156229523 value) { ___m_RelativeVelocity_5 = value; } inline static int32_t get_offset_of_m_Enabled_6() { return static_cast<int32_t>(offsetof(Collision2D_t2842956331, ___m_Enabled_6)); } inline int32_t get_m_Enabled_6() const { return ___m_Enabled_6; } inline int32_t* get_address_of_m_Enabled_6() { return &___m_Enabled_6; } inline void set_m_Enabled_6(int32_t value) { ___m_Enabled_6 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of UnityEngine.Collision2D struct Collision2D_t2842956331_marshaled_pinvoke { int32_t ___m_Collider_0; int32_t ___m_OtherCollider_1; int32_t ___m_Rigidbody_2; int32_t ___m_OtherRigidbody_3; ContactPoint2D_t3390240644 * ___m_Contacts_4; Vector2_t2156229523 ___m_RelativeVelocity_5; int32_t ___m_Enabled_6; }; // Native definition for COM marshalling of UnityEngine.Collision2D struct Collision2D_t2842956331_marshaled_com { int32_t ___m_Collider_0; int32_t ___m_OtherCollider_1; int32_t ___m_Rigidbody_2; int32_t ___m_OtherRigidbody_3; ContactPoint2D_t3390240644 * ___m_Contacts_4; Vector2_t2156229523 ___m_RelativeVelocity_5; int32_t ___m_Enabled_6; }; #endif // COLLISION2D_T2842956331_H #ifndef CONTACTFILTER2D_T3805203441_H #define CONTACTFILTER2D_T3805203441_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.ContactFilter2D struct ContactFilter2D_t3805203441 { public: // System.Boolean UnityEngine.ContactFilter2D::useTriggers bool ___useTriggers_0; // System.Boolean UnityEngine.ContactFilter2D::useLayerMask bool ___useLayerMask_1; // System.Boolean UnityEngine.ContactFilter2D::useDepth bool ___useDepth_2; // System.Boolean UnityEngine.ContactFilter2D::useOutsideDepth bool ___useOutsideDepth_3; // System.Boolean UnityEngine.ContactFilter2D::useNormalAngle bool ___useNormalAngle_4; // System.Boolean UnityEngine.ContactFilter2D::useOutsideNormalAngle bool ___useOutsideNormalAngle_5; // UnityEngine.LayerMask UnityEngine.ContactFilter2D::layerMask LayerMask_t3493934918 ___layerMask_6; // System.Single UnityEngine.ContactFilter2D::minDepth float ___minDepth_7; // System.Single UnityEngine.ContactFilter2D::maxDepth float ___maxDepth_8; // System.Single UnityEngine.ContactFilter2D::minNormalAngle float ___minNormalAngle_9; // System.Single UnityEngine.ContactFilter2D::maxNormalAngle float ___maxNormalAngle_10; public: inline static int32_t get_offset_of_useTriggers_0() { return static_cast<int32_t>(offsetof(ContactFilter2D_t3805203441, ___useTriggers_0)); } inline bool get_useTriggers_0() const { return ___useTriggers_0; } inline bool* get_address_of_useTriggers_0() { return &___useTriggers_0; } inline void set_useTriggers_0(bool value) { ___useTriggers_0 = value; } inline static int32_t get_offset_of_useLayerMask_1() { return static_cast<int32_t>(offsetof(ContactFilter2D_t3805203441, ___useLayerMask_1)); } inline bool get_useLayerMask_1() const { return ___useLayerMask_1; } inline bool* get_address_of_useLayerMask_1() { return &___useLayerMask_1; } inline void set_useLayerMask_1(bool value) { ___useLayerMask_1 = value; } inline static int32_t get_offset_of_useDepth_2() { return static_cast<int32_t>(offsetof(ContactFilter2D_t3805203441, ___useDepth_2)); } inline bool get_useDepth_2() const { return ___useDepth_2; } inline bool* get_address_of_useDepth_2() { return &___useDepth_2; } inline void set_useDepth_2(bool value) { ___useDepth_2 = value; } inline static int32_t get_offset_of_useOutsideDepth_3() { return static_cast<int32_t>(offsetof(ContactFilter2D_t3805203441, ___useOutsideDepth_3)); } inline bool get_useOutsideDepth_3() const { return ___useOutsideDepth_3; } inline bool* get_address_of_useOutsideDepth_3() { return &___useOutsideDepth_3; } inline void set_useOutsideDepth_3(bool value) { ___useOutsideDepth_3 = value; } inline static int32_t get_offset_of_useNormalAngle_4() { return static_cast<int32_t>(offsetof(ContactFilter2D_t3805203441, ___useNormalAngle_4)); } inline bool get_useNormalAngle_4() const { return ___useNormalAngle_4; } inline bool* get_address_of_useNormalAngle_4() { return &___useNormalAngle_4; } inline void set_useNormalAngle_4(bool value) { ___useNormalAngle_4 = value; } inline static int32_t get_offset_of_useOutsideNormalAngle_5() { return static_cast<int32_t>(offsetof(ContactFilter2D_t3805203441, ___useOutsideNormalAngle_5)); } inline bool get_useOutsideNormalAngle_5() const { return ___useOutsideNormalAngle_5; } inline bool* get_address_of_useOutsideNormalAngle_5() { return &___useOutsideNormalAngle_5; } inline void set_useOutsideNormalAngle_5(bool value) { ___useOutsideNormalAngle_5 = value; } inline static int32_t get_offset_of_layerMask_6() { return static_cast<int32_t>(offsetof(ContactFilter2D_t3805203441, ___layerMask_6)); } inline LayerMask_t3493934918 get_layerMask_6() const { return ___layerMask_6; } inline LayerMask_t3493934918 * get_address_of_layerMask_6() { return &___layerMask_6; } inline void set_layerMask_6(LayerMask_t3493934918 value) { ___layerMask_6 = value; } inline static int32_t get_offset_of_minDepth_7() { return static_cast<int32_t>(offsetof(ContactFilter2D_t3805203441, ___minDepth_7)); } inline float get_minDepth_7() const { return ___minDepth_7; } inline float* get_address_of_minDepth_7() { return &___minDepth_7; } inline void set_minDepth_7(float value) { ___minDepth_7 = value; } inline static int32_t get_offset_of_maxDepth_8() { return static_cast<int32_t>(offsetof(ContactFilter2D_t3805203441, ___maxDepth_8)); } inline float get_maxDepth_8() const { return ___maxDepth_8; } inline float* get_address_of_maxDepth_8() { return &___maxDepth_8; } inline void set_maxDepth_8(float value) { ___maxDepth_8 = value; } inline static int32_t get_offset_of_minNormalAngle_9() { return static_cast<int32_t>(offsetof(ContactFilter2D_t3805203441, ___minNormalAngle_9)); } inline float get_minNormalAngle_9() const { return ___minNormalAngle_9; } inline float* get_address_of_minNormalAngle_9() { return &___minNormalAngle_9; } inline void set_minNormalAngle_9(float value) { ___minNormalAngle_9 = value; } inline static int32_t get_offset_of_maxNormalAngle_10() { return static_cast<int32_t>(offsetof(ContactFilter2D_t3805203441, ___maxNormalAngle_10)); } inline float get_maxNormalAngle_10() const { return ___maxNormalAngle_10; } inline float* get_address_of_maxNormalAngle_10() { return &___maxNormalAngle_10; } inline void set_maxNormalAngle_10(float value) { ___maxNormalAngle_10 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of UnityEngine.ContactFilter2D struct ContactFilter2D_t3805203441_marshaled_pinvoke { int32_t ___useTriggers_0; int32_t ___useLayerMask_1; int32_t ___useDepth_2; int32_t ___useOutsideDepth_3; int32_t ___useNormalAngle_4; int32_t ___useOutsideNormalAngle_5; LayerMask_t3493934918 ___layerMask_6; float ___minDepth_7; float ___maxDepth_8; float ___minNormalAngle_9; float ___maxNormalAngle_10; }; // Native definition for COM marshalling of UnityEngine.ContactFilter2D struct ContactFilter2D_t3805203441_marshaled_com { int32_t ___useTriggers_0; int32_t ___useLayerMask_1; int32_t ___useDepth_2; int32_t ___useOutsideDepth_3; int32_t ___useNormalAngle_4; int32_t ___useOutsideNormalAngle_5; LayerMask_t3493934918 ___layerMask_6; float ___minDepth_7; float ___maxDepth_8; float ___minNormalAngle_9; float ___maxNormalAngle_10; }; #endif // CONTACTFILTER2D_T3805203441_H #ifndef CONTACTPOINT2D_T3390240644_H #define CONTACTPOINT2D_T3390240644_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.ContactPoint2D struct ContactPoint2D_t3390240644 { public: // UnityEngine.Vector2 UnityEngine.ContactPoint2D::m_Point Vector2_t2156229523 ___m_Point_0; // UnityEngine.Vector2 UnityEngine.ContactPoint2D::m_Normal Vector2_t2156229523 ___m_Normal_1; // UnityEngine.Vector2 UnityEngine.ContactPoint2D::m_RelativeVelocity Vector2_t2156229523 ___m_RelativeVelocity_2; // System.Single UnityEngine.ContactPoint2D::m_Separation float ___m_Separation_3; // System.Single UnityEngine.ContactPoint2D::m_NormalImpulse float ___m_NormalImpulse_4; // System.Single UnityEngine.ContactPoint2D::m_TangentImpulse float ___m_TangentImpulse_5; // System.Int32 UnityEngine.ContactPoint2D::m_Collider int32_t ___m_Collider_6; // System.Int32 UnityEngine.ContactPoint2D::m_OtherCollider int32_t ___m_OtherCollider_7; // System.Int32 UnityEngine.ContactPoint2D::m_Rigidbody int32_t ___m_Rigidbody_8; // System.Int32 UnityEngine.ContactPoint2D::m_OtherRigidbody int32_t ___m_OtherRigidbody_9; // System.Int32 UnityEngine.ContactPoint2D::m_Enabled int32_t ___m_Enabled_10; public: inline static int32_t get_offset_of_m_Point_0() { return static_cast<int32_t>(offsetof(ContactPoint2D_t3390240644, ___m_Point_0)); } inline Vector2_t2156229523 get_m_Point_0() const { return ___m_Point_0; } inline Vector2_t2156229523 * get_address_of_m_Point_0() { return &___m_Point_0; } inline void set_m_Point_0(Vector2_t2156229523 value) { ___m_Point_0 = value; } inline static int32_t get_offset_of_m_Normal_1() { return static_cast<int32_t>(offsetof(ContactPoint2D_t3390240644, ___m_Normal_1)); } inline Vector2_t2156229523 get_m_Normal_1() const { return ___m_Normal_1; } inline Vector2_t2156229523 * get_address_of_m_Normal_1() { return &___m_Normal_1; } inline void set_m_Normal_1(Vector2_t2156229523 value) { ___m_Normal_1 = value; } inline static int32_t get_offset_of_m_RelativeVelocity_2() { return static_cast<int32_t>(offsetof(ContactPoint2D_t3390240644, ___m_RelativeVelocity_2)); } inline Vector2_t2156229523 get_m_RelativeVelocity_2() const { return ___m_RelativeVelocity_2; } inline Vector2_t2156229523 * get_address_of_m_RelativeVelocity_2() { return &___m_RelativeVelocity_2; } inline void set_m_RelativeVelocity_2(Vector2_t2156229523 value) { ___m_RelativeVelocity_2 = value; } inline static int32_t get_offset_of_m_Separation_3() { return static_cast<int32_t>(offsetof(ContactPoint2D_t3390240644, ___m_Separation_3)); } inline float get_m_Separation_3() const { return ___m_Separation_3; } inline float* get_address_of_m_Separation_3() { return &___m_Separation_3; } inline void set_m_Separation_3(float value) { ___m_Separation_3 = value; } inline static int32_t get_offset_of_m_NormalImpulse_4() { return static_cast<int32_t>(offsetof(ContactPoint2D_t3390240644, ___m_NormalImpulse_4)); } inline float get_m_NormalImpulse_4() const { return ___m_NormalImpulse_4; } inline float* get_address_of_m_NormalImpulse_4() { return &___m_NormalImpulse_4; } inline void set_m_NormalImpulse_4(float value) { ___m_NormalImpulse_4 = value; } inline static int32_t get_offset_of_m_TangentImpulse_5() { return static_cast<int32_t>(offsetof(ContactPoint2D_t3390240644, ___m_TangentImpulse_5)); } inline float get_m_TangentImpulse_5() const { return ___m_TangentImpulse_5; } inline float* get_address_of_m_TangentImpulse_5() { return &___m_TangentImpulse_5; } inline void set_m_TangentImpulse_5(float value) { ___m_TangentImpulse_5 = value; } inline static int32_t get_offset_of_m_Collider_6() { return static_cast<int32_t>(offsetof(ContactPoint2D_t3390240644, ___m_Collider_6)); } inline int32_t get_m_Collider_6() const { return ___m_Collider_6; } inline int32_t* get_address_of_m_Collider_6() { return &___m_Collider_6; } inline void set_m_Collider_6(int32_t value) { ___m_Collider_6 = value; } inline static int32_t get_offset_of_m_OtherCollider_7() { return static_cast<int32_t>(offsetof(ContactPoint2D_t3390240644, ___m_OtherCollider_7)); } inline int32_t get_m_OtherCollider_7() const { return ___m_OtherCollider_7; } inline int32_t* get_address_of_m_OtherCollider_7() { return &___m_OtherCollider_7; } inline void set_m_OtherCollider_7(int32_t value) { ___m_OtherCollider_7 = value; } inline static int32_t get_offset_of_m_Rigidbody_8() { return static_cast<int32_t>(offsetof(ContactPoint2D_t3390240644, ___m_Rigidbody_8)); } inline int32_t get_m_Rigidbody_8() const { return ___m_Rigidbody_8; } inline int32_t* get_address_of_m_Rigidbody_8() { return &___m_Rigidbody_8; } inline void set_m_Rigidbody_8(int32_t value) { ___m_Rigidbody_8 = value; } inline static int32_t get_offset_of_m_OtherRigidbody_9() { return static_cast<int32_t>(offsetof(ContactPoint2D_t3390240644, ___m_OtherRigidbody_9)); } inline int32_t get_m_OtherRigidbody_9() const { return ___m_OtherRigidbody_9; } inline int32_t* get_address_of_m_OtherRigidbody_9() { return &___m_OtherRigidbody_9; } inline void set_m_OtherRigidbody_9(int32_t value) { ___m_OtherRigidbody_9 = value; } inline static int32_t get_offset_of_m_Enabled_10() { return static_cast<int32_t>(offsetof(ContactPoint2D_t3390240644, ___m_Enabled_10)); } inline int32_t get_m_Enabled_10() const { return ___m_Enabled_10; } inline int32_t* get_address_of_m_Enabled_10() { return &___m_Enabled_10; } inline void set_m_Enabled_10(int32_t value) { ___m_Enabled_10 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // CONTACTPOINT2D_T3390240644_H #ifndef RAYCASTHIT2D_T2279581989_H #define RAYCASTHIT2D_T2279581989_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.RaycastHit2D struct RaycastHit2D_t2279581989 { public: // UnityEngine.Vector2 UnityEngine.RaycastHit2D::m_Centroid Vector2_t2156229523 ___m_Centroid_0; // UnityEngine.Vector2 UnityEngine.RaycastHit2D::m_Point Vector2_t2156229523 ___m_Point_1; // UnityEngine.Vector2 UnityEngine.RaycastHit2D::m_Normal Vector2_t2156229523 ___m_Normal_2; // System.Single UnityEngine.RaycastHit2D::m_Distance float ___m_Distance_3; // System.Single UnityEngine.RaycastHit2D::m_Fraction float ___m_Fraction_4; // UnityEngine.Collider2D UnityEngine.RaycastHit2D::m_Collider Collider2D_t2806799626 * ___m_Collider_5; public: inline static int32_t get_offset_of_m_Centroid_0() { return static_cast<int32_t>(offsetof(RaycastHit2D_t2279581989, ___m_Centroid_0)); } inline Vector2_t2156229523 get_m_Centroid_0() const { return ___m_Centroid_0; } inline Vector2_t2156229523 * get_address_of_m_Centroid_0() { return &___m_Centroid_0; } inline void set_m_Centroid_0(Vector2_t2156229523 value) { ___m_Centroid_0 = value; } inline static int32_t get_offset_of_m_Point_1() { return static_cast<int32_t>(offsetof(RaycastHit2D_t2279581989, ___m_Point_1)); } inline Vector2_t2156229523 get_m_Point_1() const { return ___m_Point_1; } inline Vector2_t2156229523 * get_address_of_m_Point_1() { return &___m_Point_1; } inline void set_m_Point_1(Vector2_t2156229523 value) { ___m_Point_1 = value; } inline static int32_t get_offset_of_m_Normal_2() { return static_cast<int32_t>(offsetof(RaycastHit2D_t2279581989, ___m_Normal_2)); } inline Vector2_t2156229523 get_m_Normal_2() const { return ___m_Normal_2; } inline Vector2_t2156229523 * get_address_of_m_Normal_2() { return &___m_Normal_2; } inline void set_m_Normal_2(Vector2_t2156229523 value) { ___m_Normal_2 = value; } inline static int32_t get_offset_of_m_Distance_3() { return static_cast<int32_t>(offsetof(RaycastHit2D_t2279581989, ___m_Distance_3)); } inline float get_m_Distance_3() const { return ___m_Distance_3; } inline float* get_address_of_m_Distance_3() { return &___m_Distance_3; } inline void set_m_Distance_3(float value) { ___m_Distance_3 = value; } inline static int32_t get_offset_of_m_Fraction_4() { return static_cast<int32_t>(offsetof(RaycastHit2D_t2279581989, ___m_Fraction_4)); } inline float get_m_Fraction_4() const { return ___m_Fraction_4; } inline float* get_address_of_m_Fraction_4() { return &___m_Fraction_4; } inline void set_m_Fraction_4(float value) { ___m_Fraction_4 = value; } inline static int32_t get_offset_of_m_Collider_5() { return static_cast<int32_t>(offsetof(RaycastHit2D_t2279581989, ___m_Collider_5)); } inline Collider2D_t2806799626 * get_m_Collider_5() const { return ___m_Collider_5; } inline Collider2D_t2806799626 ** get_address_of_m_Collider_5() { return &___m_Collider_5; } inline void set_m_Collider_5(Collider2D_t2806799626 * value) { ___m_Collider_5 = value; Il2CppCodeGenWriteBarrier((&___m_Collider_5), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of UnityEngine.RaycastHit2D struct RaycastHit2D_t2279581989_marshaled_pinvoke { Vector2_t2156229523 ___m_Centroid_0; Vector2_t2156229523 ___m_Point_1; Vector2_t2156229523 ___m_Normal_2; float ___m_Distance_3; float ___m_Fraction_4; Collider2D_t2806799626 * ___m_Collider_5; }; // Native definition for COM marshalling of UnityEngine.RaycastHit2D struct RaycastHit2D_t2279581989_marshaled_com { Vector2_t2156229523 ___m_Centroid_0; Vector2_t2156229523 ___m_Point_1; Vector2_t2156229523 ___m_Normal_2; float ___m_Distance_3; float ___m_Fraction_4; Collider2D_t2806799626 * ___m_Collider_5; }; #endif // RAYCASTHIT2D_T2279581989_H #ifndef PLAYABLEOUTPUTHANDLE_T4208053793_H #define PLAYABLEOUTPUTHANDLE_T4208053793_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Playables.PlayableOutputHandle struct PlayableOutputHandle_t4208053793 { public: // System.IntPtr UnityEngine.Playables.PlayableOutputHandle::m_Handle intptr_t ___m_Handle_0; // System.Int32 UnityEngine.Playables.PlayableOutputHandle::m_Version int32_t ___m_Version_1; public: inline static int32_t get_offset_of_m_Handle_0() { return static_cast<int32_t>(offsetof(PlayableOutputHandle_t4208053793, ___m_Handle_0)); } inline intptr_t get_m_Handle_0() const { return ___m_Handle_0; } inline intptr_t* get_address_of_m_Handle_0() { return &___m_Handle_0; } inline void set_m_Handle_0(intptr_t value) { ___m_Handle_0 = value; } inline static int32_t get_offset_of_m_Version_1() { return static_cast<int32_t>(offsetof(PlayableOutputHandle_t4208053793, ___m_Version_1)); } inline int32_t get_m_Version_1() const { return ___m_Version_1; } inline int32_t* get_address_of_m_Version_1() { return &___m_Version_1; } inline void set_m_Version_1(int32_t value) { ___m_Version_1 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // PLAYABLEOUTPUTHANDLE_T4208053793_H #ifndef CONTACTPOINT_T3758755253_H #define CONTACTPOINT_T3758755253_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.ContactPoint struct ContactPoint_t3758755253 { public: // UnityEngine.Vector3 UnityEngine.ContactPoint::m_Point Vector3_t3722313464 ___m_Point_0; // UnityEngine.Vector3 UnityEngine.ContactPoint::m_Normal Vector3_t3722313464 ___m_Normal_1; // System.Int32 UnityEngine.ContactPoint::m_ThisColliderInstanceID int32_t ___m_ThisColliderInstanceID_2; // System.Int32 UnityEngine.ContactPoint::m_OtherColliderInstanceID int32_t ___m_OtherColliderInstanceID_3; // System.Single UnityEngine.ContactPoint::m_Separation float ___m_Separation_4; public: inline static int32_t get_offset_of_m_Point_0() { return static_cast<int32_t>(offsetof(ContactPoint_t3758755253, ___m_Point_0)); } inline Vector3_t3722313464 get_m_Point_0() const { return ___m_Point_0; } inline Vector3_t3722313464 * get_address_of_m_Point_0() { return &___m_Point_0; } inline void set_m_Point_0(Vector3_t3722313464 value) { ___m_Point_0 = value; } inline static int32_t get_offset_of_m_Normal_1() { return static_cast<int32_t>(offsetof(ContactPoint_t3758755253, ___m_Normal_1)); } inline Vector3_t3722313464 get_m_Normal_1() const { return ___m_Normal_1; } inline Vector3_t3722313464 * get_address_of_m_Normal_1() { return &___m_Normal_1; } inline void set_m_Normal_1(Vector3_t3722313464 value) { ___m_Normal_1 = value; } inline static int32_t get_offset_of_m_ThisColliderInstanceID_2() { return static_cast<int32_t>(offsetof(ContactPoint_t3758755253, ___m_ThisColliderInstanceID_2)); } inline int32_t get_m_ThisColliderInstanceID_2() const { return ___m_ThisColliderInstanceID_2; } inline int32_t* get_address_of_m_ThisColliderInstanceID_2() { return &___m_ThisColliderInstanceID_2; } inline void set_m_ThisColliderInstanceID_2(int32_t value) { ___m_ThisColliderInstanceID_2 = value; } inline static int32_t get_offset_of_m_OtherColliderInstanceID_3() { return static_cast<int32_t>(offsetof(ContactPoint_t3758755253, ___m_OtherColliderInstanceID_3)); } inline int32_t get_m_OtherColliderInstanceID_3() const { return ___m_OtherColliderInstanceID_3; } inline int32_t* get_address_of_m_OtherColliderInstanceID_3() { return &___m_OtherColliderInstanceID_3; } inline void set_m_OtherColliderInstanceID_3(int32_t value) { ___m_OtherColliderInstanceID_3 = value; } inline static int32_t get_offset_of_m_Separation_4() { return static_cast<int32_t>(offsetof(ContactPoint_t3758755253, ___m_Separation_4)); } inline float get_m_Separation_4() const { return ___m_Separation_4; } inline float* get_address_of_m_Separation_4() { return &___m_Separation_4; } inline void set_m_Separation_4(float value) { ___m_Separation_4 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // CONTACTPOINT_T3758755253_H #ifndef DELEGATE_T1188392813_H #define DELEGATE_T1188392813_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Delegate struct Delegate_t1188392813 : public RuntimeObject { public: // System.IntPtr System.Delegate::method_ptr Il2CppMethodPointer ___method_ptr_0; // System.IntPtr System.Delegate::invoke_impl intptr_t ___invoke_impl_1; // System.Object System.Delegate::m_target RuntimeObject * ___m_target_2; // System.IntPtr System.Delegate::method intptr_t ___method_3; // System.IntPtr System.Delegate::delegate_trampoline intptr_t ___delegate_trampoline_4; // System.IntPtr System.Delegate::method_code intptr_t ___method_code_5; // System.Reflection.MethodInfo System.Delegate::method_info MethodInfo_t * ___method_info_6; // System.Reflection.MethodInfo System.Delegate::original_method_info MethodInfo_t * ___original_method_info_7; // System.DelegateData System.Delegate::data DelegateData_t1677132599 * ___data_8; public: inline static int32_t get_offset_of_method_ptr_0() { return static_cast<int32_t>(offsetof(Delegate_t1188392813, ___method_ptr_0)); } inline Il2CppMethodPointer get_method_ptr_0() const { return ___method_ptr_0; } inline Il2CppMethodPointer* get_address_of_method_ptr_0() { return &___method_ptr_0; } inline void set_method_ptr_0(Il2CppMethodPointer value) { ___method_ptr_0 = value; } inline static int32_t get_offset_of_invoke_impl_1() { return static_cast<int32_t>(offsetof(Delegate_t1188392813, ___invoke_impl_1)); } inline intptr_t get_invoke_impl_1() const { return ___invoke_impl_1; } inline intptr_t* get_address_of_invoke_impl_1() { return &___invoke_impl_1; } inline void set_invoke_impl_1(intptr_t value) { ___invoke_impl_1 = value; } inline static int32_t get_offset_of_m_target_2() { return static_cast<int32_t>(offsetof(Delegate_t1188392813, ___m_target_2)); } inline RuntimeObject * get_m_target_2() const { return ___m_target_2; } inline RuntimeObject ** get_address_of_m_target_2() { return &___m_target_2; } inline void set_m_target_2(RuntimeObject * value) { ___m_target_2 = value; Il2CppCodeGenWriteBarrier((&___m_target_2), value); } inline static int32_t get_offset_of_method_3() { return static_cast<int32_t>(offsetof(Delegate_t1188392813, ___method_3)); } inline intptr_t get_method_3() const { return ___method_3; } inline intptr_t* get_address_of_method_3() { return &___method_3; } inline void set_method_3(intptr_t value) { ___method_3 = value; } inline static int32_t get_offset_of_delegate_trampoline_4() { return static_cast<int32_t>(offsetof(Delegate_t1188392813, ___delegate_trampoline_4)); } inline intptr_t get_delegate_trampoline_4() const { return ___delegate_trampoline_4; } inline intptr_t* get_address_of_delegate_trampoline_4() { return &___delegate_trampoline_4; } inline void set_delegate_trampoline_4(intptr_t value) { ___delegate_trampoline_4 = value; } inline static int32_t get_offset_of_method_code_5() { return static_cast<int32_t>(offsetof(Delegate_t1188392813, ___method_code_5)); } inline intptr_t get_method_code_5() const { return ___method_code_5; } inline intptr_t* get_address_of_method_code_5() { return &___method_code_5; } inline void set_method_code_5(intptr_t value) { ___method_code_5 = value; } inline static int32_t get_offset_of_method_info_6() { return static_cast<int32_t>(offsetof(Delegate_t1188392813, ___method_info_6)); } inline MethodInfo_t * get_method_info_6() const { return ___method_info_6; } inline MethodInfo_t ** get_address_of_method_info_6() { return &___method_info_6; } inline void set_method_info_6(MethodInfo_t * value) { ___method_info_6 = value; Il2CppCodeGenWriteBarrier((&___method_info_6), value); } inline static int32_t get_offset_of_original_method_info_7() { return static_cast<int32_t>(offsetof(Delegate_t1188392813, ___original_method_info_7)); } inline MethodInfo_t * get_original_method_info_7() const { return ___original_method_info_7; } inline MethodInfo_t ** get_address_of_original_method_info_7() { return &___original_method_info_7; } inline void set_original_method_info_7(MethodInfo_t * value) { ___original_method_info_7 = value; Il2CppCodeGenWriteBarrier((&___original_method_info_7), value); } inline static int32_t get_offset_of_data_8() { return static_cast<int32_t>(offsetof(Delegate_t1188392813, ___data_8)); } inline DelegateData_t1677132599 * get_data_8() const { return ___data_8; } inline DelegateData_t1677132599 ** get_address_of_data_8() { return &___data_8; } inline void set_data_8(DelegateData_t1677132599 * value) { ___data_8 = value; Il2CppCodeGenWriteBarrier((&___data_8), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // DELEGATE_T1188392813_H #ifndef GUISETTINGS_T1774757634_H #define GUISETTINGS_T1774757634_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.GUISettings struct GUISettings_t1774757634 : public RuntimeObject { public: // System.Boolean UnityEngine.GUISettings::m_DoubleClickSelectsWord bool ___m_DoubleClickSelectsWord_0; // System.Boolean UnityEngine.GUISettings::m_TripleClickSelectsLine bool ___m_TripleClickSelectsLine_1; // UnityEngine.Color UnityEngine.GUISettings::m_CursorColor Color_t2555686324 ___m_CursorColor_2; // System.Single UnityEngine.GUISettings::m_CursorFlashSpeed float ___m_CursorFlashSpeed_3; // UnityEngine.Color UnityEngine.GUISettings::m_SelectionColor Color_t2555686324 ___m_SelectionColor_4; public: inline static int32_t get_offset_of_m_DoubleClickSelectsWord_0() { return static_cast<int32_t>(offsetof(GUISettings_t1774757634, ___m_DoubleClickSelectsWord_0)); } inline bool get_m_DoubleClickSelectsWord_0() const { return ___m_DoubleClickSelectsWord_0; } inline bool* get_address_of_m_DoubleClickSelectsWord_0() { return &___m_DoubleClickSelectsWord_0; } inline void set_m_DoubleClickSelectsWord_0(bool value) { ___m_DoubleClickSelectsWord_0 = value; } inline static int32_t get_offset_of_m_TripleClickSelectsLine_1() { return static_cast<int32_t>(offsetof(GUISettings_t1774757634, ___m_TripleClickSelectsLine_1)); } inline bool get_m_TripleClickSelectsLine_1() const { return ___m_TripleClickSelectsLine_1; } inline bool* get_address_of_m_TripleClickSelectsLine_1() { return &___m_TripleClickSelectsLine_1; } inline void set_m_TripleClickSelectsLine_1(bool value) { ___m_TripleClickSelectsLine_1 = value; } inline static int32_t get_offset_of_m_CursorColor_2() { return static_cast<int32_t>(offsetof(GUISettings_t1774757634, ___m_CursorColor_2)); } inline Color_t2555686324 get_m_CursorColor_2() const { return ___m_CursorColor_2; } inline Color_t2555686324 * get_address_of_m_CursorColor_2() { return &___m_CursorColor_2; } inline void set_m_CursorColor_2(Color_t2555686324 value) { ___m_CursorColor_2 = value; } inline static int32_t get_offset_of_m_CursorFlashSpeed_3() { return static_cast<int32_t>(offsetof(GUISettings_t1774757634, ___m_CursorFlashSpeed_3)); } inline float get_m_CursorFlashSpeed_3() const { return ___m_CursorFlashSpeed_3; } inline float* get_address_of_m_CursorFlashSpeed_3() { return &___m_CursorFlashSpeed_3; } inline void set_m_CursorFlashSpeed_3(float value) { ___m_CursorFlashSpeed_3 = value; } inline static int32_t get_offset_of_m_SelectionColor_4() { return static_cast<int32_t>(offsetof(GUISettings_t1774757634, ___m_SelectionColor_4)); } inline Color_t2555686324 get_m_SelectionColor_4() const { return ___m_SelectionColor_4; } inline Color_t2555686324 * get_address_of_m_SelectionColor_4() { return &___m_SelectionColor_4; } inline void set_m_SelectionColor_4(Color_t2555686324 value) { ___m_SelectionColor_4 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // GUISETTINGS_T1774757634_H #ifndef GUILAYOUTUTILITY_T66395690_H #define GUILAYOUTUTILITY_T66395690_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.GUILayoutUtility struct GUILayoutUtility_t66395690 : public RuntimeObject { public: public: }; struct GUILayoutUtility_t66395690_StaticFields { public: // System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.GUILayoutUtility/LayoutCache> UnityEngine.GUILayoutUtility::s_StoredLayouts Dictionary_2_t3261990503 * ___s_StoredLayouts_0; // System.Collections.Generic.Dictionary`2<System.Int32,UnityEngine.GUILayoutUtility/LayoutCache> UnityEngine.GUILayoutUtility::s_StoredWindows Dictionary_2_t3261990503 * ___s_StoredWindows_1; // UnityEngine.GUILayoutUtility/LayoutCache UnityEngine.GUILayoutUtility::current LayoutCache_t78309876 * ___current_2; // UnityEngine.Rect UnityEngine.GUILayoutUtility::kDummyRect Rect_t2360479859 ___kDummyRect_3; // UnityEngine.GUIStyle UnityEngine.GUILayoutUtility::s_SpaceStyle GUIStyle_t3956901511 * ___s_SpaceStyle_4; public: inline static int32_t get_offset_of_s_StoredLayouts_0() { return static_cast<int32_t>(offsetof(GUILayoutUtility_t66395690_StaticFields, ___s_StoredLayouts_0)); } inline Dictionary_2_t3261990503 * get_s_StoredLayouts_0() const { return ___s_StoredLayouts_0; } inline Dictionary_2_t3261990503 ** get_address_of_s_StoredLayouts_0() { return &___s_StoredLayouts_0; } inline void set_s_StoredLayouts_0(Dictionary_2_t3261990503 * value) { ___s_StoredLayouts_0 = value; Il2CppCodeGenWriteBarrier((&___s_StoredLayouts_0), value); } inline static int32_t get_offset_of_s_StoredWindows_1() { return static_cast<int32_t>(offsetof(GUILayoutUtility_t66395690_StaticFields, ___s_StoredWindows_1)); } inline Dictionary_2_t3261990503 * get_s_StoredWindows_1() const { return ___s_StoredWindows_1; } inline Dictionary_2_t3261990503 ** get_address_of_s_StoredWindows_1() { return &___s_StoredWindows_1; } inline void set_s_StoredWindows_1(Dictionary_2_t3261990503 * value) { ___s_StoredWindows_1 = value; Il2CppCodeGenWriteBarrier((&___s_StoredWindows_1), value); } inline static int32_t get_offset_of_current_2() { return static_cast<int32_t>(offsetof(GUILayoutUtility_t66395690_StaticFields, ___current_2)); } inline LayoutCache_t78309876 * get_current_2() const { return ___current_2; } inline LayoutCache_t78309876 ** get_address_of_current_2() { return &___current_2; } inline void set_current_2(LayoutCache_t78309876 * value) { ___current_2 = value; Il2CppCodeGenWriteBarrier((&___current_2), value); } inline static int32_t get_offset_of_kDummyRect_3() { return static_cast<int32_t>(offsetof(GUILayoutUtility_t66395690_StaticFields, ___kDummyRect_3)); } inline Rect_t2360479859 get_kDummyRect_3() const { return ___kDummyRect_3; } inline Rect_t2360479859 * get_address_of_kDummyRect_3() { return &___kDummyRect_3; } inline void set_kDummyRect_3(Rect_t2360479859 value) { ___kDummyRect_3 = value; } inline static int32_t get_offset_of_s_SpaceStyle_4() { return static_cast<int32_t>(offsetof(GUILayoutUtility_t66395690_StaticFields, ___s_SpaceStyle_4)); } inline GUIStyle_t3956901511 * get_s_SpaceStyle_4() const { return ___s_SpaceStyle_4; } inline GUIStyle_t3956901511 ** get_address_of_s_SpaceStyle_4() { return &___s_SpaceStyle_4; } inline void set_s_SpaceStyle_4(GUIStyle_t3956901511 * value) { ___s_SpaceStyle_4 = value; Il2CppCodeGenWriteBarrier((&___s_SpaceStyle_4), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // GUILAYOUTUTILITY_T66395690_H #ifndef EVENT_T2956885303_H #define EVENT_T2956885303_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Event struct Event_t2956885303 : public RuntimeObject { public: // System.IntPtr UnityEngine.Event::m_Ptr intptr_t ___m_Ptr_0; public: inline static int32_t get_offset_of_m_Ptr_0() { return static_cast<int32_t>(offsetof(Event_t2956885303, ___m_Ptr_0)); } inline intptr_t get_m_Ptr_0() const { return ___m_Ptr_0; } inline intptr_t* get_address_of_m_Ptr_0() { return &___m_Ptr_0; } inline void set_m_Ptr_0(intptr_t value) { ___m_Ptr_0 = value; } }; struct Event_t2956885303_StaticFields { public: // UnityEngine.Event UnityEngine.Event::s_Current Event_t2956885303 * ___s_Current_1; // UnityEngine.Event UnityEngine.Event::s_MasterEvent Event_t2956885303 * ___s_MasterEvent_2; // System.Collections.Generic.Dictionary`2<System.String,System.Int32> UnityEngine.Event::<>f__switch$map0 Dictionary_2_t2736202052 * ___U3CU3Ef__switchU24map0_3; public: inline static int32_t get_offset_of_s_Current_1() { return static_cast<int32_t>(offsetof(Event_t2956885303_StaticFields, ___s_Current_1)); } inline Event_t2956885303 * get_s_Current_1() const { return ___s_Current_1; } inline Event_t2956885303 ** get_address_of_s_Current_1() { return &___s_Current_1; } inline void set_s_Current_1(Event_t2956885303 * value) { ___s_Current_1 = value; Il2CppCodeGenWriteBarrier((&___s_Current_1), value); } inline static int32_t get_offset_of_s_MasterEvent_2() { return static_cast<int32_t>(offsetof(Event_t2956885303_StaticFields, ___s_MasterEvent_2)); } inline Event_t2956885303 * get_s_MasterEvent_2() const { return ___s_MasterEvent_2; } inline Event_t2956885303 ** get_address_of_s_MasterEvent_2() { return &___s_MasterEvent_2; } inline void set_s_MasterEvent_2(Event_t2956885303 * value) { ___s_MasterEvent_2 = value; Il2CppCodeGenWriteBarrier((&___s_MasterEvent_2), value); } inline static int32_t get_offset_of_U3CU3Ef__switchU24map0_3() { return static_cast<int32_t>(offsetof(Event_t2956885303_StaticFields, ___U3CU3Ef__switchU24map0_3)); } inline Dictionary_2_t2736202052 * get_U3CU3Ef__switchU24map0_3() const { return ___U3CU3Ef__switchU24map0_3; } inline Dictionary_2_t2736202052 ** get_address_of_U3CU3Ef__switchU24map0_3() { return &___U3CU3Ef__switchU24map0_3; } inline void set_U3CU3Ef__switchU24map0_3(Dictionary_2_t2736202052 * value) { ___U3CU3Ef__switchU24map0_3 = value; Il2CppCodeGenWriteBarrier((&___U3CU3Ef__switchU24map0_3), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of UnityEngine.Event struct Event_t2956885303_marshaled_pinvoke { intptr_t ___m_Ptr_0; }; // Native definition for COM marshalling of UnityEngine.Event struct Event_t2956885303_marshaled_com { intptr_t ___m_Ptr_0; }; #endif // EVENT_T2956885303_H #ifndef TIMESCOPE_T539351503_H #define TIMESCOPE_T539351503_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.SocialPlatforms.TimeScope struct TimeScope_t539351503 { public: // System.Int32 UnityEngine.SocialPlatforms.TimeScope::value__ int32_t ___value___1; public: inline static int32_t get_offset_of_value___1() { return static_cast<int32_t>(offsetof(TimeScope_t539351503, ___value___1)); } inline int32_t get_value___1() const { return ___value___1; } inline int32_t* get_address_of_value___1() { return &___value___1; } inline void set_value___1(int32_t value) { ___value___1 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // TIMESCOPE_T539351503_H #ifndef USERSCOPE_T604006431_H #define USERSCOPE_T604006431_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.SocialPlatforms.UserScope struct UserScope_t604006431 { public: // System.Int32 UnityEngine.SocialPlatforms.UserScope::value__ int32_t ___value___1; public: inline static int32_t get_offset_of_value___1() { return static_cast<int32_t>(offsetof(UserScope_t604006431, ___value___1)); } inline int32_t get_value___1() const { return ___value___1; } inline int32_t* get_address_of_value___1() { return &___value___1; } inline void set_value___1(int32_t value) { ___value___1 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // USERSCOPE_T604006431_H #ifndef USERSTATE_T4177058321_H #define USERSTATE_T4177058321_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.SocialPlatforms.UserState struct UserState_t4177058321 { public: // System.Int32 UnityEngine.SocialPlatforms.UserState::value__ int32_t ___value___1; public: inline static int32_t get_offset_of_value___1() { return static_cast<int32_t>(offsetof(UserState_t4177058321, ___value___1)); } inline int32_t get_value___1() const { return ___value___1; } inline int32_t* get_address_of_value___1() { return &___value___1; } inline void set_value___1(int32_t value) { ___value___1 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // USERSTATE_T4177058321_H #ifndef GCLEADERBOARD_T4132273028_H #define GCLEADERBOARD_T4132273028_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.SocialPlatforms.GameCenter.GcLeaderboard struct GcLeaderboard_t4132273028 : public RuntimeObject { public: // System.IntPtr UnityEngine.SocialPlatforms.GameCenter.GcLeaderboard::m_InternalLeaderboard intptr_t ___m_InternalLeaderboard_0; // UnityEngine.SocialPlatforms.Impl.Leaderboard UnityEngine.SocialPlatforms.GameCenter.GcLeaderboard::m_GenericLeaderboard Leaderboard_t1065076763 * ___m_GenericLeaderboard_1; public: inline static int32_t get_offset_of_m_InternalLeaderboard_0() { return static_cast<int32_t>(offsetof(GcLeaderboard_t4132273028, ___m_InternalLeaderboard_0)); } inline intptr_t get_m_InternalLeaderboard_0() const { return ___m_InternalLeaderboard_0; } inline intptr_t* get_address_of_m_InternalLeaderboard_0() { return &___m_InternalLeaderboard_0; } inline void set_m_InternalLeaderboard_0(intptr_t value) { ___m_InternalLeaderboard_0 = value; } inline static int32_t get_offset_of_m_GenericLeaderboard_1() { return static_cast<int32_t>(offsetof(GcLeaderboard_t4132273028, ___m_GenericLeaderboard_1)); } inline Leaderboard_t1065076763 * get_m_GenericLeaderboard_1() const { return ___m_GenericLeaderboard_1; } inline Leaderboard_t1065076763 ** get_address_of_m_GenericLeaderboard_1() { return &___m_GenericLeaderboard_1; } inline void set_m_GenericLeaderboard_1(Leaderboard_t1065076763 * value) { ___m_GenericLeaderboard_1 = value; Il2CppCodeGenWriteBarrier((&___m_GenericLeaderboard_1), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of UnityEngine.SocialPlatforms.GameCenter.GcLeaderboard struct GcLeaderboard_t4132273028_marshaled_pinvoke { intptr_t ___m_InternalLeaderboard_0; Leaderboard_t1065076763 * ___m_GenericLeaderboard_1; }; // Native definition for COM marshalling of UnityEngine.SocialPlatforms.GameCenter.GcLeaderboard struct GcLeaderboard_t4132273028_marshaled_com { intptr_t ___m_InternalLeaderboard_0; Leaderboard_t1065076763 * ___m_GenericLeaderboard_1; }; #endif // GCLEADERBOARD_T4132273028_H #ifndef HUMANLIMIT_T2901552972_H #define HUMANLIMIT_T2901552972_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.HumanLimit struct HumanLimit_t2901552972 { public: // UnityEngine.Vector3 UnityEngine.HumanLimit::m_Min Vector3_t3722313464 ___m_Min_0; // UnityEngine.Vector3 UnityEngine.HumanLimit::m_Max Vector3_t3722313464 ___m_Max_1; // UnityEngine.Vector3 UnityEngine.HumanLimit::m_Center Vector3_t3722313464 ___m_Center_2; // System.Single UnityEngine.HumanLimit::m_AxisLength float ___m_AxisLength_3; // System.Int32 UnityEngine.HumanLimit::m_UseDefaultValues int32_t ___m_UseDefaultValues_4; public: inline static int32_t get_offset_of_m_Min_0() { return static_cast<int32_t>(offsetof(HumanLimit_t2901552972, ___m_Min_0)); } inline Vector3_t3722313464 get_m_Min_0() const { return ___m_Min_0; } inline Vector3_t3722313464 * get_address_of_m_Min_0() { return &___m_Min_0; } inline void set_m_Min_0(Vector3_t3722313464 value) { ___m_Min_0 = value; } inline static int32_t get_offset_of_m_Max_1() { return static_cast<int32_t>(offsetof(HumanLimit_t2901552972, ___m_Max_1)); } inline Vector3_t3722313464 get_m_Max_1() const { return ___m_Max_1; } inline Vector3_t3722313464 * get_address_of_m_Max_1() { return &___m_Max_1; } inline void set_m_Max_1(Vector3_t3722313464 value) { ___m_Max_1 = value; } inline static int32_t get_offset_of_m_Center_2() { return static_cast<int32_t>(offsetof(HumanLimit_t2901552972, ___m_Center_2)); } inline Vector3_t3722313464 get_m_Center_2() const { return ___m_Center_2; } inline Vector3_t3722313464 * get_address_of_m_Center_2() { return &___m_Center_2; } inline void set_m_Center_2(Vector3_t3722313464 value) { ___m_Center_2 = value; } inline static int32_t get_offset_of_m_AxisLength_3() { return static_cast<int32_t>(offsetof(HumanLimit_t2901552972, ___m_AxisLength_3)); } inline float get_m_AxisLength_3() const { return ___m_AxisLength_3; } inline float* get_address_of_m_AxisLength_3() { return &___m_AxisLength_3; } inline void set_m_AxisLength_3(float value) { ___m_AxisLength_3 = value; } inline static int32_t get_offset_of_m_UseDefaultValues_4() { return static_cast<int32_t>(offsetof(HumanLimit_t2901552972, ___m_UseDefaultValues_4)); } inline int32_t get_m_UseDefaultValues_4() const { return ___m_UseDefaultValues_4; } inline int32_t* get_address_of_m_UseDefaultValues_4() { return &___m_UseDefaultValues_4; } inline void set_m_UseDefaultValues_4(int32_t value) { ___m_UseDefaultValues_4 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // HUMANLIMIT_T2901552972_H #ifndef SKELETONBONE_T4134054672_H #define SKELETONBONE_T4134054672_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.SkeletonBone struct SkeletonBone_t4134054672 { public: // System.String UnityEngine.SkeletonBone::name String_t* ___name_0; // System.String UnityEngine.SkeletonBone::parentName String_t* ___parentName_1; // UnityEngine.Vector3 UnityEngine.SkeletonBone::position Vector3_t3722313464 ___position_2; // UnityEngine.Quaternion UnityEngine.SkeletonBone::rotation Quaternion_t2301928331 ___rotation_3; // UnityEngine.Vector3 UnityEngine.SkeletonBone::scale Vector3_t3722313464 ___scale_4; public: inline static int32_t get_offset_of_name_0() { return static_cast<int32_t>(offsetof(SkeletonBone_t4134054672, ___name_0)); } inline String_t* get_name_0() const { return ___name_0; } inline String_t** get_address_of_name_0() { return &___name_0; } inline void set_name_0(String_t* value) { ___name_0 = value; Il2CppCodeGenWriteBarrier((&___name_0), value); } inline static int32_t get_offset_of_parentName_1() { return static_cast<int32_t>(offsetof(SkeletonBone_t4134054672, ___parentName_1)); } inline String_t* get_parentName_1() const { return ___parentName_1; } inline String_t** get_address_of_parentName_1() { return &___parentName_1; } inline void set_parentName_1(String_t* value) { ___parentName_1 = value; Il2CppCodeGenWriteBarrier((&___parentName_1), value); } inline static int32_t get_offset_of_position_2() { return static_cast<int32_t>(offsetof(SkeletonBone_t4134054672, ___position_2)); } inline Vector3_t3722313464 get_position_2() const { return ___position_2; } inline Vector3_t3722313464 * get_address_of_position_2() { return &___position_2; } inline void set_position_2(Vector3_t3722313464 value) { ___position_2 = value; } inline static int32_t get_offset_of_rotation_3() { return static_cast<int32_t>(offsetof(SkeletonBone_t4134054672, ___rotation_3)); } inline Quaternion_t2301928331 get_rotation_3() const { return ___rotation_3; } inline Quaternion_t2301928331 * get_address_of_rotation_3() { return &___rotation_3; } inline void set_rotation_3(Quaternion_t2301928331 value) { ___rotation_3 = value; } inline static int32_t get_offset_of_scale_4() { return static_cast<int32_t>(offsetof(SkeletonBone_t4134054672, ___scale_4)); } inline Vector3_t3722313464 get_scale_4() const { return ___scale_4; } inline Vector3_t3722313464 * get_address_of_scale_4() { return &___scale_4; } inline void set_scale_4(Vector3_t3722313464 value) { ___scale_4 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of UnityEngine.SkeletonBone struct SkeletonBone_t4134054672_marshaled_pinvoke { char* ___name_0; char* ___parentName_1; Vector3_t3722313464 ___position_2; Quaternion_t2301928331 ___rotation_3; Vector3_t3722313464 ___scale_4; }; // Native definition for COM marshalling of UnityEngine.SkeletonBone struct SkeletonBone_t4134054672_marshaled_com { Il2CppChar* ___name_0; Il2CppChar* ___parentName_1; Vector3_t3722313464 ___position_2; Quaternion_t2301928331 ___rotation_3; Vector3_t3722313464 ___scale_4; }; #endif // SKELETONBONE_T4134054672_H #ifndef ANIMATORCONTROLLERPARAMETERTYPE_T3317225440_H #define ANIMATORCONTROLLERPARAMETERTYPE_T3317225440_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.AnimatorControllerParameterType struct AnimatorControllerParameterType_t3317225440 { public: // System.Int32 UnityEngine.AnimatorControllerParameterType::value__ int32_t ___value___1; public: inline static int32_t get_offset_of_value___1() { return static_cast<int32_t>(offsetof(AnimatorControllerParameterType_t3317225440, ___value___1)); } inline int32_t get_value___1() const { return ___value___1; } inline int32_t* get_address_of_value___1() { return &___value___1; } inline void set_value___1(int32_t value) { ___value___1 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // ANIMATORCONTROLLERPARAMETERTYPE_T3317225440_H #ifndef ANIMATIONEVENTSOURCE_T3045280095_H #define ANIMATIONEVENTSOURCE_T3045280095_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.AnimationEventSource struct AnimationEventSource_t3045280095 { public: // System.Int32 UnityEngine.AnimationEventSource::value__ int32_t ___value___1; public: inline static int32_t get_offset_of_value___1() { return static_cast<int32_t>(offsetof(AnimationEventSource_t3045280095, ___value___1)); } inline int32_t get_value___1() const { return ___value___1; } inline int32_t* get_address_of_value___1() { return &___value___1; } inline void set_value___1(int32_t value) { ___value___1 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // ANIMATIONEVENTSOURCE_T3045280095_H #ifndef GUISTYLESTATE_T1397964415_H #define GUISTYLESTATE_T1397964415_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.GUIStyleState struct GUIStyleState_t1397964415 : public RuntimeObject { public: // System.IntPtr UnityEngine.GUIStyleState::m_Ptr intptr_t ___m_Ptr_0; // UnityEngine.GUIStyle UnityEngine.GUIStyleState::m_SourceStyle GUIStyle_t3956901511 * ___m_SourceStyle_1; // UnityEngine.Texture2D UnityEngine.GUIStyleState::m_Background Texture2D_t3840446185 * ___m_Background_2; public: inline static int32_t get_offset_of_m_Ptr_0() { return static_cast<int32_t>(offsetof(GUIStyleState_t1397964415, ___m_Ptr_0)); } inline intptr_t get_m_Ptr_0() const { return ___m_Ptr_0; } inline intptr_t* get_address_of_m_Ptr_0() { return &___m_Ptr_0; } inline void set_m_Ptr_0(intptr_t value) { ___m_Ptr_0 = value; } inline static int32_t get_offset_of_m_SourceStyle_1() { return static_cast<int32_t>(offsetof(GUIStyleState_t1397964415, ___m_SourceStyle_1)); } inline GUIStyle_t3956901511 * get_m_SourceStyle_1() const { return ___m_SourceStyle_1; } inline GUIStyle_t3956901511 ** get_address_of_m_SourceStyle_1() { return &___m_SourceStyle_1; } inline void set_m_SourceStyle_1(GUIStyle_t3956901511 * value) { ___m_SourceStyle_1 = value; Il2CppCodeGenWriteBarrier((&___m_SourceStyle_1), value); } inline static int32_t get_offset_of_m_Background_2() { return static_cast<int32_t>(offsetof(GUIStyleState_t1397964415, ___m_Background_2)); } inline Texture2D_t3840446185 * get_m_Background_2() const { return ___m_Background_2; } inline Texture2D_t3840446185 ** get_address_of_m_Background_2() { return &___m_Background_2; } inline void set_m_Background_2(Texture2D_t3840446185 * value) { ___m_Background_2 = value; Il2CppCodeGenWriteBarrier((&___m_Background_2), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of UnityEngine.GUIStyleState struct GUIStyleState_t1397964415_marshaled_pinvoke { intptr_t ___m_Ptr_0; GUIStyle_t3956901511_marshaled_pinvoke* ___m_SourceStyle_1; Texture2D_t3840446185 * ___m_Background_2; }; // Native definition for COM marshalling of UnityEngine.GUIStyleState struct GUIStyleState_t1397964415_marshaled_com { intptr_t ___m_Ptr_0; GUIStyle_t3956901511_marshaled_com* ___m_SourceStyle_1; Texture2D_t3840446185 * ___m_Background_2; }; #endif // GUISTYLESTATE_T1397964415_H #ifndef EVENTTYPE_T3528516131_H #define EVENTTYPE_T3528516131_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.EventType struct EventType_t3528516131 { public: // System.Int32 UnityEngine.EventType::value__ int32_t ___value___1; public: inline static int32_t get_offset_of_value___1() { return static_cast<int32_t>(offsetof(EventType_t3528516131, ___value___1)); } inline int32_t get_value___1() const { return ___value___1; } inline int32_t* get_address_of_value___1() { return &___value___1; } inline void set_value___1(int32_t value) { ___value___1 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // EVENTTYPE_T3528516131_H #ifndef GUILAYOUTENTRY_T3214611570_H #define GUILAYOUTENTRY_T3214611570_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.GUILayoutEntry struct GUILayoutEntry_t3214611570 : public RuntimeObject { public: // System.Single UnityEngine.GUILayoutEntry::minWidth float ___minWidth_0; // System.Single UnityEngine.GUILayoutEntry::maxWidth float ___maxWidth_1; // System.Single UnityEngine.GUILayoutEntry::minHeight float ___minHeight_2; // System.Single UnityEngine.GUILayoutEntry::maxHeight float ___maxHeight_3; // UnityEngine.Rect UnityEngine.GUILayoutEntry::rect Rect_t2360479859 ___rect_4; // System.Int32 UnityEngine.GUILayoutEntry::stretchWidth int32_t ___stretchWidth_5; // System.Int32 UnityEngine.GUILayoutEntry::stretchHeight int32_t ___stretchHeight_6; // UnityEngine.GUIStyle UnityEngine.GUILayoutEntry::m_Style GUIStyle_t3956901511 * ___m_Style_7; public: inline static int32_t get_offset_of_minWidth_0() { return static_cast<int32_t>(offsetof(GUILayoutEntry_t3214611570, ___minWidth_0)); } inline float get_minWidth_0() const { return ___minWidth_0; } inline float* get_address_of_minWidth_0() { return &___minWidth_0; } inline void set_minWidth_0(float value) { ___minWidth_0 = value; } inline static int32_t get_offset_of_maxWidth_1() { return static_cast<int32_t>(offsetof(GUILayoutEntry_t3214611570, ___maxWidth_1)); } inline float get_maxWidth_1() const { return ___maxWidth_1; } inline float* get_address_of_maxWidth_1() { return &___maxWidth_1; } inline void set_maxWidth_1(float value) { ___maxWidth_1 = value; } inline static int32_t get_offset_of_minHeight_2() { return static_cast<int32_t>(offsetof(GUILayoutEntry_t3214611570, ___minHeight_2)); } inline float get_minHeight_2() const { return ___minHeight_2; } inline float* get_address_of_minHeight_2() { return &___minHeight_2; } inline void set_minHeight_2(float value) { ___minHeight_2 = value; } inline static int32_t get_offset_of_maxHeight_3() { return static_cast<int32_t>(offsetof(GUILayoutEntry_t3214611570, ___maxHeight_3)); } inline float get_maxHeight_3() const { return ___maxHeight_3; } inline float* get_address_of_maxHeight_3() { return &___maxHeight_3; } inline void set_maxHeight_3(float value) { ___maxHeight_3 = value; } inline static int32_t get_offset_of_rect_4() { return static_cast<int32_t>(offsetof(GUILayoutEntry_t3214611570, ___rect_4)); } inline Rect_t2360479859 get_rect_4() const { return ___rect_4; } inline Rect_t2360479859 * get_address_of_rect_4() { return &___rect_4; } inline void set_rect_4(Rect_t2360479859 value) { ___rect_4 = value; } inline static int32_t get_offset_of_stretchWidth_5() { return static_cast<int32_t>(offsetof(GUILayoutEntry_t3214611570, ___stretchWidth_5)); } inline int32_t get_stretchWidth_5() const { return ___stretchWidth_5; } inline int32_t* get_address_of_stretchWidth_5() { return &___stretchWidth_5; } inline void set_stretchWidth_5(int32_t value) { ___stretchWidth_5 = value; } inline static int32_t get_offset_of_stretchHeight_6() { return static_cast<int32_t>(offsetof(GUILayoutEntry_t3214611570, ___stretchHeight_6)); } inline int32_t get_stretchHeight_6() const { return ___stretchHeight_6; } inline int32_t* get_address_of_stretchHeight_6() { return &___stretchHeight_6; } inline void set_stretchHeight_6(int32_t value) { ___stretchHeight_6 = value; } inline static int32_t get_offset_of_m_Style_7() { return static_cast<int32_t>(offsetof(GUILayoutEntry_t3214611570, ___m_Style_7)); } inline GUIStyle_t3956901511 * get_m_Style_7() const { return ___m_Style_7; } inline GUIStyle_t3956901511 ** get_address_of_m_Style_7() { return &___m_Style_7; } inline void set_m_Style_7(GUIStyle_t3956901511 * value) { ___m_Style_7 = value; Il2CppCodeGenWriteBarrier((&___m_Style_7), value); } }; struct GUILayoutEntry_t3214611570_StaticFields { public: // UnityEngine.Rect UnityEngine.GUILayoutEntry::kDummyRect Rect_t2360479859 ___kDummyRect_8; // System.Int32 UnityEngine.GUILayoutEntry::indent int32_t ___indent_9; public: inline static int32_t get_offset_of_kDummyRect_8() { return static_cast<int32_t>(offsetof(GUILayoutEntry_t3214611570_StaticFields, ___kDummyRect_8)); } inline Rect_t2360479859 get_kDummyRect_8() const { return ___kDummyRect_8; } inline Rect_t2360479859 * get_address_of_kDummyRect_8() { return &___kDummyRect_8; } inline void set_kDummyRect_8(Rect_t2360479859 value) { ___kDummyRect_8 = value; } inline static int32_t get_offset_of_indent_9() { return static_cast<int32_t>(offsetof(GUILayoutEntry_t3214611570_StaticFields, ___indent_9)); } inline int32_t get_indent_9() const { return ___indent_9; } inline int32_t* get_address_of_indent_9() { return &___indent_9; } inline void set_indent_9(int32_t value) { ___indent_9 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // GUILAYOUTENTRY_T3214611570_H #ifndef GUIUTILITY_T1868551600_H #define GUIUTILITY_T1868551600_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.GUIUtility struct GUIUtility_t1868551600 : public RuntimeObject { public: public: }; struct GUIUtility_t1868551600_StaticFields { public: // System.Int32 UnityEngine.GUIUtility::s_SkinMode int32_t ___s_SkinMode_0; // System.Int32 UnityEngine.GUIUtility::s_OriginalID int32_t ___s_OriginalID_1; // System.Action UnityEngine.GUIUtility::takeCapture Action_t1264377477 * ___takeCapture_2; // System.Action UnityEngine.GUIUtility::releaseCapture Action_t1264377477 * ___releaseCapture_3; // System.Func`3<System.Int32,System.IntPtr,System.Boolean> UnityEngine.GUIUtility::processEvent Func_3_t4119323734 * ___processEvent_4; // System.Func`2<System.Exception,System.Boolean> UnityEngine.GUIUtility::endContainerGUIFromException Func_2_t3450341358 * ___endContainerGUIFromException_5; // System.Boolean UnityEngine.GUIUtility::<guiIsExiting>k__BackingField bool ___U3CguiIsExitingU3Ek__BackingField_6; // UnityEngine.Vector2 UnityEngine.GUIUtility::s_EditorScreenPointOffset Vector2_t2156229523 ___s_EditorScreenPointOffset_7; public: inline static int32_t get_offset_of_s_SkinMode_0() { return static_cast<int32_t>(offsetof(GUIUtility_t1868551600_StaticFields, ___s_SkinMode_0)); } inline int32_t get_s_SkinMode_0() const { return ___s_SkinMode_0; } inline int32_t* get_address_of_s_SkinMode_0() { return &___s_SkinMode_0; } inline void set_s_SkinMode_0(int32_t value) { ___s_SkinMode_0 = value; } inline static int32_t get_offset_of_s_OriginalID_1() { return static_cast<int32_t>(offsetof(GUIUtility_t1868551600_StaticFields, ___s_OriginalID_1)); } inline int32_t get_s_OriginalID_1() const { return ___s_OriginalID_1; } inline int32_t* get_address_of_s_OriginalID_1() { return &___s_OriginalID_1; } inline void set_s_OriginalID_1(int32_t value) { ___s_OriginalID_1 = value; } inline static int32_t get_offset_of_takeCapture_2() { return static_cast<int32_t>(offsetof(GUIUtility_t1868551600_StaticFields, ___takeCapture_2)); } inline Action_t1264377477 * get_takeCapture_2() const { return ___takeCapture_2; } inline Action_t1264377477 ** get_address_of_takeCapture_2() { return &___takeCapture_2; } inline void set_takeCapture_2(Action_t1264377477 * value) { ___takeCapture_2 = value; Il2CppCodeGenWriteBarrier((&___takeCapture_2), value); } inline static int32_t get_offset_of_releaseCapture_3() { return static_cast<int32_t>(offsetof(GUIUtility_t1868551600_StaticFields, ___releaseCapture_3)); } inline Action_t1264377477 * get_releaseCapture_3() const { return ___releaseCapture_3; } inline Action_t1264377477 ** get_address_of_releaseCapture_3() { return &___releaseCapture_3; } inline void set_releaseCapture_3(Action_t1264377477 * value) { ___releaseCapture_3 = value; Il2CppCodeGenWriteBarrier((&___releaseCapture_3), value); } inline static int32_t get_offset_of_processEvent_4() { return static_cast<int32_t>(offsetof(GUIUtility_t1868551600_StaticFields, ___processEvent_4)); } inline Func_3_t4119323734 * get_processEvent_4() const { return ___processEvent_4; } inline Func_3_t4119323734 ** get_address_of_processEvent_4() { return &___processEvent_4; } inline void set_processEvent_4(Func_3_t4119323734 * value) { ___processEvent_4 = value; Il2CppCodeGenWriteBarrier((&___processEvent_4), value); } inline static int32_t get_offset_of_endContainerGUIFromException_5() { return static_cast<int32_t>(offsetof(GUIUtility_t1868551600_StaticFields, ___endContainerGUIFromException_5)); } inline Func_2_t3450341358 * get_endContainerGUIFromException_5() const { return ___endContainerGUIFromException_5; } inline Func_2_t3450341358 ** get_address_of_endContainerGUIFromException_5() { return &___endContainerGUIFromException_5; } inline void set_endContainerGUIFromException_5(Func_2_t3450341358 * value) { ___endContainerGUIFromException_5 = value; Il2CppCodeGenWriteBarrier((&___endContainerGUIFromException_5), value); } inline static int32_t get_offset_of_U3CguiIsExitingU3Ek__BackingField_6() { return static_cast<int32_t>(offsetof(GUIUtility_t1868551600_StaticFields, ___U3CguiIsExitingU3Ek__BackingField_6)); } inline bool get_U3CguiIsExitingU3Ek__BackingField_6() const { return ___U3CguiIsExitingU3Ek__BackingField_6; } inline bool* get_address_of_U3CguiIsExitingU3Ek__BackingField_6() { return &___U3CguiIsExitingU3Ek__BackingField_6; } inline void set_U3CguiIsExitingU3Ek__BackingField_6(bool value) { ___U3CguiIsExitingU3Ek__BackingField_6 = value; } inline static int32_t get_offset_of_s_EditorScreenPointOffset_7() { return static_cast<int32_t>(offsetof(GUIUtility_t1868551600_StaticFields, ___s_EditorScreenPointOffset_7)); } inline Vector2_t2156229523 get_s_EditorScreenPointOffset_7() const { return ___s_EditorScreenPointOffset_7; } inline Vector2_t2156229523 * get_address_of_s_EditorScreenPointOffset_7() { return &___s_EditorScreenPointOffset_7; } inline void set_s_EditorScreenPointOffset_7(Vector2_t2156229523 value) { ___s_EditorScreenPointOffset_7 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // GUIUTILITY_T1868551600_H #ifndef TYPE_T3858932131_H #define TYPE_T3858932131_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.GUILayoutOption/Type struct Type_t3858932131 { public: // System.Int32 UnityEngine.GUILayoutOption/Type::value__ int32_t ___value___1; public: inline static int32_t get_offset_of_value___1() { return static_cast<int32_t>(offsetof(Type_t3858932131, ___value___1)); } inline int32_t get_value___1() const { return ___value___1; } inline int32_t* get_address_of_value___1() { return &___value___1; } inline void set_value___1(int32_t value) { ___value___1 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // TYPE_T3858932131_H #ifndef EVENTMODIFIERS_T2016417398_H #define EVENTMODIFIERS_T2016417398_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.EventModifiers struct EventModifiers_t2016417398 { public: // System.Int32 UnityEngine.EventModifiers::value__ int32_t ___value___1; public: inline static int32_t get_offset_of_value___1() { return static_cast<int32_t>(offsetof(EventModifiers_t2016417398, ___value___1)); } inline int32_t get_value___1() const { return ___value___1; } inline int32_t* get_address_of_value___1() { return &___value___1; } inline void set_value___1(int32_t value) { ___value___1 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // EVENTMODIFIERS_T2016417398_H #ifndef LEADERBOARD_T1065076763_H #define LEADERBOARD_T1065076763_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.SocialPlatforms.Impl.Leaderboard struct Leaderboard_t1065076763 : public RuntimeObject { public: // System.Boolean UnityEngine.SocialPlatforms.Impl.Leaderboard::m_Loading bool ___m_Loading_0; // UnityEngine.SocialPlatforms.IScore UnityEngine.SocialPlatforms.Impl.Leaderboard::m_LocalUserScore RuntimeObject* ___m_LocalUserScore_1; // System.UInt32 UnityEngine.SocialPlatforms.Impl.Leaderboard::m_MaxRange uint32_t ___m_MaxRange_2; // UnityEngine.SocialPlatforms.IScore[] UnityEngine.SocialPlatforms.Impl.Leaderboard::m_Scores IScoreU5BU5D_t527871248* ___m_Scores_3; // System.String UnityEngine.SocialPlatforms.Impl.Leaderboard::m_Title String_t* ___m_Title_4; // System.String[] UnityEngine.SocialPlatforms.Impl.Leaderboard::m_UserIDs StringU5BU5D_t1281789340* ___m_UserIDs_5; // System.String UnityEngine.SocialPlatforms.Impl.Leaderboard::<id>k__BackingField String_t* ___U3CidU3Ek__BackingField_6; // UnityEngine.SocialPlatforms.UserScope UnityEngine.SocialPlatforms.Impl.Leaderboard::<userScope>k__BackingField int32_t ___U3CuserScopeU3Ek__BackingField_7; // UnityEngine.SocialPlatforms.Range UnityEngine.SocialPlatforms.Impl.Leaderboard::<range>k__BackingField Range_t173988048 ___U3CrangeU3Ek__BackingField_8; // UnityEngine.SocialPlatforms.TimeScope UnityEngine.SocialPlatforms.Impl.Leaderboard::<timeScope>k__BackingField int32_t ___U3CtimeScopeU3Ek__BackingField_9; public: inline static int32_t get_offset_of_m_Loading_0() { return static_cast<int32_t>(offsetof(Leaderboard_t1065076763, ___m_Loading_0)); } inline bool get_m_Loading_0() const { return ___m_Loading_0; } inline bool* get_address_of_m_Loading_0() { return &___m_Loading_0; } inline void set_m_Loading_0(bool value) { ___m_Loading_0 = value; } inline static int32_t get_offset_of_m_LocalUserScore_1() { return static_cast<int32_t>(offsetof(Leaderboard_t1065076763, ___m_LocalUserScore_1)); } inline RuntimeObject* get_m_LocalUserScore_1() const { return ___m_LocalUserScore_1; } inline RuntimeObject** get_address_of_m_LocalUserScore_1() { return &___m_LocalUserScore_1; } inline void set_m_LocalUserScore_1(RuntimeObject* value) { ___m_LocalUserScore_1 = value; Il2CppCodeGenWriteBarrier((&___m_LocalUserScore_1), value); } inline static int32_t get_offset_of_m_MaxRange_2() { return static_cast<int32_t>(offsetof(Leaderboard_t1065076763, ___m_MaxRange_2)); } inline uint32_t get_m_MaxRange_2() const { return ___m_MaxRange_2; } inline uint32_t* get_address_of_m_MaxRange_2() { return &___m_MaxRange_2; } inline void set_m_MaxRange_2(uint32_t value) { ___m_MaxRange_2 = value; } inline static int32_t get_offset_of_m_Scores_3() { return static_cast<int32_t>(offsetof(Leaderboard_t1065076763, ___m_Scores_3)); } inline IScoreU5BU5D_t527871248* get_m_Scores_3() const { return ___m_Scores_3; } inline IScoreU5BU5D_t527871248** get_address_of_m_Scores_3() { return &___m_Scores_3; } inline void set_m_Scores_3(IScoreU5BU5D_t527871248* value) { ___m_Scores_3 = value; Il2CppCodeGenWriteBarrier((&___m_Scores_3), value); } inline static int32_t get_offset_of_m_Title_4() { return static_cast<int32_t>(offsetof(Leaderboard_t1065076763, ___m_Title_4)); } inline String_t* get_m_Title_4() const { return ___m_Title_4; } inline String_t** get_address_of_m_Title_4() { return &___m_Title_4; } inline void set_m_Title_4(String_t* value) { ___m_Title_4 = value; Il2CppCodeGenWriteBarrier((&___m_Title_4), value); } inline static int32_t get_offset_of_m_UserIDs_5() { return static_cast<int32_t>(offsetof(Leaderboard_t1065076763, ___m_UserIDs_5)); } inline StringU5BU5D_t1281789340* get_m_UserIDs_5() const { return ___m_UserIDs_5; } inline StringU5BU5D_t1281789340** get_address_of_m_UserIDs_5() { return &___m_UserIDs_5; } inline void set_m_UserIDs_5(StringU5BU5D_t1281789340* value) { ___m_UserIDs_5 = value; Il2CppCodeGenWriteBarrier((&___m_UserIDs_5), value); } inline static int32_t get_offset_of_U3CidU3Ek__BackingField_6() { return static_cast<int32_t>(offsetof(Leaderboard_t1065076763, ___U3CidU3Ek__BackingField_6)); } inline String_t* get_U3CidU3Ek__BackingField_6() const { return ___U3CidU3Ek__BackingField_6; } inline String_t** get_address_of_U3CidU3Ek__BackingField_6() { return &___U3CidU3Ek__BackingField_6; } inline void set_U3CidU3Ek__BackingField_6(String_t* value) { ___U3CidU3Ek__BackingField_6 = value; Il2CppCodeGenWriteBarrier((&___U3CidU3Ek__BackingField_6), value); } inline static int32_t get_offset_of_U3CuserScopeU3Ek__BackingField_7() { return static_cast<int32_t>(offsetof(Leaderboard_t1065076763, ___U3CuserScopeU3Ek__BackingField_7)); } inline int32_t get_U3CuserScopeU3Ek__BackingField_7() const { return ___U3CuserScopeU3Ek__BackingField_7; } inline int32_t* get_address_of_U3CuserScopeU3Ek__BackingField_7() { return &___U3CuserScopeU3Ek__BackingField_7; } inline void set_U3CuserScopeU3Ek__BackingField_7(int32_t value) { ___U3CuserScopeU3Ek__BackingField_7 = value; } inline static int32_t get_offset_of_U3CrangeU3Ek__BackingField_8() { return static_cast<int32_t>(offsetof(Leaderboard_t1065076763, ___U3CrangeU3Ek__BackingField_8)); } inline Range_t173988048 get_U3CrangeU3Ek__BackingField_8() const { return ___U3CrangeU3Ek__BackingField_8; } inline Range_t173988048 * get_address_of_U3CrangeU3Ek__BackingField_8() { return &___U3CrangeU3Ek__BackingField_8; } inline void set_U3CrangeU3Ek__BackingField_8(Range_t173988048 value) { ___U3CrangeU3Ek__BackingField_8 = value; } inline static int32_t get_offset_of_U3CtimeScopeU3Ek__BackingField_9() { return static_cast<int32_t>(offsetof(Leaderboard_t1065076763, ___U3CtimeScopeU3Ek__BackingField_9)); } inline int32_t get_U3CtimeScopeU3Ek__BackingField_9() const { return ___U3CtimeScopeU3Ek__BackingField_9; } inline int32_t* get_address_of_U3CtimeScopeU3Ek__BackingField_9() { return &___U3CtimeScopeU3Ek__BackingField_9; } inline void set_U3CtimeScopeU3Ek__BackingField_9(int32_t value) { ___U3CtimeScopeU3Ek__BackingField_9 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // LEADERBOARD_T1065076763_H #ifndef ANIMATIONCLIPPLAYABLE_T3189118652_H #define ANIMATIONCLIPPLAYABLE_T3189118652_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Animations.AnimationClipPlayable struct AnimationClipPlayable_t3189118652 { public: // UnityEngine.Playables.PlayableHandle UnityEngine.Animations.AnimationClipPlayable::m_Handle PlayableHandle_t1095853803 ___m_Handle_0; public: inline static int32_t get_offset_of_m_Handle_0() { return static_cast<int32_t>(offsetof(AnimationClipPlayable_t3189118652, ___m_Handle_0)); } inline PlayableHandle_t1095853803 get_m_Handle_0() const { return ___m_Handle_0; } inline PlayableHandle_t1095853803 * get_address_of_m_Handle_0() { return &___m_Handle_0; } inline void set_m_Handle_0(PlayableHandle_t1095853803 value) { ___m_Handle_0 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // ANIMATIONCLIPPLAYABLE_T3189118652_H #ifndef TEXTEDITOR_T2759855366_H #define TEXTEDITOR_T2759855366_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.TextEditor struct TextEditor_t2759855366 : public RuntimeObject { public: // UnityEngine.TouchScreenKeyboard UnityEngine.TextEditor::keyboardOnScreen TouchScreenKeyboard_t731888065 * ___keyboardOnScreen_0; // System.Int32 UnityEngine.TextEditor::controlID int32_t ___controlID_1; // UnityEngine.GUIStyle UnityEngine.TextEditor::style GUIStyle_t3956901511 * ___style_2; // System.Boolean UnityEngine.TextEditor::multiline bool ___multiline_3; // System.Boolean UnityEngine.TextEditor::hasHorizontalCursorPos bool ___hasHorizontalCursorPos_4; // System.Boolean UnityEngine.TextEditor::isPasswordField bool ___isPasswordField_5; // UnityEngine.Vector2 UnityEngine.TextEditor::scrollOffset Vector2_t2156229523 ___scrollOffset_6; // UnityEngine.GUIContent UnityEngine.TextEditor::m_Content GUIContent_t3050628031 * ___m_Content_7; // System.Int32 UnityEngine.TextEditor::m_CursorIndex int32_t ___m_CursorIndex_8; // System.Int32 UnityEngine.TextEditor::m_SelectIndex int32_t ___m_SelectIndex_9; // System.Boolean UnityEngine.TextEditor::m_RevealCursor bool ___m_RevealCursor_10; // System.Boolean UnityEngine.TextEditor::m_MouseDragSelectsWholeWords bool ___m_MouseDragSelectsWholeWords_11; // System.Int32 UnityEngine.TextEditor::m_DblClickInitPos int32_t ___m_DblClickInitPos_12; // UnityEngine.TextEditor/DblClickSnapping UnityEngine.TextEditor::m_DblClickSnap uint8_t ___m_DblClickSnap_13; // System.Boolean UnityEngine.TextEditor::m_bJustSelected bool ___m_bJustSelected_14; // System.Int32 UnityEngine.TextEditor::m_iAltCursorPos int32_t ___m_iAltCursorPos_15; public: inline static int32_t get_offset_of_keyboardOnScreen_0() { return static_cast<int32_t>(offsetof(TextEditor_t2759855366, ___keyboardOnScreen_0)); } inline TouchScreenKeyboard_t731888065 * get_keyboardOnScreen_0() const { return ___keyboardOnScreen_0; } inline TouchScreenKeyboard_t731888065 ** get_address_of_keyboardOnScreen_0() { return &___keyboardOnScreen_0; } inline void set_keyboardOnScreen_0(TouchScreenKeyboard_t731888065 * value) { ___keyboardOnScreen_0 = value; Il2CppCodeGenWriteBarrier((&___keyboardOnScreen_0), value); } inline static int32_t get_offset_of_controlID_1() { return static_cast<int32_t>(offsetof(TextEditor_t2759855366, ___controlID_1)); } inline int32_t get_controlID_1() const { return ___controlID_1; } inline int32_t* get_address_of_controlID_1() { return &___controlID_1; } inline void set_controlID_1(int32_t value) { ___controlID_1 = value; } inline static int32_t get_offset_of_style_2() { return static_cast<int32_t>(offsetof(TextEditor_t2759855366, ___style_2)); } inline GUIStyle_t3956901511 * get_style_2() const { return ___style_2; } inline GUIStyle_t3956901511 ** get_address_of_style_2() { return &___style_2; } inline void set_style_2(GUIStyle_t3956901511 * value) { ___style_2 = value; Il2CppCodeGenWriteBarrier((&___style_2), value); } inline static int32_t get_offset_of_multiline_3() { return static_cast<int32_t>(offsetof(TextEditor_t2759855366, ___multiline_3)); } inline bool get_multiline_3() const { return ___multiline_3; } inline bool* get_address_of_multiline_3() { return &___multiline_3; } inline void set_multiline_3(bool value) { ___multiline_3 = value; } inline static int32_t get_offset_of_hasHorizontalCursorPos_4() { return static_cast<int32_t>(offsetof(TextEditor_t2759855366, ___hasHorizontalCursorPos_4)); } inline bool get_hasHorizontalCursorPos_4() const { return ___hasHorizontalCursorPos_4; } inline bool* get_address_of_hasHorizontalCursorPos_4() { return &___hasHorizontalCursorPos_4; } inline void set_hasHorizontalCursorPos_4(bool value) { ___hasHorizontalCursorPos_4 = value; } inline static int32_t get_offset_of_isPasswordField_5() { return static_cast<int32_t>(offsetof(TextEditor_t2759855366, ___isPasswordField_5)); } inline bool get_isPasswordField_5() const { return ___isPasswordField_5; } inline bool* get_address_of_isPasswordField_5() { return &___isPasswordField_5; } inline void set_isPasswordField_5(bool value) { ___isPasswordField_5 = value; } inline static int32_t get_offset_of_scrollOffset_6() { return static_cast<int32_t>(offsetof(TextEditor_t2759855366, ___scrollOffset_6)); } inline Vector2_t2156229523 get_scrollOffset_6() const { return ___scrollOffset_6; } inline Vector2_t2156229523 * get_address_of_scrollOffset_6() { return &___scrollOffset_6; } inline void set_scrollOffset_6(Vector2_t2156229523 value) { ___scrollOffset_6 = value; } inline static int32_t get_offset_of_m_Content_7() { return static_cast<int32_t>(offsetof(TextEditor_t2759855366, ___m_Content_7)); } inline GUIContent_t3050628031 * get_m_Content_7() const { return ___m_Content_7; } inline GUIContent_t3050628031 ** get_address_of_m_Content_7() { return &___m_Content_7; } inline void set_m_Content_7(GUIContent_t3050628031 * value) { ___m_Content_7 = value; Il2CppCodeGenWriteBarrier((&___m_Content_7), value); } inline static int32_t get_offset_of_m_CursorIndex_8() { return static_cast<int32_t>(offsetof(TextEditor_t2759855366, ___m_CursorIndex_8)); } inline int32_t get_m_CursorIndex_8() const { return ___m_CursorIndex_8; } inline int32_t* get_address_of_m_CursorIndex_8() { return &___m_CursorIndex_8; } inline void set_m_CursorIndex_8(int32_t value) { ___m_CursorIndex_8 = value; } inline static int32_t get_offset_of_m_SelectIndex_9() { return static_cast<int32_t>(offsetof(TextEditor_t2759855366, ___m_SelectIndex_9)); } inline int32_t get_m_SelectIndex_9() const { return ___m_SelectIndex_9; } inline int32_t* get_address_of_m_SelectIndex_9() { return &___m_SelectIndex_9; } inline void set_m_SelectIndex_9(int32_t value) { ___m_SelectIndex_9 = value; } inline static int32_t get_offset_of_m_RevealCursor_10() { return static_cast<int32_t>(offsetof(TextEditor_t2759855366, ___m_RevealCursor_10)); } inline bool get_m_RevealCursor_10() const { return ___m_RevealCursor_10; } inline bool* get_address_of_m_RevealCursor_10() { return &___m_RevealCursor_10; } inline void set_m_RevealCursor_10(bool value) { ___m_RevealCursor_10 = value; } inline static int32_t get_offset_of_m_MouseDragSelectsWholeWords_11() { return static_cast<int32_t>(offsetof(TextEditor_t2759855366, ___m_MouseDragSelectsWholeWords_11)); } inline bool get_m_MouseDragSelectsWholeWords_11() const { return ___m_MouseDragSelectsWholeWords_11; } inline bool* get_address_of_m_MouseDragSelectsWholeWords_11() { return &___m_MouseDragSelectsWholeWords_11; } inline void set_m_MouseDragSelectsWholeWords_11(bool value) { ___m_MouseDragSelectsWholeWords_11 = value; } inline static int32_t get_offset_of_m_DblClickInitPos_12() { return static_cast<int32_t>(offsetof(TextEditor_t2759855366, ___m_DblClickInitPos_12)); } inline int32_t get_m_DblClickInitPos_12() const { return ___m_DblClickInitPos_12; } inline int32_t* get_address_of_m_DblClickInitPos_12() { return &___m_DblClickInitPos_12; } inline void set_m_DblClickInitPos_12(int32_t value) { ___m_DblClickInitPos_12 = value; } inline static int32_t get_offset_of_m_DblClickSnap_13() { return static_cast<int32_t>(offsetof(TextEditor_t2759855366, ___m_DblClickSnap_13)); } inline uint8_t get_m_DblClickSnap_13() const { return ___m_DblClickSnap_13; } inline uint8_t* get_address_of_m_DblClickSnap_13() { return &___m_DblClickSnap_13; } inline void set_m_DblClickSnap_13(uint8_t value) { ___m_DblClickSnap_13 = value; } inline static int32_t get_offset_of_m_bJustSelected_14() { return static_cast<int32_t>(offsetof(TextEditor_t2759855366, ___m_bJustSelected_14)); } inline bool get_m_bJustSelected_14() const { return ___m_bJustSelected_14; } inline bool* get_address_of_m_bJustSelected_14() { return &___m_bJustSelected_14; } inline void set_m_bJustSelected_14(bool value) { ___m_bJustSelected_14 = value; } inline static int32_t get_offset_of_m_iAltCursorPos_15() { return static_cast<int32_t>(offsetof(TextEditor_t2759855366, ___m_iAltCursorPos_15)); } inline int32_t get_m_iAltCursorPos_15() const { return ___m_iAltCursorPos_15; } inline int32_t* get_address_of_m_iAltCursorPos_15() { return &___m_iAltCursorPos_15; } inline void set_m_iAltCursorPos_15(int32_t value) { ___m_iAltCursorPos_15 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // TEXTEDITOR_T2759855366_H #ifndef SCRIPTABLEOBJECT_T2528358522_H #define SCRIPTABLEOBJECT_T2528358522_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.ScriptableObject struct ScriptableObject_t2528358522 : public Object_t631007953 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of UnityEngine.ScriptableObject struct ScriptableObject_t2528358522_marshaled_pinvoke : public Object_t631007953_marshaled_pinvoke { }; // Native definition for COM marshalling of UnityEngine.ScriptableObject struct ScriptableObject_t2528358522_marshaled_com : public Object_t631007953_marshaled_com { }; #endif // SCRIPTABLEOBJECT_T2528358522_H #ifndef DATETIME_T3738529785_H #define DATETIME_T3738529785_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.DateTime struct DateTime_t3738529785 { public: // System.TimeSpan System.DateTime::ticks TimeSpan_t881159249 ___ticks_10; // System.DateTimeKind System.DateTime::kind int32_t ___kind_11; public: inline static int32_t get_offset_of_ticks_10() { return static_cast<int32_t>(offsetof(DateTime_t3738529785, ___ticks_10)); } inline TimeSpan_t881159249 get_ticks_10() const { return ___ticks_10; } inline TimeSpan_t881159249 * get_address_of_ticks_10() { return &___ticks_10; } inline void set_ticks_10(TimeSpan_t881159249 value) { ___ticks_10 = value; } inline static int32_t get_offset_of_kind_11() { return static_cast<int32_t>(offsetof(DateTime_t3738529785, ___kind_11)); } inline int32_t get_kind_11() const { return ___kind_11; } inline int32_t* get_address_of_kind_11() { return &___kind_11; } inline void set_kind_11(int32_t value) { ___kind_11 = value; } }; struct DateTime_t3738529785_StaticFields { public: // System.DateTime System.DateTime::MaxValue DateTime_t3738529785 ___MaxValue_12; // System.DateTime System.DateTime::MinValue DateTime_t3738529785 ___MinValue_13; // System.String[] System.DateTime::ParseTimeFormats StringU5BU5D_t1281789340* ___ParseTimeFormats_14; // System.String[] System.DateTime::ParseYearDayMonthFormats StringU5BU5D_t1281789340* ___ParseYearDayMonthFormats_15; // System.String[] System.DateTime::ParseYearMonthDayFormats StringU5BU5D_t1281789340* ___ParseYearMonthDayFormats_16; // System.String[] System.DateTime::ParseDayMonthYearFormats StringU5BU5D_t1281789340* ___ParseDayMonthYearFormats_17; // System.String[] System.DateTime::ParseMonthDayYearFormats StringU5BU5D_t1281789340* ___ParseMonthDayYearFormats_18; // System.String[] System.DateTime::MonthDayShortFormats StringU5BU5D_t1281789340* ___MonthDayShortFormats_19; // System.String[] System.DateTime::DayMonthShortFormats StringU5BU5D_t1281789340* ___DayMonthShortFormats_20; // System.Int32[] System.DateTime::daysmonth Int32U5BU5D_t385246372* ___daysmonth_21; // System.Int32[] System.DateTime::daysmonthleap Int32U5BU5D_t385246372* ___daysmonthleap_22; // System.Object System.DateTime::to_local_time_span_object RuntimeObject * ___to_local_time_span_object_23; // System.Int64 System.DateTime::last_now int64_t ___last_now_24; public: inline static int32_t get_offset_of_MaxValue_12() { return static_cast<int32_t>(offsetof(DateTime_t3738529785_StaticFields, ___MaxValue_12)); } inline DateTime_t3738529785 get_MaxValue_12() const { return ___MaxValue_12; } inline DateTime_t3738529785 * get_address_of_MaxValue_12() { return &___MaxValue_12; } inline void set_MaxValue_12(DateTime_t3738529785 value) { ___MaxValue_12 = value; } inline static int32_t get_offset_of_MinValue_13() { return static_cast<int32_t>(offsetof(DateTime_t3738529785_StaticFields, ___MinValue_13)); } inline DateTime_t3738529785 get_MinValue_13() const { return ___MinValue_13; } inline DateTime_t3738529785 * get_address_of_MinValue_13() { return &___MinValue_13; } inline void set_MinValue_13(DateTime_t3738529785 value) { ___MinValue_13 = value; } inline static int32_t get_offset_of_ParseTimeFormats_14() { return static_cast<int32_t>(offsetof(DateTime_t3738529785_StaticFields, ___ParseTimeFormats_14)); } inline StringU5BU5D_t1281789340* get_ParseTimeFormats_14() const { return ___ParseTimeFormats_14; } inline StringU5BU5D_t1281789340** get_address_of_ParseTimeFormats_14() { return &___ParseTimeFormats_14; } inline void set_ParseTimeFormats_14(StringU5BU5D_t1281789340* value) { ___ParseTimeFormats_14 = value; Il2CppCodeGenWriteBarrier((&___ParseTimeFormats_14), value); } inline static int32_t get_offset_of_ParseYearDayMonthFormats_15() { return static_cast<int32_t>(offsetof(DateTime_t3738529785_StaticFields, ___ParseYearDayMonthFormats_15)); } inline StringU5BU5D_t1281789340* get_ParseYearDayMonthFormats_15() const { return ___ParseYearDayMonthFormats_15; } inline StringU5BU5D_t1281789340** get_address_of_ParseYearDayMonthFormats_15() { return &___ParseYearDayMonthFormats_15; } inline void set_ParseYearDayMonthFormats_15(StringU5BU5D_t1281789340* value) { ___ParseYearDayMonthFormats_15 = value; Il2CppCodeGenWriteBarrier((&___ParseYearDayMonthFormats_15), value); } inline static int32_t get_offset_of_ParseYearMonthDayFormats_16() { return static_cast<int32_t>(offsetof(DateTime_t3738529785_StaticFields, ___ParseYearMonthDayFormats_16)); } inline StringU5BU5D_t1281789340* get_ParseYearMonthDayFormats_16() const { return ___ParseYearMonthDayFormats_16; } inline StringU5BU5D_t1281789340** get_address_of_ParseYearMonthDayFormats_16() { return &___ParseYearMonthDayFormats_16; } inline void set_ParseYearMonthDayFormats_16(StringU5BU5D_t1281789340* value) { ___ParseYearMonthDayFormats_16 = value; Il2CppCodeGenWriteBarrier((&___ParseYearMonthDayFormats_16), value); } inline static int32_t get_offset_of_ParseDayMonthYearFormats_17() { return static_cast<int32_t>(offsetof(DateTime_t3738529785_StaticFields, ___ParseDayMonthYearFormats_17)); } inline StringU5BU5D_t1281789340* get_ParseDayMonthYearFormats_17() const { return ___ParseDayMonthYearFormats_17; } inline StringU5BU5D_t1281789340** get_address_of_ParseDayMonthYearFormats_17() { return &___ParseDayMonthYearFormats_17; } inline void set_ParseDayMonthYearFormats_17(StringU5BU5D_t1281789340* value) { ___ParseDayMonthYearFormats_17 = value; Il2CppCodeGenWriteBarrier((&___ParseDayMonthYearFormats_17), value); } inline static int32_t get_offset_of_ParseMonthDayYearFormats_18() { return static_cast<int32_t>(offsetof(DateTime_t3738529785_StaticFields, ___ParseMonthDayYearFormats_18)); } inline StringU5BU5D_t1281789340* get_ParseMonthDayYearFormats_18() const { return ___ParseMonthDayYearFormats_18; } inline StringU5BU5D_t1281789340** get_address_of_ParseMonthDayYearFormats_18() { return &___ParseMonthDayYearFormats_18; } inline void set_ParseMonthDayYearFormats_18(StringU5BU5D_t1281789340* value) { ___ParseMonthDayYearFormats_18 = value; Il2CppCodeGenWriteBarrier((&___ParseMonthDayYearFormats_18), value); } inline static int32_t get_offset_of_MonthDayShortFormats_19() { return static_cast<int32_t>(offsetof(DateTime_t3738529785_StaticFields, ___MonthDayShortFormats_19)); } inline StringU5BU5D_t1281789340* get_MonthDayShortFormats_19() const { return ___MonthDayShortFormats_19; } inline StringU5BU5D_t1281789340** get_address_of_MonthDayShortFormats_19() { return &___MonthDayShortFormats_19; } inline void set_MonthDayShortFormats_19(StringU5BU5D_t1281789340* value) { ___MonthDayShortFormats_19 = value; Il2CppCodeGenWriteBarrier((&___MonthDayShortFormats_19), value); } inline static int32_t get_offset_of_DayMonthShortFormats_20() { return static_cast<int32_t>(offsetof(DateTime_t3738529785_StaticFields, ___DayMonthShortFormats_20)); } inline StringU5BU5D_t1281789340* get_DayMonthShortFormats_20() const { return ___DayMonthShortFormats_20; } inline StringU5BU5D_t1281789340** get_address_of_DayMonthShortFormats_20() { return &___DayMonthShortFormats_20; } inline void set_DayMonthShortFormats_20(StringU5BU5D_t1281789340* value) { ___DayMonthShortFormats_20 = value; Il2CppCodeGenWriteBarrier((&___DayMonthShortFormats_20), value); } inline static int32_t get_offset_of_daysmonth_21() { return static_cast<int32_t>(offsetof(DateTime_t3738529785_StaticFields, ___daysmonth_21)); } inline Int32U5BU5D_t385246372* get_daysmonth_21() const { return ___daysmonth_21; } inline Int32U5BU5D_t385246372** get_address_of_daysmonth_21() { return &___daysmonth_21; } inline void set_daysmonth_21(Int32U5BU5D_t385246372* value) { ___daysmonth_21 = value; Il2CppCodeGenWriteBarrier((&___daysmonth_21), value); } inline static int32_t get_offset_of_daysmonthleap_22() { return static_cast<int32_t>(offsetof(DateTime_t3738529785_StaticFields, ___daysmonthleap_22)); } inline Int32U5BU5D_t385246372* get_daysmonthleap_22() const { return ___daysmonthleap_22; } inline Int32U5BU5D_t385246372** get_address_of_daysmonthleap_22() { return &___daysmonthleap_22; } inline void set_daysmonthleap_22(Int32U5BU5D_t385246372* value) { ___daysmonthleap_22 = value; Il2CppCodeGenWriteBarrier((&___daysmonthleap_22), value); } inline static int32_t get_offset_of_to_local_time_span_object_23() { return static_cast<int32_t>(offsetof(DateTime_t3738529785_StaticFields, ___to_local_time_span_object_23)); } inline RuntimeObject * get_to_local_time_span_object_23() const { return ___to_local_time_span_object_23; } inline RuntimeObject ** get_address_of_to_local_time_span_object_23() { return &___to_local_time_span_object_23; } inline void set_to_local_time_span_object_23(RuntimeObject * value) { ___to_local_time_span_object_23 = value; Il2CppCodeGenWriteBarrier((&___to_local_time_span_object_23), value); } inline static int32_t get_offset_of_last_now_24() { return static_cast<int32_t>(offsetof(DateTime_t3738529785_StaticFields, ___last_now_24)); } inline int64_t get_last_now_24() const { return ___last_now_24; } inline int64_t* get_address_of_last_now_24() { return &___last_now_24; } inline void set_last_now_24(int64_t value) { ___last_now_24 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // DATETIME_T3738529785_H #ifndef USERPROFILE_T3137328177_H #define USERPROFILE_T3137328177_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.SocialPlatforms.Impl.UserProfile struct UserProfile_t3137328177 : public RuntimeObject { public: // System.String UnityEngine.SocialPlatforms.Impl.UserProfile::m_UserName String_t* ___m_UserName_0; // System.String UnityEngine.SocialPlatforms.Impl.UserProfile::m_ID String_t* ___m_ID_1; // System.Boolean UnityEngine.SocialPlatforms.Impl.UserProfile::m_IsFriend bool ___m_IsFriend_2; // UnityEngine.SocialPlatforms.UserState UnityEngine.SocialPlatforms.Impl.UserProfile::m_State int32_t ___m_State_3; // UnityEngine.Texture2D UnityEngine.SocialPlatforms.Impl.UserProfile::m_Image Texture2D_t3840446185 * ___m_Image_4; public: inline static int32_t get_offset_of_m_UserName_0() { return static_cast<int32_t>(offsetof(UserProfile_t3137328177, ___m_UserName_0)); } inline String_t* get_m_UserName_0() const { return ___m_UserName_0; } inline String_t** get_address_of_m_UserName_0() { return &___m_UserName_0; } inline void set_m_UserName_0(String_t* value) { ___m_UserName_0 = value; Il2CppCodeGenWriteBarrier((&___m_UserName_0), value); } inline static int32_t get_offset_of_m_ID_1() { return static_cast<int32_t>(offsetof(UserProfile_t3137328177, ___m_ID_1)); } inline String_t* get_m_ID_1() const { return ___m_ID_1; } inline String_t** get_address_of_m_ID_1() { return &___m_ID_1; } inline void set_m_ID_1(String_t* value) { ___m_ID_1 = value; Il2CppCodeGenWriteBarrier((&___m_ID_1), value); } inline static int32_t get_offset_of_m_IsFriend_2() { return static_cast<int32_t>(offsetof(UserProfile_t3137328177, ___m_IsFriend_2)); } inline bool get_m_IsFriend_2() const { return ___m_IsFriend_2; } inline bool* get_address_of_m_IsFriend_2() { return &___m_IsFriend_2; } inline void set_m_IsFriend_2(bool value) { ___m_IsFriend_2 = value; } inline static int32_t get_offset_of_m_State_3() { return static_cast<int32_t>(offsetof(UserProfile_t3137328177, ___m_State_3)); } inline int32_t get_m_State_3() const { return ___m_State_3; } inline int32_t* get_address_of_m_State_3() { return &___m_State_3; } inline void set_m_State_3(int32_t value) { ___m_State_3 = value; } inline static int32_t get_offset_of_m_Image_4() { return static_cast<int32_t>(offsetof(UserProfile_t3137328177, ___m_Image_4)); } inline Texture2D_t3840446185 * get_m_Image_4() const { return ___m_Image_4; } inline Texture2D_t3840446185 ** get_address_of_m_Image_4() { return &___m_Image_4; } inline void set_m_Image_4(Texture2D_t3840446185 * value) { ___m_Image_4 = value; Il2CppCodeGenWriteBarrier((&___m_Image_4), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // USERPROFILE_T3137328177_H #ifndef ANIMATIONLAYERMIXERPLAYABLE_T3631223897_H #define ANIMATIONLAYERMIXERPLAYABLE_T3631223897_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Animations.AnimationLayerMixerPlayable struct AnimationLayerMixerPlayable_t3631223897 { public: // UnityEngine.Playables.PlayableHandle UnityEngine.Animations.AnimationLayerMixerPlayable::m_Handle PlayableHandle_t1095853803 ___m_Handle_0; public: inline static int32_t get_offset_of_m_Handle_0() { return static_cast<int32_t>(offsetof(AnimationLayerMixerPlayable_t3631223897, ___m_Handle_0)); } inline PlayableHandle_t1095853803 get_m_Handle_0() const { return ___m_Handle_0; } inline PlayableHandle_t1095853803 * get_address_of_m_Handle_0() { return &___m_Handle_0; } inline void set_m_Handle_0(PlayableHandle_t1095853803 value) { ___m_Handle_0 = value; } }; struct AnimationLayerMixerPlayable_t3631223897_StaticFields { public: // UnityEngine.Animations.AnimationLayerMixerPlayable UnityEngine.Animations.AnimationLayerMixerPlayable::m_NullPlayable AnimationLayerMixerPlayable_t3631223897 ___m_NullPlayable_1; public: inline static int32_t get_offset_of_m_NullPlayable_1() { return static_cast<int32_t>(offsetof(AnimationLayerMixerPlayable_t3631223897_StaticFields, ___m_NullPlayable_1)); } inline AnimationLayerMixerPlayable_t3631223897 get_m_NullPlayable_1() const { return ___m_NullPlayable_1; } inline AnimationLayerMixerPlayable_t3631223897 * get_address_of_m_NullPlayable_1() { return &___m_NullPlayable_1; } inline void set_m_NullPlayable_1(AnimationLayerMixerPlayable_t3631223897 value) { ___m_NullPlayable_1 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // ANIMATIONLAYERMIXERPLAYABLE_T3631223897_H #ifndef ANIMATIONPLAYABLEOUTPUT_T1918618239_H #define ANIMATIONPLAYABLEOUTPUT_T1918618239_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Animations.AnimationPlayableOutput struct AnimationPlayableOutput_t1918618239 { public: // UnityEngine.Playables.PlayableOutputHandle UnityEngine.Animations.AnimationPlayableOutput::m_Handle PlayableOutputHandle_t4208053793 ___m_Handle_0; public: inline static int32_t get_offset_of_m_Handle_0() { return static_cast<int32_t>(offsetof(AnimationPlayableOutput_t1918618239, ___m_Handle_0)); } inline PlayableOutputHandle_t4208053793 get_m_Handle_0() const { return ___m_Handle_0; } inline PlayableOutputHandle_t4208053793 * get_address_of_m_Handle_0() { return &___m_Handle_0; } inline void set_m_Handle_0(PlayableOutputHandle_t4208053793 value) { ___m_Handle_0 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // ANIMATIONPLAYABLEOUTPUT_T1918618239_H #ifndef ANIMATIONMIXERPLAYABLE_T821371386_H #define ANIMATIONMIXERPLAYABLE_T821371386_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Animations.AnimationMixerPlayable struct AnimationMixerPlayable_t821371386 { public: // UnityEngine.Playables.PlayableHandle UnityEngine.Animations.AnimationMixerPlayable::m_Handle PlayableHandle_t1095853803 ___m_Handle_0; public: inline static int32_t get_offset_of_m_Handle_0() { return static_cast<int32_t>(offsetof(AnimationMixerPlayable_t821371386, ___m_Handle_0)); } inline PlayableHandle_t1095853803 get_m_Handle_0() const { return ___m_Handle_0; } inline PlayableHandle_t1095853803 * get_address_of_m_Handle_0() { return &___m_Handle_0; } inline void set_m_Handle_0(PlayableHandle_t1095853803 value) { ___m_Handle_0 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // ANIMATIONMIXERPLAYABLE_T821371386_H #ifndef ANIMATIONOFFSETPLAYABLE_T2887420414_H #define ANIMATIONOFFSETPLAYABLE_T2887420414_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Animations.AnimationOffsetPlayable struct AnimationOffsetPlayable_t2887420414 { public: // UnityEngine.Playables.PlayableHandle UnityEngine.Animations.AnimationOffsetPlayable::m_Handle PlayableHandle_t1095853803 ___m_Handle_0; public: inline static int32_t get_offset_of_m_Handle_0() { return static_cast<int32_t>(offsetof(AnimationOffsetPlayable_t2887420414, ___m_Handle_0)); } inline PlayableHandle_t1095853803 get_m_Handle_0() const { return ___m_Handle_0; } inline PlayableHandle_t1095853803 * get_address_of_m_Handle_0() { return &___m_Handle_0; } inline void set_m_Handle_0(PlayableHandle_t1095853803 value) { ___m_Handle_0 = value; } }; struct AnimationOffsetPlayable_t2887420414_StaticFields { public: // UnityEngine.Animations.AnimationOffsetPlayable UnityEngine.Animations.AnimationOffsetPlayable::m_NullPlayable AnimationOffsetPlayable_t2887420414 ___m_NullPlayable_1; public: inline static int32_t get_offset_of_m_NullPlayable_1() { return static_cast<int32_t>(offsetof(AnimationOffsetPlayable_t2887420414_StaticFields, ___m_NullPlayable_1)); } inline AnimationOffsetPlayable_t2887420414 get_m_NullPlayable_1() const { return ___m_NullPlayable_1; } inline AnimationOffsetPlayable_t2887420414 * get_address_of_m_NullPlayable_1() { return &___m_NullPlayable_1; } inline void set_m_NullPlayable_1(AnimationOffsetPlayable_t2887420414 value) { ___m_NullPlayable_1 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // ANIMATIONOFFSETPLAYABLE_T2887420414_H #ifndef MULTICASTDELEGATE_T_H #define MULTICASTDELEGATE_T_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.MulticastDelegate struct MulticastDelegate_t : public Delegate_t1188392813 { public: // System.MulticastDelegate System.MulticastDelegate::prev MulticastDelegate_t * ___prev_9; // System.MulticastDelegate System.MulticastDelegate::kpm_next MulticastDelegate_t * ___kpm_next_10; public: inline static int32_t get_offset_of_prev_9() { return static_cast<int32_t>(offsetof(MulticastDelegate_t, ___prev_9)); } inline MulticastDelegate_t * get_prev_9() const { return ___prev_9; } inline MulticastDelegate_t ** get_address_of_prev_9() { return &___prev_9; } inline void set_prev_9(MulticastDelegate_t * value) { ___prev_9 = value; Il2CppCodeGenWriteBarrier((&___prev_9), value); } inline static int32_t get_offset_of_kpm_next_10() { return static_cast<int32_t>(offsetof(MulticastDelegate_t, ___kpm_next_10)); } inline MulticastDelegate_t * get_kpm_next_10() const { return ___kpm_next_10; } inline MulticastDelegate_t ** get_address_of_kpm_next_10() { return &___kpm_next_10; } inline void set_kpm_next_10(MulticastDelegate_t * value) { ___kpm_next_10 = value; Il2CppCodeGenWriteBarrier((&___kpm_next_10), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // MULTICASTDELEGATE_T_H #ifndef GUISTYLE_T3956901511_H #define GUISTYLE_T3956901511_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.GUIStyle struct GUIStyle_t3956901511 : public RuntimeObject { public: // System.IntPtr UnityEngine.GUIStyle::m_Ptr intptr_t ___m_Ptr_0; // UnityEngine.GUIStyleState UnityEngine.GUIStyle::m_Normal GUIStyleState_t1397964415 * ___m_Normal_1; // UnityEngine.GUIStyleState UnityEngine.GUIStyle::m_Hover GUIStyleState_t1397964415 * ___m_Hover_2; // UnityEngine.GUIStyleState UnityEngine.GUIStyle::m_Active GUIStyleState_t1397964415 * ___m_Active_3; // UnityEngine.GUIStyleState UnityEngine.GUIStyle::m_Focused GUIStyleState_t1397964415 * ___m_Focused_4; // UnityEngine.GUIStyleState UnityEngine.GUIStyle::m_OnNormal GUIStyleState_t1397964415 * ___m_OnNormal_5; // UnityEngine.GUIStyleState UnityEngine.GUIStyle::m_OnHover GUIStyleState_t1397964415 * ___m_OnHover_6; // UnityEngine.GUIStyleState UnityEngine.GUIStyle::m_OnActive GUIStyleState_t1397964415 * ___m_OnActive_7; // UnityEngine.GUIStyleState UnityEngine.GUIStyle::m_OnFocused GUIStyleState_t1397964415 * ___m_OnFocused_8; // UnityEngine.RectOffset UnityEngine.GUIStyle::m_Border RectOffset_t1369453676 * ___m_Border_9; // UnityEngine.RectOffset UnityEngine.GUIStyle::m_Padding RectOffset_t1369453676 * ___m_Padding_10; // UnityEngine.RectOffset UnityEngine.GUIStyle::m_Margin RectOffset_t1369453676 * ___m_Margin_11; // UnityEngine.RectOffset UnityEngine.GUIStyle::m_Overflow RectOffset_t1369453676 * ___m_Overflow_12; // UnityEngine.Font UnityEngine.GUIStyle::m_FontInternal Font_t1956802104 * ___m_FontInternal_13; public: inline static int32_t get_offset_of_m_Ptr_0() { return static_cast<int32_t>(offsetof(GUIStyle_t3956901511, ___m_Ptr_0)); } inline intptr_t get_m_Ptr_0() const { return ___m_Ptr_0; } inline intptr_t* get_address_of_m_Ptr_0() { return &___m_Ptr_0; } inline void set_m_Ptr_0(intptr_t value) { ___m_Ptr_0 = value; } inline static int32_t get_offset_of_m_Normal_1() { return static_cast<int32_t>(offsetof(GUIStyle_t3956901511, ___m_Normal_1)); } inline GUIStyleState_t1397964415 * get_m_Normal_1() const { return ___m_Normal_1; } inline GUIStyleState_t1397964415 ** get_address_of_m_Normal_1() { return &___m_Normal_1; } inline void set_m_Normal_1(GUIStyleState_t1397964415 * value) { ___m_Normal_1 = value; Il2CppCodeGenWriteBarrier((&___m_Normal_1), value); } inline static int32_t get_offset_of_m_Hover_2() { return static_cast<int32_t>(offsetof(GUIStyle_t3956901511, ___m_Hover_2)); } inline GUIStyleState_t1397964415 * get_m_Hover_2() const { return ___m_Hover_2; } inline GUIStyleState_t1397964415 ** get_address_of_m_Hover_2() { return &___m_Hover_2; } inline void set_m_Hover_2(GUIStyleState_t1397964415 * value) { ___m_Hover_2 = value; Il2CppCodeGenWriteBarrier((&___m_Hover_2), value); } inline static int32_t get_offset_of_m_Active_3() { return static_cast<int32_t>(offsetof(GUIStyle_t3956901511, ___m_Active_3)); } inline GUIStyleState_t1397964415 * get_m_Active_3() const { return ___m_Active_3; } inline GUIStyleState_t1397964415 ** get_address_of_m_Active_3() { return &___m_Active_3; } inline void set_m_Active_3(GUIStyleState_t1397964415 * value) { ___m_Active_3 = value; Il2CppCodeGenWriteBarrier((&___m_Active_3), value); } inline static int32_t get_offset_of_m_Focused_4() { return static_cast<int32_t>(offsetof(GUIStyle_t3956901511, ___m_Focused_4)); } inline GUIStyleState_t1397964415 * get_m_Focused_4() const { return ___m_Focused_4; } inline GUIStyleState_t1397964415 ** get_address_of_m_Focused_4() { return &___m_Focused_4; } inline void set_m_Focused_4(GUIStyleState_t1397964415 * value) { ___m_Focused_4 = value; Il2CppCodeGenWriteBarrier((&___m_Focused_4), value); } inline static int32_t get_offset_of_m_OnNormal_5() { return static_cast<int32_t>(offsetof(GUIStyle_t3956901511, ___m_OnNormal_5)); } inline GUIStyleState_t1397964415 * get_m_OnNormal_5() const { return ___m_OnNormal_5; } inline GUIStyleState_t1397964415 ** get_address_of_m_OnNormal_5() { return &___m_OnNormal_5; } inline void set_m_OnNormal_5(GUIStyleState_t1397964415 * value) { ___m_OnNormal_5 = value; Il2CppCodeGenWriteBarrier((&___m_OnNormal_5), value); } inline static int32_t get_offset_of_m_OnHover_6() { return static_cast<int32_t>(offsetof(GUIStyle_t3956901511, ___m_OnHover_6)); } inline GUIStyleState_t1397964415 * get_m_OnHover_6() const { return ___m_OnHover_6; } inline GUIStyleState_t1397964415 ** get_address_of_m_OnHover_6() { return &___m_OnHover_6; } inline void set_m_OnHover_6(GUIStyleState_t1397964415 * value) { ___m_OnHover_6 = value; Il2CppCodeGenWriteBarrier((&___m_OnHover_6), value); } inline static int32_t get_offset_of_m_OnActive_7() { return static_cast<int32_t>(offsetof(GUIStyle_t3956901511, ___m_OnActive_7)); } inline GUIStyleState_t1397964415 * get_m_OnActive_7() const { return ___m_OnActive_7; } inline GUIStyleState_t1397964415 ** get_address_of_m_OnActive_7() { return &___m_OnActive_7; } inline void set_m_OnActive_7(GUIStyleState_t1397964415 * value) { ___m_OnActive_7 = value; Il2CppCodeGenWriteBarrier((&___m_OnActive_7), value); } inline static int32_t get_offset_of_m_OnFocused_8() { return static_cast<int32_t>(offsetof(GUIStyle_t3956901511, ___m_OnFocused_8)); } inline GUIStyleState_t1397964415 * get_m_OnFocused_8() const { return ___m_OnFocused_8; } inline GUIStyleState_t1397964415 ** get_address_of_m_OnFocused_8() { return &___m_OnFocused_8; } inline void set_m_OnFocused_8(GUIStyleState_t1397964415 * value) { ___m_OnFocused_8 = value; Il2CppCodeGenWriteBarrier((&___m_OnFocused_8), value); } inline static int32_t get_offset_of_m_Border_9() { return static_cast<int32_t>(offsetof(GUIStyle_t3956901511, ___m_Border_9)); } inline RectOffset_t1369453676 * get_m_Border_9() const { return ___m_Border_9; } inline RectOffset_t1369453676 ** get_address_of_m_Border_9() { return &___m_Border_9; } inline void set_m_Border_9(RectOffset_t1369453676 * value) { ___m_Border_9 = value; Il2CppCodeGenWriteBarrier((&___m_Border_9), value); } inline static int32_t get_offset_of_m_Padding_10() { return static_cast<int32_t>(offsetof(GUIStyle_t3956901511, ___m_Padding_10)); } inline RectOffset_t1369453676 * get_m_Padding_10() const { return ___m_Padding_10; } inline RectOffset_t1369453676 ** get_address_of_m_Padding_10() { return &___m_Padding_10; } inline void set_m_Padding_10(RectOffset_t1369453676 * value) { ___m_Padding_10 = value; Il2CppCodeGenWriteBarrier((&___m_Padding_10), value); } inline static int32_t get_offset_of_m_Margin_11() { return static_cast<int32_t>(offsetof(GUIStyle_t3956901511, ___m_Margin_11)); } inline RectOffset_t1369453676 * get_m_Margin_11() const { return ___m_Margin_11; } inline RectOffset_t1369453676 ** get_address_of_m_Margin_11() { return &___m_Margin_11; } inline void set_m_Margin_11(RectOffset_t1369453676 * value) { ___m_Margin_11 = value; Il2CppCodeGenWriteBarrier((&___m_Margin_11), value); } inline static int32_t get_offset_of_m_Overflow_12() { return static_cast<int32_t>(offsetof(GUIStyle_t3956901511, ___m_Overflow_12)); } inline RectOffset_t1369453676 * get_m_Overflow_12() const { return ___m_Overflow_12; } inline RectOffset_t1369453676 ** get_address_of_m_Overflow_12() { return &___m_Overflow_12; } inline void set_m_Overflow_12(RectOffset_t1369453676 * value) { ___m_Overflow_12 = value; Il2CppCodeGenWriteBarrier((&___m_Overflow_12), value); } inline static int32_t get_offset_of_m_FontInternal_13() { return static_cast<int32_t>(offsetof(GUIStyle_t3956901511, ___m_FontInternal_13)); } inline Font_t1956802104 * get_m_FontInternal_13() const { return ___m_FontInternal_13; } inline Font_t1956802104 ** get_address_of_m_FontInternal_13() { return &___m_FontInternal_13; } inline void set_m_FontInternal_13(Font_t1956802104 * value) { ___m_FontInternal_13 = value; Il2CppCodeGenWriteBarrier((&___m_FontInternal_13), value); } }; struct GUIStyle_t3956901511_StaticFields { public: // System.Boolean UnityEngine.GUIStyle::showKeyboardFocus bool ___showKeyboardFocus_14; // UnityEngine.GUIStyle UnityEngine.GUIStyle::s_None GUIStyle_t3956901511 * ___s_None_15; public: inline static int32_t get_offset_of_showKeyboardFocus_14() { return static_cast<int32_t>(offsetof(GUIStyle_t3956901511_StaticFields, ___showKeyboardFocus_14)); } inline bool get_showKeyboardFocus_14() const { return ___showKeyboardFocus_14; } inline bool* get_address_of_showKeyboardFocus_14() { return &___showKeyboardFocus_14; } inline void set_showKeyboardFocus_14(bool value) { ___showKeyboardFocus_14 = value; } inline static int32_t get_offset_of_s_None_15() { return static_cast<int32_t>(offsetof(GUIStyle_t3956901511_StaticFields, ___s_None_15)); } inline GUIStyle_t3956901511 * get_s_None_15() const { return ___s_None_15; } inline GUIStyle_t3956901511 ** get_address_of_s_None_15() { return &___s_None_15; } inline void set_s_None_15(GUIStyle_t3956901511 * value) { ___s_None_15 = value; Il2CppCodeGenWriteBarrier((&___s_None_15), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of UnityEngine.GUIStyle struct GUIStyle_t3956901511_marshaled_pinvoke { intptr_t ___m_Ptr_0; GUIStyleState_t1397964415_marshaled_pinvoke* ___m_Normal_1; GUIStyleState_t1397964415_marshaled_pinvoke* ___m_Hover_2; GUIStyleState_t1397964415_marshaled_pinvoke* ___m_Active_3; GUIStyleState_t1397964415_marshaled_pinvoke* ___m_Focused_4; GUIStyleState_t1397964415_marshaled_pinvoke* ___m_OnNormal_5; GUIStyleState_t1397964415_marshaled_pinvoke* ___m_OnHover_6; GUIStyleState_t1397964415_marshaled_pinvoke* ___m_OnActive_7; GUIStyleState_t1397964415_marshaled_pinvoke* ___m_OnFocused_8; RectOffset_t1369453676_marshaled_pinvoke ___m_Border_9; RectOffset_t1369453676_marshaled_pinvoke ___m_Padding_10; RectOffset_t1369453676_marshaled_pinvoke ___m_Margin_11; RectOffset_t1369453676_marshaled_pinvoke ___m_Overflow_12; Font_t1956802104 * ___m_FontInternal_13; }; // Native definition for COM marshalling of UnityEngine.GUIStyle struct GUIStyle_t3956901511_marshaled_com { intptr_t ___m_Ptr_0; GUIStyleState_t1397964415_marshaled_com* ___m_Normal_1; GUIStyleState_t1397964415_marshaled_com* ___m_Hover_2; GUIStyleState_t1397964415_marshaled_com* ___m_Active_3; GUIStyleState_t1397964415_marshaled_com* ___m_Focused_4; GUIStyleState_t1397964415_marshaled_com* ___m_OnNormal_5; GUIStyleState_t1397964415_marshaled_com* ___m_OnHover_6; GUIStyleState_t1397964415_marshaled_com* ___m_OnActive_7; GUIStyleState_t1397964415_marshaled_com* ___m_OnFocused_8; RectOffset_t1369453676_marshaled_com* ___m_Border_9; RectOffset_t1369453676_marshaled_com* ___m_Padding_10; RectOffset_t1369453676_marshaled_com* ___m_Margin_11; RectOffset_t1369453676_marshaled_com* ___m_Overflow_12; Font_t1956802104 * ___m_FontInternal_13; }; #endif // GUISTYLE_T3956901511_H #ifndef ANIMATIONEVENT_T1536042487_H #define ANIMATIONEVENT_T1536042487_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.AnimationEvent struct AnimationEvent_t1536042487 : public RuntimeObject { public: // System.Single UnityEngine.AnimationEvent::m_Time float ___m_Time_0; // System.String UnityEngine.AnimationEvent::m_FunctionName String_t* ___m_FunctionName_1; // System.String UnityEngine.AnimationEvent::m_StringParameter String_t* ___m_StringParameter_2; // UnityEngine.Object UnityEngine.AnimationEvent::m_ObjectReferenceParameter Object_t631007953 * ___m_ObjectReferenceParameter_3; // System.Single UnityEngine.AnimationEvent::m_FloatParameter float ___m_FloatParameter_4; // System.Int32 UnityEngine.AnimationEvent::m_IntParameter int32_t ___m_IntParameter_5; // System.Int32 UnityEngine.AnimationEvent::m_MessageOptions int32_t ___m_MessageOptions_6; // UnityEngine.AnimationEventSource UnityEngine.AnimationEvent::m_Source int32_t ___m_Source_7; // UnityEngine.AnimationState UnityEngine.AnimationEvent::m_StateSender AnimationState_t1108360407 * ___m_StateSender_8; // UnityEngine.AnimatorStateInfo UnityEngine.AnimationEvent::m_AnimatorStateInfo AnimatorStateInfo_t509032636 ___m_AnimatorStateInfo_9; // UnityEngine.AnimatorClipInfo UnityEngine.AnimationEvent::m_AnimatorClipInfo AnimatorClipInfo_t3156717155 ___m_AnimatorClipInfo_10; public: inline static int32_t get_offset_of_m_Time_0() { return static_cast<int32_t>(offsetof(AnimationEvent_t1536042487, ___m_Time_0)); } inline float get_m_Time_0() const { return ___m_Time_0; } inline float* get_address_of_m_Time_0() { return &___m_Time_0; } inline void set_m_Time_0(float value) { ___m_Time_0 = value; } inline static int32_t get_offset_of_m_FunctionName_1() { return static_cast<int32_t>(offsetof(AnimationEvent_t1536042487, ___m_FunctionName_1)); } inline String_t* get_m_FunctionName_1() const { return ___m_FunctionName_1; } inline String_t** get_address_of_m_FunctionName_1() { return &___m_FunctionName_1; } inline void set_m_FunctionName_1(String_t* value) { ___m_FunctionName_1 = value; Il2CppCodeGenWriteBarrier((&___m_FunctionName_1), value); } inline static int32_t get_offset_of_m_StringParameter_2() { return static_cast<int32_t>(offsetof(AnimationEvent_t1536042487, ___m_StringParameter_2)); } inline String_t* get_m_StringParameter_2() const { return ___m_StringParameter_2; } inline String_t** get_address_of_m_StringParameter_2() { return &___m_StringParameter_2; } inline void set_m_StringParameter_2(String_t* value) { ___m_StringParameter_2 = value; Il2CppCodeGenWriteBarrier((&___m_StringParameter_2), value); } inline static int32_t get_offset_of_m_ObjectReferenceParameter_3() { return static_cast<int32_t>(offsetof(AnimationEvent_t1536042487, ___m_ObjectReferenceParameter_3)); } inline Object_t631007953 * get_m_ObjectReferenceParameter_3() const { return ___m_ObjectReferenceParameter_3; } inline Object_t631007953 ** get_address_of_m_ObjectReferenceParameter_3() { return &___m_ObjectReferenceParameter_3; } inline void set_m_ObjectReferenceParameter_3(Object_t631007953 * value) { ___m_ObjectReferenceParameter_3 = value; Il2CppCodeGenWriteBarrier((&___m_ObjectReferenceParameter_3), value); } inline static int32_t get_offset_of_m_FloatParameter_4() { return static_cast<int32_t>(offsetof(AnimationEvent_t1536042487, ___m_FloatParameter_4)); } inline float get_m_FloatParameter_4() const { return ___m_FloatParameter_4; } inline float* get_address_of_m_FloatParameter_4() { return &___m_FloatParameter_4; } inline void set_m_FloatParameter_4(float value) { ___m_FloatParameter_4 = value; } inline static int32_t get_offset_of_m_IntParameter_5() { return static_cast<int32_t>(offsetof(AnimationEvent_t1536042487, ___m_IntParameter_5)); } inline int32_t get_m_IntParameter_5() const { return ___m_IntParameter_5; } inline int32_t* get_address_of_m_IntParameter_5() { return &___m_IntParameter_5; } inline void set_m_IntParameter_5(int32_t value) { ___m_IntParameter_5 = value; } inline static int32_t get_offset_of_m_MessageOptions_6() { return static_cast<int32_t>(offsetof(AnimationEvent_t1536042487, ___m_MessageOptions_6)); } inline int32_t get_m_MessageOptions_6() const { return ___m_MessageOptions_6; } inline int32_t* get_address_of_m_MessageOptions_6() { return &___m_MessageOptions_6; } inline void set_m_MessageOptions_6(int32_t value) { ___m_MessageOptions_6 = value; } inline static int32_t get_offset_of_m_Source_7() { return static_cast<int32_t>(offsetof(AnimationEvent_t1536042487, ___m_Source_7)); } inline int32_t get_m_Source_7() const { return ___m_Source_7; } inline int32_t* get_address_of_m_Source_7() { return &___m_Source_7; } inline void set_m_Source_7(int32_t value) { ___m_Source_7 = value; } inline static int32_t get_offset_of_m_StateSender_8() { return static_cast<int32_t>(offsetof(AnimationEvent_t1536042487, ___m_StateSender_8)); } inline AnimationState_t1108360407 * get_m_StateSender_8() const { return ___m_StateSender_8; } inline AnimationState_t1108360407 ** get_address_of_m_StateSender_8() { return &___m_StateSender_8; } inline void set_m_StateSender_8(AnimationState_t1108360407 * value) { ___m_StateSender_8 = value; Il2CppCodeGenWriteBarrier((&___m_StateSender_8), value); } inline static int32_t get_offset_of_m_AnimatorStateInfo_9() { return static_cast<int32_t>(offsetof(AnimationEvent_t1536042487, ___m_AnimatorStateInfo_9)); } inline AnimatorStateInfo_t509032636 get_m_AnimatorStateInfo_9() const { return ___m_AnimatorStateInfo_9; } inline AnimatorStateInfo_t509032636 * get_address_of_m_AnimatorStateInfo_9() { return &___m_AnimatorStateInfo_9; } inline void set_m_AnimatorStateInfo_9(AnimatorStateInfo_t509032636 value) { ___m_AnimatorStateInfo_9 = value; } inline static int32_t get_offset_of_m_AnimatorClipInfo_10() { return static_cast<int32_t>(offsetof(AnimationEvent_t1536042487, ___m_AnimatorClipInfo_10)); } inline AnimatorClipInfo_t3156717155 get_m_AnimatorClipInfo_10() const { return ___m_AnimatorClipInfo_10; } inline AnimatorClipInfo_t3156717155 * get_address_of_m_AnimatorClipInfo_10() { return &___m_AnimatorClipInfo_10; } inline void set_m_AnimatorClipInfo_10(AnimatorClipInfo_t3156717155 value) { ___m_AnimatorClipInfo_10 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of UnityEngine.AnimationEvent struct AnimationEvent_t1536042487_marshaled_pinvoke { float ___m_Time_0; char* ___m_FunctionName_1; char* ___m_StringParameter_2; Object_t631007953_marshaled_pinvoke ___m_ObjectReferenceParameter_3; float ___m_FloatParameter_4; int32_t ___m_IntParameter_5; int32_t ___m_MessageOptions_6; int32_t ___m_Source_7; AnimationState_t1108360407 * ___m_StateSender_8; AnimatorStateInfo_t509032636 ___m_AnimatorStateInfo_9; AnimatorClipInfo_t3156717155 ___m_AnimatorClipInfo_10; }; // Native definition for COM marshalling of UnityEngine.AnimationEvent struct AnimationEvent_t1536042487_marshaled_com { float ___m_Time_0; Il2CppChar* ___m_FunctionName_1; Il2CppChar* ___m_StringParameter_2; Object_t631007953_marshaled_com* ___m_ObjectReferenceParameter_3; float ___m_FloatParameter_4; int32_t ___m_IntParameter_5; int32_t ___m_MessageOptions_6; int32_t ___m_Source_7; AnimationState_t1108360407 * ___m_StateSender_8; AnimatorStateInfo_t509032636 ___m_AnimatorStateInfo_9; AnimatorClipInfo_t3156717155 ___m_AnimatorClipInfo_10; }; #endif // ANIMATIONEVENT_T1536042487_H #ifndef ANIMATIONSTATE_T1108360407_H #define ANIMATIONSTATE_T1108360407_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.AnimationState struct AnimationState_t1108360407 : public TrackedReference_t1199777556 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // ANIMATIONSTATE_T1108360407_H #ifndef COMPONENT_T1923634451_H #define COMPONENT_T1923634451_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Component struct Component_t1923634451 : public Object_t631007953 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // COMPONENT_T1923634451_H #ifndef ANIMATORCONTROLLERPARAMETER_T1758260042_H #define ANIMATORCONTROLLERPARAMETER_T1758260042_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.AnimatorControllerParameter struct AnimatorControllerParameter_t1758260042 : public RuntimeObject { public: // System.String UnityEngine.AnimatorControllerParameter::m_Name String_t* ___m_Name_0; // UnityEngine.AnimatorControllerParameterType UnityEngine.AnimatorControllerParameter::m_Type int32_t ___m_Type_1; // System.Single UnityEngine.AnimatorControllerParameter::m_DefaultFloat float ___m_DefaultFloat_2; // System.Int32 UnityEngine.AnimatorControllerParameter::m_DefaultInt int32_t ___m_DefaultInt_3; // System.Boolean UnityEngine.AnimatorControllerParameter::m_DefaultBool bool ___m_DefaultBool_4; public: inline static int32_t get_offset_of_m_Name_0() { return static_cast<int32_t>(offsetof(AnimatorControllerParameter_t1758260042, ___m_Name_0)); } inline String_t* get_m_Name_0() const { return ___m_Name_0; } inline String_t** get_address_of_m_Name_0() { return &___m_Name_0; } inline void set_m_Name_0(String_t* value) { ___m_Name_0 = value; Il2CppCodeGenWriteBarrier((&___m_Name_0), value); } inline static int32_t get_offset_of_m_Type_1() { return static_cast<int32_t>(offsetof(AnimatorControllerParameter_t1758260042, ___m_Type_1)); } inline int32_t get_m_Type_1() const { return ___m_Type_1; } inline int32_t* get_address_of_m_Type_1() { return &___m_Type_1; } inline void set_m_Type_1(int32_t value) { ___m_Type_1 = value; } inline static int32_t get_offset_of_m_DefaultFloat_2() { return static_cast<int32_t>(offsetof(AnimatorControllerParameter_t1758260042, ___m_DefaultFloat_2)); } inline float get_m_DefaultFloat_2() const { return ___m_DefaultFloat_2; } inline float* get_address_of_m_DefaultFloat_2() { return &___m_DefaultFloat_2; } inline void set_m_DefaultFloat_2(float value) { ___m_DefaultFloat_2 = value; } inline static int32_t get_offset_of_m_DefaultInt_3() { return static_cast<int32_t>(offsetof(AnimatorControllerParameter_t1758260042, ___m_DefaultInt_3)); } inline int32_t get_m_DefaultInt_3() const { return ___m_DefaultInt_3; } inline int32_t* get_address_of_m_DefaultInt_3() { return &___m_DefaultInt_3; } inline void set_m_DefaultInt_3(int32_t value) { ___m_DefaultInt_3 = value; } inline static int32_t get_offset_of_m_DefaultBool_4() { return static_cast<int32_t>(offsetof(AnimatorControllerParameter_t1758260042, ___m_DefaultBool_4)); } inline bool get_m_DefaultBool_4() const { return ___m_DefaultBool_4; } inline bool* get_address_of_m_DefaultBool_4() { return &___m_DefaultBool_4; } inline void set_m_DefaultBool_4(bool value) { ___m_DefaultBool_4 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // ANIMATORCONTROLLERPARAMETER_T1758260042_H #ifndef GUILAYOUTOPTION_T811797299_H #define GUILAYOUTOPTION_T811797299_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.GUILayoutOption struct GUILayoutOption_t811797299 : public RuntimeObject { public: // UnityEngine.GUILayoutOption/Type UnityEngine.GUILayoutOption::type int32_t ___type_0; // System.Object UnityEngine.GUILayoutOption::value RuntimeObject * ___value_1; public: inline static int32_t get_offset_of_type_0() { return static_cast<int32_t>(offsetof(GUILayoutOption_t811797299, ___type_0)); } inline int32_t get_type_0() const { return ___type_0; } inline int32_t* get_address_of_type_0() { return &___type_0; } inline void set_type_0(int32_t value) { ___type_0 = value; } inline static int32_t get_offset_of_value_1() { return static_cast<int32_t>(offsetof(GUILayoutOption_t811797299, ___value_1)); } inline RuntimeObject * get_value_1() const { return ___value_1; } inline RuntimeObject ** get_address_of_value_1() { return &___value_1; } inline void set_value_1(RuntimeObject * value) { ___value_1 = value; Il2CppCodeGenWriteBarrier((&___value_1), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // GUILAYOUTOPTION_T811797299_H #ifndef HUMANBONE_T2465339518_H #define HUMANBONE_T2465339518_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.HumanBone struct HumanBone_t2465339518 { public: // System.String UnityEngine.HumanBone::m_BoneName String_t* ___m_BoneName_0; // System.String UnityEngine.HumanBone::m_HumanName String_t* ___m_HumanName_1; // UnityEngine.HumanLimit UnityEngine.HumanBone::limit HumanLimit_t2901552972 ___limit_2; public: inline static int32_t get_offset_of_m_BoneName_0() { return static_cast<int32_t>(offsetof(HumanBone_t2465339518, ___m_BoneName_0)); } inline String_t* get_m_BoneName_0() const { return ___m_BoneName_0; } inline String_t** get_address_of_m_BoneName_0() { return &___m_BoneName_0; } inline void set_m_BoneName_0(String_t* value) { ___m_BoneName_0 = value; Il2CppCodeGenWriteBarrier((&___m_BoneName_0), value); } inline static int32_t get_offset_of_m_HumanName_1() { return static_cast<int32_t>(offsetof(HumanBone_t2465339518, ___m_HumanName_1)); } inline String_t* get_m_HumanName_1() const { return ___m_HumanName_1; } inline String_t** get_address_of_m_HumanName_1() { return &___m_HumanName_1; } inline void set_m_HumanName_1(String_t* value) { ___m_HumanName_1 = value; Il2CppCodeGenWriteBarrier((&___m_HumanName_1), value); } inline static int32_t get_offset_of_limit_2() { return static_cast<int32_t>(offsetof(HumanBone_t2465339518, ___limit_2)); } inline HumanLimit_t2901552972 get_limit_2() const { return ___limit_2; } inline HumanLimit_t2901552972 * get_address_of_limit_2() { return &___limit_2; } inline void set_limit_2(HumanLimit_t2901552972 value) { ___limit_2 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // Native definition for P/Invoke marshalling of UnityEngine.HumanBone struct HumanBone_t2465339518_marshaled_pinvoke { char* ___m_BoneName_0; char* ___m_HumanName_1; HumanLimit_t2901552972 ___limit_2; }; // Native definition for COM marshalling of UnityEngine.HumanBone struct HumanBone_t2465339518_marshaled_com { Il2CppChar* ___m_BoneName_0; Il2CppChar* ___m_HumanName_1; HumanLimit_t2901552972 ___limit_2; }; #endif // HUMANBONE_T2465339518_H #ifndef GUILAYOUTGROUP_T2157789695_H #define GUILAYOUTGROUP_T2157789695_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.GUILayoutGroup struct GUILayoutGroup_t2157789695 : public GUILayoutEntry_t3214611570 { public: // System.Collections.Generic.List`1<UnityEngine.GUILayoutEntry> UnityEngine.GUILayoutGroup::entries List_1_t391719016 * ___entries_10; // System.Boolean UnityEngine.GUILayoutGroup::isVertical bool ___isVertical_11; // System.Boolean UnityEngine.GUILayoutGroup::resetCoords bool ___resetCoords_12; // System.Single UnityEngine.GUILayoutGroup::spacing float ___spacing_13; // System.Boolean UnityEngine.GUILayoutGroup::sameSize bool ___sameSize_14; // System.Boolean UnityEngine.GUILayoutGroup::isWindow bool ___isWindow_15; // System.Int32 UnityEngine.GUILayoutGroup::windowID int32_t ___windowID_16; // System.Int32 UnityEngine.GUILayoutGroup::m_Cursor int32_t ___m_Cursor_17; // System.Int32 UnityEngine.GUILayoutGroup::m_StretchableCountX int32_t ___m_StretchableCountX_18; // System.Int32 UnityEngine.GUILayoutGroup::m_StretchableCountY int32_t ___m_StretchableCountY_19; // System.Boolean UnityEngine.GUILayoutGroup::m_UserSpecifiedWidth bool ___m_UserSpecifiedWidth_20; // System.Boolean UnityEngine.GUILayoutGroup::m_UserSpecifiedHeight bool ___m_UserSpecifiedHeight_21; // System.Single UnityEngine.GUILayoutGroup::m_ChildMinWidth float ___m_ChildMinWidth_22; // System.Single UnityEngine.GUILayoutGroup::m_ChildMaxWidth float ___m_ChildMaxWidth_23; // System.Single UnityEngine.GUILayoutGroup::m_ChildMinHeight float ___m_ChildMinHeight_24; // System.Single UnityEngine.GUILayoutGroup::m_ChildMaxHeight float ___m_ChildMaxHeight_25; // UnityEngine.RectOffset UnityEngine.GUILayoutGroup::m_Margin RectOffset_t1369453676 * ___m_Margin_26; public: inline static int32_t get_offset_of_entries_10() { return static_cast<int32_t>(offsetof(GUILayoutGroup_t2157789695, ___entries_10)); } inline List_1_t391719016 * get_entries_10() const { return ___entries_10; } inline List_1_t391719016 ** get_address_of_entries_10() { return &___entries_10; } inline void set_entries_10(List_1_t391719016 * value) { ___entries_10 = value; Il2CppCodeGenWriteBarrier((&___entries_10), value); } inline static int32_t get_offset_of_isVertical_11() { return static_cast<int32_t>(offsetof(GUILayoutGroup_t2157789695, ___isVertical_11)); } inline bool get_isVertical_11() const { return ___isVertical_11; } inline bool* get_address_of_isVertical_11() { return &___isVertical_11; } inline void set_isVertical_11(bool value) { ___isVertical_11 = value; } inline static int32_t get_offset_of_resetCoords_12() { return static_cast<int32_t>(offsetof(GUILayoutGroup_t2157789695, ___resetCoords_12)); } inline bool get_resetCoords_12() const { return ___resetCoords_12; } inline bool* get_address_of_resetCoords_12() { return &___resetCoords_12; } inline void set_resetCoords_12(bool value) { ___resetCoords_12 = value; } inline static int32_t get_offset_of_spacing_13() { return static_cast<int32_t>(offsetof(GUILayoutGroup_t2157789695, ___spacing_13)); } inline float get_spacing_13() const { return ___spacing_13; } inline float* get_address_of_spacing_13() { return &___spacing_13; } inline void set_spacing_13(float value) { ___spacing_13 = value; } inline static int32_t get_offset_of_sameSize_14() { return static_cast<int32_t>(offsetof(GUILayoutGroup_t2157789695, ___sameSize_14)); } inline bool get_sameSize_14() const { return ___sameSize_14; } inline bool* get_address_of_sameSize_14() { return &___sameSize_14; } inline void set_sameSize_14(bool value) { ___sameSize_14 = value; } inline static int32_t get_offset_of_isWindow_15() { return static_cast<int32_t>(offsetof(GUILayoutGroup_t2157789695, ___isWindow_15)); } inline bool get_isWindow_15() const { return ___isWindow_15; } inline bool* get_address_of_isWindow_15() { return &___isWindow_15; } inline void set_isWindow_15(bool value) { ___isWindow_15 = value; } inline static int32_t get_offset_of_windowID_16() { return static_cast<int32_t>(offsetof(GUILayoutGroup_t2157789695, ___windowID_16)); } inline int32_t get_windowID_16() const { return ___windowID_16; } inline int32_t* get_address_of_windowID_16() { return &___windowID_16; } inline void set_windowID_16(int32_t value) { ___windowID_16 = value; } inline static int32_t get_offset_of_m_Cursor_17() { return static_cast<int32_t>(offsetof(GUILayoutGroup_t2157789695, ___m_Cursor_17)); } inline int32_t get_m_Cursor_17() const { return ___m_Cursor_17; } inline int32_t* get_address_of_m_Cursor_17() { return &___m_Cursor_17; } inline void set_m_Cursor_17(int32_t value) { ___m_Cursor_17 = value; } inline static int32_t get_offset_of_m_StretchableCountX_18() { return static_cast<int32_t>(offsetof(GUILayoutGroup_t2157789695, ___m_StretchableCountX_18)); } inline int32_t get_m_StretchableCountX_18() const { return ___m_StretchableCountX_18; } inline int32_t* get_address_of_m_StretchableCountX_18() { return &___m_StretchableCountX_18; } inline void set_m_StretchableCountX_18(int32_t value) { ___m_StretchableCountX_18 = value; } inline static int32_t get_offset_of_m_StretchableCountY_19() { return static_cast<int32_t>(offsetof(GUILayoutGroup_t2157789695, ___m_StretchableCountY_19)); } inline int32_t get_m_StretchableCountY_19() const { return ___m_StretchableCountY_19; } inline int32_t* get_address_of_m_StretchableCountY_19() { return &___m_StretchableCountY_19; } inline void set_m_StretchableCountY_19(int32_t value) { ___m_StretchableCountY_19 = value; } inline static int32_t get_offset_of_m_UserSpecifiedWidth_20() { return static_cast<int32_t>(offsetof(GUILayoutGroup_t2157789695, ___m_UserSpecifiedWidth_20)); } inline bool get_m_UserSpecifiedWidth_20() const { return ___m_UserSpecifiedWidth_20; } inline bool* get_address_of_m_UserSpecifiedWidth_20() { return &___m_UserSpecifiedWidth_20; } inline void set_m_UserSpecifiedWidth_20(bool value) { ___m_UserSpecifiedWidth_20 = value; } inline static int32_t get_offset_of_m_UserSpecifiedHeight_21() { return static_cast<int32_t>(offsetof(GUILayoutGroup_t2157789695, ___m_UserSpecifiedHeight_21)); } inline bool get_m_UserSpecifiedHeight_21() const { return ___m_UserSpecifiedHeight_21; } inline bool* get_address_of_m_UserSpecifiedHeight_21() { return &___m_UserSpecifiedHeight_21; } inline void set_m_UserSpecifiedHeight_21(bool value) { ___m_UserSpecifiedHeight_21 = value; } inline static int32_t get_offset_of_m_ChildMinWidth_22() { return static_cast<int32_t>(offsetof(GUILayoutGroup_t2157789695, ___m_ChildMinWidth_22)); } inline float get_m_ChildMinWidth_22() const { return ___m_ChildMinWidth_22; } inline float* get_address_of_m_ChildMinWidth_22() { return &___m_ChildMinWidth_22; } inline void set_m_ChildMinWidth_22(float value) { ___m_ChildMinWidth_22 = value; } inline static int32_t get_offset_of_m_ChildMaxWidth_23() { return static_cast<int32_t>(offsetof(GUILayoutGroup_t2157789695, ___m_ChildMaxWidth_23)); } inline float get_m_ChildMaxWidth_23() const { return ___m_ChildMaxWidth_23; } inline float* get_address_of_m_ChildMaxWidth_23() { return &___m_ChildMaxWidth_23; } inline void set_m_ChildMaxWidth_23(float value) { ___m_ChildMaxWidth_23 = value; } inline static int32_t get_offset_of_m_ChildMinHeight_24() { return static_cast<int32_t>(offsetof(GUILayoutGroup_t2157789695, ___m_ChildMinHeight_24)); } inline float get_m_ChildMinHeight_24() const { return ___m_ChildMinHeight_24; } inline float* get_address_of_m_ChildMinHeight_24() { return &___m_ChildMinHeight_24; } inline void set_m_ChildMinHeight_24(float value) { ___m_ChildMinHeight_24 = value; } inline static int32_t get_offset_of_m_ChildMaxHeight_25() { return static_cast<int32_t>(offsetof(GUILayoutGroup_t2157789695, ___m_ChildMaxHeight_25)); } inline float get_m_ChildMaxHeight_25() const { return ___m_ChildMaxHeight_25; } inline float* get_address_of_m_ChildMaxHeight_25() { return &___m_ChildMaxHeight_25; } inline void set_m_ChildMaxHeight_25(float value) { ___m_ChildMaxHeight_25 = value; } inline static int32_t get_offset_of_m_Margin_26() { return static_cast<int32_t>(offsetof(GUILayoutGroup_t2157789695, ___m_Margin_26)); } inline RectOffset_t1369453676 * get_m_Margin_26() const { return ___m_Margin_26; } inline RectOffset_t1369453676 ** get_address_of_m_Margin_26() { return &___m_Margin_26; } inline void set_m_Margin_26(RectOffset_t1369453676 * value) { ___m_Margin_26 = value; Il2CppCodeGenWriteBarrier((&___m_Margin_26), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // GUILAYOUTGROUP_T2157789695_H #ifndef ANIMATIONMOTIONXTODELTAPLAYABLE_T272231551_H #define ANIMATIONMOTIONXTODELTAPLAYABLE_T272231551_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Animations.AnimationMotionXToDeltaPlayable struct AnimationMotionXToDeltaPlayable_t272231551 { public: // UnityEngine.Playables.PlayableHandle UnityEngine.Animations.AnimationMotionXToDeltaPlayable::m_Handle PlayableHandle_t1095853803 ___m_Handle_0; public: inline static int32_t get_offset_of_m_Handle_0() { return static_cast<int32_t>(offsetof(AnimationMotionXToDeltaPlayable_t272231551, ___m_Handle_0)); } inline PlayableHandle_t1095853803 get_m_Handle_0() const { return ___m_Handle_0; } inline PlayableHandle_t1095853803 * get_address_of_m_Handle_0() { return &___m_Handle_0; } inline void set_m_Handle_0(PlayableHandle_t1095853803 value) { ___m_Handle_0 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // ANIMATIONMOTIONXTODELTAPLAYABLE_T272231551_H #ifndef ANIMATORCONTROLLERPLAYABLE_T1015767841_H #define ANIMATORCONTROLLERPLAYABLE_T1015767841_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Animations.AnimatorControllerPlayable struct AnimatorControllerPlayable_t1015767841 { public: // UnityEngine.Playables.PlayableHandle UnityEngine.Animations.AnimatorControllerPlayable::m_Handle PlayableHandle_t1095853803 ___m_Handle_0; public: inline static int32_t get_offset_of_m_Handle_0() { return static_cast<int32_t>(offsetof(AnimatorControllerPlayable_t1015767841, ___m_Handle_0)); } inline PlayableHandle_t1095853803 get_m_Handle_0() const { return ___m_Handle_0; } inline PlayableHandle_t1095853803 * get_address_of_m_Handle_0() { return &___m_Handle_0; } inline void set_m_Handle_0(PlayableHandle_t1095853803 value) { ___m_Handle_0 = value; } }; struct AnimatorControllerPlayable_t1015767841_StaticFields { public: // UnityEngine.Animations.AnimatorControllerPlayable UnityEngine.Animations.AnimatorControllerPlayable::m_NullPlayable AnimatorControllerPlayable_t1015767841 ___m_NullPlayable_1; public: inline static int32_t get_offset_of_m_NullPlayable_1() { return static_cast<int32_t>(offsetof(AnimatorControllerPlayable_t1015767841_StaticFields, ___m_NullPlayable_1)); } inline AnimatorControllerPlayable_t1015767841 get_m_NullPlayable_1() const { return ___m_NullPlayable_1; } inline AnimatorControllerPlayable_t1015767841 * get_address_of_m_NullPlayable_1() { return &___m_NullPlayable_1; } inline void set_m_NullPlayable_1(AnimatorControllerPlayable_t1015767841 value) { ___m_NullPlayable_1 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // ANIMATORCONTROLLERPLAYABLE_T1015767841_H #ifndef GUISCROLLGROUP_T1523329021_H #define GUISCROLLGROUP_T1523329021_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.GUIScrollGroup struct GUIScrollGroup_t1523329021 : public GUILayoutGroup_t2157789695 { public: // System.Single UnityEngine.GUIScrollGroup::calcMinWidth float ___calcMinWidth_27; // System.Single UnityEngine.GUIScrollGroup::calcMaxWidth float ___calcMaxWidth_28; // System.Single UnityEngine.GUIScrollGroup::calcMinHeight float ___calcMinHeight_29; // System.Single UnityEngine.GUIScrollGroup::calcMaxHeight float ___calcMaxHeight_30; // System.Single UnityEngine.GUIScrollGroup::clientWidth float ___clientWidth_31; // System.Single UnityEngine.GUIScrollGroup::clientHeight float ___clientHeight_32; // System.Boolean UnityEngine.GUIScrollGroup::allowHorizontalScroll bool ___allowHorizontalScroll_33; // System.Boolean UnityEngine.GUIScrollGroup::allowVerticalScroll bool ___allowVerticalScroll_34; // System.Boolean UnityEngine.GUIScrollGroup::needsHorizontalScrollbar bool ___needsHorizontalScrollbar_35; // System.Boolean UnityEngine.GUIScrollGroup::needsVerticalScrollbar bool ___needsVerticalScrollbar_36; // UnityEngine.GUIStyle UnityEngine.GUIScrollGroup::horizontalScrollbar GUIStyle_t3956901511 * ___horizontalScrollbar_37; // UnityEngine.GUIStyle UnityEngine.GUIScrollGroup::verticalScrollbar GUIStyle_t3956901511 * ___verticalScrollbar_38; public: inline static int32_t get_offset_of_calcMinWidth_27() { return static_cast<int32_t>(offsetof(GUIScrollGroup_t1523329021, ___calcMinWidth_27)); } inline float get_calcMinWidth_27() const { return ___calcMinWidth_27; } inline float* get_address_of_calcMinWidth_27() { return &___calcMinWidth_27; } inline void set_calcMinWidth_27(float value) { ___calcMinWidth_27 = value; } inline static int32_t get_offset_of_calcMaxWidth_28() { return static_cast<int32_t>(offsetof(GUIScrollGroup_t1523329021, ___calcMaxWidth_28)); } inline float get_calcMaxWidth_28() const { return ___calcMaxWidth_28; } inline float* get_address_of_calcMaxWidth_28() { return &___calcMaxWidth_28; } inline void set_calcMaxWidth_28(float value) { ___calcMaxWidth_28 = value; } inline static int32_t get_offset_of_calcMinHeight_29() { return static_cast<int32_t>(offsetof(GUIScrollGroup_t1523329021, ___calcMinHeight_29)); } inline float get_calcMinHeight_29() const { return ___calcMinHeight_29; } inline float* get_address_of_calcMinHeight_29() { return &___calcMinHeight_29; } inline void set_calcMinHeight_29(float value) { ___calcMinHeight_29 = value; } inline static int32_t get_offset_of_calcMaxHeight_30() { return static_cast<int32_t>(offsetof(GUIScrollGroup_t1523329021, ___calcMaxHeight_30)); } inline float get_calcMaxHeight_30() const { return ___calcMaxHeight_30; } inline float* get_address_of_calcMaxHeight_30() { return &___calcMaxHeight_30; } inline void set_calcMaxHeight_30(float value) { ___calcMaxHeight_30 = value; } inline static int32_t get_offset_of_clientWidth_31() { return static_cast<int32_t>(offsetof(GUIScrollGroup_t1523329021, ___clientWidth_31)); } inline float get_clientWidth_31() const { return ___clientWidth_31; } inline float* get_address_of_clientWidth_31() { return &___clientWidth_31; } inline void set_clientWidth_31(float value) { ___clientWidth_31 = value; } inline static int32_t get_offset_of_clientHeight_32() { return static_cast<int32_t>(offsetof(GUIScrollGroup_t1523329021, ___clientHeight_32)); } inline float get_clientHeight_32() const { return ___clientHeight_32; } inline float* get_address_of_clientHeight_32() { return &___clientHeight_32; } inline void set_clientHeight_32(float value) { ___clientHeight_32 = value; } inline static int32_t get_offset_of_allowHorizontalScroll_33() { return static_cast<int32_t>(offsetof(GUIScrollGroup_t1523329021, ___allowHorizontalScroll_33)); } inline bool get_allowHorizontalScroll_33() const { return ___allowHorizontalScroll_33; } inline bool* get_address_of_allowHorizontalScroll_33() { return &___allowHorizontalScroll_33; } inline void set_allowHorizontalScroll_33(bool value) { ___allowHorizontalScroll_33 = value; } inline static int32_t get_offset_of_allowVerticalScroll_34() { return static_cast<int32_t>(offsetof(GUIScrollGroup_t1523329021, ___allowVerticalScroll_34)); } inline bool get_allowVerticalScroll_34() const { return ___allowVerticalScroll_34; } inline bool* get_address_of_allowVerticalScroll_34() { return &___allowVerticalScroll_34; } inline void set_allowVerticalScroll_34(bool value) { ___allowVerticalScroll_34 = value; } inline static int32_t get_offset_of_needsHorizontalScrollbar_35() { return static_cast<int32_t>(offsetof(GUIScrollGroup_t1523329021, ___needsHorizontalScrollbar_35)); } inline bool get_needsHorizontalScrollbar_35() const { return ___needsHorizontalScrollbar_35; } inline bool* get_address_of_needsHorizontalScrollbar_35() { return &___needsHorizontalScrollbar_35; } inline void set_needsHorizontalScrollbar_35(bool value) { ___needsHorizontalScrollbar_35 = value; } inline static int32_t get_offset_of_needsVerticalScrollbar_36() { return static_cast<int32_t>(offsetof(GUIScrollGroup_t1523329021, ___needsVerticalScrollbar_36)); } inline bool get_needsVerticalScrollbar_36() const { return ___needsVerticalScrollbar_36; } inline bool* get_address_of_needsVerticalScrollbar_36() { return &___needsVerticalScrollbar_36; } inline void set_needsVerticalScrollbar_36(bool value) { ___needsVerticalScrollbar_36 = value; } inline static int32_t get_offset_of_horizontalScrollbar_37() { return static_cast<int32_t>(offsetof(GUIScrollGroup_t1523329021, ___horizontalScrollbar_37)); } inline GUIStyle_t3956901511 * get_horizontalScrollbar_37() const { return ___horizontalScrollbar_37; } inline GUIStyle_t3956901511 ** get_address_of_horizontalScrollbar_37() { return &___horizontalScrollbar_37; } inline void set_horizontalScrollbar_37(GUIStyle_t3956901511 * value) { ___horizontalScrollbar_37 = value; Il2CppCodeGenWriteBarrier((&___horizontalScrollbar_37), value); } inline static int32_t get_offset_of_verticalScrollbar_38() { return static_cast<int32_t>(offsetof(GUIScrollGroup_t1523329021, ___verticalScrollbar_38)); } inline GUIStyle_t3956901511 * get_verticalScrollbar_38() const { return ___verticalScrollbar_38; } inline GUIStyle_t3956901511 ** get_address_of_verticalScrollbar_38() { return &___verticalScrollbar_38; } inline void set_verticalScrollbar_38(GUIStyle_t3956901511 * value) { ___verticalScrollbar_38 = value; Il2CppCodeGenWriteBarrier((&___verticalScrollbar_38), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // GUISCROLLGROUP_T1523329021_H #ifndef SKINCHANGEDDELEGATE_T1143955295_H #define SKINCHANGEDDELEGATE_T1143955295_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.GUISkin/SkinChangedDelegate struct SkinChangedDelegate_t1143955295 : public MulticastDelegate_t { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // SKINCHANGEDDELEGATE_T1143955295_H #ifndef STATEMACHINEBEHAVIOUR_T957311111_H #define STATEMACHINEBEHAVIOUR_T957311111_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.StateMachineBehaviour struct StateMachineBehaviour_t957311111 : public ScriptableObject_t2528358522 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // STATEMACHINEBEHAVIOUR_T957311111_H #ifndef GUISKIN_T1244372282_H #define GUISKIN_T1244372282_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.GUISkin struct GUISkin_t1244372282 : public ScriptableObject_t2528358522 { public: // UnityEngine.Font UnityEngine.GUISkin::m_Font Font_t1956802104 * ___m_Font_2; // UnityEngine.GUIStyle UnityEngine.GUISkin::m_box GUIStyle_t3956901511 * ___m_box_3; // UnityEngine.GUIStyle UnityEngine.GUISkin::m_button GUIStyle_t3956901511 * ___m_button_4; // UnityEngine.GUIStyle UnityEngine.GUISkin::m_toggle GUIStyle_t3956901511 * ___m_toggle_5; // UnityEngine.GUIStyle UnityEngine.GUISkin::m_label GUIStyle_t3956901511 * ___m_label_6; // UnityEngine.GUIStyle UnityEngine.GUISkin::m_textField GUIStyle_t3956901511 * ___m_textField_7; // UnityEngine.GUIStyle UnityEngine.GUISkin::m_textArea GUIStyle_t3956901511 * ___m_textArea_8; // UnityEngine.GUIStyle UnityEngine.GUISkin::m_window GUIStyle_t3956901511 * ___m_window_9; // UnityEngine.GUIStyle UnityEngine.GUISkin::m_horizontalSlider GUIStyle_t3956901511 * ___m_horizontalSlider_10; // UnityEngine.GUIStyle UnityEngine.GUISkin::m_horizontalSliderThumb GUIStyle_t3956901511 * ___m_horizontalSliderThumb_11; // UnityEngine.GUIStyle UnityEngine.GUISkin::m_verticalSlider GUIStyle_t3956901511 * ___m_verticalSlider_12; // UnityEngine.GUIStyle UnityEngine.GUISkin::m_verticalSliderThumb GUIStyle_t3956901511 * ___m_verticalSliderThumb_13; // UnityEngine.GUIStyle UnityEngine.GUISkin::m_horizontalScrollbar GUIStyle_t3956901511 * ___m_horizontalScrollbar_14; // UnityEngine.GUIStyle UnityEngine.GUISkin::m_horizontalScrollbarThumb GUIStyle_t3956901511 * ___m_horizontalScrollbarThumb_15; // UnityEngine.GUIStyle UnityEngine.GUISkin::m_horizontalScrollbarLeftButton GUIStyle_t3956901511 * ___m_horizontalScrollbarLeftButton_16; // UnityEngine.GUIStyle UnityEngine.GUISkin::m_horizontalScrollbarRightButton GUIStyle_t3956901511 * ___m_horizontalScrollbarRightButton_17; // UnityEngine.GUIStyle UnityEngine.GUISkin::m_verticalScrollbar GUIStyle_t3956901511 * ___m_verticalScrollbar_18; // UnityEngine.GUIStyle UnityEngine.GUISkin::m_verticalScrollbarThumb GUIStyle_t3956901511 * ___m_verticalScrollbarThumb_19; // UnityEngine.GUIStyle UnityEngine.GUISkin::m_verticalScrollbarUpButton GUIStyle_t3956901511 * ___m_verticalScrollbarUpButton_20; // UnityEngine.GUIStyle UnityEngine.GUISkin::m_verticalScrollbarDownButton GUIStyle_t3956901511 * ___m_verticalScrollbarDownButton_21; // UnityEngine.GUIStyle UnityEngine.GUISkin::m_ScrollView GUIStyle_t3956901511 * ___m_ScrollView_22; // UnityEngine.GUIStyle[] UnityEngine.GUISkin::m_CustomStyles GUIStyleU5BU5D_t2383250302* ___m_CustomStyles_23; // UnityEngine.GUISettings UnityEngine.GUISkin::m_Settings GUISettings_t1774757634 * ___m_Settings_24; // System.Collections.Generic.Dictionary`2<System.String,UnityEngine.GUIStyle> UnityEngine.GUISkin::m_Styles Dictionary_2_t3742157810 * ___m_Styles_25; public: inline static int32_t get_offset_of_m_Font_2() { return static_cast<int32_t>(offsetof(GUISkin_t1244372282, ___m_Font_2)); } inline Font_t1956802104 * get_m_Font_2() const { return ___m_Font_2; } inline Font_t1956802104 ** get_address_of_m_Font_2() { return &___m_Font_2; } inline void set_m_Font_2(Font_t1956802104 * value) { ___m_Font_2 = value; Il2CppCodeGenWriteBarrier((&___m_Font_2), value); } inline static int32_t get_offset_of_m_box_3() { return static_cast<int32_t>(offsetof(GUISkin_t1244372282, ___m_box_3)); } inline GUIStyle_t3956901511 * get_m_box_3() const { return ___m_box_3; } inline GUIStyle_t3956901511 ** get_address_of_m_box_3() { return &___m_box_3; } inline void set_m_box_3(GUIStyle_t3956901511 * value) { ___m_box_3 = value; Il2CppCodeGenWriteBarrier((&___m_box_3), value); } inline static int32_t get_offset_of_m_button_4() { return static_cast<int32_t>(offsetof(GUISkin_t1244372282, ___m_button_4)); } inline GUIStyle_t3956901511 * get_m_button_4() const { return ___m_button_4; } inline GUIStyle_t3956901511 ** get_address_of_m_button_4() { return &___m_button_4; } inline void set_m_button_4(GUIStyle_t3956901511 * value) { ___m_button_4 = value; Il2CppCodeGenWriteBarrier((&___m_button_4), value); } inline static int32_t get_offset_of_m_toggle_5() { return static_cast<int32_t>(offsetof(GUISkin_t1244372282, ___m_toggle_5)); } inline GUIStyle_t3956901511 * get_m_toggle_5() const { return ___m_toggle_5; } inline GUIStyle_t3956901511 ** get_address_of_m_toggle_5() { return &___m_toggle_5; } inline void set_m_toggle_5(GUIStyle_t3956901511 * value) { ___m_toggle_5 = value; Il2CppCodeGenWriteBarrier((&___m_toggle_5), value); } inline static int32_t get_offset_of_m_label_6() { return static_cast<int32_t>(offsetof(GUISkin_t1244372282, ___m_label_6)); } inline GUIStyle_t3956901511 * get_m_label_6() const { return ___m_label_6; } inline GUIStyle_t3956901511 ** get_address_of_m_label_6() { return &___m_label_6; } inline void set_m_label_6(GUIStyle_t3956901511 * value) { ___m_label_6 = value; Il2CppCodeGenWriteBarrier((&___m_label_6), value); } inline static int32_t get_offset_of_m_textField_7() { return static_cast<int32_t>(offsetof(GUISkin_t1244372282, ___m_textField_7)); } inline GUIStyle_t3956901511 * get_m_textField_7() const { return ___m_textField_7; } inline GUIStyle_t3956901511 ** get_address_of_m_textField_7() { return &___m_textField_7; } inline void set_m_textField_7(GUIStyle_t3956901511 * value) { ___m_textField_7 = value; Il2CppCodeGenWriteBarrier((&___m_textField_7), value); } inline static int32_t get_offset_of_m_textArea_8() { return static_cast<int32_t>(offsetof(GUISkin_t1244372282, ___m_textArea_8)); } inline GUIStyle_t3956901511 * get_m_textArea_8() const { return ___m_textArea_8; } inline GUIStyle_t3956901511 ** get_address_of_m_textArea_8() { return &___m_textArea_8; } inline void set_m_textArea_8(GUIStyle_t3956901511 * value) { ___m_textArea_8 = value; Il2CppCodeGenWriteBarrier((&___m_textArea_8), value); } inline static int32_t get_offset_of_m_window_9() { return static_cast<int32_t>(offsetof(GUISkin_t1244372282, ___m_window_9)); } inline GUIStyle_t3956901511 * get_m_window_9() const { return ___m_window_9; } inline GUIStyle_t3956901511 ** get_address_of_m_window_9() { return &___m_window_9; } inline void set_m_window_9(GUIStyle_t3956901511 * value) { ___m_window_9 = value; Il2CppCodeGenWriteBarrier((&___m_window_9), value); } inline static int32_t get_offset_of_m_horizontalSlider_10() { return static_cast<int32_t>(offsetof(GUISkin_t1244372282, ___m_horizontalSlider_10)); } inline GUIStyle_t3956901511 * get_m_horizontalSlider_10() const { return ___m_horizontalSlider_10; } inline GUIStyle_t3956901511 ** get_address_of_m_horizontalSlider_10() { return &___m_horizontalSlider_10; } inline void set_m_horizontalSlider_10(GUIStyle_t3956901511 * value) { ___m_horizontalSlider_10 = value; Il2CppCodeGenWriteBarrier((&___m_horizontalSlider_10), value); } inline static int32_t get_offset_of_m_horizontalSliderThumb_11() { return static_cast<int32_t>(offsetof(GUISkin_t1244372282, ___m_horizontalSliderThumb_11)); } inline GUIStyle_t3956901511 * get_m_horizontalSliderThumb_11() const { return ___m_horizontalSliderThumb_11; } inline GUIStyle_t3956901511 ** get_address_of_m_horizontalSliderThumb_11() { return &___m_horizontalSliderThumb_11; } inline void set_m_horizontalSliderThumb_11(GUIStyle_t3956901511 * value) { ___m_horizontalSliderThumb_11 = value; Il2CppCodeGenWriteBarrier((&___m_horizontalSliderThumb_11), value); } inline static int32_t get_offset_of_m_verticalSlider_12() { return static_cast<int32_t>(offsetof(GUISkin_t1244372282, ___m_verticalSlider_12)); } inline GUIStyle_t3956901511 * get_m_verticalSlider_12() const { return ___m_verticalSlider_12; } inline GUIStyle_t3956901511 ** get_address_of_m_verticalSlider_12() { return &___m_verticalSlider_12; } inline void set_m_verticalSlider_12(GUIStyle_t3956901511 * value) { ___m_verticalSlider_12 = value; Il2CppCodeGenWriteBarrier((&___m_verticalSlider_12), value); } inline static int32_t get_offset_of_m_verticalSliderThumb_13() { return static_cast<int32_t>(offsetof(GUISkin_t1244372282, ___m_verticalSliderThumb_13)); } inline GUIStyle_t3956901511 * get_m_verticalSliderThumb_13() const { return ___m_verticalSliderThumb_13; } inline GUIStyle_t3956901511 ** get_address_of_m_verticalSliderThumb_13() { return &___m_verticalSliderThumb_13; } inline void set_m_verticalSliderThumb_13(GUIStyle_t3956901511 * value) { ___m_verticalSliderThumb_13 = value; Il2CppCodeGenWriteBarrier((&___m_verticalSliderThumb_13), value); } inline static int32_t get_offset_of_m_horizontalScrollbar_14() { return static_cast<int32_t>(offsetof(GUISkin_t1244372282, ___m_horizontalScrollbar_14)); } inline GUIStyle_t3956901511 * get_m_horizontalScrollbar_14() const { return ___m_horizontalScrollbar_14; } inline GUIStyle_t3956901511 ** get_address_of_m_horizontalScrollbar_14() { return &___m_horizontalScrollbar_14; } inline void set_m_horizontalScrollbar_14(GUIStyle_t3956901511 * value) { ___m_horizontalScrollbar_14 = value; Il2CppCodeGenWriteBarrier((&___m_horizontalScrollbar_14), value); } inline static int32_t get_offset_of_m_horizontalScrollbarThumb_15() { return static_cast<int32_t>(offsetof(GUISkin_t1244372282, ___m_horizontalScrollbarThumb_15)); } inline GUIStyle_t3956901511 * get_m_horizontalScrollbarThumb_15() const { return ___m_horizontalScrollbarThumb_15; } inline GUIStyle_t3956901511 ** get_address_of_m_horizontalScrollbarThumb_15() { return &___m_horizontalScrollbarThumb_15; } inline void set_m_horizontalScrollbarThumb_15(GUIStyle_t3956901511 * value) { ___m_horizontalScrollbarThumb_15 = value; Il2CppCodeGenWriteBarrier((&___m_horizontalScrollbarThumb_15), value); } inline static int32_t get_offset_of_m_horizontalScrollbarLeftButton_16() { return static_cast<int32_t>(offsetof(GUISkin_t1244372282, ___m_horizontalScrollbarLeftButton_16)); } inline GUIStyle_t3956901511 * get_m_horizontalScrollbarLeftButton_16() const { return ___m_horizontalScrollbarLeftButton_16; } inline GUIStyle_t3956901511 ** get_address_of_m_horizontalScrollbarLeftButton_16() { return &___m_horizontalScrollbarLeftButton_16; } inline void set_m_horizontalScrollbarLeftButton_16(GUIStyle_t3956901511 * value) { ___m_horizontalScrollbarLeftButton_16 = value; Il2CppCodeGenWriteBarrier((&___m_horizontalScrollbarLeftButton_16), value); } inline static int32_t get_offset_of_m_horizontalScrollbarRightButton_17() { return static_cast<int32_t>(offsetof(GUISkin_t1244372282, ___m_horizontalScrollbarRightButton_17)); } inline GUIStyle_t3956901511 * get_m_horizontalScrollbarRightButton_17() const { return ___m_horizontalScrollbarRightButton_17; } inline GUIStyle_t3956901511 ** get_address_of_m_horizontalScrollbarRightButton_17() { return &___m_horizontalScrollbarRightButton_17; } inline void set_m_horizontalScrollbarRightButton_17(GUIStyle_t3956901511 * value) { ___m_horizontalScrollbarRightButton_17 = value; Il2CppCodeGenWriteBarrier((&___m_horizontalScrollbarRightButton_17), value); } inline static int32_t get_offset_of_m_verticalScrollbar_18() { return static_cast<int32_t>(offsetof(GUISkin_t1244372282, ___m_verticalScrollbar_18)); } inline GUIStyle_t3956901511 * get_m_verticalScrollbar_18() const { return ___m_verticalScrollbar_18; } inline GUIStyle_t3956901511 ** get_address_of_m_verticalScrollbar_18() { return &___m_verticalScrollbar_18; } inline void set_m_verticalScrollbar_18(GUIStyle_t3956901511 * value) { ___m_verticalScrollbar_18 = value; Il2CppCodeGenWriteBarrier((&___m_verticalScrollbar_18), value); } inline static int32_t get_offset_of_m_verticalScrollbarThumb_19() { return static_cast<int32_t>(offsetof(GUISkin_t1244372282, ___m_verticalScrollbarThumb_19)); } inline GUIStyle_t3956901511 * get_m_verticalScrollbarThumb_19() const { return ___m_verticalScrollbarThumb_19; } inline GUIStyle_t3956901511 ** get_address_of_m_verticalScrollbarThumb_19() { return &___m_verticalScrollbarThumb_19; } inline void set_m_verticalScrollbarThumb_19(GUIStyle_t3956901511 * value) { ___m_verticalScrollbarThumb_19 = value; Il2CppCodeGenWriteBarrier((&___m_verticalScrollbarThumb_19), value); } inline static int32_t get_offset_of_m_verticalScrollbarUpButton_20() { return static_cast<int32_t>(offsetof(GUISkin_t1244372282, ___m_verticalScrollbarUpButton_20)); } inline GUIStyle_t3956901511 * get_m_verticalScrollbarUpButton_20() const { return ___m_verticalScrollbarUpButton_20; } inline GUIStyle_t3956901511 ** get_address_of_m_verticalScrollbarUpButton_20() { return &___m_verticalScrollbarUpButton_20; } inline void set_m_verticalScrollbarUpButton_20(GUIStyle_t3956901511 * value) { ___m_verticalScrollbarUpButton_20 = value; Il2CppCodeGenWriteBarrier((&___m_verticalScrollbarUpButton_20), value); } inline static int32_t get_offset_of_m_verticalScrollbarDownButton_21() { return static_cast<int32_t>(offsetof(GUISkin_t1244372282, ___m_verticalScrollbarDownButton_21)); } inline GUIStyle_t3956901511 * get_m_verticalScrollbarDownButton_21() const { return ___m_verticalScrollbarDownButton_21; } inline GUIStyle_t3956901511 ** get_address_of_m_verticalScrollbarDownButton_21() { return &___m_verticalScrollbarDownButton_21; } inline void set_m_verticalScrollbarDownButton_21(GUIStyle_t3956901511 * value) { ___m_verticalScrollbarDownButton_21 = value; Il2CppCodeGenWriteBarrier((&___m_verticalScrollbarDownButton_21), value); } inline static int32_t get_offset_of_m_ScrollView_22() { return static_cast<int32_t>(offsetof(GUISkin_t1244372282, ___m_ScrollView_22)); } inline GUIStyle_t3956901511 * get_m_ScrollView_22() const { return ___m_ScrollView_22; } inline GUIStyle_t3956901511 ** get_address_of_m_ScrollView_22() { return &___m_ScrollView_22; } inline void set_m_ScrollView_22(GUIStyle_t3956901511 * value) { ___m_ScrollView_22 = value; Il2CppCodeGenWriteBarrier((&___m_ScrollView_22), value); } inline static int32_t get_offset_of_m_CustomStyles_23() { return static_cast<int32_t>(offsetof(GUISkin_t1244372282, ___m_CustomStyles_23)); } inline GUIStyleU5BU5D_t2383250302* get_m_CustomStyles_23() const { return ___m_CustomStyles_23; } inline GUIStyleU5BU5D_t2383250302** get_address_of_m_CustomStyles_23() { return &___m_CustomStyles_23; } inline void set_m_CustomStyles_23(GUIStyleU5BU5D_t2383250302* value) { ___m_CustomStyles_23 = value; Il2CppCodeGenWriteBarrier((&___m_CustomStyles_23), value); } inline static int32_t get_offset_of_m_Settings_24() { return static_cast<int32_t>(offsetof(GUISkin_t1244372282, ___m_Settings_24)); } inline GUISettings_t1774757634 * get_m_Settings_24() const { return ___m_Settings_24; } inline GUISettings_t1774757634 ** get_address_of_m_Settings_24() { return &___m_Settings_24; } inline void set_m_Settings_24(GUISettings_t1774757634 * value) { ___m_Settings_24 = value; Il2CppCodeGenWriteBarrier((&___m_Settings_24), value); } inline static int32_t get_offset_of_m_Styles_25() { return static_cast<int32_t>(offsetof(GUISkin_t1244372282, ___m_Styles_25)); } inline Dictionary_2_t3742157810 * get_m_Styles_25() const { return ___m_Styles_25; } inline Dictionary_2_t3742157810 ** get_address_of_m_Styles_25() { return &___m_Styles_25; } inline void set_m_Styles_25(Dictionary_2_t3742157810 * value) { ___m_Styles_25 = value; Il2CppCodeGenWriteBarrier((&___m_Styles_25), value); } }; struct GUISkin_t1244372282_StaticFields { public: // UnityEngine.GUISkin/SkinChangedDelegate UnityEngine.GUISkin::m_SkinChanged SkinChangedDelegate_t1143955295 * ___m_SkinChanged_26; // UnityEngine.GUISkin UnityEngine.GUISkin::current GUISkin_t1244372282 * ___current_27; public: inline static int32_t get_offset_of_m_SkinChanged_26() { return static_cast<int32_t>(offsetof(GUISkin_t1244372282_StaticFields, ___m_SkinChanged_26)); } inline SkinChangedDelegate_t1143955295 * get_m_SkinChanged_26() const { return ___m_SkinChanged_26; } inline SkinChangedDelegate_t1143955295 ** get_address_of_m_SkinChanged_26() { return &___m_SkinChanged_26; } inline void set_m_SkinChanged_26(SkinChangedDelegate_t1143955295 * value) { ___m_SkinChanged_26 = value; Il2CppCodeGenWriteBarrier((&___m_SkinChanged_26), value); } inline static int32_t get_offset_of_current_27() { return static_cast<int32_t>(offsetof(GUISkin_t1244372282_StaticFields, ___current_27)); } inline GUISkin_t1244372282 * get_current_27() const { return ___current_27; } inline GUISkin_t1244372282 ** get_address_of_current_27() { return &___current_27; } inline void set_current_27(GUISkin_t1244372282 * value) { ___current_27 = value; Il2CppCodeGenWriteBarrier((&___current_27), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // GUISKIN_T1244372282_H #ifndef COLLIDER_T1773347010_H #define COLLIDER_T1773347010_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Collider struct Collider_t1773347010 : public Component_t1923634451 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // COLLIDER_T1773347010_H #ifndef RIGIDBODY_T3916780224_H #define RIGIDBODY_T3916780224_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Rigidbody struct Rigidbody_t3916780224 : public Component_t1923634451 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // RIGIDBODY_T3916780224_H #ifndef GUI_T1624858472_H #define GUI_T1624858472_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.GUI struct GUI_t1624858472 : public RuntimeObject { public: public: }; struct GUI_t1624858472_StaticFields { public: // System.Single UnityEngine.GUI::s_ScrollStepSize float ___s_ScrollStepSize_0; // System.Int32 UnityEngine.GUI::s_HotTextField int32_t ___s_HotTextField_1; // System.Int32 UnityEngine.GUI::s_BoxHash int32_t ___s_BoxHash_2; // System.Int32 UnityEngine.GUI::s_RepeatButtonHash int32_t ___s_RepeatButtonHash_3; // System.Int32 UnityEngine.GUI::s_ToggleHash int32_t ___s_ToggleHash_4; // System.Int32 UnityEngine.GUI::s_SliderHash int32_t ___s_SliderHash_5; // System.Int32 UnityEngine.GUI::s_BeginGroupHash int32_t ___s_BeginGroupHash_6; // System.Int32 UnityEngine.GUI::s_ScrollviewHash int32_t ___s_ScrollviewHash_7; // System.DateTime UnityEngine.GUI::<nextScrollStepTime>k__BackingField DateTime_t3738529785 ___U3CnextScrollStepTimeU3Ek__BackingField_8; // UnityEngine.GUISkin UnityEngine.GUI::s_Skin GUISkin_t1244372282 * ___s_Skin_9; // UnityEngineInternal.GenericStack UnityEngine.GUI::s_ScrollViewStates GenericStack_t1310059385 * ___s_ScrollViewStates_10; public: inline static int32_t get_offset_of_s_ScrollStepSize_0() { return static_cast<int32_t>(offsetof(GUI_t1624858472_StaticFields, ___s_ScrollStepSize_0)); } inline float get_s_ScrollStepSize_0() const { return ___s_ScrollStepSize_0; } inline float* get_address_of_s_ScrollStepSize_0() { return &___s_ScrollStepSize_0; } inline void set_s_ScrollStepSize_0(float value) { ___s_ScrollStepSize_0 = value; } inline static int32_t get_offset_of_s_HotTextField_1() { return static_cast<int32_t>(offsetof(GUI_t1624858472_StaticFields, ___s_HotTextField_1)); } inline int32_t get_s_HotTextField_1() const { return ___s_HotTextField_1; } inline int32_t* get_address_of_s_HotTextField_1() { return &___s_HotTextField_1; } inline void set_s_HotTextField_1(int32_t value) { ___s_HotTextField_1 = value; } inline static int32_t get_offset_of_s_BoxHash_2() { return static_cast<int32_t>(offsetof(GUI_t1624858472_StaticFields, ___s_BoxHash_2)); } inline int32_t get_s_BoxHash_2() const { return ___s_BoxHash_2; } inline int32_t* get_address_of_s_BoxHash_2() { return &___s_BoxHash_2; } inline void set_s_BoxHash_2(int32_t value) { ___s_BoxHash_2 = value; } inline static int32_t get_offset_of_s_RepeatButtonHash_3() { return static_cast<int32_t>(offsetof(GUI_t1624858472_StaticFields, ___s_RepeatButtonHash_3)); } inline int32_t get_s_RepeatButtonHash_3() const { return ___s_RepeatButtonHash_3; } inline int32_t* get_address_of_s_RepeatButtonHash_3() { return &___s_RepeatButtonHash_3; } inline void set_s_RepeatButtonHash_3(int32_t value) { ___s_RepeatButtonHash_3 = value; } inline static int32_t get_offset_of_s_ToggleHash_4() { return static_cast<int32_t>(offsetof(GUI_t1624858472_StaticFields, ___s_ToggleHash_4)); } inline int32_t get_s_ToggleHash_4() const { return ___s_ToggleHash_4; } inline int32_t* get_address_of_s_ToggleHash_4() { return &___s_ToggleHash_4; } inline void set_s_ToggleHash_4(int32_t value) { ___s_ToggleHash_4 = value; } inline static int32_t get_offset_of_s_SliderHash_5() { return static_cast<int32_t>(offsetof(GUI_t1624858472_StaticFields, ___s_SliderHash_5)); } inline int32_t get_s_SliderHash_5() const { return ___s_SliderHash_5; } inline int32_t* get_address_of_s_SliderHash_5() { return &___s_SliderHash_5; } inline void set_s_SliderHash_5(int32_t value) { ___s_SliderHash_5 = value; } inline static int32_t get_offset_of_s_BeginGroupHash_6() { return static_cast<int32_t>(offsetof(GUI_t1624858472_StaticFields, ___s_BeginGroupHash_6)); } inline int32_t get_s_BeginGroupHash_6() const { return ___s_BeginGroupHash_6; } inline int32_t* get_address_of_s_BeginGroupHash_6() { return &___s_BeginGroupHash_6; } inline void set_s_BeginGroupHash_6(int32_t value) { ___s_BeginGroupHash_6 = value; } inline static int32_t get_offset_of_s_ScrollviewHash_7() { return static_cast<int32_t>(offsetof(GUI_t1624858472_StaticFields, ___s_ScrollviewHash_7)); } inline int32_t get_s_ScrollviewHash_7() const { return ___s_ScrollviewHash_7; } inline int32_t* get_address_of_s_ScrollviewHash_7() { return &___s_ScrollviewHash_7; } inline void set_s_ScrollviewHash_7(int32_t value) { ___s_ScrollviewHash_7 = value; } inline static int32_t get_offset_of_U3CnextScrollStepTimeU3Ek__BackingField_8() { return static_cast<int32_t>(offsetof(GUI_t1624858472_StaticFields, ___U3CnextScrollStepTimeU3Ek__BackingField_8)); } inline DateTime_t3738529785 get_U3CnextScrollStepTimeU3Ek__BackingField_8() const { return ___U3CnextScrollStepTimeU3Ek__BackingField_8; } inline DateTime_t3738529785 * get_address_of_U3CnextScrollStepTimeU3Ek__BackingField_8() { return &___U3CnextScrollStepTimeU3Ek__BackingField_8; } inline void set_U3CnextScrollStepTimeU3Ek__BackingField_8(DateTime_t3738529785 value) { ___U3CnextScrollStepTimeU3Ek__BackingField_8 = value; } inline static int32_t get_offset_of_s_Skin_9() { return static_cast<int32_t>(offsetof(GUI_t1624858472_StaticFields, ___s_Skin_9)); } inline GUISkin_t1244372282 * get_s_Skin_9() const { return ___s_Skin_9; } inline GUISkin_t1244372282 ** get_address_of_s_Skin_9() { return &___s_Skin_9; } inline void set_s_Skin_9(GUISkin_t1244372282 * value) { ___s_Skin_9 = value; Il2CppCodeGenWriteBarrier((&___s_Skin_9), value); } inline static int32_t get_offset_of_s_ScrollViewStates_10() { return static_cast<int32_t>(offsetof(GUI_t1624858472_StaticFields, ___s_ScrollViewStates_10)); } inline GenericStack_t1310059385 * get_s_ScrollViewStates_10() const { return ___s_ScrollViewStates_10; } inline GenericStack_t1310059385 ** get_address_of_s_ScrollViewStates_10() { return &___s_ScrollViewStates_10; } inline void set_s_ScrollViewStates_10(GenericStack_t1310059385 * value) { ___s_ScrollViewStates_10 = value; Il2CppCodeGenWriteBarrier((&___s_ScrollViewStates_10), value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // GUI_T1624858472_H #ifndef WINDOWFUNCTION_T3146511083_H #define WINDOWFUNCTION_T3146511083_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.GUI/WindowFunction struct WindowFunction_t3146511083 : public MulticastDelegate_t { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // WINDOWFUNCTION_T3146511083_H #ifndef PARTICLESYSTEM_T1800779281_H #define PARTICLESYSTEM_T1800779281_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.ParticleSystem struct ParticleSystem_t1800779281 : public Component_t1923634451 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // PARTICLESYSTEM_T1800779281_H #ifndef RIGIDBODY2D_T939494601_H #define RIGIDBODY2D_T939494601_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Rigidbody2D struct Rigidbody2D_t939494601 : public Component_t1923634451 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // RIGIDBODY2D_T939494601_H #ifndef BEHAVIOUR_T1437897464_H #define BEHAVIOUR_T1437897464_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Behaviour struct Behaviour_t1437897464 : public Component_t1923634451 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // BEHAVIOUR_T1437897464_H #ifndef LOCALUSER_T365094499_H #define LOCALUSER_T365094499_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.SocialPlatforms.Impl.LocalUser struct LocalUser_t365094499 : public UserProfile_t3137328177 { public: // UnityEngine.SocialPlatforms.IUserProfile[] UnityEngine.SocialPlatforms.Impl.LocalUser::m_Friends IUserProfileU5BU5D_t909679733* ___m_Friends_5; // System.Boolean UnityEngine.SocialPlatforms.Impl.LocalUser::m_Authenticated bool ___m_Authenticated_6; // System.Boolean UnityEngine.SocialPlatforms.Impl.LocalUser::m_Underage bool ___m_Underage_7; public: inline static int32_t get_offset_of_m_Friends_5() { return static_cast<int32_t>(offsetof(LocalUser_t365094499, ___m_Friends_5)); } inline IUserProfileU5BU5D_t909679733* get_m_Friends_5() const { return ___m_Friends_5; } inline IUserProfileU5BU5D_t909679733** get_address_of_m_Friends_5() { return &___m_Friends_5; } inline void set_m_Friends_5(IUserProfileU5BU5D_t909679733* value) { ___m_Friends_5 = value; Il2CppCodeGenWriteBarrier((&___m_Friends_5), value); } inline static int32_t get_offset_of_m_Authenticated_6() { return static_cast<int32_t>(offsetof(LocalUser_t365094499, ___m_Authenticated_6)); } inline bool get_m_Authenticated_6() const { return ___m_Authenticated_6; } inline bool* get_address_of_m_Authenticated_6() { return &___m_Authenticated_6; } inline void set_m_Authenticated_6(bool value) { ___m_Authenticated_6 = value; } inline static int32_t get_offset_of_m_Underage_7() { return static_cast<int32_t>(offsetof(LocalUser_t365094499, ___m_Underage_7)); } inline bool get_m_Underage_7() const { return ___m_Underage_7; } inline bool* get_address_of_m_Underage_7() { return &___m_Underage_7; } inline void set_m_Underage_7(bool value) { ___m_Underage_7 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // LOCALUSER_T365094499_H #ifndef ACHIEVEMENT_T565359984_H #define ACHIEVEMENT_T565359984_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.SocialPlatforms.Impl.Achievement struct Achievement_t565359984 : public RuntimeObject { public: // System.Boolean UnityEngine.SocialPlatforms.Impl.Achievement::m_Completed bool ___m_Completed_0; // System.Boolean UnityEngine.SocialPlatforms.Impl.Achievement::m_Hidden bool ___m_Hidden_1; // System.DateTime UnityEngine.SocialPlatforms.Impl.Achievement::m_LastReportedDate DateTime_t3738529785 ___m_LastReportedDate_2; // System.String UnityEngine.SocialPlatforms.Impl.Achievement::<id>k__BackingField String_t* ___U3CidU3Ek__BackingField_3; // System.Double UnityEngine.SocialPlatforms.Impl.Achievement::<percentCompleted>k__BackingField double ___U3CpercentCompletedU3Ek__BackingField_4; public: inline static int32_t get_offset_of_m_Completed_0() { return static_cast<int32_t>(offsetof(Achievement_t565359984, ___m_Completed_0)); } inline bool get_m_Completed_0() const { return ___m_Completed_0; } inline bool* get_address_of_m_Completed_0() { return &___m_Completed_0; } inline void set_m_Completed_0(bool value) { ___m_Completed_0 = value; } inline static int32_t get_offset_of_m_Hidden_1() { return static_cast<int32_t>(offsetof(Achievement_t565359984, ___m_Hidden_1)); } inline bool get_m_Hidden_1() const { return ___m_Hidden_1; } inline bool* get_address_of_m_Hidden_1() { return &___m_Hidden_1; } inline void set_m_Hidden_1(bool value) { ___m_Hidden_1 = value; } inline static int32_t get_offset_of_m_LastReportedDate_2() { return static_cast<int32_t>(offsetof(Achievement_t565359984, ___m_LastReportedDate_2)); } inline DateTime_t3738529785 get_m_LastReportedDate_2() const { return ___m_LastReportedDate_2; } inline DateTime_t3738529785 * get_address_of_m_LastReportedDate_2() { return &___m_LastReportedDate_2; } inline void set_m_LastReportedDate_2(DateTime_t3738529785 value) { ___m_LastReportedDate_2 = value; } inline static int32_t get_offset_of_U3CidU3Ek__BackingField_3() { return static_cast<int32_t>(offsetof(Achievement_t565359984, ___U3CidU3Ek__BackingField_3)); } inline String_t* get_U3CidU3Ek__BackingField_3() const { return ___U3CidU3Ek__BackingField_3; } inline String_t** get_address_of_U3CidU3Ek__BackingField_3() { return &___U3CidU3Ek__BackingField_3; } inline void set_U3CidU3Ek__BackingField_3(String_t* value) { ___U3CidU3Ek__BackingField_3 = value; Il2CppCodeGenWriteBarrier((&___U3CidU3Ek__BackingField_3), value); } inline static int32_t get_offset_of_U3CpercentCompletedU3Ek__BackingField_4() { return static_cast<int32_t>(offsetof(Achievement_t565359984, ___U3CpercentCompletedU3Ek__BackingField_4)); } inline double get_U3CpercentCompletedU3Ek__BackingField_4() const { return ___U3CpercentCompletedU3Ek__BackingField_4; } inline double* get_address_of_U3CpercentCompletedU3Ek__BackingField_4() { return &___U3CpercentCompletedU3Ek__BackingField_4; } inline void set_U3CpercentCompletedU3Ek__BackingField_4(double value) { ___U3CpercentCompletedU3Ek__BackingField_4 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // ACHIEVEMENT_T565359984_H #ifndef SCORE_T1968645328_H #define SCORE_T1968645328_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.SocialPlatforms.Impl.Score struct Score_t1968645328 : public RuntimeObject { public: // System.DateTime UnityEngine.SocialPlatforms.Impl.Score::m_Date DateTime_t3738529785 ___m_Date_0; // System.String UnityEngine.SocialPlatforms.Impl.Score::m_FormattedValue String_t* ___m_FormattedValue_1; // System.String UnityEngine.SocialPlatforms.Impl.Score::m_UserID String_t* ___m_UserID_2; // System.Int32 UnityEngine.SocialPlatforms.Impl.Score::m_Rank int32_t ___m_Rank_3; // System.String UnityEngine.SocialPlatforms.Impl.Score::<leaderboardID>k__BackingField String_t* ___U3CleaderboardIDU3Ek__BackingField_4; // System.Int64 UnityEngine.SocialPlatforms.Impl.Score::<value>k__BackingField int64_t ___U3CvalueU3Ek__BackingField_5; public: inline static int32_t get_offset_of_m_Date_0() { return static_cast<int32_t>(offsetof(Score_t1968645328, ___m_Date_0)); } inline DateTime_t3738529785 get_m_Date_0() const { return ___m_Date_0; } inline DateTime_t3738529785 * get_address_of_m_Date_0() { return &___m_Date_0; } inline void set_m_Date_0(DateTime_t3738529785 value) { ___m_Date_0 = value; } inline static int32_t get_offset_of_m_FormattedValue_1() { return static_cast<int32_t>(offsetof(Score_t1968645328, ___m_FormattedValue_1)); } inline String_t* get_m_FormattedValue_1() const { return ___m_FormattedValue_1; } inline String_t** get_address_of_m_FormattedValue_1() { return &___m_FormattedValue_1; } inline void set_m_FormattedValue_1(String_t* value) { ___m_FormattedValue_1 = value; Il2CppCodeGenWriteBarrier((&___m_FormattedValue_1), value); } inline static int32_t get_offset_of_m_UserID_2() { return static_cast<int32_t>(offsetof(Score_t1968645328, ___m_UserID_2)); } inline String_t* get_m_UserID_2() const { return ___m_UserID_2; } inline String_t** get_address_of_m_UserID_2() { return &___m_UserID_2; } inline void set_m_UserID_2(String_t* value) { ___m_UserID_2 = value; Il2CppCodeGenWriteBarrier((&___m_UserID_2), value); } inline static int32_t get_offset_of_m_Rank_3() { return static_cast<int32_t>(offsetof(Score_t1968645328, ___m_Rank_3)); } inline int32_t get_m_Rank_3() const { return ___m_Rank_3; } inline int32_t* get_address_of_m_Rank_3() { return &___m_Rank_3; } inline void set_m_Rank_3(int32_t value) { ___m_Rank_3 = value; } inline static int32_t get_offset_of_U3CleaderboardIDU3Ek__BackingField_4() { return static_cast<int32_t>(offsetof(Score_t1968645328, ___U3CleaderboardIDU3Ek__BackingField_4)); } inline String_t* get_U3CleaderboardIDU3Ek__BackingField_4() const { return ___U3CleaderboardIDU3Ek__BackingField_4; } inline String_t** get_address_of_U3CleaderboardIDU3Ek__BackingField_4() { return &___U3CleaderboardIDU3Ek__BackingField_4; } inline void set_U3CleaderboardIDU3Ek__BackingField_4(String_t* value) { ___U3CleaderboardIDU3Ek__BackingField_4 = value; Il2CppCodeGenWriteBarrier((&___U3CleaderboardIDU3Ek__BackingField_4), value); } inline static int32_t get_offset_of_U3CvalueU3Ek__BackingField_5() { return static_cast<int32_t>(offsetof(Score_t1968645328, ___U3CvalueU3Ek__BackingField_5)); } inline int64_t get_U3CvalueU3Ek__BackingField_5() const { return ___U3CvalueU3Ek__BackingField_5; } inline int64_t* get_address_of_U3CvalueU3Ek__BackingField_5() { return &___U3CvalueU3Ek__BackingField_5; } inline void set_U3CvalueU3Ek__BackingField_5(int64_t value) { ___U3CvalueU3Ek__BackingField_5 = value; } }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // SCORE_T1968645328_H #ifndef SPHERECOLLIDER_T2077223608_H #define SPHERECOLLIDER_T2077223608_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.SphereCollider struct SphereCollider_t2077223608 : public Collider_t1773347010 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // SPHERECOLLIDER_T2077223608_H #ifndef COLLIDER2D_T2806799626_H #define COLLIDER2D_T2806799626_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Collider2D struct Collider2D_t2806799626 : public Behaviour_t1437897464 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // COLLIDER2D_T2806799626_H #ifndef ANIMATOR_T434523843_H #define ANIMATOR_T434523843_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.Animator struct Animator_t434523843 : public Behaviour_t1437897464 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // ANIMATOR_T434523843_H #ifndef CHARACTERCONTROLLER_T1138636865_H #define CHARACTERCONTROLLER_T1138636865_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.CharacterController struct CharacterController_t1138636865 : public Collider_t1773347010 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // CHARACTERCONTROLLER_T1138636865_H #ifndef CAPSULECOLLIDER_T197597763_H #define CAPSULECOLLIDER_T197597763_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.CapsuleCollider struct CapsuleCollider_t197597763 : public Collider_t1773347010 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // CAPSULECOLLIDER_T197597763_H #ifndef MESHCOLLIDER_T903564387_H #define MESHCOLLIDER_T903564387_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.MeshCollider struct MeshCollider_t903564387 : public Collider_t1773347010 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // MESHCOLLIDER_T903564387_H #ifndef BOXCOLLIDER_T1640800422_H #define BOXCOLLIDER_T1640800422_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.BoxCollider struct BoxCollider_t1640800422 : public Collider_t1773347010 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // BOXCOLLIDER_T1640800422_H #ifndef BOXCOLLIDER2D_T3581341831_H #define BOXCOLLIDER2D_T3581341831_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // UnityEngine.BoxCollider2D struct BoxCollider2D_t3581341831 : public Collider2D_t2806799626 { public: public: }; #ifdef __clang__ #pragma clang diagnostic pop #endif #endif // BOXCOLLIDER2D_T3581341831_H #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1600 = { sizeof (U3CModuleU3E_t692745535), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1601 = { sizeof (AnimationEventSource_t3045280095)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 }; extern const int32_t g_FieldOffsetTable1601[4] = { AnimationEventSource_t3045280095::get_offset_of_value___1() + static_cast<int32_t>(sizeof(RuntimeObject)), 0, 0, 0, }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1602 = { sizeof (AnimationEvent_t1536042487), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable1602[11] = { AnimationEvent_t1536042487::get_offset_of_m_Time_0(), AnimationEvent_t1536042487::get_offset_of_m_FunctionName_1(), AnimationEvent_t1536042487::get_offset_of_m_StringParameter_2(), AnimationEvent_t1536042487::get_offset_of_m_ObjectReferenceParameter_3(), AnimationEvent_t1536042487::get_offset_of_m_FloatParameter_4(), AnimationEvent_t1536042487::get_offset_of_m_IntParameter_5(), AnimationEvent_t1536042487::get_offset_of_m_MessageOptions_6(), AnimationEvent_t1536042487::get_offset_of_m_Source_7(), AnimationEvent_t1536042487::get_offset_of_m_StateSender_8(), AnimationEvent_t1536042487::get_offset_of_m_AnimatorStateInfo_9(), AnimationEvent_t1536042487::get_offset_of_m_AnimatorClipInfo_10(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1603 = { sizeof (AnimationState_t1108360407), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1604 = { sizeof (AnimatorControllerParameterType_t3317225440)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 }; extern const int32_t g_FieldOffsetTable1604[5] = { AnimatorControllerParameterType_t3317225440::get_offset_of_value___1() + static_cast<int32_t>(sizeof(RuntimeObject)), 0, 0, 0, 0, }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1605 = { sizeof (AnimatorClipInfo_t3156717155)+ sizeof (RuntimeObject), sizeof(AnimatorClipInfo_t3156717155 ), 0, 0 }; extern const int32_t g_FieldOffsetTable1605[2] = { AnimatorClipInfo_t3156717155::get_offset_of_m_ClipInstanceID_0() + static_cast<int32_t>(sizeof(RuntimeObject)), AnimatorClipInfo_t3156717155::get_offset_of_m_Weight_1() + static_cast<int32_t>(sizeof(RuntimeObject)), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1606 = { sizeof (AnimatorStateInfo_t509032636)+ sizeof (RuntimeObject), sizeof(AnimatorStateInfo_t509032636 ), 0, 0 }; extern const int32_t g_FieldOffsetTable1606[9] = { AnimatorStateInfo_t509032636::get_offset_of_m_Name_0() + static_cast<int32_t>(sizeof(RuntimeObject)), AnimatorStateInfo_t509032636::get_offset_of_m_Path_1() + static_cast<int32_t>(sizeof(RuntimeObject)), AnimatorStateInfo_t509032636::get_offset_of_m_FullPath_2() + static_cast<int32_t>(sizeof(RuntimeObject)), AnimatorStateInfo_t509032636::get_offset_of_m_NormalizedTime_3() + static_cast<int32_t>(sizeof(RuntimeObject)), AnimatorStateInfo_t509032636::get_offset_of_m_Length_4() + static_cast<int32_t>(sizeof(RuntimeObject)), AnimatorStateInfo_t509032636::get_offset_of_m_Speed_5() + static_cast<int32_t>(sizeof(RuntimeObject)), AnimatorStateInfo_t509032636::get_offset_of_m_SpeedMultiplier_6() + static_cast<int32_t>(sizeof(RuntimeObject)), AnimatorStateInfo_t509032636::get_offset_of_m_Tag_7() + static_cast<int32_t>(sizeof(RuntimeObject)), AnimatorStateInfo_t509032636::get_offset_of_m_Loop_8() + static_cast<int32_t>(sizeof(RuntimeObject)), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1607 = { sizeof (AnimatorTransitionInfo_t2534804151)+ sizeof (RuntimeObject), sizeof(AnimatorTransitionInfo_t2534804151_marshaled_pinvoke), 0, 0 }; extern const int32_t g_FieldOffsetTable1607[8] = { AnimatorTransitionInfo_t2534804151::get_offset_of_m_FullPath_0() + static_cast<int32_t>(sizeof(RuntimeObject)), AnimatorTransitionInfo_t2534804151::get_offset_of_m_UserName_1() + static_cast<int32_t>(sizeof(RuntimeObject)), AnimatorTransitionInfo_t2534804151::get_offset_of_m_Name_2() + static_cast<int32_t>(sizeof(RuntimeObject)), AnimatorTransitionInfo_t2534804151::get_offset_of_m_HasFixedDuration_3() + static_cast<int32_t>(sizeof(RuntimeObject)), AnimatorTransitionInfo_t2534804151::get_offset_of_m_Duration_4() + static_cast<int32_t>(sizeof(RuntimeObject)), AnimatorTransitionInfo_t2534804151::get_offset_of_m_NormalizedTime_5() + static_cast<int32_t>(sizeof(RuntimeObject)), AnimatorTransitionInfo_t2534804151::get_offset_of_m_AnyState_6() + static_cast<int32_t>(sizeof(RuntimeObject)), AnimatorTransitionInfo_t2534804151::get_offset_of_m_TransitionType_7() + static_cast<int32_t>(sizeof(RuntimeObject)), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1608 = { sizeof (Animator_t434523843), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1609 = { sizeof (AnimatorControllerParameter_t1758260042), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable1609[5] = { AnimatorControllerParameter_t1758260042::get_offset_of_m_Name_0(), AnimatorControllerParameter_t1758260042::get_offset_of_m_Type_1(), AnimatorControllerParameter_t1758260042::get_offset_of_m_DefaultFloat_2(), AnimatorControllerParameter_t1758260042::get_offset_of_m_DefaultInt_3(), AnimatorControllerParameter_t1758260042::get_offset_of_m_DefaultBool_4(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1610 = { sizeof (AnimatorControllerPlayable_t1015767841)+ sizeof (RuntimeObject), sizeof(AnimatorControllerPlayable_t1015767841 ), sizeof(AnimatorControllerPlayable_t1015767841_StaticFields), 0 }; extern const int32_t g_FieldOffsetTable1610[2] = { AnimatorControllerPlayable_t1015767841::get_offset_of_m_Handle_0() + static_cast<int32_t>(sizeof(RuntimeObject)), AnimatorControllerPlayable_t1015767841_StaticFields::get_offset_of_m_NullPlayable_1(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1611 = { sizeof (SkeletonBone_t4134054672)+ sizeof (RuntimeObject), sizeof(SkeletonBone_t4134054672_marshaled_pinvoke), 0, 0 }; extern const int32_t g_FieldOffsetTable1611[5] = { SkeletonBone_t4134054672::get_offset_of_name_0() + static_cast<int32_t>(sizeof(RuntimeObject)), SkeletonBone_t4134054672::get_offset_of_parentName_1() + static_cast<int32_t>(sizeof(RuntimeObject)), SkeletonBone_t4134054672::get_offset_of_position_2() + static_cast<int32_t>(sizeof(RuntimeObject)), SkeletonBone_t4134054672::get_offset_of_rotation_3() + static_cast<int32_t>(sizeof(RuntimeObject)), SkeletonBone_t4134054672::get_offset_of_scale_4() + static_cast<int32_t>(sizeof(RuntimeObject)), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1612 = { sizeof (HumanLimit_t2901552972)+ sizeof (RuntimeObject), sizeof(HumanLimit_t2901552972 ), 0, 0 }; extern const int32_t g_FieldOffsetTable1612[5] = { HumanLimit_t2901552972::get_offset_of_m_Min_0() + static_cast<int32_t>(sizeof(RuntimeObject)), HumanLimit_t2901552972::get_offset_of_m_Max_1() + static_cast<int32_t>(sizeof(RuntimeObject)), HumanLimit_t2901552972::get_offset_of_m_Center_2() + static_cast<int32_t>(sizeof(RuntimeObject)), HumanLimit_t2901552972::get_offset_of_m_AxisLength_3() + static_cast<int32_t>(sizeof(RuntimeObject)), HumanLimit_t2901552972::get_offset_of_m_UseDefaultValues_4() + static_cast<int32_t>(sizeof(RuntimeObject)), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1613 = { sizeof (HumanBone_t2465339518)+ sizeof (RuntimeObject), sizeof(HumanBone_t2465339518_marshaled_pinvoke), 0, 0 }; extern const int32_t g_FieldOffsetTable1613[3] = { HumanBone_t2465339518::get_offset_of_m_BoneName_0() + static_cast<int32_t>(sizeof(RuntimeObject)), HumanBone_t2465339518::get_offset_of_m_HumanName_1() + static_cast<int32_t>(sizeof(RuntimeObject)), HumanBone_t2465339518::get_offset_of_limit_2() + static_cast<int32_t>(sizeof(RuntimeObject)), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1614 = { sizeof (SharedBetweenAnimatorsAttribute_t2857104338), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1615 = { sizeof (StateMachineBehaviour_t957311111), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1616 = { sizeof (AnimationClipPlayable_t3189118652)+ sizeof (RuntimeObject), sizeof(AnimationClipPlayable_t3189118652 ), 0, 0 }; extern const int32_t g_FieldOffsetTable1616[1] = { AnimationClipPlayable_t3189118652::get_offset_of_m_Handle_0() + static_cast<int32_t>(sizeof(RuntimeObject)), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1617 = { sizeof (AnimationLayerMixerPlayable_t3631223897)+ sizeof (RuntimeObject), sizeof(AnimationLayerMixerPlayable_t3631223897 ), sizeof(AnimationLayerMixerPlayable_t3631223897_StaticFields), 0 }; extern const int32_t g_FieldOffsetTable1617[2] = { AnimationLayerMixerPlayable_t3631223897::get_offset_of_m_Handle_0() + static_cast<int32_t>(sizeof(RuntimeObject)), AnimationLayerMixerPlayable_t3631223897_StaticFields::get_offset_of_m_NullPlayable_1(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1618 = { sizeof (AnimationMixerPlayable_t821371386)+ sizeof (RuntimeObject), sizeof(AnimationMixerPlayable_t821371386 ), 0, 0 }; extern const int32_t g_FieldOffsetTable1618[1] = { AnimationMixerPlayable_t821371386::get_offset_of_m_Handle_0() + static_cast<int32_t>(sizeof(RuntimeObject)), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1619 = { sizeof (AnimationMotionXToDeltaPlayable_t272231551)+ sizeof (RuntimeObject), sizeof(AnimationMotionXToDeltaPlayable_t272231551 ), 0, 0 }; extern const int32_t g_FieldOffsetTable1619[1] = { AnimationMotionXToDeltaPlayable_t272231551::get_offset_of_m_Handle_0() + static_cast<int32_t>(sizeof(RuntimeObject)), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1620 = { sizeof (AnimationOffsetPlayable_t2887420414)+ sizeof (RuntimeObject), sizeof(AnimationOffsetPlayable_t2887420414 ), sizeof(AnimationOffsetPlayable_t2887420414_StaticFields), 0 }; extern const int32_t g_FieldOffsetTable1620[2] = { AnimationOffsetPlayable_t2887420414::get_offset_of_m_Handle_0() + static_cast<int32_t>(sizeof(RuntimeObject)), AnimationOffsetPlayable_t2887420414_StaticFields::get_offset_of_m_NullPlayable_1(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1621 = { sizeof (AnimationPlayableOutput_t1918618239)+ sizeof (RuntimeObject), sizeof(AnimationPlayableOutput_t1918618239 ), 0, 0 }; extern const int32_t g_FieldOffsetTable1621[1] = { AnimationPlayableOutput_t1918618239::get_offset_of_m_Handle_0() + static_cast<int32_t>(sizeof(RuntimeObject)), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1622 = { sizeof (U3CModuleU3E_t692745536), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1623 = { sizeof (GameCenterPlatform_t2679391364), -1, sizeof(GameCenterPlatform_t2679391364_StaticFields), 0 }; extern const int32_t g_FieldOffsetTable1623[7] = { GameCenterPlatform_t2679391364_StaticFields::get_offset_of_s_AuthenticateCallback_0(), GameCenterPlatform_t2679391364_StaticFields::get_offset_of_s_adCache_1(), GameCenterPlatform_t2679391364_StaticFields::get_offset_of_s_friends_2(), GameCenterPlatform_t2679391364_StaticFields::get_offset_of_s_users_3(), GameCenterPlatform_t2679391364_StaticFields::get_offset_of_s_ResetAchievements_4(), GameCenterPlatform_t2679391364_StaticFields::get_offset_of_m_LocalUser_5(), GameCenterPlatform_t2679391364_StaticFields::get_offset_of_m_GcBoards_6(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1624 = { sizeof (U3CUnityEngine_SocialPlatforms_ISocialPlatform_AuthenticateU3Ec__AnonStorey0_t1940008395), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable1624[1] = { U3CUnityEngine_SocialPlatforms_ISocialPlatform_AuthenticateU3Ec__AnonStorey0_t1940008395::get_offset_of_callback_0(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1625 = { sizeof (GcLeaderboard_t4132273028), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable1625[2] = { GcLeaderboard_t4132273028::get_offset_of_m_InternalLeaderboard_0(), GcLeaderboard_t4132273028::get_offset_of_m_GenericLeaderboard_1(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1626 = { sizeof (GcUserProfileData_t2719720026)+ sizeof (RuntimeObject), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable1626[4] = { GcUserProfileData_t2719720026::get_offset_of_userName_0() + static_cast<int32_t>(sizeof(RuntimeObject)), GcUserProfileData_t2719720026::get_offset_of_userID_1() + static_cast<int32_t>(sizeof(RuntimeObject)), GcUserProfileData_t2719720026::get_offset_of_isFriend_2() + static_cast<int32_t>(sizeof(RuntimeObject)), GcUserProfileData_t2719720026::get_offset_of_image_3() + static_cast<int32_t>(sizeof(RuntimeObject)), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1627 = { sizeof (GcAchievementDescriptionData_t643925653)+ sizeof (RuntimeObject), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable1627[7] = { GcAchievementDescriptionData_t643925653::get_offset_of_m_Identifier_0() + static_cast<int32_t>(sizeof(RuntimeObject)), GcAchievementDescriptionData_t643925653::get_offset_of_m_Title_1() + static_cast<int32_t>(sizeof(RuntimeObject)), GcAchievementDescriptionData_t643925653::get_offset_of_m_Image_2() + static_cast<int32_t>(sizeof(RuntimeObject)), GcAchievementDescriptionData_t643925653::get_offset_of_m_AchievedDescription_3() + static_cast<int32_t>(sizeof(RuntimeObject)), GcAchievementDescriptionData_t643925653::get_offset_of_m_UnachievedDescription_4() + static_cast<int32_t>(sizeof(RuntimeObject)), GcAchievementDescriptionData_t643925653::get_offset_of_m_Hidden_5() + static_cast<int32_t>(sizeof(RuntimeObject)), GcAchievementDescriptionData_t643925653::get_offset_of_m_Points_6() + static_cast<int32_t>(sizeof(RuntimeObject)), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1628 = { sizeof (GcAchievementData_t675222246)+ sizeof (RuntimeObject), sizeof(GcAchievementData_t675222246_marshaled_pinvoke), 0, 0 }; extern const int32_t g_FieldOffsetTable1628[5] = { GcAchievementData_t675222246::get_offset_of_m_Identifier_0() + static_cast<int32_t>(sizeof(RuntimeObject)), GcAchievementData_t675222246::get_offset_of_m_PercentCompleted_1() + static_cast<int32_t>(sizeof(RuntimeObject)), GcAchievementData_t675222246::get_offset_of_m_Completed_2() + static_cast<int32_t>(sizeof(RuntimeObject)), GcAchievementData_t675222246::get_offset_of_m_Hidden_3() + static_cast<int32_t>(sizeof(RuntimeObject)), GcAchievementData_t675222246::get_offset_of_m_LastReportedDate_4() + static_cast<int32_t>(sizeof(RuntimeObject)), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1629 = { sizeof (GcScoreData_t2125309831)+ sizeof (RuntimeObject), sizeof(GcScoreData_t2125309831_marshaled_pinvoke), 0, 0 }; extern const int32_t g_FieldOffsetTable1629[7] = { GcScoreData_t2125309831::get_offset_of_m_Category_0() + static_cast<int32_t>(sizeof(RuntimeObject)), GcScoreData_t2125309831::get_offset_of_m_ValueLow_1() + static_cast<int32_t>(sizeof(RuntimeObject)), GcScoreData_t2125309831::get_offset_of_m_ValueHigh_2() + static_cast<int32_t>(sizeof(RuntimeObject)), GcScoreData_t2125309831::get_offset_of_m_Date_3() + static_cast<int32_t>(sizeof(RuntimeObject)), GcScoreData_t2125309831::get_offset_of_m_FormattedValue_4() + static_cast<int32_t>(sizeof(RuntimeObject)), GcScoreData_t2125309831::get_offset_of_m_PlayerID_5() + static_cast<int32_t>(sizeof(RuntimeObject)), GcScoreData_t2125309831::get_offset_of_m_Rank_6() + static_cast<int32_t>(sizeof(RuntimeObject)), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1630 = { sizeof (LocalUser_t365094499), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable1630[3] = { LocalUser_t365094499::get_offset_of_m_Friends_5(), LocalUser_t365094499::get_offset_of_m_Authenticated_6(), LocalUser_t365094499::get_offset_of_m_Underage_7(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1631 = { sizeof (UserProfile_t3137328177), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable1631[5] = { UserProfile_t3137328177::get_offset_of_m_UserName_0(), UserProfile_t3137328177::get_offset_of_m_ID_1(), UserProfile_t3137328177::get_offset_of_m_IsFriend_2(), UserProfile_t3137328177::get_offset_of_m_State_3(), UserProfile_t3137328177::get_offset_of_m_Image_4(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1632 = { sizeof (Achievement_t565359984), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable1632[5] = { Achievement_t565359984::get_offset_of_m_Completed_0(), Achievement_t565359984::get_offset_of_m_Hidden_1(), Achievement_t565359984::get_offset_of_m_LastReportedDate_2(), Achievement_t565359984::get_offset_of_U3CidU3Ek__BackingField_3(), Achievement_t565359984::get_offset_of_U3CpercentCompletedU3Ek__BackingField_4(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1633 = { sizeof (AchievementDescription_t3217594527), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable1633[7] = { AchievementDescription_t3217594527::get_offset_of_m_Title_0(), AchievementDescription_t3217594527::get_offset_of_m_Image_1(), AchievementDescription_t3217594527::get_offset_of_m_AchievedDescription_2(), AchievementDescription_t3217594527::get_offset_of_m_UnachievedDescription_3(), AchievementDescription_t3217594527::get_offset_of_m_Hidden_4(), AchievementDescription_t3217594527::get_offset_of_m_Points_5(), AchievementDescription_t3217594527::get_offset_of_U3CidU3Ek__BackingField_6(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1634 = { sizeof (Score_t1968645328), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable1634[6] = { Score_t1968645328::get_offset_of_m_Date_0(), Score_t1968645328::get_offset_of_m_FormattedValue_1(), Score_t1968645328::get_offset_of_m_UserID_2(), Score_t1968645328::get_offset_of_m_Rank_3(), Score_t1968645328::get_offset_of_U3CleaderboardIDU3Ek__BackingField_4(), Score_t1968645328::get_offset_of_U3CvalueU3Ek__BackingField_5(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1635 = { sizeof (Leaderboard_t1065076763), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable1635[10] = { Leaderboard_t1065076763::get_offset_of_m_Loading_0(), Leaderboard_t1065076763::get_offset_of_m_LocalUserScore_1(), Leaderboard_t1065076763::get_offset_of_m_MaxRange_2(), Leaderboard_t1065076763::get_offset_of_m_Scores_3(), Leaderboard_t1065076763::get_offset_of_m_Title_4(), Leaderboard_t1065076763::get_offset_of_m_UserIDs_5(), Leaderboard_t1065076763::get_offset_of_U3CidU3Ek__BackingField_6(), Leaderboard_t1065076763::get_offset_of_U3CuserScopeU3Ek__BackingField_7(), Leaderboard_t1065076763::get_offset_of_U3CrangeU3Ek__BackingField_8(), Leaderboard_t1065076763::get_offset_of_U3CtimeScopeU3Ek__BackingField_9(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1636 = { 0, -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1637 = { 0, -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1638 = { sizeof (UserState_t4177058321)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 }; extern const int32_t g_FieldOffsetTable1638[6] = { UserState_t4177058321::get_offset_of_value___1() + static_cast<int32_t>(sizeof(RuntimeObject)), 0, 0, 0, 0, 0, }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1639 = { 0, -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1640 = { 0, -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1641 = { 0, -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1642 = { 0, -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1643 = { sizeof (UserScope_t604006431)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 }; extern const int32_t g_FieldOffsetTable1643[3] = { UserScope_t604006431::get_offset_of_value___1() + static_cast<int32_t>(sizeof(RuntimeObject)), 0, 0, }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1644 = { sizeof (TimeScope_t539351503)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 }; extern const int32_t g_FieldOffsetTable1644[4] = { TimeScope_t539351503::get_offset_of_value___1() + static_cast<int32_t>(sizeof(RuntimeObject)), 0, 0, 0, }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1645 = { sizeof (Range_t173988048)+ sizeof (RuntimeObject), sizeof(Range_t173988048 ), 0, 0 }; extern const int32_t g_FieldOffsetTable1645[2] = { Range_t173988048::get_offset_of_from_0() + static_cast<int32_t>(sizeof(RuntimeObject)), Range_t173988048::get_offset_of_count_1() + static_cast<int32_t>(sizeof(RuntimeObject)), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1646 = { 0, -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1647 = { sizeof (U3CModuleU3E_t692745537), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1648 = { sizeof (Event_t2956885303), sizeof(Event_t2956885303_marshaled_pinvoke), sizeof(Event_t2956885303_StaticFields), 0 }; extern const int32_t g_FieldOffsetTable1648[4] = { Event_t2956885303::get_offset_of_m_Ptr_0(), Event_t2956885303_StaticFields::get_offset_of_s_Current_1(), Event_t2956885303_StaticFields::get_offset_of_s_MasterEvent_2(), Event_t2956885303_StaticFields::get_offset_of_U3CU3Ef__switchU24map0_3(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1649 = { sizeof (GUI_t1624858472), -1, sizeof(GUI_t1624858472_StaticFields), 0 }; extern const int32_t g_FieldOffsetTable1649[11] = { GUI_t1624858472_StaticFields::get_offset_of_s_ScrollStepSize_0(), GUI_t1624858472_StaticFields::get_offset_of_s_HotTextField_1(), GUI_t1624858472_StaticFields::get_offset_of_s_BoxHash_2(), GUI_t1624858472_StaticFields::get_offset_of_s_RepeatButtonHash_3(), GUI_t1624858472_StaticFields::get_offset_of_s_ToggleHash_4(), GUI_t1624858472_StaticFields::get_offset_of_s_SliderHash_5(), GUI_t1624858472_StaticFields::get_offset_of_s_BeginGroupHash_6(), GUI_t1624858472_StaticFields::get_offset_of_s_ScrollviewHash_7(), GUI_t1624858472_StaticFields::get_offset_of_U3CnextScrollStepTimeU3Ek__BackingField_8(), GUI_t1624858472_StaticFields::get_offset_of_s_Skin_9(), GUI_t1624858472_StaticFields::get_offset_of_s_ScrollViewStates_10(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1650 = { sizeof (WindowFunction_t3146511083), sizeof(Il2CppMethodPointer), 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1651 = { sizeof (GUILayoutUtility_t66395690), -1, sizeof(GUILayoutUtility_t66395690_StaticFields), 0 }; extern const int32_t g_FieldOffsetTable1651[5] = { GUILayoutUtility_t66395690_StaticFields::get_offset_of_s_StoredLayouts_0(), GUILayoutUtility_t66395690_StaticFields::get_offset_of_s_StoredWindows_1(), GUILayoutUtility_t66395690_StaticFields::get_offset_of_current_2(), GUILayoutUtility_t66395690_StaticFields::get_offset_of_kDummyRect_3(), GUILayoutUtility_t66395690_StaticFields::get_offset_of_s_SpaceStyle_4(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1652 = { sizeof (LayoutCache_t78309876), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable1652[3] = { LayoutCache_t78309876::get_offset_of_topLevel_0(), LayoutCache_t78309876::get_offset_of_layoutGroups_1(), LayoutCache_t78309876::get_offset_of_windows_2(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1653 = { sizeof (GUISettings_t1774757634), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable1653[5] = { GUISettings_t1774757634::get_offset_of_m_DoubleClickSelectsWord_0(), GUISettings_t1774757634::get_offset_of_m_TripleClickSelectsLine_1(), GUISettings_t1774757634::get_offset_of_m_CursorColor_2(), GUISettings_t1774757634::get_offset_of_m_CursorFlashSpeed_3(), GUISettings_t1774757634::get_offset_of_m_SelectionColor_4(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1654 = { sizeof (GUIStyleState_t1397964415), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable1654[3] = { GUIStyleState_t1397964415::get_offset_of_m_Ptr_0(), GUIStyleState_t1397964415::get_offset_of_m_SourceStyle_1(), GUIStyleState_t1397964415::get_offset_of_m_Background_2(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1655 = { sizeof (GUIStyle_t3956901511), -1, sizeof(GUIStyle_t3956901511_StaticFields), 0 }; extern const int32_t g_FieldOffsetTable1655[16] = { GUIStyle_t3956901511::get_offset_of_m_Ptr_0(), GUIStyle_t3956901511::get_offset_of_m_Normal_1(), GUIStyle_t3956901511::get_offset_of_m_Hover_2(), GUIStyle_t3956901511::get_offset_of_m_Active_3(), GUIStyle_t3956901511::get_offset_of_m_Focused_4(), GUIStyle_t3956901511::get_offset_of_m_OnNormal_5(), GUIStyle_t3956901511::get_offset_of_m_OnHover_6(), GUIStyle_t3956901511::get_offset_of_m_OnActive_7(), GUIStyle_t3956901511::get_offset_of_m_OnFocused_8(), GUIStyle_t3956901511::get_offset_of_m_Border_9(), GUIStyle_t3956901511::get_offset_of_m_Padding_10(), GUIStyle_t3956901511::get_offset_of_m_Margin_11(), GUIStyle_t3956901511::get_offset_of_m_Overflow_12(), GUIStyle_t3956901511::get_offset_of_m_FontInternal_13(), GUIStyle_t3956901511_StaticFields::get_offset_of_showKeyboardFocus_14(), GUIStyle_t3956901511_StaticFields::get_offset_of_s_None_15(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1656 = { sizeof (GUIUtility_t1868551600), -1, sizeof(GUIUtility_t1868551600_StaticFields), 0 }; extern const int32_t g_FieldOffsetTable1656[8] = { GUIUtility_t1868551600_StaticFields::get_offset_of_s_SkinMode_0(), GUIUtility_t1868551600_StaticFields::get_offset_of_s_OriginalID_1(), GUIUtility_t1868551600_StaticFields::get_offset_of_takeCapture_2(), GUIUtility_t1868551600_StaticFields::get_offset_of_releaseCapture_3(), GUIUtility_t1868551600_StaticFields::get_offset_of_processEvent_4(), GUIUtility_t1868551600_StaticFields::get_offset_of_endContainerGUIFromException_5(), GUIUtility_t1868551600_StaticFields::get_offset_of_U3CguiIsExitingU3Ek__BackingField_6(), GUIUtility_t1868551600_StaticFields::get_offset_of_s_EditorScreenPointOffset_7(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1657 = { sizeof (EventType_t3528516131)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 }; extern const int32_t g_FieldOffsetTable1657[33] = { EventType_t3528516131::get_offset_of_value___1() + static_cast<int32_t>(sizeof(RuntimeObject)), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1658 = { sizeof (EventModifiers_t2016417398)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 }; extern const int32_t g_FieldOffsetTable1658[9] = { EventModifiers_t2016417398::get_offset_of_value___1() + static_cast<int32_t>(sizeof(RuntimeObject)), 0, 0, 0, 0, 0, 0, 0, 0, }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1659 = { sizeof (GUIContent_t3050628031), -1, sizeof(GUIContent_t3050628031_StaticFields), 0 }; extern const int32_t g_FieldOffsetTable1659[7] = { GUIContent_t3050628031::get_offset_of_m_Text_0(), GUIContent_t3050628031::get_offset_of_m_Image_1(), GUIContent_t3050628031::get_offset_of_m_Tooltip_2(), GUIContent_t3050628031_StaticFields::get_offset_of_s_Text_3(), GUIContent_t3050628031_StaticFields::get_offset_of_s_Image_4(), GUIContent_t3050628031_StaticFields::get_offset_of_s_TextImage_5(), GUIContent_t3050628031_StaticFields::get_offset_of_none_6(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1660 = { sizeof (GUILayout_t3503650450), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1661 = { sizeof (GUILayoutOption_t811797299), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable1661[2] = { GUILayoutOption_t811797299::get_offset_of_type_0(), GUILayoutOption_t811797299::get_offset_of_value_1(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1662 = { sizeof (Type_t3858932131)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 }; extern const int32_t g_FieldOffsetTable1662[15] = { Type_t3858932131::get_offset_of_value___1() + static_cast<int32_t>(sizeof(RuntimeObject)), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1663 = { sizeof (GUILayoutGroup_t2157789695), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable1663[17] = { GUILayoutGroup_t2157789695::get_offset_of_entries_10(), GUILayoutGroup_t2157789695::get_offset_of_isVertical_11(), GUILayoutGroup_t2157789695::get_offset_of_resetCoords_12(), GUILayoutGroup_t2157789695::get_offset_of_spacing_13(), GUILayoutGroup_t2157789695::get_offset_of_sameSize_14(), GUILayoutGroup_t2157789695::get_offset_of_isWindow_15(), GUILayoutGroup_t2157789695::get_offset_of_windowID_16(), GUILayoutGroup_t2157789695::get_offset_of_m_Cursor_17(), GUILayoutGroup_t2157789695::get_offset_of_m_StretchableCountX_18(), GUILayoutGroup_t2157789695::get_offset_of_m_StretchableCountY_19(), GUILayoutGroup_t2157789695::get_offset_of_m_UserSpecifiedWidth_20(), GUILayoutGroup_t2157789695::get_offset_of_m_UserSpecifiedHeight_21(), GUILayoutGroup_t2157789695::get_offset_of_m_ChildMinWidth_22(), GUILayoutGroup_t2157789695::get_offset_of_m_ChildMaxWidth_23(), GUILayoutGroup_t2157789695::get_offset_of_m_ChildMinHeight_24(), GUILayoutGroup_t2157789695::get_offset_of_m_ChildMaxHeight_25(), GUILayoutGroup_t2157789695::get_offset_of_m_Margin_26(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1664 = { sizeof (GUIScrollGroup_t1523329021), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable1664[12] = { GUIScrollGroup_t1523329021::get_offset_of_calcMinWidth_27(), GUIScrollGroup_t1523329021::get_offset_of_calcMaxWidth_28(), GUIScrollGroup_t1523329021::get_offset_of_calcMinHeight_29(), GUIScrollGroup_t1523329021::get_offset_of_calcMaxHeight_30(), GUIScrollGroup_t1523329021::get_offset_of_clientWidth_31(), GUIScrollGroup_t1523329021::get_offset_of_clientHeight_32(), GUIScrollGroup_t1523329021::get_offset_of_allowHorizontalScroll_33(), GUIScrollGroup_t1523329021::get_offset_of_allowVerticalScroll_34(), GUIScrollGroup_t1523329021::get_offset_of_needsHorizontalScrollbar_35(), GUIScrollGroup_t1523329021::get_offset_of_needsVerticalScrollbar_36(), GUIScrollGroup_t1523329021::get_offset_of_horizontalScrollbar_37(), GUIScrollGroup_t1523329021::get_offset_of_verticalScrollbar_38(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1665 = { sizeof (GUILayoutEntry_t3214611570), -1, sizeof(GUILayoutEntry_t3214611570_StaticFields), 0 }; extern const int32_t g_FieldOffsetTable1665[10] = { GUILayoutEntry_t3214611570::get_offset_of_minWidth_0(), GUILayoutEntry_t3214611570::get_offset_of_maxWidth_1(), GUILayoutEntry_t3214611570::get_offset_of_minHeight_2(), GUILayoutEntry_t3214611570::get_offset_of_maxHeight_3(), GUILayoutEntry_t3214611570::get_offset_of_rect_4(), GUILayoutEntry_t3214611570::get_offset_of_stretchWidth_5(), GUILayoutEntry_t3214611570::get_offset_of_stretchHeight_6(), GUILayoutEntry_t3214611570::get_offset_of_m_Style_7(), GUILayoutEntry_t3214611570_StaticFields::get_offset_of_kDummyRect_8(), GUILayoutEntry_t3214611570_StaticFields::get_offset_of_indent_9(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1666 = { sizeof (GUISkin_t1244372282), -1, sizeof(GUISkin_t1244372282_StaticFields), 0 }; extern const int32_t g_FieldOffsetTable1666[26] = { GUISkin_t1244372282::get_offset_of_m_Font_2(), GUISkin_t1244372282::get_offset_of_m_box_3(), GUISkin_t1244372282::get_offset_of_m_button_4(), GUISkin_t1244372282::get_offset_of_m_toggle_5(), GUISkin_t1244372282::get_offset_of_m_label_6(), GUISkin_t1244372282::get_offset_of_m_textField_7(), GUISkin_t1244372282::get_offset_of_m_textArea_8(), GUISkin_t1244372282::get_offset_of_m_window_9(), GUISkin_t1244372282::get_offset_of_m_horizontalSlider_10(), GUISkin_t1244372282::get_offset_of_m_horizontalSliderThumb_11(), GUISkin_t1244372282::get_offset_of_m_verticalSlider_12(), GUISkin_t1244372282::get_offset_of_m_verticalSliderThumb_13(), GUISkin_t1244372282::get_offset_of_m_horizontalScrollbar_14(), GUISkin_t1244372282::get_offset_of_m_horizontalScrollbarThumb_15(), GUISkin_t1244372282::get_offset_of_m_horizontalScrollbarLeftButton_16(), GUISkin_t1244372282::get_offset_of_m_horizontalScrollbarRightButton_17(), GUISkin_t1244372282::get_offset_of_m_verticalScrollbar_18(), GUISkin_t1244372282::get_offset_of_m_verticalScrollbarThumb_19(), GUISkin_t1244372282::get_offset_of_m_verticalScrollbarUpButton_20(), GUISkin_t1244372282::get_offset_of_m_verticalScrollbarDownButton_21(), GUISkin_t1244372282::get_offset_of_m_ScrollView_22(), GUISkin_t1244372282::get_offset_of_m_CustomStyles_23(), GUISkin_t1244372282::get_offset_of_m_Settings_24(), GUISkin_t1244372282::get_offset_of_m_Styles_25(), GUISkin_t1244372282_StaticFields::get_offset_of_m_SkinChanged_26(), GUISkin_t1244372282_StaticFields::get_offset_of_current_27(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1667 = { sizeof (SkinChangedDelegate_t1143955295), sizeof(Il2CppMethodPointer), 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1668 = { sizeof (GUITargetAttribute_t25796337), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable1668[1] = { GUITargetAttribute_t25796337::get_offset_of_displayMask_0(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1669 = { sizeof (ExitGUIException_t133215258), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1670 = { sizeof (ScrollViewState_t3797911395), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1671 = { sizeof (SliderState_t2207048770), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1672 = { sizeof (TextEditor_t2759855366), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable1672[16] = { TextEditor_t2759855366::get_offset_of_keyboardOnScreen_0(), TextEditor_t2759855366::get_offset_of_controlID_1(), TextEditor_t2759855366::get_offset_of_style_2(), TextEditor_t2759855366::get_offset_of_multiline_3(), TextEditor_t2759855366::get_offset_of_hasHorizontalCursorPos_4(), TextEditor_t2759855366::get_offset_of_isPasswordField_5(), TextEditor_t2759855366::get_offset_of_scrollOffset_6(), TextEditor_t2759855366::get_offset_of_m_Content_7(), TextEditor_t2759855366::get_offset_of_m_CursorIndex_8(), TextEditor_t2759855366::get_offset_of_m_SelectIndex_9(), TextEditor_t2759855366::get_offset_of_m_RevealCursor_10(), TextEditor_t2759855366::get_offset_of_m_MouseDragSelectsWholeWords_11(), TextEditor_t2759855366::get_offset_of_m_DblClickInitPos_12(), TextEditor_t2759855366::get_offset_of_m_DblClickSnap_13(), TextEditor_t2759855366::get_offset_of_m_bJustSelected_14(), TextEditor_t2759855366::get_offset_of_m_iAltCursorPos_15(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1673 = { sizeof (DblClickSnapping_t2629979741)+ sizeof (RuntimeObject), sizeof(uint8_t), 0, 0 }; extern const int32_t g_FieldOffsetTable1673[3] = { DblClickSnapping_t2629979741::get_offset_of_value___1() + static_cast<int32_t>(sizeof(RuntimeObject)), 0, 0, }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1674 = { sizeof (U3CModuleU3E_t692745538), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1675 = { sizeof (JsonUtility_t1659017423), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1676 = { sizeof (U3CModuleU3E_t692745539), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1677 = { sizeof (ParticleSystem_t1800779281), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1678 = { sizeof (U3CModuleU3E_t692745540), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1679 = { sizeof (Physics2D_t1528932956), -1, sizeof(Physics2D_t1528932956_StaticFields), 0 }; extern const int32_t g_FieldOffsetTable1679[1] = { Physics2D_t1528932956_StaticFields::get_offset_of_m_LastDisabledRigidbody2D_0(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1680 = { sizeof (Rigidbody2D_t939494601), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1681 = { sizeof (Collider2D_t2806799626), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1682 = { sizeof (Collision2D_t2842956331), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable1682[7] = { Collision2D_t2842956331::get_offset_of_m_Collider_0(), Collision2D_t2842956331::get_offset_of_m_OtherCollider_1(), Collision2D_t2842956331::get_offset_of_m_Rigidbody_2(), Collision2D_t2842956331::get_offset_of_m_OtherRigidbody_3(), Collision2D_t2842956331::get_offset_of_m_Contacts_4(), Collision2D_t2842956331::get_offset_of_m_RelativeVelocity_5(), Collision2D_t2842956331::get_offset_of_m_Enabled_6(), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1683 = { sizeof (ContactFilter2D_t3805203441)+ sizeof (RuntimeObject), sizeof(ContactFilter2D_t3805203441_marshaled_pinvoke), 0, 0 }; extern const int32_t g_FieldOffsetTable1683[11] = { ContactFilter2D_t3805203441::get_offset_of_useTriggers_0() + static_cast<int32_t>(sizeof(RuntimeObject)), ContactFilter2D_t3805203441::get_offset_of_useLayerMask_1() + static_cast<int32_t>(sizeof(RuntimeObject)), ContactFilter2D_t3805203441::get_offset_of_useDepth_2() + static_cast<int32_t>(sizeof(RuntimeObject)), ContactFilter2D_t3805203441::get_offset_of_useOutsideDepth_3() + static_cast<int32_t>(sizeof(RuntimeObject)), ContactFilter2D_t3805203441::get_offset_of_useNormalAngle_4() + static_cast<int32_t>(sizeof(RuntimeObject)), ContactFilter2D_t3805203441::get_offset_of_useOutsideNormalAngle_5() + static_cast<int32_t>(sizeof(RuntimeObject)), ContactFilter2D_t3805203441::get_offset_of_layerMask_6() + static_cast<int32_t>(sizeof(RuntimeObject)), ContactFilter2D_t3805203441::get_offset_of_minDepth_7() + static_cast<int32_t>(sizeof(RuntimeObject)), ContactFilter2D_t3805203441::get_offset_of_maxDepth_8() + static_cast<int32_t>(sizeof(RuntimeObject)), ContactFilter2D_t3805203441::get_offset_of_minNormalAngle_9() + static_cast<int32_t>(sizeof(RuntimeObject)), ContactFilter2D_t3805203441::get_offset_of_maxNormalAngle_10() + static_cast<int32_t>(sizeof(RuntimeObject)), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1684 = { sizeof (ContactPoint2D_t3390240644)+ sizeof (RuntimeObject), sizeof(ContactPoint2D_t3390240644 ), 0, 0 }; extern const int32_t g_FieldOffsetTable1684[11] = { ContactPoint2D_t3390240644::get_offset_of_m_Point_0() + static_cast<int32_t>(sizeof(RuntimeObject)), ContactPoint2D_t3390240644::get_offset_of_m_Normal_1() + static_cast<int32_t>(sizeof(RuntimeObject)), ContactPoint2D_t3390240644::get_offset_of_m_RelativeVelocity_2() + static_cast<int32_t>(sizeof(RuntimeObject)), ContactPoint2D_t3390240644::get_offset_of_m_Separation_3() + static_cast<int32_t>(sizeof(RuntimeObject)), ContactPoint2D_t3390240644::get_offset_of_m_NormalImpulse_4() + static_cast<int32_t>(sizeof(RuntimeObject)), ContactPoint2D_t3390240644::get_offset_of_m_TangentImpulse_5() + static_cast<int32_t>(sizeof(RuntimeObject)), ContactPoint2D_t3390240644::get_offset_of_m_Collider_6() + static_cast<int32_t>(sizeof(RuntimeObject)), ContactPoint2D_t3390240644::get_offset_of_m_OtherCollider_7() + static_cast<int32_t>(sizeof(RuntimeObject)), ContactPoint2D_t3390240644::get_offset_of_m_Rigidbody_8() + static_cast<int32_t>(sizeof(RuntimeObject)), ContactPoint2D_t3390240644::get_offset_of_m_OtherRigidbody_9() + static_cast<int32_t>(sizeof(RuntimeObject)), ContactPoint2D_t3390240644::get_offset_of_m_Enabled_10() + static_cast<int32_t>(sizeof(RuntimeObject)), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1685 = { sizeof (RaycastHit2D_t2279581989)+ sizeof (RuntimeObject), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable1685[6] = { RaycastHit2D_t2279581989::get_offset_of_m_Centroid_0() + static_cast<int32_t>(sizeof(RuntimeObject)), RaycastHit2D_t2279581989::get_offset_of_m_Point_1() + static_cast<int32_t>(sizeof(RuntimeObject)), RaycastHit2D_t2279581989::get_offset_of_m_Normal_2() + static_cast<int32_t>(sizeof(RuntimeObject)), RaycastHit2D_t2279581989::get_offset_of_m_Distance_3() + static_cast<int32_t>(sizeof(RuntimeObject)), RaycastHit2D_t2279581989::get_offset_of_m_Fraction_4() + static_cast<int32_t>(sizeof(RuntimeObject)), RaycastHit2D_t2279581989::get_offset_of_m_Collider_5() + static_cast<int32_t>(sizeof(RuntimeObject)), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1686 = { sizeof (BoxCollider2D_t3581341831), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1687 = { sizeof (U3CModuleU3E_t692745541), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1688 = { sizeof (Physics_t2310948930), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1689 = { sizeof (ContactPoint_t3758755253)+ sizeof (RuntimeObject), sizeof(ContactPoint_t3758755253 ), 0, 0 }; extern const int32_t g_FieldOffsetTable1689[5] = { ContactPoint_t3758755253::get_offset_of_m_Point_0() + static_cast<int32_t>(sizeof(RuntimeObject)), ContactPoint_t3758755253::get_offset_of_m_Normal_1() + static_cast<int32_t>(sizeof(RuntimeObject)), ContactPoint_t3758755253::get_offset_of_m_ThisColliderInstanceID_2() + static_cast<int32_t>(sizeof(RuntimeObject)), ContactPoint_t3758755253::get_offset_of_m_OtherColliderInstanceID_3() + static_cast<int32_t>(sizeof(RuntimeObject)), ContactPoint_t3758755253::get_offset_of_m_Separation_4() + static_cast<int32_t>(sizeof(RuntimeObject)), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1690 = { sizeof (Rigidbody_t3916780224), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1691 = { sizeof (Collider_t1773347010), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1692 = { sizeof (BoxCollider_t1640800422), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1693 = { sizeof (SphereCollider_t2077223608), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1694 = { sizeof (MeshCollider_t903564387), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1695 = { sizeof (CapsuleCollider_t197597763), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1696 = { sizeof (RaycastHit_t1056001966)+ sizeof (RuntimeObject), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable1696[6] = { RaycastHit_t1056001966::get_offset_of_m_Point_0() + static_cast<int32_t>(sizeof(RuntimeObject)), RaycastHit_t1056001966::get_offset_of_m_Normal_1() + static_cast<int32_t>(sizeof(RuntimeObject)), RaycastHit_t1056001966::get_offset_of_m_FaceID_2() + static_cast<int32_t>(sizeof(RuntimeObject)), RaycastHit_t1056001966::get_offset_of_m_Distance_3() + static_cast<int32_t>(sizeof(RuntimeObject)), RaycastHit_t1056001966::get_offset_of_m_UV_4() + static_cast<int32_t>(sizeof(RuntimeObject)), RaycastHit_t1056001966::get_offset_of_m_Collider_5() + static_cast<int32_t>(sizeof(RuntimeObject)), }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1697 = { sizeof (CharacterController_t1138636865), -1, 0, 0 }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1698 = { sizeof (ForceMode_t3656391766)+ sizeof (RuntimeObject), sizeof(int32_t), 0, 0 }; extern const int32_t g_FieldOffsetTable1698[5] = { ForceMode_t3656391766::get_offset_of_value___1() + static_cast<int32_t>(sizeof(RuntimeObject)), 0, 0, 0, 0, }; extern const Il2CppTypeDefinitionSizes g_typeDefinitionSize1699 = { sizeof (ControllerColliderHit_t240592346), -1, 0, 0 }; extern const int32_t g_FieldOffsetTable1699[7] = { ControllerColliderHit_t240592346::get_offset_of_m_Controller_0(), ControllerColliderHit_t240592346::get_offset_of_m_Collider_1(), ControllerColliderHit_t240592346::get_offset_of_m_Point_2(), ControllerColliderHit_t240592346::get_offset_of_m_Normal_3(), ControllerColliderHit_t240592346::get_offset_of_m_MoveDirection_4(), ControllerColliderHit_t240592346::get_offset_of_m_MoveLength_5(), ControllerColliderHit_t240592346::get_offset_of_m_Push_6(), }; #ifdef __clang__ #pragma clang diagnostic pop #endif
bbd180bbc5d214357fa84d9474567fa38e13a3fd
58cbd7a2a989a5cb683e714a53e23e5d43afebac
/src/examples/MFC_MDI_example/MDI_AppView.cpp
3359f66768671ddb319a52136681bce1462d3934
[ "BSD-2-Clause", "LicenseRef-scancode-unknown-license-reference" ]
permissive
kmatheussen/Visualization-Library
91711bb067b9bf5da4fbe59dc54cf9a618f92dda
16a3e8105ccd63cd6ca667fa061a63596102ef79
refs/heads/master
2020-12-28T19:57:33.901418
2017-07-05T09:46:22
2017-07-05T09:46:22
16,648,504
1
1
null
null
null
null
UTF-8
C++
false
false
3,079
cpp
#include "stdafx.h" #include "MDI_App.h" #include "MDI_AppDoc.h" #include "MDI_AppView.h" #include "App_RotatingTeapot.hpp" #ifdef _DEBUG #define new DEBUG_NEW #endif IMPLEMENT_DYNCREATE(CMDI_AppView, vlMFC::MDIWindow) //----------------------------------------------------------------------------- // VL: it is important to enable these messages BEGIN_MESSAGE_MAP(CMDI_AppView, vlMFC::MDIWindow) END_MESSAGE_MAP() //----------------------------------------------------------------------------- CMDI_AppView::CMDI_AppView() { // VL: add this view to the view list so that it can be updated theApp.AddView(this); } //----------------------------------------------------------------------------- CMDI_AppView::~CMDI_AppView() { // VL: add this view to the view list so that it can be updated theApp.RemoveView(this); } //----------------------------------------------------------------------------- void CMDI_AppView::OnInitialUpdate() { vlMFC::MDIWindow::OnInitialUpdate(); /* setup the OpenGL context format */ vl::OpenGLContextFormat format; format.setDoubleBuffer(true); format.setRGBABits( 8,8,8,0 ); format.setDepthBufferBits(24); format.setStencilBufferBits(8); format.setFullscreen(false); format.setMultisampleSamples(16); format.setMultisample(true); /* create a new vl::Rendering for this window */ vl::ref<vl::Rendering> rend = new vl::Rendering; rend->renderer()->setFramebuffer( this->OpenGLContext::framebuffer() ); /* black background */ rend->camera()->viewport()->setClearColor( vl::black ); /* define the camera position and orientation */ vl::vec3 eye = vl::vec3(0,10,35); // camera position vl::vec3 center = vl::vec3(0,0,0); // point the camera is looking at vl::vec3 up = vl::vec3(0,1,0); // up direction vl::mat4 view_mat = vl::mat4::getLookAt(eye, center, up); rend->camera()->setViewMatrix( view_mat ); /* create the applet to be run */ vl::ref<App_RotatingCube> applet = new App_RotatingCube; applet->setRendering(rend.get()); applet->initialize(); /* bind the applet so it receives all the GUI events related to the OpenGLContext */ this->OpenGLContext::addEventListener(applet.get()); /* Initialize the OpenGL context and window properties */ CRect r; GetWindowRect(&r); Win32Context::initWin32GLContext(NULL, "Visualization Library MFC MDI- Rotating Cube", format, /*these last for are ignored*/0, 0, r.Width(), r.Height()); } //----------------------------------------------------------------------------- // the rest is MFC stuff... //----------------------------------------------------------------------------- void CMDI_AppView::OnDraw(CDC* /*pDC*/) { CMDI_AppDoc* pDoc = GetDocument(); ASSERT_VALID(pDoc); if (!pDoc) return; } //----------------------------------------------------------------------------- CMDI_AppDoc* CMDI_AppView::GetDocument() const // non-debug version is inline { ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CMDI_AppDoc))); return (CMDI_AppDoc*)m_pDocument; } //-----------------------------------------------------------------------------
47574831ef8e9b492fce16f3bb8b73ebcf0a2f18
777a75e6ed0934c193aece9de4421f8d8db01aac
/src/Providers/UNIXProviders/RecordLogCapabilities/UNIX_RecordLogCapabilities_STUB.hxx
c6bb572f8b7e1500878eb6fceecc6aa71797928b
[ "MIT" ]
permissive
brunolauze/openpegasus-providers-old
20fc13958016e35dc4d87f93d1999db0eae9010a
b00f1aad575bae144b8538bf57ba5fd5582a4ec7
refs/heads/master
2021-01-01T20:05:44.559362
2014-04-30T17:50:06
2014-04-30T17:50:06
19,132,738
1
0
null
null
null
null
UTF-8
C++
false
false
137
hxx
#ifdef PEGASUS_OS_STUB #ifndef __UNIX_RECORDLOGCAPABILITIES_PRIVATE_H #define __UNIX_RECORDLOGCAPABILITIES_PRIVATE_H #endif #endif
7fd3c35a322af50b832cb1fd4d5864f7cc985c00
c4fe0ce75e5edc56f5616b923f36ce4fe6f92fe5
/sim/behaviourFollowHeading.h
ba62699aa0a239eee661eb7cb06082dd34cad074
[]
no_license
nicholishiell/DotsSimulation
95798c28b1d35871104f0200fbd5869f6bc0154c
ea8eda9ccd4461e3b00b1dbe71744ebf8e5dc1dc
refs/heads/master
2021-01-10T06:27:48.168361
2016-03-12T22:33:55
2016-03-12T22:33:55
53,756,446
0
0
null
null
null
null
UTF-8
C++
false
false
841
h
#ifndef FOLLOW_HEADING_H #define FOLLOW_HEADING_H #include <stdio.h> #include <math.h> #include <vector> #include "Vector2d.h" #include "sensorContact.h" #include "behaviour.h" class BehaviourFollowHeading: public Behaviour{ public: BehaviourFollowHeading(float ang, float val){ heading = ang; if(val > 1.) val = 1.; if(val < 0.) val = 0.; activationLevel = val; staticGain = 0.8; }; ~BehaviourFollowHeading(){}; // Returns a velocity vector Vector2d * GetResponse(){ return new Vector2d(heading); } // Takes in a list of vectors giving the local position of neighbours void UpdateStimulus( std::vector<SensorContact*> contacts){ } // Display information to the screen. void Print(){ printf("Follow\t%f\n",activationLevel); }; private: float heading; }; #endif
d8f264d314f5198cf885693c31b09048395b3a6e
772d932a0e5f6849227a38cf4b154fdc21741c6b
/CPP_Joc_Windows_Android/SH_Client_Win_Cpp_Cmake/App/src/graphics/renderer/geometryManager/combinedRenderable/CR_Base.cpp
9177a6893fca55ae260dbc13a42acde0f4610028
[]
no_license
AdrianNostromo/CodeSamples
1a7b30fb6874f2059b7d03951dfe529f2464a3c0
a0307a4b896ba722dd520f49d74c0f08c0e0042c
refs/heads/main
2023-02-16T04:18:32.176006
2021-01-11T17:47:45
2021-01-11T17:47:45
328,739,437
0
0
null
null
null
null
UTF-8
C++
false
false
11,247
cpp
#include "CR_Base.h" #include <graphics/geometry/data/VertexBufferObject.h> #include <graphics/geometry/data/IndexBufferObject.h> #include <graphics/geometry/data/UniformBufferObject.h> #include <graphics/renderer/renderPhase/util/IRenderable.h> #include <graphics/material/Material.h> #include <graphics/geometry/vertexAttribute/VertexAttributesList.h> #include <graphics/geometry/vertexAttribute/VertexAttribute.h> #include <graphics/model/INodePart.h> #include <graphics/renderer/geometryManager/geometryProviders/instance/GeometryProviderInstance.h> #include <graphics/renderer/geometryManager/geometryProviders/IGeometryProvider_Vertices.h> #include <graphics/renderer/geometryManager/geometryProviders/IGeometryProvider_Indices.h> #include <graphics/renderer/geometryManager/geometryProviders/IGeometryProvider_ModelTransforms.h> #include <base/MM.h> #include <base/memory/IMemoryManager.h> #include <graphics/geometry/uniformAttribute/UniformAttributesList.h> #include <memory> #include <base/list/CompositesBuffer.h> #include <cassert> #include <graphics/renderer/geometryManager/combinedRenderable/memMan/GeometryBufferManager.h> #include <graphics/renderer/geometryManager/combinedRenderable/memMan/blockMemoryManager/defragmenter/DefragmenterMigrating.h> using namespace graphics; CR_Base::CR_Base( std::shared_ptr<VertexAttributesList> vertexAttributesList, std::shared_ptr<graphics::Material> material, int maxVerticesCount, int maxIndicesCount, int maxWorldTransformsCount) : super(), vertexAttributesList(vertexAttributesList), material(material), maxVerticesCount(maxVerticesCount), maxIndicesCount(maxIndicesCount), maxWorldTransformsCount(maxWorldTransformsCount) { //void } void CR_Base::create() { super::create(); // These classes are used for gl data and are memcpy-ed directly. Make sure they don't contain extra stuff (eg. a vTable). if (sizeof(Matrix3) != 3 * 3 * 4 || sizeof(Matrix4) != 4 * 4 * 4) { assert(false); } { VertexBufferObject* bufferObject = new VertexBufferObject( vertexAttributesList, graphics::VertexBufferObject::UpdateMethod::IndividualRegions, maxVerticesCount/*initialCapacity*/, maxVerticesCount/*minCapacity*/); bufferObject->getBuffer().lockSize(); bufferObject->reservedCreate(); // trackEmptyFragmentsByCountSorting is true because the greedy_defrag uses it. mm_vertices = new GeometryBufferManager( this/*combinedRenderable*/, bufferObject, BlockMemoryManager::AllocationInsertionType::FirstAvailableSizeCheckedRegion/*allocationInsertionType*/, true/*trackEmptyFragmentsByCountSorting*/, -1/*vaByteOffset_worldTransformIndex*/, nullptr/*bufferObjectB*/, 1/*entriesPerGLEntry*/, true/*usesStableMemory*/, true/*usesRightToLeftVolatileMemory*/, new DefragmenterMigrating()/*defragmenter_volatile*/, new DefragmenterMigrating()/*defragmenter_stable*/ ); } { IndexBufferObject* bufferObject = new IndexBufferObject( graphics::IndexBufferObject::UpdateMethod::SingleRegion, maxIndicesCount/*initialCapacity*/, maxIndicesCount/*minCapacity*/ ); bufferObject->getBuffer().lockSize(); bufferObject->reservedCreate(); // Doesn't use trackEmptyFragmentsByCountSorting because allocation are in order and there is no defrag. mm_indices = new GeometryBufferManager( this/*combinedRenderable*/, bufferObject, BlockMemoryManager::AllocationInsertionType::FirstRegionMustHaveCapacity/*allocationInsertionType*/, false/*trackEmptyFragmentsByCountSorting*/, -1/*vaByteOffset_worldTransformIndex*/, nullptr/*bufferObjectB*/, 1/*entriesPerGLEntry*/, false/*usesStableMemory*/, false/*usesRightToLeftVolatileMemory*/, nullptr/*defragmenter_volatile*/, nullptr/*defragmenter_stable*/ ); } if (vertexAttributesList->hasAll(VertexAttributesList::Type::ModelAndNormalTransformIndex->typeBitGroup)) { { std::shared_ptr<UniformAttributesList> uniformAttributesList = std::make_shared<UniformAttributesList>(); uniformAttributesList->pushAttribute(UniformAttributesList::Type::modelTransform); uniformAttributesList->lock(); UniformBufferObject* bufferObject = new UniformBufferObject(uniformAttributesList, graphics::UniformBufferObject::UpdateMethod::IndividualRegions, maxWorldTransformsCount/*initialCapacity*/, maxWorldTransformsCount/*minCapacity*/ ); bufferObject->getBuffer().lockSize(); bufferObject->reservedCreate(); int vaByteOffset_worldTransformIndex = vertexAttributesList->getByteOffset(VertexAttributesList::Type::ModelAndNormalTransformIndex); UniformBufferObject* bufferObject_modelNormalTransforms = nullptr; { //asd_01;// normal transforms may not be used, need some extra check for this. Use a VertexAttributesList::Type::ModelAndNormalTransform instead of ModelAndNormalTransformIndex. std::shared_ptr<UniformAttributesList> uniformAttributesList = std::make_shared<UniformAttributesList>(); uniformAttributesList->pushAttribute(UniformAttributesList::Type::modelNormalTransform); uniformAttributesList->lock(); bufferObject_modelNormalTransforms = new UniformBufferObject( uniformAttributesList, graphics::UniformBufferObject::UpdateMethod::IndividualRegions, maxWorldTransformsCount/*initialCapacity*/, maxWorldTransformsCount/*minCapacity*/ ); bufferObject_modelNormalTransforms->getBuffer().lockSize(); bufferObject_modelNormalTransforms->reservedCreate(); } // trackEmptyFragmentsByCountSorting is true because the greedy_defrag uses it. mm_modelTransforms = new GeometryBufferManager( this/*combinedRenderable*/, bufferObject, BlockMemoryManager::AllocationInsertionType::FirstAvailableSizeCheckedRegion/*allocationInsertionType*/, true/*trackEmptyFragmentsByCountSorting*/, vaByteOffset_worldTransformIndex/*vaByteOffset_worldTransformIndex*/, bufferObject_modelNormalTransforms/*bufferObjectB*/, 1/*entriesPerGLEntry*/, true/*usesStableMemory*/, true/*usesRightToLeftVolatileMemory*/, nullptr/*defragmenter_volatile*/, new DefragmenterMigrating()/*defragmenter_stable*/ ); } { //asd_01;// normal transforms may not be used, need some extra check for this. Use a VertexAttributesList::Type::ModelAndNormalTransform instead of ModelAndNormalTransformIndex. int entriesPerGLEntry = 8; std::shared_ptr<UniformAttributesList> uniformAttributesList = std::make_shared<UniformAttributesList>(); // Use a uvec4 instead of a uint array because all gl arrays have a array that is a multiple of 4_uints. uniformAttributesList->pushAttribute(UniformAttributesList::Type::uvec4); uniformAttributesList->lock(); // Use a divide by entriesPerGLEntry vecase uvec4 are used and each vector component contains the information for 2 entries. int maxRemapingEntriesCount = Math::ceil((float)maxWorldTransformsCount / (float)entriesPerGLEntry); UniformBufferObject* bufferObject = new UniformBufferObject( uniformAttributesList, graphics::UniformBufferObject::UpdateMethod::SingleRegion, maxRemapingEntriesCount/*initialCapacity*/, maxRemapingEntriesCount/*minCapacity*/ ); bufferObject->getBuffer().lockSize(); bufferObject->reservedCreate(); // trackEmptyFragmentsByCountSorting is true because FirstAvailableSizeCheckedRegion requires it. mm_remapingModelTransformsIndices = new GeometryBufferManager( this/*combinedRenderable*/, bufferObject, BlockMemoryManager::AllocationInsertionType::FirstAvailableSizeCheckedRegion/*allocationInsertionType*/, true/*trackEmptyFragmentsByCountSorting*/, -1/*vaByteOffset_worldTransformIndex*/, nullptr/*bufferObjectB*/, entriesPerGLEntry/*entriesPerGLEntry*/, false/*usesStableMemory*/, false/*usesRightToLeftVolatileMemory*/, nullptr/*defragmenter_volatile*/, nullptr/*defragmenter_stable*/ ); } } } float CR_Base::getFillRatePercent() { return fillRatePercent; } std::shared_ptr<graphics::Material> CR_Base::getMaterial() { return material; } std::shared_ptr<VertexAttributesList> CR_Base::getVertexAttributesList() { return mm_vertices->getBufferObject_asVBO()->vertexAttributesList; } long CR_Base::getVertexAttributesBitMask() { return mm_vertices->getBufferObject_asVBO()->getVertexAttributesList()->getTypesBitMask(); } void* CR_Base::getVerticesData() { return mm_vertices->data; } VertexBufferObject* CR_Base::getVerticesVBO() { return mm_vertices->getBufferObject_asVBO(); } int CR_Base::getVerticesCount() { // This should not be needed. Implement when needed but that should never occur. throw LogicException(LOC); } void* CR_Base::getIndicesData() { return mm_indices->data; } IndexBufferObject* CR_Base::getIndicesIBO() { return mm_indices->getBufferObject_asIBO(); } int CR_Base::getIndicesOffset() { return 0; } UniformBufferObject* CR_Base::getModelTransformsUBO() { if (mm_modelTransforms == nullptr) { return nullptr; } return mm_modelTransforms->getBufferObject_asUBO(); } UniformBufferObject* CR_Base::getRemapingModelTransformsIndicesUBOOptional() { if (mm_remapingModelTransformsIndices == nullptr) { return nullptr; } return mm_remapingModelTransformsIndices->getBufferObject_asUBO(); } UniformBufferObject* CR_Base::getModelNormalTransformsUBO() { if (mm_modelTransforms == nullptr) { return nullptr; } // This can return nullptr if not existent. return mm_modelTransforms->getBufferObjectB_asUBO(); } Matrix4* CR_Base::getWorldTransformOptional() { return nullptr; } Matrix4* CR_Base::getWorldTransformMustExist() { throw LogicException(LOC); } Matrix4* CR_Base::getNormalWorldTransformOptional() { return nullptr; } Matrix4* CR_Base::getNormalWorldTransformMustExist() { throw LogicException(LOC); } Entry_RenderablesManager*& CR_Base::getEntry_renderablesManagerRef() { // This is not used by CR_Base. throw LogicException(LOC); } IGeometryProvider_Vertices* CR_Base::getGeometryProvider_Vertices() { return this; } IGeometryProvider_Indices* CR_Base::getGeometryProvider_Indices() { return this; } IGeometryProvider_ModelTransforms* CR_Base::getGeometryProvider_ModelTransforms() { return this; } void CR_Base::onMemManFillRateCHanged() { fillRatePercent = mm_vertices->fillRatePercent >= mm_indices->fillRatePercent ? mm_vertices->fillRatePercent : mm_indices->fillRatePercent; if (mm_modelTransforms != nullptr && mm_modelTransforms->fillRatePercent > fillRatePercent) { fillRatePercent = mm_modelTransforms->fillRatePercent; } } void CR_Base::tickDefrag() { mm_vertices->tickDefrag(); mm_indices->tickDefrag(); if (mm_modelTransforms != nullptr) { mm_modelTransforms->tickDefrag(); } if (mm_remapingModelTransformsIndices != nullptr) { mm_remapingModelTransformsIndices->tickDefrag(); } } void CR_Base::dispose() { vertexAttributesList = nullptr; material = nullptr; if(mm_vertices != nullptr) { delete mm_vertices; mm_vertices = nullptr; } if (mm_indices != nullptr) { delete mm_indices; mm_indices = nullptr; } if (mm_modelTransforms != nullptr) { delete mm_modelTransforms; mm_modelTransforms = nullptr; } if (mm_remapingModelTransformsIndices != nullptr) { delete mm_remapingModelTransformsIndices; mm_remapingModelTransformsIndices = nullptr; } super::dispose(); } CR_Base::~CR_Base() { //void }
cadc090247fecae7e78601335947bede25ab84e1
8dc84558f0058d90dfc4955e905dab1b22d12c08
/content/browser/android/content_video_view.h
e070327c1a707dcce4e41481afb096b57ef4caed
[ "LicenseRef-scancode-unknown-license-reference", "BSD-3-Clause" ]
permissive
meniossin/src
42a95cc6c4a9c71d43d62bc4311224ca1fd61e03
44f73f7e76119e5ab415d4593ac66485e65d700a
refs/heads/master
2022-12-16T20:17:03.747113
2020-09-03T10:43:12
2020-09-03T10:43:12
263,710,168
1
0
BSD-3-Clause
2020-05-13T18:20:09
2020-05-13T18:20:08
null
UTF-8
C++
false
false
3,949
h
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef CONTENT_BROWSER_ANDROID_CONTENT_VIDEO_VIEW_H_ #define CONTENT_BROWSER_ANDROID_CONTENT_VIDEO_VIEW_H_ #include <jni.h> #include "base/android/jni_weak_ref.h" #include "base/android/scoped_java_ref.h" #include "base/macros.h" #include "base/memory/weak_ptr.h" #include "ui/gl/android/scoped_java_surface.h" namespace gfx { class Size; } namespace content { class WebContents; // Native mirror of ContentVideoView.java. This class is responsible for // creating the Java video view and passing changes in player status to it. // This class must be used on the UI thread. class ContentVideoView { public: // Returns the singleton object or NULL. static ContentVideoView* GetInstance(); class Client { public: Client() {} // For receiving notififcations when the SurfaceView surface is created and // destroyed. When |surface.IsEmpty()| the surface was destroyed and // the client should not hold any references to it once this returns. virtual void SetVideoSurface(gl::ScopedJavaSurface surface) = 0; // Called after the ContentVideoView has been hidden because we're exiting // fullscreen. virtual void DidExitFullscreen(bool release_media_player) = 0; protected: ~Client() {} DISALLOW_COPY_AND_ASSIGN(Client); }; explicit ContentVideoView(Client* client, WebContents* web_contents, const base::android::JavaRef<jobject>& embedder, const gfx::Size& video_natural_size); ~ContentVideoView(); // To open another video on existing ContentVideoView. void OpenVideo(); // Display an error dialog to the user. void OnMediaPlayerError(int error_type); // Update the video size. void OnVideoSizeChanged(int width, int height); // Exit fullscreen and notify |client_| with |DidExitFullscreen|. void ExitFullscreen(); // Returns the corresponding ContentVideoView Java object if any. base::android::ScopedJavaLocalRef<jobject> GetJavaObject(JNIEnv* env); // Called by the Java class when the surface changes. void SetSurface(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj, const base::android::JavaParamRef<jobject>& surface); // Called when the Java fullscreen view is destroyed. If // |release_media_player| is true, |client_| needs to release the player // as we are quitting the app. void DidExitFullscreen(JNIEnv*, const base::android::JavaParamRef<jobject>&, jboolean release_media_player); // Functions called to record fullscreen playback UMA metrics. void RecordFullscreenPlayback(JNIEnv*, const base::android::JavaParamRef<jobject>&, bool is_portrait_video, bool is_orientation_portrait); void RecordExitFullscreenPlayback( JNIEnv*, const base::android::JavaParamRef<jobject>&, bool is_portrait_video, long playback_duration_in_milliseconds_before_orientation_change, long playback_duration_in_milliseconds_after_orientation_change); private: // Creates the corresponding ContentVideoView Java object. JavaObjectWeakGlobalRef CreateJavaObject( WebContents* web_contents, const base::android::JavaRef<jobject>& j_content_video_view_embedder, const gfx::Size& video_natural_size); Client* client_; // Weak reference to corresponding Java object. JavaObjectWeakGlobalRef j_content_video_view_; // Weak pointer for posting tasks. base::WeakPtrFactory<ContentVideoView> weak_factory_; DISALLOW_COPY_AND_ASSIGN(ContentVideoView); }; } // namespace content #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIDEO_VIEW_H_
207c2e44b1bb118f78860fd4f9c07af4441603fe
56b8b3eb6011e54c16b7211224b79f8daa33139a
/Algorithms/Tasks.2001.2500/2227.EncryptAndDecryptStrings/solution.cpp
c8ee48bc42c0052a9d5d4579a14e416db86f7556
[ "MIT" ]
permissive
stdstring/leetcode
98aee82bc080705935d4ce01ff1d4c2f530a766c
60000e9144b04a2341996419bee51ba53ad879e6
refs/heads/master
2023-08-16T16:19:09.269345
2023-08-16T05:31:46
2023-08-16T05:31:46
127,088,029
0
0
MIT
2023-02-25T08:46:17
2018-03-28T05:24:34
C++
UTF-8
C++
false
false
4,231
cpp
#include <algorithm> #include <deque> #include <unordered_map> #include <vector> #include "gtest/gtest.h" namespace { class Encrypter { public: Encrypter(std::vector<char> const &keys, std::vector<std::string> const &values, std::vector<std::string> const &dictionary) { // encrypt map for (size_t index = 0; index < keys.size(); ++index) { _encryptMap.emplace(keys[index], values[index]); _decryptMap[values[index]].push_back(keys[index]); } for (std::string const &word : dictionary) generateTrieEntry(word); } std::string encrypt(std::string const &word1) { std::string result; result.reserve(2 * word1.size()); for (char ch : word1) { auto iterator = _encryptMap.find(ch); result.append(iterator == _encryptMap.cend() ? "" : iterator->second); } return result; } int decrypt(std::string const &word2) { std::deque<int> nodes; nodes.push_back(0); for (size_t index = 0; index < word2.size(); index += 2) { std::string pair(word2.substr(index, 2)); std::vector<char> const &chars(_decryptMap[pair]); const size_t portionSize = nodes.size(); for (size_t portionIndex = 0; portionIndex < portionSize; ++portionIndex) { int node = nodes.front(); nodes.pop_front(); if (node == WordEnd) continue; node = std::abs(node); for (const char ch : chars) { const size_t charIndex = ch - AlphabetStart; if (_trie[node][charIndex] != 0) nodes.push_back(_trie[node][charIndex]); } } } return static_cast<int>(std::count_if(nodes.cbegin(), nodes.cend(), [](int node){ return node < 0; })); } private: static constexpr size_t AlphabetSize = 26; static constexpr size_t AlphabetStart = 'a'; static constexpr int WordEnd = INT_MIN; std::unordered_map<char, std::string> _encryptMap; std::unordered_map<std::string, std::vector<char>> _decryptMap; std::vector<std::vector<int>> _trie; void generateTrieEntry(std::string const &word) { size_t node = 0; // non last chars for (size_t index = 0; index < word.size() - 1; ++index) { if (node == _trie.size()) _trie.emplace_back(AlphabetSize, 0); const size_t charIndex = word[index] - AlphabetStart; const int trieCellValue = _trie[node][charIndex]; if ((trieCellValue == 0) || (trieCellValue == WordEnd)) { _trie[node][charIndex] = (trieCellValue == 0 ? 1 : -1) * static_cast<int>(_trie.size()); node = _trie.size(); } else node = std::abs(trieCellValue); } // last char if (node == _trie.size()) _trie.emplace_back(AlphabetSize, 0); const size_t charIndex = word.back() - AlphabetStart; const int trieCellValue = _trie[node][charIndex]; if (trieCellValue == 0) _trie[node][charIndex] = WordEnd; if (trieCellValue > 0) _trie[node][charIndex] = -trieCellValue; } }; } namespace EncryptAndDecryptStringsTask { TEST(EncryptAndDecryptStringsTaskTests, Examples) { Encrypter encrypter({'a', 'b', 'c', 'd'}, {"ei", "zf", "ei", "am"}, {"abcd", "acbd", "adbc", "badc", "dacb", "cadb", "cbda", "abad"}); ASSERT_EQ("eizfeiam", encrypter.encrypt("abcd")); ASSERT_EQ(2, encrypter.decrypt("eizfeiam")); } TEST(EncryptAndDecryptStringsTaskTests, FromWrongAnswers) { Encrypter encrypter({'a', 'b', 'c', 'z'}, {"aa", "bb", "cc", "zz"}, {"aa", "aaa", "aaaa", "aaaaa", "aaaaaaa"}); ASSERT_EQ(1, encrypter.decrypt("aaaa")); ASSERT_EQ(0, encrypter.decrypt("aa")); ASSERT_EQ(1, encrypter.decrypt("aaaa")); ASSERT_EQ(1, encrypter.decrypt("aaaaaaaa")); ASSERT_EQ(1, encrypter.decrypt("aaaaaaaaaaaaaa")); ASSERT_EQ(0, encrypter.decrypt("aefagafvabfgshdthn")); } }
2458a5a968c2040173b1c9bd23349b78adee74d8
05a1eaef13d937c181c079cf35c774367dcfb876
/boardview.h
fa15fb936752224735a4de584ca4268054f4f726
[]
no_license
postep/pain_qt
b205a09df203178a4e7ea3941361c774d4d7d7fb
cd0cf4666c17eae8ec2fe03a2624e63e7d13fb9d
refs/heads/master
2020-03-10T19:38:03.564418
2018-05-04T10:08:33
2018-05-04T10:08:33
129,551,949
0
0
null
null
null
null
UTF-8
C++
false
false
255
h
#ifndef BOARDVIEW_H #define BOARDVIEW_H #include <QTableView> #include <QPaintEvent> #include <QWidget> class BoardView : public QTableView { public: BoardView(QWidget* parent=nullptr); void paintEvent(QPaintEvent *e); }; #endif // BOARDVIEW_H
6201100a82fa94870bbe2ce04e7dabc829149b41
4f2ad904aed18acb06a36d0e4c09f37d55d305a7
/A1063_30.cpp
b9a80d198b21cfa596073b9569c185a781cfbba4
[]
no_license
TwinterT/PAT-programs
262beda1eff3e021977ed9abd7f33ec8aa83648e
a8c876124f6f043111947e372ffe8b9146aab9d3
refs/heads/master
2020-03-28T22:51:33.256430
2018-09-18T09:26:12
2018-09-18T09:26:12
null
0
0
null
null
null
null
UTF-8
C++
false
false
745
cpp
#include<stdio.h> #include<set> #include<algorithm> using namespace std; set<int> data[55]; int n,k; void judge(int a,int b) { double ans=0; set<int>::iterator it_a=data[a].begin(),it_b=data[b].begin(); while(it_a!=data[a].end()&&it_b!=data[b].end()) { if(*it_a<*it_b)it_a++; else if(*it_a>*it_b)it_b++; else { it_a++; it_b++; ans++; } } double res=ans/(data[a].size()+data[b].size()-ans)*100.0; printf("%.1f%%\n",res); } int main() { scanf("%d",&n); for(int i=1;i<=n;i++) { int num; scanf("%d",&num); for(int j=0;j<num;j++) { int temp; scanf("%d",&temp); data[i].insert(temp); } } scanf("%d",&k); for(int i=0;i<k;i++) { int u,v; scanf("%d %d",&u,&v); judge(u,v); } return 0; }
e44122e5107059c46008f73d2441ba9900e5af95
9d11dc032a194c3efe365660f26e64f45c301f9d
/Utilities/WindowsCounter.cpp
8b8036e07b68757099692bc1b74f685abb1f0323
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
Kilzeus/CGE
cdb65b722744927f94c1ce4be6ae894267691200
146aa12e426226479677c9c04155adeae5cbf440
refs/heads/master
2021-01-16T17:38:59.896610
2017-08-18T14:58:18
2017-08-18T14:58:18
100,007,291
0
0
null
null
null
null
UTF-8
C++
false
false
468
cpp
#include "WindowsCounter.h" #include<Windows.h> WindowsCounter::WindowsCounter() :timeDelta(0.) { QueryPerformanceFrequency(&frequency); } double WindowsCounter::getTimeDelta() { return timeDelta; } void WindowsCounter::start() { QueryPerformanceCounter(&startTime); } void WindowsCounter::end() { QueryPerformanceCounter(&endTime); LONGLONG interval = endTime.QuadPart - startTime.QuadPart; timeDelta = (double)interval / (double)frequency.QuadPart; }
aba072db979c75ff8e6ec0dde81733820f696bf5
d84852c821600c3836952b78108df724f90e1096
/exams/2559/02204111/2/midterm/3_2_835_5720550551.cpp
6e76de396caa7b077185cfe4c41b59a4a8abe1d0
[ "MIT" ]
permissive
btcup/sb-admin
4a16b380bbccd03f51f6cc5751f33acda2a36b43
c2c71dce1cd683f8eff8e3c557f9b5c9cc5e168f
refs/heads/master
2020-03-08T05:17:16.343572
2018-05-07T17:21:22
2018-05-07T17:21:22
127,944,367
0
1
null
null
null
null
UTF-8
C++
false
false
232
cpp
//5720550551 marrilyn petsri #include <iostream> using namespace std; int main() float n cout<<"Enter electricity cost per unit (bath): } system ("pause"); Return 0;
e3f7f3c3713f1f383f4c65cf3a29c34c52e56d4a
9aa309ff24ebd7ae458cc24e64171ebb63990327
/Test/Thingwala/Thing.h
dc2e7583c455ec388cb2111c5e4cadf7aa74357f
[]
no_license
Taha-Imtiaz/OOP-Work
985c71095ce30ce2965604ec55c8cf727381aa95
fdec4b62ae55572c65cf93cd92b2ae872060c9b7
refs/heads/master
2020-11-24T05:35:18.335426
2019-12-14T07:23:38
2019-12-14T07:23:38
227,981,811
0
0
null
null
null
null
UTF-8
C++
false
false
763
h
#include<iostream> using namespace std; class Thing { private: int *x; int y,z; public: ~Thing(){ delete x; x=nullptr; } Thing() { x=new int; *x=0; this->y=0; this->z=0; } Thing(int a, int b , int c) { x=new int; *x=a; this->y=b; this->z=c; } Thing (Thing &var) { x=new int; *x=var.setpointer(); this->y=var.y; this->z=var.z; } int setpointer() { return *x; } Thing operator =(Thing &t1) { x=new int; *x=*(t1.x); this->y=t1.y; this->z=t1.z; return *this; } void set(int a, int b , int c) { *x=a; this->y=b; this->z=c; } void display() { cout<<*x<<endl; cout<<this->y<<endl; cout<<this->z<<endl<<endl; } };
081783195230585e0ac62351b4eddd24abf5e074
f33579caed7ac3181b63e7cf2822edc157b11772
/AdoDbRecordset.h
a94507e443715fd7fe5012b637a060ae03c5dd19
[]
no_license
githubno1/DbDriver
60b83af1bfd35a50635a650fbb177088da2ef406
75b17954c3a72588a215264969b5a6f090863bdf
refs/heads/master
2020-04-10T03:16:04.429804
2014-03-21T07:11:25
2014-03-21T07:11:25
null
0
0
null
null
null
null
GB18030
C++
false
false
2,850
h
#pragma once #include "SqlDriver.h" class COMMON_DBLIB CAdoRecordset:public CDbRecordSet { public: CAdoRecordset(_RecordsetPtr pRecordset); ~CAdoRecordset(void); public: //取字段个数 int GetFieldNum(); // 字段名 string GetFieldName(long lIndex); int GetIndex(char* strFieldName); // 字段数据类型 int GetFieldType(long lIndex); int GetFieldType(char* lpszFieldName); // 字段定义长度 int GetFieldDefineSize(long lIndex); int GetFieldDefineSize(char* lpszFieldName); //字段判断是否为NULL bool IsFieldNull(char* lpFieldName); bool IsFieldNull(int nIndex); public: bool IsNull(); bool IsEmpty(); bool IsNullEmpty(); void clear(); //判断执行是否成功 virtual bool IsSuccess(); public: bool IsEOF(); bool IsBOF(); void MoveFirst() ; void MoveNext(); void MovePrevious() ; void MoveLast() ; //设置光标位置 long GetCursorPos(); long SetCursorPos(long i); //取结果集行数 int GetRowNum(); //获取数据实际长度 int GetValueSize(long lIndex); int GetValueSize(char* lpszFieldName); bool GetValue(int nColumns, _variant_t& vt, bool &nIsNull ); bool GetValue(char* strFieldName, _variant_t& vt, bool &nIsNull ); bool GetValue(int nColumns, bool& bValue, bool &nIsNull ); bool GetValue(char* strFieldName, bool& bValue, bool &nIsNull ); bool GetValue(int nColumns, byte& nValue, bool &nIsNull ); bool GetValue(char* strFieldName, byte& nValue, bool &nIsNull ); bool GetValue(int nColumns, short& nValue, bool &nIsNull ); bool GetValue(char* strFieldName, short& fValue, bool &nIsNull ); bool GetValue(int nColumns, int& nValue, bool &nIsNull ); bool GetValue(char* strFieldName, int& nValue, bool &nIsNull ); bool GetValue(int nColumns, long& lValue, bool &nIsNull ); bool GetValue(char* strFieldName, long& lValue, bool &nIsNull ); bool GetValue(int nColumns, __int64& lValue, bool &nIsNull ); bool GetValue(char* strFieldName, __int64& lValue, bool &nIsNull ); bool GetValue(int nColumns, float& fValue, bool &nIsNull ); bool GetValue(char* strFieldName, float& fValue, bool &nIsNull ); bool GetValue(int nColumns, double& dValue, bool &nIsNull ); bool GetValue(char* strFieldName, double& dValue, bool &nIsNull ); bool GetValue(int nColumns, string& strValue, bool &nIsNull ); bool GetValue(char* strFieldName, string& strValue, bool &nIsNull ); bool GetValue(int nColumns, char* strValue, short len,bool &nIsNull); bool GetValue(char* strFldName, char* strValue, short len, bool &nIsNull); bool GetValue(int nColumns, tm& time, bool &nIsNull ); bool GetValue(char* strFieldName, tm& time, bool &nIsNull ); bool GetValue(int nColumns, byte** bDat, long *len, bool &nIsNull ); bool GetValue(char* strFieldName, byte** bDat, long *len, bool &nIsNull ); private: _RecordsetPtr m_pRecordset; byte* m_blobData; };
4208ec2681aba4b02254ee8a3c5d13709f44e70d
821fda967371258bf158e84ce986d8de57236b3a
/heap/monton.h
56436e76ecbe3c23b554b7abdc3aa694307a35c1
[]
no_license
Pedro-Hdez/Estructura-de-datos
5f74172ef6d8b10e43785509f0cd2c0ade959b82
eafe696abdbaad485e1f5cdbe93b13555760cc96
refs/heads/master
2023-03-03T07:01:54.287877
2021-02-16T01:29:51
2021-02-16T01:29:51
175,328,825
0
0
null
null
null
null
ISO-8859-1
C++
false
false
15,808
h
/* Nombre: monton.h Autor: Pedro Andrés Hernández Amador. Fecha: mayo del 2019 Descripción: Archivo de cabecera que contiene todas las funciones, clases y estructuras que gestionan el funcionamiento de un montón (Min Heap). */ #ifndef MONTON_H_INCLUDED #define MONTON_H_INCLUDED #include <iostream> #include <string> #include <sstream> using namespace std; /* Esta estructura representa un nodo del árbol. ATRIBUTOS los punteros: padre, hder, hizq son para conectar los nodos en el árbol los punteros: anterior, siguiente son para conectar los nodos en la lista doble la variable valor es la que almacena el valor del nodo. */ struct nodo{ nodo *padre, *hder, *hizq, *anterior, *siguiente; int valor; }; /*******************************************************************************************************************************/ /* Esta clase representa a un montón (MIN HEAP). Esta estructura de datos es un árbol binario casi completo y tiene la característica de que cada nodo padre es menor a cualquiera de sus dos hijos ATRIBUTOS: donde: Padre del nodo en donde se agregará/borrará un hijo. raiz: raiz del árbol principio: principio de la lista ordenada. Coincide con la raiz. fin: último elemento de la lista ordenada. como: indica cómo está colgado un nodo en el árbol FUNCIONES: monton(): constructor ~monton(): destructor agregar(int a): agrega un nodo al árbol sacar(): saca la raíz del árbol pintar(): imprime en pantalla el árbol subir(): Intercambia un nodo con su padre mientras el padre sea mayor bajar(): intercambia un nodo con alguno de sus hijos hasta que los dos hijos de éste sean mayores que él. intercambiar(nodo *p, nodo *q): intercambia dos nodos del árbol intercambiarVecinos(nodo *p1, nodo *q1): intercambia los punteros (vecinos) de dos nodos en el árbol */ class monton{ nodo *raiz, *principio, *fin, *donde; int como; enum como {HIZQ, HDER}; public: monton(); ~monton(); int agregar(int a); int sacar(); void pintar(); void subir(nodo *p); void bajar(nodo *p); void intercambiar(nodo *p, nodo *q); void intercambiarVecinos(nodo *p1, nodo *q1); }; /*******************************************************************************************************************************/ /* Esta función es el constructor de la clase monton. */ monton::monton(){ raiz = principio = fin = donde = NULL; como = 999; } /*******************************************************************************************************************************/ /* Esta función agrega un número al montón. PARÁMETROS a: el número a agregar. Regresa un 1 si se pudo agregar el número. */ int monton::agregar(int a){ //Se crea un nuevo nodo y se inicializan todos sus atributos (se agrega a al valor del nodo). nodo *p; p = new nodo; p->valor = a; p->hizq = p->hder = p->padre = p->anterior = p->siguiente = NULL; /* Si la raiz es NULL, entonces p es el primer elemento en entrar al heap, por ello todos los apuntadores caen sobre él; además 'como' es igual HIZQ porque el siguiente elemento en entrar al montón se agregará como hijo izquierdo. */ if(raiz == NULL){ raiz = principio = fin = donde = p; como = HIZQ; return(1); } /* Si 'como' = HIZQ, entonces p se cuelga como hijo izquierdo del 'donde'; además, el 'donde' se convierte en el padre de p. Finalmente, 'como' ahora será HDER porque esta variable alterna cada vez entre HIZQ y HDER */ else if(como == HIZQ){ donde->hizq = p; p->padre = donde; como = HDER; } /* si 'como' = HDER, entonces p se cuelga como hijo derecho del 'donde'; además, el 'donde' se convierte en el padre de p. 'como' se convierte en HDER porque 'como' siempre está alternando y, como ya se acabó el espacio en dicho nodo padre, entonces el 'donde' = al siguiente nodo de la lista. */ else{ donde->hder = p; p->padre = donde; como = HIZQ; donde = donde -> siguiente; /*POSIBLE ERROR!*/ } //Se agrega el nodo 'p' al final de la lista doble p->anterior = fin; fin->siguiente = p; p->siguiente = NULL; fin = p; subir(p); // SE INTERCAMBIA P EN CASO DE SER NECESARIO return(1); } /*******************************************************************************************************************************/ /* Esta función sube un nodo hasta que el padre de éste sea menor que él PARÁMETROS p: dirección del nodo a subir */ void monton::subir(nodo *p){ while( p->padre != NULL && p->valor < (p->padre->valor) ){ intercambiar(p, p->padre); } } /*******************************************************************************************************************************/ /* Esta función intercambia dos nodos dentro del montón y dentro de la lista ordenada. PARÁMETROS p: la dirección del primer nodo q: la dirección del segundo nodo */ void monton::intercambiar(nodo *p, nodo *q){ nodo *r; //Caso en el que q está arriba if(p->padre == q){ //Caso en el que q está arriba if(q->hder == p){ //p cuelga como hijo derecho intercambiarVecinos(p, q); p->hder = q; q->padre = p; } else{ //p cuelga como hijo izquierdo intercambiarVecinos(p, q); p->hizq = q; q->padre = p; } //Se conectan los padres if(q->padre == NULL) raiz = q; else{ if(q->padre->hder == q) q->padre->hder = q; else q->padre->hizq = q; } if(p->padre == NULL) raiz = p; else{ if(p->padre->hder == q) p->padre->hder = p; else p->padre->hizq = p; } } //Caso en el que p está arriba else if(q->padre == p){ if(p->hder == q){ //q cuelga como hijo derecho intercambiarVecinos(p, q); //Arreglas a mano los punteros en conflicto q->hder = p; p->padre = q; } else{ //q cuelga como hijo izquierdo intercambiarVecinos(p, q); q->hizq = p; p->padre = q; } //Se conectan los padres if(q->padre == NULL) raiz = q; else{ if(q->padre->hder == p) q->padre->hder = q; else q->padre->hizq = q; } if(p->padre == NULL) raiz = p; else{ if(p->padre->hder == p) p->padre->hder = p; else p->padre->hizq = p; } } //CASO GENERAL else{ intercambiarVecinos(p, q); //Se conectan los padres if(q->padre == NULL) raiz = q; else{ if(q->padre->hder == p) q->padre->hder = q; /********/ //DUDA!!!!! else q->padre->hizq = q; } if(p->padre == NULL) raiz = p; else{ if(p->padre->hder == q) p->padre->hder = p; else p->padre->hizq = p; } } //SE ARREGLAN LOS VECINOS //Se conectan los hijoz. if(q -> hizq != NULL) q->hizq->padre = q; if(q->hder != NULL) q->hder->padre = q; if(p->hizq != NULL) p->hizq ->padre = p; if(p->hder != NULL) p->hder->padre = p; //Se arreglan los vecinos en la lista if(p->anterior == q){ r = q->anterior; p->anterior = r; q->anterior = p; r = p->siguiente; q->siguiente = r; p->siguiente = q; if(p->anterior == NULL){ principio = p; } else{ p->anterior->siguiente = p; } if(q->siguiente == NULL){ fin = q; } else{ q->siguiente->anterior = q; } } else if(q->anterior == p){ r = p->anterior; q->anterior = r; p->anterior = q; r = q->siguiente; p->siguiente = r; q->siguiente = p; if(q->anterior == NULL){ principio = q; } else{ q->anterior->siguiente = q; } if(p->siguiente == NULL){ fin = p; } else{ p->siguiente->anterior = p; } } else{ //CASO GENERAL r = p->anterior; p->anterior = q->anterior; q->anterior = r; r = p->siguiente; p->siguiente = q->siguiente; q->siguiente = r; if(p->anterior == NULL){ principio = p; } else{ p->anterior->siguiente = p; } if(q->anterior == NULL){ principio = q; } else{ q->anterior->siguiente = q; } if(p->siguiente == NULL){ fin = p; } else{ p->siguiente->anterior = p; } if(q->siguiente == NULL){ fin = q; } else{ q->siguiente->anterior = q; } } if(donde == p){ donde = q; return; } if(donde == q){ donde = p; return; } } /*******************************************************************************************************************************/ /* Esta función imprime en pantalla la información del árbol */ void monton::pintar(){ std::string padre = ""; std::string hizq = ""; std::string hder = ""; std::string valor = ""; stringstream ss; nodo *p; p = principio; if(p == NULL){ cout << "ARBOL VACIO"; return; } while(p){ if(raiz == NULL){ valor = "Arbol vacío"; } else{ ss << p->valor; valor = ss.str(); } ss.str(""); if(p->padre == NULL){ padre = "null"; } else{ ss << p->padre->valor; padre = ss.str(); } ss.str(""); if(p->hizq == NULL){ hizq = "null"; } else{ ss << p->hizq->valor; hizq = ss.str(); } ss.str(""); if(p->hder == NULL){ hder = "null"; } else{ ss << p->hder->valor; hder = ss.str(); } ss.str(""); cout << "NODO: " << valor << endl << "PADRE: " << padre << endl << "HIJO IZQU: " << hizq << endl << "HIJO DER: " << hder << endl << endl; p = p->siguiente; } } /*******************************************************************************************************************************/ /* Esta función es el destructor de la clase montón */ monton::~monton(){ nodo *p; while(principio){ p = principio; principio = p -> siguiente; delete p; } donde = raiz = principio = fin = NULL; como = 999; return; } /*******************************************************************************************************************************/ /* Esta función intercambia un nodo con alguno de sus hijos mientras éste sea mayor que ellos. PARÁMETROS p: la dirección del nodo a bajar */ void monton::bajar(nodo *p){ nodo *q; //VAS A BAJAR MIENTRAS TENGAS HIJOS, SI NO TIENE, ENTONCES NO TENDRÁ NODO CON EL CUÁL INTERCAMBIARSE while(p->hizq != NULL || p->hder != NULL){ if (p->hder != NULL && p->hizq == NULL) q = p->hder; //Si el hijo derecho existe y el izquierdo no, entonces se toma el hijo derecho. else if(p->hder == NULL && p->hizq != NULL) q = p->hizq; //Si el hijo derecho no existe y el izquierdo sí, entonces se toma el hijo izquierdo. else{ //CASO EN EL QUE LOS DOS HIJOS EXISTEN if(p->hder->valor < p->hizq->valor) q = p->hder; //Si el hder es menor al hizq, entonces se toma como candidato al hder. else q = p->hizq; //Si el hizq es menor al hder, entonces se toma como candidato al hizq. } //AHORA SE DECIDE SI SE BAJA EL NODO O NO if(p->valor < q->valor) return; //Si el valor de p ya es menor que el candidato, entonces significa que ya está todo acomodado y se acaba el proceso. else intercambiar(p, q); //Si el valor de p sigue siendo mayor que el candidato (q), entonces se intercambia. } } /*******************************************************************************************************************************/ /* Esta función saca a la raíz del árbol, es decir, el elemento más pequeño del heap. Regresa el valor de la raíz. */ int monton::sacar(){ nodo *p; int valor; //CASO CUANDO EL MONTÓN ESTÁ VACÍO, ENTONCES SE REGRESA UN VALOR 'VACIO' if(raiz == NULL) return(999); //CASO CUANDO EL MONTÓN ÚNICAMENTE CUENTA CON UN ELEMENTO if(principio == fin){ p = principio; //te pones en el principio valor = p->valor; //Guardas el valor del nodo raiz = donde = NULL; //Desconectas del árbol principio = fin = NULL; //Desconectas de la lista doble delete(p); //Eliminas el nodo return(valor); //Regresas el valor del nodo. } else{ //CASO CUANDO EL MONTÓN TIENE MÁS DE UN ELEMENTO. valor = raiz->valor; //Como se saca de la raíz, entonces guardas el valor de ésta para regresarlo cuando todo el proceso acabe. intercambiar(principio, fin); //Intercambias el principio por el fin. p = fin; //Te pones en el fin para borrarlo //DESCONECTAS A P (fin) DEL ÁRBOL //Haces NULL el lado del padre en el que p está conectado y reajustas las variables 'como' y 'donde' if(p->padre->hizq == p){ p->padre->hizq = NULL; como = HIZQ; donde = p->padre; } else{ p->padre->hder = NULL; como = HDER; donde = p->padre; } //DESCONECTAS A P (fin) DE LA LISTA DOBLE //Conviertes al penúltimo en el 'fin' p->anterior->siguiente = NULL; fin = p->anterior; delete(p); //Borras el nodo //COMIENZAS A BAJAR LA RAÍZ (principio) PARA AJUSTAR EL MONTÓN p = principio; //Te pones en el principio / raiz bajar(p); //Bajas este nodo hasta donde corresponda return(valor); //Regresas el valor que tenía el nodo que sacaste. } } /*******************************************************************************************************************************/ /* Esta función intercambia los vecinos del árbol (padres e hijos) entre dos nodos PARÁMETROS: p1: la dirección del primer nodo q1: la dirección del segundo nodo */ void monton::intercambiarVecinos(nodo *p1, nodo *q1){ nodo *p, *q, *r; //Copias p = p1; q = q1; //Intercambias los padres r = p->padre; p->padre = q->padre; q->padre = r; //Intercambias los hijos derechos r = p->hder; p->hder = q->hder; q->hder = r; //Intercambias los hijos izquierdos r = p->hizq; p->hizq = q->hizq; q->hizq = r; } #endif // MONTON_H_INCLUDED
9f28142e6d9f2f62c1d01a79101457c1f4ace68a
6b2a8dd202fdce77c971c412717e305e1caaac51
/solutions_5636311922769920_1/C++/limki/gold.cpp
b588ac76fbbcd498e74ec1726b2d11105fbcfde2
[]
no_license
alexandraback/datacollection
0bc67a9ace00abbc843f4912562f3a064992e0e9
076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf
refs/heads/master
2021-01-24T18:27:24.417992
2017-05-23T09:23:38
2017-05-23T09:23:38
84,313,442
2
4
null
null
null
null
UTF-8
C++
false
false
818
cpp
#include <cstdio> #include <cstring> using namespace std; int T,K,C,S,j; long long rv; int main(){ scanf("%d",&T); for(int t=1;t<=T;t++){ scanf("%d %d %d",&K,&C,&S); printf("Case #%d:",t); if (C*S<K){ printf(" IMPOSSIBLE\n"); continue; } for (int i=C;i<K+C;i+=C){ if (i<=K) j=i; else j=K; rv=0; for (int d=0;d<C && d<K;d++){ rv = rv*K + j-d-1; } printf(" %lld",rv+1); } printf("\n"); } } /* C = 2 K = 3 XYZ -> XYXYYYZZZ i = 2 j = 2 -> 0 1 => 1*(K^(C-1)) + 0*(K^(C-2)) = 1*K + 0*1 = 3 (4) i = 4 j = 3 -> 1 2 => 2*K + 1*1 = 7 (8) i=6>=5 C = 3 K =2 XY -> XXYY -> XXXXYYYY i = 3 j = 2 -> 0 1 = 0 0 1 => 0*K^2 + 0*K + 1 = 1 (2) i = 6>=5 C = 3 K = 3 XYZ -> XXXYYYZZZ -> XXXXXXXXXYYYYYYYYYZZZZZZZZZ i = 3 j = 3 -> 012 => 2*K^2 + 1*K + 0 = 21 (22) i=6 >= 6 012 345 */
3dcaaac55f8e5512d815729fce5a9d2af0c791f7
a6017b7d1ee645d15d592c74a9b720a224ae20bf
/src/geometry/Geometry.h
be7ef89d56862bf9d67ef8c9eb1353dff3ffb435
[]
no_license
Jon0/animation
0f630680be0a98fc2176c86216257bf3d0a4652c
709277dfaf64ccede2ccb0db4d2b94b0d88253f6
refs/heads/master
2021-01-23T02:35:30.348284
2018-03-10T07:03:21
2018-03-10T07:03:21
12,342,313
0
0
null
null
null
null
UTF-8
C++
false
false
672
h
/* * Geometry.h * * Created on: 12/09/2013 * Author: remnanjona */ #include <glm/glm.hpp> #include "../buffer/VertexBuffer.h" #include "../shader/UBO.h" #include "../shader/ShaderStructs.h" #ifndef GEOMETRY_H_ #define GEOMETRY_H_ namespace std { class Geometry { public: virtual ~Geometry() {} virtual void init(VertexBuffer *) = 0; virtual void draw() = 0; virtual void drawDebug() = 0; virtual glm::mat4 transform() = 0; virtual void setTransform(glm::mat4) = 0; virtual UBO<MaterialProperties> *materialUBO() = 0; virtual MaterialProperties &material() = 0; virtual void updateMaterial() = 0; }; } /* namespace std */ #endif /* GEOMETRY_H_ */
f6d3d6c3d3e8ae6a3e41611f610e3c6f094d9ea2
bcfb2df6ca6ca4aee8a291df12c4ecef5f5baceb
/ByXiaZhuofan/EDCHost19/main.cpp
8428069cd00f3c50085eab0808c50b0fc3ba526f
[]
no_license
HuangMT/EDC19_host_computer
0e99ece9810bfefaf5520bae8234b42e095dba11
35f187a2684b5b44c2aead39a5508c989863caa4
refs/heads/master
2021-01-21T06:33:02.479755
2017-10-07T08:35:15
2017-10-07T08:35:15
101,944,109
0
2
null
null
null
null
UTF-8
C++
false
false
442
cpp
#include "stdafx.h" #include "EDCHost19.h" #include <QtWidgets/QApplication> #include "HighResCam.h" int main(int argc, char *argv[]) { QApplication theApp(argc, argv); //Load Stylesheets QFile myStylesheets("MyUI.css"); myStylesheets.open(QFile::ReadOnly); QString theStyle = myStylesheets.readAll(); theApp.setStyleSheet(theStyle); myStylesheets.close(); EDCHost19 theMainWindow; theMainWindow.show(); return theApp.exec(); }
997407f58b05935771400fd487ffd01e41c9f973
d0369809deea5acbd50721feff3013913b314546
/algorithms/algorithms/inner_sort/2_SelectionSort.h
6dfe4ddb5357077462b23146903bb2409591885a
[]
no_license
JackieLong/algorithms
f4db4bde918ef5bf22396d28d6c29f48e7d131c6
31226e7907fad3a647ead32512c93f4acc487720
refs/heads/main
2023-04-14T19:43:43.194590
2021-05-05T05:55:12
2021-05-05T05:55:12
353,762,034
0
0
null
null
null
null
GB18030
C++
false
false
874
h
#pragma once #ifndef _0_SELECTIONSORT_H_ #define _0_SELECTIONSORT_H_ #include <functional> #include "../Macro.h" NS_ALGORITHM_BEGIN // 选择排序 template<class T> void selection_sort( T t[], const int &len,CompFunc comp ) { if( len <= 1 ) { return; } // 用于保存当前找到的最“大”/“小”值的索引,可以减少交换操作 int targetIdx = -1; // |-------前-------| |----------后--------------| // t[0], ..., t[i-1], t[i], t[i+1], ..., t[len-1] for( int i = 0; i < len - 1; i++ ) { targetIdx = i; for( int j = i + 1; j < len; j++ ) { if( !comp( t[targetIdx], t[j] ) ) { targetIdx = j; } } if( targetIdx != i ) { std::swap( t[i], t[targetIdx] ); } } } NS_ALGORITHM_END #endif
d808a0bcc103bb058001a08e1b116e3bbb0785a9
6318439bd67fd775178f9f434c927abacefe31d0
/buzzer.ino
261851c39b627fa3487e927af76127fa420e3436
[ "MIT" ]
permissive
orientcode/buzzer
600b87c2424afbb5be7163613a21f873fd35c978
21dc7a5efe808b8078f2cf6e4f114e2ff364fdef
refs/heads/master
2020-07-08T06:27:05.275145
2019-08-21T14:03:43
2019-08-21T14:03:43
203,592,729
0
0
null
null
null
null
UTF-8
C++
false
false
237
ino
#define PIN_BUZZER 7 void setup() { pinMode(PIN_BUZZER, OUTPUT); tone(PIN_BUZZER, 420); delay(500); noTone(PIN_BUZZER); delay(500); } void loop() { tone(PIN_BUZZER, 660); delay(200); noTone(PIN_BUZZER); delay(200); }
a83271a3efa5dc44afb7e35171754057c4d0ef27
00b2421552ae8881c7d71fae6d8747e572e150f2
/Misc/BFS implementation 2.cpp
069f8c4a7a9325d5924715c9779198c2faa7ee94
[]
no_license
serendiipity/Competitive-Programming
870eabb067e1746ae76d4d6fbf94fe24ae9b6ab1
3ecca29a7d69f8bab44bec646166a3885ae4d2f5
refs/heads/master
2022-05-05T03:48:49.355716
2022-03-17T13:35:22
2022-03-17T13:35:22
184,333,777
0
1
null
null
null
null
UTF-8
C++
false
false
1,192
cpp
#include <iostream> #include <vector> #include <queue> using namespace std; typedef vector < vector <int> > vvi; class Graph { public: int E; int V; vvi adj_list; vector <bool> visited; vector <int> distance; Graph(vvi list, int n, int m) { V = n; E = m; adj_list = list; visited = * new vector <bool> (n+1, false); distance = * new vector <int> (n+1, -1); } }; Graph * build_graph() { int n, m; cin >> n >> m; vvi adj_list (n+1); while (m--) { int u, v; cin >> u >> v; adj_list[u].push_back(v); adj_list[v].push_back(u); } return new Graph(adj_list, n, m); } void BFS(Graph * graph, int s) { queue <int> q; // cout << s << " "; q.push(s); while (!q.empty()) { int u = q.front(); q.pop(); cout << u << " "; if (!graph->visited[u]) { for (auto v: graph->adj_list[u]) { if (graph->distance[v] == -1) { q.push(v); graph->distance[v] = graph->distance[u] + 1; } } } graph->visited[u] = true; // BFS(graph, u); } } int main(void) { Graph * graph = build_graph(); int s; cin >> s; graph->distance[s] = 0; BFS(graph, s); cout << "distance of 1 from 2 is " << graph->distance[2] << endl; return 0; }
85b37da65389bc9c9801430cd90c56b02f5ab90e
63740e3e7cd46ab65956820c6dba93c5b2eaf9a3
/ProjectRedemptionEngine/src/core/subsystems/rendering/prerendering.h
cea85430ca733e3f461c86e84dfb5b9a612226ba
[]
no_license
seenbeen/PRE-3D
8bda9f43cb109cf705a3dbeb99f0f44591cea1e0
82f2dcd519a284fad5b667cc3936bb32733a8a44
refs/heads/master
2023-03-25T19:43:39.032617
2021-03-23T03:20:04
2021-03-23T03:20:04
350,467,833
0
0
null
null
null
null
UTF-8
C++
false
false
9,962
h
#pragma once #include <list> #include <map> #include <string> #include <unordered_map> #include <unordered_set> #include <glad/glad.h> #include <include/modules/rendering.h> namespace PRE { namespace Core { struct PRERenderingConfig; class PREApplicationContext; class PREModelRendererComponent; class PRECameraComponent; class PREAmbientLightComponent; class PREPointLightComponent; class PRESpotLightComponent; class PREDirectionalLightComponent; class PRERenderTexture; class PREShader; class PREMesh; class PRESkeleton; class PREBoneConfig; class PRETexture; class PREMaterial; class PRELightRenderPassContext; class PRELightRenderPassData; class PREShadowRenderPassContext; class PREShadowRenderPassData; class PREAnimation; class PREAnimationConfig; class PREAnimator; class PREAnimatorConfig; class PRESkyBox; using std::list; using std::map; using std::string; using std::unordered_map; using std::unordered_set; using PRE::RenderingModule::Renderer; using PRE::RenderingModule::RenderCompositingNode; using PRE::RenderingModule::RenderCompositingTarget; using PRE::RenderingModule::RenderCamera; using PRE::RenderingModule::RenderGeometryShader; using PRE::RenderingModule::RenderFragmentShader; using PRE::RenderingModule::RenderShaderProgram; using PRE::RenderingModule::RenderMesh; using PRE::RenderingModule::RenderMaterial; using PRE::RenderingModule::RenderModel; class PRERendering { PRERendering& operator=(const PRERendering&) = delete; PRERendering(const PRERendering&) = delete; friend class PREApplicationContext; friend class PREModelRendererComponent; friend class PRECameraComponent; friend class PRERenderTexture; friend class PREAmbientLightComponent; friend class PREPointLightComponent; friend class PRESpotLightComponent; friend class PREDirectionalLightComponent; class Impl { Impl& operator=(const Impl&) = delete; Impl(const Impl&) = delete; friend class PRERendering; private: static Impl& MakeImpl( PREApplicationContext& applicationContext, Renderer& renderer, PRERendering& rendering ); static void ScreenOnRender( RenderCompositingNode::RenderComposition& composition, void* vRenderingImpl ); PREApplicationContext& applicationContext; Renderer& renderer; PRERendering& rendering; RenderCompositingNode& screenCompositingNode; RenderShaderProgram& screenShaderProgram; RenderMesh& screenMesh; RenderMaterial& screenMaterial; RenderModel& screenModel; RenderCamera& screenCamera; PRELightRenderPassData* const rootRenderPassData; RenderFragmentShader& shadowFragmentShader; RenderGeometryShader& cubeMapShadowGeometryShader; RenderFragmentShader& cubeMapShadowFragmentShader; RenderCompositingTarget& shadowMap2D; RenderCompositingTarget& shadowMap3D; RenderCamera& lightPOVCamera; unordered_map<int, unordered_set<PREModelRendererComponent*>> modelTagMap; map<int, list<PRELightRenderPassData*>> compositingChains; unordered_set<PRERenderTexture*> renderPasses; unordered_set<PREAmbientLightComponent*> ambientLights; unordered_set<PREPointLightComponent*> pointLights; unordered_set<PRESpotLightComponent*> spotLights; unordered_set<PREDirectionalLightComponent*> directionalLights; Impl( PREApplicationContext& applicationContext, Renderer& renderer, PRERendering& rendering, RenderShaderProgram& screenShaderProgram, RenderMesh& screenMesh, RenderMaterial& screenMaterial, RenderModel& screenModel, RenderCamera& screenCamera, RenderFragmentShader& shadowFragmentShader, RenderGeometryShader& cubeMapShadowGeometryShader, RenderFragmentShader& cubeMapShadowFragmentShader, RenderCompositingTarget& shadowMap2D, RenderCompositingTarget& shadowMap3D, RenderCamera& lightPOVCamera ); ~Impl(); void UnlinkCompositingChains(); void RelinkCompositingChains(); void LinkLightToRenderTarget( PRERenderTexture& renderPass, PRELightRenderPassData& lightData, void* pLightComponent, list<PRELightRenderPassData*>& compositingChain, list<PRELightRenderPassData*>::iterator& itLightFront, PREShadowRenderPassData* pShadowData ); void UnlinkLightFromRenderTarget( PRERenderTexture& renderPass, PRELightRenderPassData& lightData, void* pLightComponent, list<PRELightRenderPassData*>& compositingChain, list<PRELightRenderPassData*>::iterator& itLightFront, PREShadowRenderPassData* pShadowData ); }; public: static const int DEFAULT_LAYER; PRERenderTexture& GetScreenRenderTexture(); PRERenderTexture& CreateRenderTexture(int layer, unsigned int width, unsigned int height); void DestroyRenderTexture(PRERenderTexture& renderTexture); PREShader& CreateShader(const string& vertex, const string& fragment); public: void DestroyShader(PREShader& shader); PRETexture& CreateTexture( unsigned int width, unsigned int height, const unsigned char* data ); void DestroyTexture(PRETexture& texture); PREMaterial& CreateMaterial(); void DestroyMaterial(PREMaterial& material); PREMesh& CreateMesh( unsigned int nVertices, const glm::vec3* vertices, const glm::vec3* normals, const glm::vec3* tangents, const glm::vec3* biTangents, const glm::vec2* uvs, const glm::ivec4* vertexBoneIds, const glm::vec4* vertexBoneWeights, unsigned int nTriangleElements, const unsigned int* const triangleElements ); void DestroyMesh(PREMesh& mesh); PRESkeleton& CreateSkeleton( const PREBoneConfig& rootBoneConfig ); void DestroySkeleton(PRESkeleton& skeleton); PREAnimation& CreateAnimation( const PREAnimationConfig& animationConfig ); void DestroyAnimation(PREAnimation& animation); PREAnimator& CreateAnimator( const PREAnimatorConfig& animatorConfig ); void DestroyAnimator(PREAnimator& animator); PRESkyBox& CreateSkyBox( unsigned int rightWidth, unsigned int rightHeight, const unsigned char* rightData, unsigned int leftWidth, unsigned int leftHeight, const unsigned char* leftData, unsigned int topWidth, unsigned int topHeight, const unsigned char* topData, unsigned int bottomWidth, unsigned int bottomHeight, const unsigned char* bottomData, unsigned int frontWidth, unsigned int frontHeight, const unsigned char* frontData, unsigned int backWidth, unsigned int backHeight, const unsigned char* backData ); void DestroySkyBox(PRESkyBox& skyBox); private: static const unsigned int SHADOW_MAP_SIZE; enum class CameraKind { ORTHOGRAPHIC, PERSPECTIVE }; static PRERendering& MakePRERendering( const PRERenderingConfig& renderingConfig, PREApplicationContext& applicationContext ); static void LightPassOnRender( RenderCompositingNode::RenderComposition& composition, void* vLightPassContext ); static void ShadowPassOnRender( RenderCompositingNode::RenderComposition& composition, void* vShadowPassContext ); Impl& _impl; PRERenderTexture& _screenRenderTexture; PRERendering( PREApplicationContext& applicationContext, Renderer& renderer ); ~PRERendering(); void Initialize(); void Update(); void Shutdown(); RenderCompositingNode& AllocateCompositingNode( RenderCompositingNode::OnRender onRender, PRERenderTexture& renderTexture ); void DeallocateCompositingNode( RenderCompositingNode& compositingNode ); RenderCamera& AllocateCamera( const CameraKind& kind, float size, float aspectRatio, float nearClippingPlane, float farClippingPlane ); void DeallocateCamera(RenderCamera& camera); void LinkCameraComponentToRenderTexture( PRECameraComponent& cameraComponent, PRERenderTexture& renderTexture ); void UnlinkCameraComponentFromRenderTexture( PRECameraComponent& cameraComponent, PRERenderTexture& renderTexture ); RenderModel& AllocateModel(); void DeallocateModel(RenderModel& model); void UpdateModelRendererComponentModel( PREModelRendererComponent& modelRendererComponent ); void InitializeModelRendererComponentTag( PREModelRendererComponent& modelRendererComponent ); void UpdateModelRendererComponentTag( PREModelRendererComponent& modelRendererComponent, int tag ); void UninitializeModelRendererComponentTag( PREModelRendererComponent& modelRendererComponent ); void LinkCameraComponentToSkyBox( PRECameraComponent& cameraComponent, PRESkyBox& skyBox ); void UnlinkCameraComponentFromSkyBox( PRECameraComponent& cameraComponent, PRESkyBox& skyBox ); // ambient light void LinkLightToRenderTargets( PREAmbientLightComponent& ambientLightComponent ); void UnlinkLightFromRenderTargets( PREAmbientLightComponent& ambientLightComponent ); // point light void LinkLightToRenderTargets( PREPointLightComponent& pointLightComponent ); void UnlinkLightFromRenderTargets( PREPointLightComponent& pointLightComponent ); // spot light void LinkLightToRenderTargets( PRESpotLightComponent& spotLightComponent ); void UnlinkLightFromRenderTargets( PRESpotLightComponent& spotLightComponent ); // directional light void LinkLightToRenderTargets( PREDirectionalLightComponent& directionalLightComponent ); void UnlinkLightFromRenderTargets( PREDirectionalLightComponent& directionalLightComponent ); void LinkRenderTextureToLights( PRERenderTexture& renderTexture ); void UnlinkRenderTextureFromLights( PRERenderTexture& renderTexture ); }; } // namespace Core } // namespace PRE
7144c9ec5cff63b7707ae5eb33e23581170dbde0
e9b909cb6b81ef990ac959ab927173189e9afb0f
/u-gine/include/parallaxscene.h
e4bc29561c73a255567cbe710da3e64b0a691a2d
[]
no_license
AlvaroAbad/Arquitectura
ea849377fe512ca5992cc5283d16b1b3b7aa5bbb
cfea49d6283b8363e6d98e5ab591ef1a4f7a2fb1
refs/heads/master
2021-01-21T21:43:08.022866
2016-03-04T13:16:00
2016-03-04T13:16:00
47,994,299
0
0
null
null
null
null
UTF-8
C++
false
false
1,179
h
#ifndef UGINE_PARALLAXSCENE_H #define UGINE_PARALLAXSCENE_H #include "scene.h" class ParallaxScene :public Scene { public: ParallaxScene(Image* imageBack, Image* imageFront = 0); virtual const Image* GetBackLayer()const { return this->backLayer; } virtual const Image* GetFrontLayer()const { return this->frontLayer; } virtual void SetRelativeBackSpeed(double x, double y) { this->relBackSpeedX = x; this->relBackSpeedY = y; } virtual void SetRelativeFrontSpeed(double x, double y) { this->relFrontSpeedX = x; this->relFrontSpeedY = y; } virtual void SetAutoBackSpeed(double x, double y) { this->autoBackSpeedX = x; this->autoBackSpeedY = y; } virtual void SetAutoFrontSpeed(double x, double y) { this->autoFrontSpeedX = x; this->autoFrontSpeedY = y; } virtual void Update(double elapsed, Map*map = 0); protected: virtual void RenderBackground()const; private: Image*backLayer; Image*frontLayer; double backX, backY; double frontX, frontY; double relBackSpeedX, relBackSpeedY; double relFrontSpeedX, relFrontSpeedY; double autoBackSpeedX, autoBackSpeedY; double autoFrontSpeedX, autoFrontSpeedY; }; #endif
e88f87b50bb1827cae705d0a298a756a7748add2
8f50c262f89d3dc4f15f2f67eb76e686b8f808f5
/Simulation/ISF/ISF_FastCaloSim/ISF_FastCaloSimEvent/ISF_FastCaloSimEvent/TFCSParametrizationEkinSelectChain.h
cf1d818e638a3fc8803e85e27e3abed0253a12ad
[ "Apache-2.0" ]
permissive
strigazi/athena
2d099e6aab4a94ab8b636ae681736da4e13ac5c9
354f92551294f7be678aebcd7b9d67d2c4448176
refs/heads/master
2022-12-09T02:05:30.632208
2020-09-03T14:03:18
2020-09-03T14:03:18
292,587,480
0
1
null
null
null
null
UTF-8
C++
false
false
2,036
h
/* Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration */ #ifndef ISF_FASTCALOSIMEVENT_TFCSParametrizationEkinSelectChain_h #define ISF_FASTCALOSIMEVENT_TFCSParametrizationEkinSelectChain_h #include "ISF_FastCaloSimEvent/TFCSParametrizationFloatSelectChain.h" #include "ISF_FastCaloSimEvent/TFCSSimulationState.h" class TFCSParametrizationEkinSelectChain:public TFCSParametrizationFloatSelectChain { public: TFCSParametrizationEkinSelectChain(const char* name=nullptr, const char* title=nullptr):TFCSParametrizationFloatSelectChain(name,title) {reset_DoRandomInterpolation();}; TFCSParametrizationEkinSelectChain(const TFCSParametrizationEkinSelectChain& ref):TFCSParametrizationFloatSelectChain(ref) {reset_DoRandomInterpolation();}; ///Status bit for Ekin Selection enum FCSEkinStatusBits { kDoRandomInterpolation = BIT(15) ///< Set this bit in the TObject bit field if a random selection between neighbouring Ekin bins should be done }; bool DoRandomInterpolation() const {return TestBit(kDoRandomInterpolation);}; void set_DoRandomInterpolation() {SetBit(kDoRandomInterpolation);}; void reset_DoRandomInterpolation() {ResetBit(kDoRandomInterpolation);}; using TFCSParametrizationFloatSelectChain::push_back_in_bin; virtual void push_back_in_bin(TFCSParametrizationBase* param); //selects on truth->Ekin() //return -1 if outside range virtual int get_bin(TFCSSimulationState&,const TFCSTruthState* truth, const TFCSExtrapolationState*) const override; virtual const std::string get_variable_text(TFCSSimulationState& simulstate,const TFCSTruthState*, const TFCSExtrapolationState*) const override; virtual const std::string get_bin_text(int bin) const override; static void unit_test(TFCSSimulationState* simulstate=nullptr,TFCSTruthState* truth=nullptr, const TFCSExtrapolationState* extrapol=nullptr); protected: virtual void recalc() override; private: ClassDefOverride(TFCSParametrizationEkinSelectChain,1) //TFCSParametrizationEkinSelectChain }; #endif
2b1335a1dfe927280f0941bdb6a175a7c1ca0f12
a422ec65c817fa7c8a843c86012699d5655f1a69
/Tutorials_Point/passingParametersByReference.cpp
470dcd8c41b5ce702a61bd40f066931bcbd1de62
[]
no_license
krutikamin/CPP
4167a0488cefb97ec0d164354df197ef1544c7f0
be88b8b1905a9fdb786362db63f7182c26ef7d24
refs/heads/master
2021-01-10T07:59:34.108063
2018-07-27T00:42:39
2018-07-27T00:42:39
48,225,886
1
0
null
null
null
null
UTF-8
C++
false
false
726
cpp
// https://www.tutorialspoint.com/cplusplus/passing_parameters_by_references.htm #include <iostream> using namespace std; // function declaration void swap(int& x, int& y); int main(void) { // local variable declaration: int a = 100; int b = 200; cout << "Before swap, value of a : " << a << endl; cout << "Before swap, value of b : " << b << endl; /* calling a function to swap the values.*/ swap(a, b); cout << "After swap, value of a : " << a << endl; cout << "After swap, value of b : " << b << endl; return 0; } // function definition to swap the values. void swap(int& x, int& y) { int temp; temp = x; // save the value at address x x = y; // put y into x y = temp; // put x into y return; }
122c90389cc042dd62ac754c17f9e7c215b13f55
bfb51dce7277e4d191b94aebf3ca1c9bd7dc36ca
/libcaf_core/test/behavior.cpp
06c12f6e39c732fcb04855a4dfda54062d73be0d
[ "BSL-1.0" ]
permissive
landagen/actor-framework
f3ffa2bd209fedae82cb70c7c3bdce0ec84e2104
70f6c2aabde228a836764e498849384f4da96457
refs/heads/master
2021-09-01T16:20:28.340856
2017-12-27T22:46:53
2017-12-27T22:46:53
115,560,114
0
0
null
2017-12-27T21:47:37
2017-12-27T21:47:37
null
UTF-8
C++
false
false
3,103
cpp
/****************************************************************************** * ____ _ _____ * * / ___| / \ | ___| C++ * * | | / _ \ | |_ Actor * * | |___ / ___ \| _| Framework * * \____/_/ \_|_| * * * * Copyright (C) 2011 - 2017 * * Dominik Charousset <dominik.charousset (at) haw-hamburg.de> * * * * Distributed under the terms and conditions of the BSD 3-Clause License or * * (at your option) under the terms and conditions of the Boost Software * * License 1.0. See accompanying files LICENSE and LICENSE_ALTERNATIVE. * * * * If you did not receive a copy of the license files, see * * http://opensource.org/licenses/BSD-3-Clause and * * http://www.boost.org/LICENSE_1_0.txt. * ******************************************************************************/ #define CAF_SUITE behavior #include "caf/config.hpp" #include "caf/test/unit_test.hpp" #include <functional> #include "caf/behavior.hpp" #include "caf/message_handler.hpp" #include "caf/make_type_erased_tuple_view.hpp" using namespace caf; using namespace std; using hi_atom = atom_constant<atom("hi")>; using ho_atom = atom_constant<atom("ho")>; namespace { class nocopy_fun { public: nocopy_fun() = default; nocopy_fun(nocopy_fun&&) = default; nocopy_fun& operator=(nocopy_fun&&) = default; nocopy_fun(const nocopy_fun&) = delete; nocopy_fun& operator=(const nocopy_fun&) = delete; int operator()(int x, int y) { return x + y; } }; struct fixture { message m1 = make_message(1); message m2 = make_message(1, 2); message m3 = make_message(1, 2, 3); }; } // namespace <anonymous> CAF_TEST_FIXTURE_SCOPE(behavior_tests, fixture) CAF_TEST(default_construct) { behavior f; CAF_CHECK_EQUAL(f(m1), none); CAF_CHECK_EQUAL(f(m2), none); CAF_CHECK_EQUAL(f(m3), none); } CAF_TEST(nocopy_function_object) { behavior f{nocopy_fun{}}; CAF_CHECK_EQUAL(f(m1), none); CAF_CHECK_EQUAL(to_string(f(m2)), "*(3)"); CAF_CHECK_EQUAL(f(m3), none); } CAF_TEST(single_lambda_construct) { behavior f{[](int x) { return x + 1; }}; CAF_CHECK_EQUAL(to_string(f(m1)), "*(2)"); CAF_CHECK_EQUAL(f(m2), none); CAF_CHECK_EQUAL(f(m3), none); } CAF_TEST(multiple_lambda_construct) { behavior f{ [](int x) { return x + 1; }, [](int x, int y) { return x * y; } }; CAF_CHECK_EQUAL(to_string(f(m1)), "*(2)"); CAF_CHECK_EQUAL(to_string(f(m2)), "*(2)"); CAF_CHECK_EQUAL(f(m3), none); } CAF_TEST_FIXTURE_SCOPE_END()
f5f93de2f55358e3591a6b8bd919a703cf2ad639
266d08aeff9804495fddeb68816a580906cfc5b9
/leetcode/139.cc
c2140fe7ba1edddda7efa91d3a51beea5dfd45c6
[]
no_license
NKSG/c_learning_record
1ed81b25e6a00541fbafc6f1fb42fdeb62f688e8
3efea721bb85dea3260e29745f6ee604cf838972
refs/heads/master
2020-12-31T02:01:55.632923
2015-04-24T16:49:28
2015-04-24T16:49:28
null
0
0
null
null
null
null
UTF-8
C++
false
false
585
cc
//No.139 //https://leetcode.com/problems/word-break/ //Word Break class Solution { public: bool wordBreak(string s, unordered_set<string> &dict) { int n=s.length(); vector<bool> dp(n+1,false); dp[0] = true; for(int j=1; j<=n; j++) for(int i=0; i<j; i++){ if(dp[i]){ string str = s.substr(i,j-i); if(dict.find(str) != dic.end()){ dp[j]=true; break; } } } return dp[n]; } };
cb8373324a36f3612dfc991a07f1a5a86b7f9e40
7069c4dbc65c88144d2f89bfe433febaf0a57e2a
/src/appleseed.studio/mainwindow/rendering/renderingmanager.cpp
5d5a8fe6436e69c853943e563d09bcfde43d67c2
[ "MIT" ]
permissive
tomcodes/appleseed
4d39965f168be1fd8540b635b5f32c2e8da188b6
e8ae4823158d7d40beb35c745eb6e9bee164dd2d
refs/heads/master
2021-01-17T22:45:50.384490
2012-01-20T17:54:49
2012-01-20T17:54:49
null
0
0
null
null
null
null
UTF-8
C++
false
false
9,452
cpp
// // This source file is part of appleseed. // Visit http://appleseedhq.net/ for additional information and resources. // // This software is released under the MIT license. // // Copyright (c) 2010-2012 Francois Beaune, Jupiter Jazz // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // // Interface header. #include "renderingmanager.h" // appleseed.studio headers. #include "mainwindow/rendering/renderwidget.h" #include "mainwindow/statusbar.h" // appleseed.shared headers. #include "application/application.h" // appleseed.renderer headers. #include "renderer/api/aov.h" #include "renderer/api/camera.h" #include "renderer/api/frame.h" #include "renderer/api/project.h" #include "renderer/api/scene.h" // appleseed.foundation headers. #include "foundation/image/analysis.h" #include "foundation/image/image.h" #include "foundation/math/transform.h" #include "foundation/utility/string.h" // boost headers. #include "boost/filesystem/path.hpp" // Qt headers. #include <QAction> #include <QApplication> #include <QTimerEvent> using namespace appleseed::shared; using namespace boost; using namespace foundation; using namespace renderer; using namespace std; namespace appleseed { namespace studio { // // RenderingManager class implementation. // namespace { class MasterRendererThread : public QThread { public: // Constructor. explicit MasterRendererThread(MasterRenderer* master_renderer) : m_master_renderer(master_renderer) { } private: MasterRenderer* m_master_renderer; // The starting point for the thread. virtual void run() { m_master_renderer->render(); } }; } RenderingManager::RenderingManager(StatusBar& status_bar) : m_status_bar(status_bar) , m_project(0) , m_render_widget(0) , m_override_shading(false) { // // The connections below are using the Qt::BlockingQueuedConnection connection type. // // They are using a queued connection because the emitting thread is different from // the receiving thread (the emitting thread is the master renderer thread, and the // receiving thread is the UI thread of the main window (presumably). // // They are using a blocking queue connection because we need the receiving slot to // have returned in the receiving thread before the emitting thread can continue. // // See http://doc.trolltech.com/4.6/qt.html#ConnectionType-enum for more details. // connect( &m_renderer_controller, SIGNAL(signal_frame_begin()), this, SLOT(slot_frame_begin()), Qt::BlockingQueuedConnection); connect( &m_renderer_controller, SIGNAL(signal_frame_end()), this, SLOT(slot_frame_end()), Qt::BlockingQueuedConnection); connect( &m_renderer_controller, SIGNAL(signal_rendering_begin()), this, SLOT(slot_rendering_begin()), Qt::BlockingQueuedConnection); connect( &m_renderer_controller, SIGNAL(signal_rendering_success()), this, SLOT(slot_rendering_end()), Qt::BlockingQueuedConnection); connect( &m_renderer_controller, SIGNAL(signal_rendering_abort()), this, SLOT(slot_rendering_end()), Qt::BlockingQueuedConnection); connect( &m_renderer_controller, SIGNAL(signal_rendering_success()), this, SIGNAL(signal_rendering_end())); connect( &m_renderer_controller, SIGNAL(signal_rendering_abort()), this, SIGNAL(signal_rendering_end())); } void RenderingManager::start_rendering( Project* project, const ParamArray& params, const bool highlight_tiles, RenderWidget* render_widget) { m_project = project; m_render_widget = render_widget; m_camera_controller.reset( new CameraController( m_render_widget, m_project->get_scene())); connect( m_camera_controller.get(), SIGNAL(signal_camera_changed()), this, SLOT(slot_camera_changed())); connect( m_camera_controller.get(), SIGNAL(signal_camera_changed()), this, SIGNAL(signal_camera_changed())); m_tile_callback_factory.reset( new QtTileCallbackFactory( m_render_widget, highlight_tiles)); m_master_renderer.reset( new MasterRenderer( *m_project, params, &m_renderer_controller, m_tile_callback_factory.get())); m_master_renderer_thread.reset( new MasterRendererThread(m_master_renderer.get())); m_master_renderer_thread->start(); } bool RenderingManager::is_rendering() const { return m_master_renderer_thread.get() && m_master_renderer_thread->isRunning(); } void RenderingManager::wait_until_rendering_end() { while (is_rendering()) { QApplication::processEvents(); } } void RenderingManager::abort_rendering() { RENDERER_LOG_DEBUG("aborting rendering..."); m_renderer_controller.set_status(IRendererController::AbortRendering); } void RenderingManager::restart_rendering() { m_renderer_controller.set_status(IRendererController::RestartRendering); } void RenderingManager::reinitialize_rendering() { m_renderer_controller.set_status(IRendererController::ReinitializeRendering); } void RenderingManager::timerEvent(QTimerEvent* event) { if (event->timerId() == m_render_widget_update_timer.timerId()) m_render_widget->update(); else QObject::timerEvent(event); } void RenderingManager::print_final_rendering_time() { const double rendering_time = m_rendering_timer.get_seconds(); const string rendering_time_string = pretty_time(rendering_time, 3); RENDERER_LOG_INFO("rendering finished in %s.", rendering_time_string.c_str()); m_status_bar.set_text("Rendering finished in " + rendering_time_string); } void RenderingManager::print_average_luminance() { Image final_image(m_project->get_frame()->image()); m_project->get_frame()->transform_to_output_color_space(final_image); const double average_luminance = compute_average_luminance(final_image); RENDERER_LOG_DEBUG( "final average luminance is %s.", pretty_scalar(average_luminance, 6).c_str()); } void RenderingManager::archive_frame_to_disk() { RENDERER_LOG_INFO("archiving frame to disk..."); const filesystem::path autosave_path = filesystem::path(Application::get_root_path()) / "images/autosave/"; m_project->get_frame()->archive( autosave_path.directory_string().c_str()); } void RenderingManager::slot_rendering_begin() { assert(m_master_renderer.get()); if (m_override_shading) { m_master_renderer->get_parameters() .push("shading_engine") .push("override_shading") .insert("mode", m_override_shading_mode); } else { m_master_renderer->get_parameters() .push("shading_engine") .dictionaries().remove("override_shading"); } const int UpdateRate = 5; m_render_widget_update_timer.start(1000 / UpdateRate, this); } void RenderingManager::slot_rendering_end() { m_render_widget_update_timer.stop(); m_render_widget->update(); print_final_rendering_time(); print_average_luminance(); archive_frame_to_disk(); // Prevent manipulation of the camera after rendering has ended. m_camera_controller.reset(); } void RenderingManager::slot_frame_begin() { m_renderer_controller.set_status(IRendererController::ContinueRendering); m_camera_controller->update_camera_transform(); m_rendering_timer.start(); m_status_bar.start_rendering_time_display(&m_rendering_timer); } void RenderingManager::slot_frame_end() { m_status_bar.stop_rendering_time_display(); } void RenderingManager::slot_clear_shading_override() { m_override_shading = false; reinitialize_rendering(); } void RenderingManager::slot_set_shading_override() { QAction* action = qobject_cast<QAction*>(sender()); const string shading_mode = action->data().toString().toStdString(); m_override_shading = true; m_override_shading_mode = shading_mode; reinitialize_rendering(); } void RenderingManager::slot_camera_changed() { restart_rendering(); } } // namespace studio } // namespace appleseed
16f5c441ae90bac540f654e89a4ee35115cf661b
016da22e472f30a1401314ebff7048c076e18cb2
/aws-cpp-sdk-chime/include/aws/chime/model/ChannelMembershipForAppInstanceUserSummary.h
8bf6e003348a0fbe7470c1edd047eea7265623ea
[ "Apache-2.0", "MIT", "JSON" ]
permissive
meenakommo64/aws-sdk-cpp
8637d6f42f45b9670d7275b0ce25f3595f7f4664
9ae103b392f08750a4091d69341f55a2607d38b7
refs/heads/master
2023-02-16T07:47:44.608531
2021-01-14T20:10:59
2021-01-14T20:10:59
329,810,141
0
0
Apache-2.0
2021-01-15T04:45:34
2021-01-15T04:39:52
null
UTF-8
C++
false
false
3,748
h
/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/chime/Chime_EXPORTS.h> #include <aws/chime/model/ChannelSummary.h> #include <aws/chime/model/AppInstanceUserMembershipSummary.h> #include <utility> namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Chime { namespace Model { /** * <p>Returns the channel membership summary data for an app * instance.</p><p><h3>See Also:</h3> <a * href="http://docs.aws.amazon.com/goto/WebAPI/chime-2018-05-01/ChannelMembershipForAppInstanceUserSummary">AWS * API Reference</a></p> */ class AWS_CHIME_API ChannelMembershipForAppInstanceUserSummary { public: ChannelMembershipForAppInstanceUserSummary(); ChannelMembershipForAppInstanceUserSummary(Aws::Utils::Json::JsonView jsonValue); ChannelMembershipForAppInstanceUserSummary& operator=(Aws::Utils::Json::JsonView jsonValue); Aws::Utils::Json::JsonValue Jsonize() const; inline const ChannelSummary& GetChannelSummary() const{ return m_channelSummary; } inline bool ChannelSummaryHasBeenSet() const { return m_channelSummaryHasBeenSet; } inline void SetChannelSummary(const ChannelSummary& value) { m_channelSummaryHasBeenSet = true; m_channelSummary = value; } inline void SetChannelSummary(ChannelSummary&& value) { m_channelSummaryHasBeenSet = true; m_channelSummary = std::move(value); } inline ChannelMembershipForAppInstanceUserSummary& WithChannelSummary(const ChannelSummary& value) { SetChannelSummary(value); return *this;} inline ChannelMembershipForAppInstanceUserSummary& WithChannelSummary(ChannelSummary&& value) { SetChannelSummary(std::move(value)); return *this;} /** * <p>Returns the channel membership data for an app instance.</p> */ inline const AppInstanceUserMembershipSummary& GetAppInstanceUserMembershipSummary() const{ return m_appInstanceUserMembershipSummary; } /** * <p>Returns the channel membership data for an app instance.</p> */ inline bool AppInstanceUserMembershipSummaryHasBeenSet() const { return m_appInstanceUserMembershipSummaryHasBeenSet; } /** * <p>Returns the channel membership data for an app instance.</p> */ inline void SetAppInstanceUserMembershipSummary(const AppInstanceUserMembershipSummary& value) { m_appInstanceUserMembershipSummaryHasBeenSet = true; m_appInstanceUserMembershipSummary = value; } /** * <p>Returns the channel membership data for an app instance.</p> */ inline void SetAppInstanceUserMembershipSummary(AppInstanceUserMembershipSummary&& value) { m_appInstanceUserMembershipSummaryHasBeenSet = true; m_appInstanceUserMembershipSummary = std::move(value); } /** * <p>Returns the channel membership data for an app instance.</p> */ inline ChannelMembershipForAppInstanceUserSummary& WithAppInstanceUserMembershipSummary(const AppInstanceUserMembershipSummary& value) { SetAppInstanceUserMembershipSummary(value); return *this;} /** * <p>Returns the channel membership data for an app instance.</p> */ inline ChannelMembershipForAppInstanceUserSummary& WithAppInstanceUserMembershipSummary(AppInstanceUserMembershipSummary&& value) { SetAppInstanceUserMembershipSummary(std::move(value)); return *this;} private: ChannelSummary m_channelSummary; bool m_channelSummaryHasBeenSet; AppInstanceUserMembershipSummary m_appInstanceUserMembershipSummary; bool m_appInstanceUserMembershipSummaryHasBeenSet; }; } // namespace Model } // namespace Chime } // namespace Aws
5ce7b42523d2f0a8b13bf36c2ea5f3ccd70f832e
04f8b070f6b7e9489b9ebd1b8a7dcbb12690719b
/final/lineMesh.ino
357c5b0d8e435faf597b387dd98243bf5171ac38
[]
no_license
sandu9618/DigitalDreamsCode2018
25a1663fe9c7b7949bdf76e5f9b5002d011a4e84
a4d2a39c7b8186c890ff43d563043c355ea1db6d
refs/heads/main
2023-02-11T20:02:28.162322
2021-01-02T05:56:23
2021-01-02T05:56:23
326,119,117
0
0
null
null
null
null
UTF-8
C++
false
false
6,097
ino
//----------------Mesh Solve---------------------------------------------------------------------------------------------------------------------- void lineMazeSolve(void) { while (!status) { LineJunction(); switch (mode) { case NO_LINE: brake(); delay(50); LineJunction(); if(mode != NO_LINE ){break;} centerAtJunction(); if(roboInWall()){ //wall mesh } else{ turnInLine('B');} recIntersection('B'); delay(20); followingLine(); break; case CONT_LINE: brake(); delay(50); LineJunction(); if(mode != CONT_LINE ){break;} centerAtJunction(200); LineJunction(); delay(20); if (mode!=CONT_LINE) { recIntersection('L'); turnInLine('T'); // /*90 degrees*/ recIntersection('L'); Serial.print("L"); // or it is a "T" or "Cross"). In both cases, goes to LEFT } else mazeEnd(); break; case RIGHT_TURN: brake(); delay(50); LineJunction(); if(mode != RIGHT_TURN ){break;} centerAtJunction(); LineJunction(); if (mode == NO_LINE) { turnInLine('R'); recIntersection('R'); // /*90 degrees*/ recIntersection('R'); Serial.print("R"); } else { followingLine(); recIntersection('S'); } break; case LEFT_TURN: brake(); delay(50); LineJunction(); if(mode != LEFT_TURN ){break;} centerAtJunction(200); delay(20); turnInLine('T'); recIntersection('L'); delay(20); brake(); // recIntersection('L'); Serial.print("L"); break; case FOLLOWING_LINE: followingLine(); break; } } } //------------------------------------------------------------------------ void recIntersection(char direction) { path[pathLength] = direction; // Store the intersection in the path variable. pathLength ++; simplifyPath(); // Simplify the learned path. } //-------------------------------------------------------------------------- void mazeEnd(void) { mode = STOPPED; beep(); delay(3000); motorStop(); for (int i = 0; i < pathLength; i++) status = 1; } void gohome(void) { motorStop(); for (int i = 0; i < pathLength; i++) Serial.print(path[i]); Serial.print(" pathLenght ==> "); Serial.println(pathLength); a = 1; mode = STOPPED; } //-------------------------------------------------------------------------- void simplifyPath() { // only simplify the path if the second-to-last turn was a 'B' if (pathLength < 3 || path[pathLength - 2] != 'B') return; int totalAngle = 0; int i; for (i = 1; i <= 3; i++) { switch (path[pathLength - i]) { case 'R': totalAngle += 90; break; case 'L': totalAngle += 270; break; case 'B': totalAngle += 180; break; } } // Get the angle as a number between 0 and 360 degrees. totalAngle = totalAngle % 360; // Replace all of those turns with a single one. switch (totalAngle) { case 0: path[pathLength - 3] = 'S'; break; case 90: path[pathLength - 3] = 'R'; break; case 180: path[pathLength - 3] = 'B'; break; case 270: path[pathLength - 3] = 'L'; break; } // The path is now two steps shorter. pathLength -= 2; } //------------------------------------------------------------------------------ void mazeOptimization (void) { while (!a) { //readLFSsensors(); LineJunction(); switch (mode) { case FOLLOWING_LINE: followingLine(); break; case CONT_LINE: if (pathIndex >= pathLength) gohome (); else { mazeTurn (path[pathIndex]); pathIndex++; } break; case LEFT_TURN: if (pathIndex >= pathLength) gohome (); else { mazeTurn (path[pathIndex]); pathIndex++; } break; case RIGHT_TURN: if (pathIndex >= pathLength) gohome (); else { mazeTurn (path[pathIndex]); pathIndex++; } break; } } } void mazeTurn (char dir) { switch (dir) { case 'L': // Turn Left // brake(); // centerAtJunction(); // brake(); // turnInLine('L'); // break; brake(); delay(50); LineJunction(); if(mode != LEFT_TURN ){break;} centerAtJunction(200); delay(20); turnInLine('T'); delay(20); brake(); case 'R': // Turn Right // brake(); // centerAtJunction(); // brake(); //// junctionDT(); // if (mode == NO_LINE) { // turnInLine('R'); // break; brake(); delay(50); LineJunction(); if(mode != RIGHT_TURN ){break;} centerAtJunction(); LineJunction(); if (mode == NO_LINE) { turnInLine('R'); } else { followingLine(); } break; case 'B': // Turn Back brake(); delay(50); LineJunction(); if(mode != NO_LINE ){break;} centerAtJunction(); if(roboInWall()){ //wall mesh } else{ turnInLine('B');} delay(20); followingLine(); break; case 'S': // Go Straight followingLine(); break; } }
d1fbdeb9e6051c11297c6108c3b0f18927cf524f
ae55176b3fe4fc9b77ee0af71f142e174a65cf60
/GameAI/steering/ToggleDebugMessage.cpp
178a1292ba9fb617fde57cb62a877ee2ebd5d5ad
[]
no_license
theMagicDunky/EGP-410
a055405067ecd345fccd3d8c6029249f2de64ce2
35ce0d4e427150d97321a3f7c3cc95aa70d11f83
refs/heads/master
2021-01-23T02:22:57.208580
2016-12-17T04:58:33
2016-12-17T04:58:33
68,652,319
0
1
null
2016-09-19T22:34:32
2016-09-19T22:34:31
null
UTF-8
C++
false
false
263
cpp
#include "ToggleDebugMessage.h" #include "Game.h" ToggleDebugMessage::ToggleDebugMessage() :GameMessage(TOGGLE_DEBUG_MESSAGE) { } ToggleDebugMessage::~ToggleDebugMessage() { } void ToggleDebugMessage::process() { gpGame->toggleDebugState(); }
dec46ebbc813f27106463bc65f1fd7ed001cb7bb
9426800bf9811e64078fffffd807dd62872af94f
/server/include/Grid.hh
5799c94ff9682683810f4ad0328e133bb3ade93b
[ "MIT" ]
permissive
drouarb/cpp_rtype
679e54a20d017032a98eecdc2cc4164a0bc18ce0
bb57cd57c1748fe8591dd3a22ddea73b46845be9
refs/heads/master
2021-06-15T13:29:46.309635
2017-02-02T14:43:49
2017-02-02T14:43:49
null
0
0
null
null
null
null
UTF-8
C++
false
false
765
hh
// // Created by lewis_e on 30/12/16. // #ifndef CPP_RTYPE_GRID_HH #define CPP_RTYPE_GRID_HH #include "Definitions.hh" #include <vector> #define GRID_CELL_SIZE 150 #define GRID_HEIGHT (FIELD_HEIGHT / GRID_CELL_SIZE + 2) #define GRID_WIDTH ((FIELD_WIDTH + LEFT_MARGIN + RIGHT_MARGIN) / GRID_CELL_SIZE + 2) namespace server { class Entity; class Grid { public: typedef std::vector<Entity *> line_t[GRID_WIDTH]; void remove(const Entity * entity); void add(Entity * entity); int getCoordinate(pos_t pos) const; line_t& operator[](int index); const line_t& operator[](int index) const; private: std::vector<Entity*> grid[GRID_HEIGHT][GRID_WIDTH]; }; } #endif //CPP_RTYPE_GRID_HH
13d30151a8f130d2736a40cab42f5bfca30dd48e
08b8cf38e1936e8cec27f84af0d3727321cec9c4
/data/crawl/squid/old_hunk_1607.cpp
c14acf4894b4df23fc4f926e80c7bd79a7b4457c
[]
no_license
ccdxc/logSurvey
eaf28e9c2d6307140b17986d5c05106d1fd8e943
6b80226e1667c1e0760ab39160893ee19b0e9fb1
refs/heads/master
2022-01-07T21:31:55.446839
2018-04-21T14:12:43
2018-04-21T14:12:43
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,453
cpp
static void usage(const char *progname) { fprintf(stderr, "Version: %s\n" "Usage: %s [-arsv] [-A 'string'] [-g count] [-h remote host] [-H 'string'] [-i IMS] [-I ping-interval] [-j 'Host-header']" "[-k] [-l local-host] [-m method] " #if HAVE_GSSAPI "[-n] [-N] " #endif "[-p port] [-P file] [-t count] [-T timeout] [-u proxy-user] [-U www-user] " "[-V version] [-w proxy-password] [-W www-password] url\n" "\n" "Options:\n" " -a Do NOT include Accept: header.\n" " -A User-Agent: header. Use \"\" to omit.\n" " -g count Ping mode, perform \"count\" iterations (0 to loop until interrupted).\n" " -h host Retrieve URL from cache on hostname. Default is localhost.\n" " -H 'string' Extra headers to send. Use '\\n' for new lines.\n" " -i IMS If-Modified-Since time (in Epoch seconds).\n" " -I interval Ping interval in seconds (default 1 second).\n" " -j hosthdr Host header content\n" " -k Keep the connection active. Default is to do only one request then close.\n" " -l host Specify a local IP address to bind to. Default is none.\n" " -m method Request method, default is GET.\n" #if HAVE_GSSAPI " -n Proxy Negotiate(Kerberos) authentication\n" " -N WWW Negotiate(Kerberos) authentication\n" #endif " -p port Port number of cache. Default is %d.\n" " -P file PUT request. Using the named file\n" " -r Force cache to reload URL.\n" " -s Silent. Do not print data to stdout.\n" " -t count Trace count cache-hops\n" " -T timeout Timeout value (seconds) for read/write operations.\n" " -u user Proxy authentication username\n" " -U user WWW authentication username\n" " -v Verbose. Print outgoing message to stderr.\n" " -V version HTTP Version. Use '-' for HTTP/0.9 omitted case\n" " -w password Proxy authentication password\n" " -W password WWW authentication password\n", VERSION, progname, CACHE_HTTP_PORT); exit(1); }
d2abd07da2080f48adc38fdd2f743c8423eba81a
2eba4d9c89f41f978c01b2e05ec1bdc9a61cd179
/Src/Terrain3D/World/Camera.cpp
d6b504386f4e3538e1830d8083b2e8374b981991
[ "MIT" ]
permissive
fHachenberg/Terrain3D
e58eeb7ecc285575e8bc90cdb16a2416d9e1b5bb
9659fca4d11ddfb57834cb851b578d957bae0417
refs/heads/master
2021-01-18T04:40:08.470828
2016-02-18T03:30:41
2016-02-18T03:30:41
60,901,679
0
1
null
2016-06-11T10:14:44
2016-06-11T10:14:44
null
UTF-8
C++
false
false
3,324
cpp
//==================================================================================================================| // Created 2014.04.29 by Daniel L. Watkins // // Copyright (C) 2014-2015 Daniel L. Watkins // This file is licensed under the MIT License. //==================================================================================================================| #include "Camera.h" namespace t3d { namespace world { Camera::Camera() { lookAt(Vec3f(60, 20, 60)); } void Camera::init() { vbase::Loadable::Begin b(this); initializeOpenGLFunctions(); mTerrainRenderer.init(&mEnvironment->terrainData()); mEntityRenderer.setManager(&mEnvironment->entityManager()); } void Camera::refresh() { vbase::Loadable::Begin b(this); mTerrainRenderer.refresh(); } void Camera::prepareForRendering() { mTerrainRenderer.prepareForRendering(); } void Camera::cleanup() { mTerrainRenderer.cleanup(); } void Camera::render() { if (pIsLoading) { qWarning("Trying to render Camera while loading...rendering canceled."); return; } glEnable(GL_DEPTH_TEST); glDepthMask(GL_TRUE); glDepthFunc(GL_LEQUAL); glClearColor(1.0f, 0.9f, 0.8f , 1.0f); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT); mTerrainRenderer.render(pPos, viewMatrix(), perspectiveMatrix()); mEntityRenderer.renderAll(totalMatrix()); mEnvironment->assetManager().renderAllQueued(); emit finishedRendering(); } void Camera::resize(unsigned windowWidth, unsigned windowHeight) { pAspectRatio = (float)windowWidth / (float)windowHeight; glViewport(0, 0, (GLsizei)windowWidth, (GLsizei)windowHeight); } void Camera::reloadShaders() { vbase::Loadable::Begin b(this); mTerrainRenderer.reloadShaders(); } Mat4 Camera::orientaion() const { Mat4 orientation; orientation = glm::rotate(orientation, pOrientationAngle().y, Vec3f(1, 0, 0)); orientation = glm::rotate(orientation, pOrientationAngle().x, Vec3f(0, 1, 0)); return orientation; } void Camera::lookAt(Vec3f position) { if (pPos == position) { std::cout << "MEGA ERROR: You are trying to look at your origin" << std::endl; return; } Vec3f direction = glm::normalize(position - pPos); pOrientationAngle().y = vbase::radToDeg(asinf(-direction.y)); pOrientationAngle().x = -vbase::radToDeg(atan2f(-direction.x, -direction.z)); normalizeAngles(); } Vec3f Camera::forward() const { return Vec3f(glm::inverse(orientaion()) * Vec4f(0, 0, -1, 1)); } Vec3f Camera::right() const { return Vec3f(glm::inverse(orientaion()) * Vec4f(1, 0, 0, 1)); } Vec3f Camera::up() const { return Vec3f(glm::inverse(orientaion()) * Vec4f(0, 1, 0, 1)); } ///// PRIVATE Mat4 Camera::totalMatrix() const { return perspectiveMatrix() * viewMatrix(); } Mat4 Camera::perspectiveMatrix() const { return glm::perspective<float>(pFieldOfView, pAspectRatio, pNearPlane, pFarPlane); } Mat4 Camera::viewMatrix() const { return orientaion() * glm::translate(Mat4(), -pPos); } void Camera::normalizeAngles() { pOrientationAngle().x = fmodf(pOrientationAngle().x, 360.0f); if (pOrientationAngle().x < 0.0f) pOrientationAngle().x += 360.0f; if (pOrientationAngle().y > pMaxVerticalAngle) pOrientationAngle().y = pMaxVerticalAngle; else if (pOrientationAngle().y < -pMaxVerticalAngle) pOrientationAngle().y = -pMaxVerticalAngle; } }}