blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
4
201
content_id
stringlengths
40
40
detected_licenses
listlengths
0
85
license_type
stringclasses
2 values
repo_name
stringlengths
7
100
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
260 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
11.4k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
17 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
80 values
src_encoding
stringclasses
28 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
8
9.86M
extension
stringclasses
52 values
content
stringlengths
8
9.86M
authors
listlengths
1
1
author
stringlengths
0
119
2dec6c3c0e4645ee86b88fe94fd3aa1dd4ecbbf8
e372d895d7a55b9031403ce04822ae1c36ab055f
/d06/ex01/main.hpp
d19e03905e1161b0bcc1f5aa80c58ad208deb720
[]
no_license
maryna-kryshchuk/CPP-Piscine
9b74766a5aa31dbf0ff7026a86b5bdb9a9e9f09f
1bd945498f5d7ec2809b43ee77eea520ede4cee6
refs/heads/master
2021-09-17T14:00:19.635452
2018-07-02T11:31:03
2018-07-02T11:31:03
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,053
hpp
// ************************************************************************** // // // // ::: :::::::: // // main.hpp :+: :+: :+: // // +:+ +:+ +:+ // // By: avolgin <marvin@42.fr> +#+ +:+ +#+ // // +#+#+#+#+#+ +#+ // // Created: 2018/06/27 19:16:43 by avolgin #+# #+# // // Updated: 2018/06/27 19:17:43 by avolgin ### ########.fr // // // // ************************************************************************** // #include <iostream> #include <cmath> #ifndef MAIN_HPP # define MAIN_HPP struct Data{ std::string s1; int n; std::string s2; }; #endif
[ "avolgin@e1r3p8.unit.ua" ]
avolgin@e1r3p8.unit.ua
033c74231b93219087e13a87ad9af5125f796b56
5a1ea304e98c78f730e0a6b37a5aa4413822bec8
/Re-arrang Array 4.cpp
cc9988eceb22a9904a4789c9c66aeef6c369ea4b
[]
no_license
minhduc462001/languageC
367ed779543dd0e2c12c670ffd5f6d77ab86af90
1d1929ec5cffc28e567c1d1ab42598192531a8e4
refs/heads/main
2023-07-11T12:48:33.575956
2021-08-18T09:11:54
2021-08-18T09:11:54
397,538,538
0
0
null
null
null
null
UTF-8
C++
false
false
860
cpp
#include<bits/stdc++.h> using namespace std; int main(){ int t; cin>>t; while(t--){ int n; cin>>n; int a[n]; vector<int> v1; vector<int> v2; for(int i = 0;i<n;i++){ cin>>a[i]; } sort(a,a+n); if(n%2==0){ for(int i = 0;i<n;i++){ if(i<n/2){ v1.push_back(a[i]); } else v2.push_back(a[i]); } for(int i = 0;i<n/2;i++){ if(i==n/2){ cout<<v1[i]; } else{ cout<<v1[i]<<" "<<v2[i]<<" "; } } cout<<endl; } else{ for(int i = 0;i<n;i++){ if(i<n/2+1){ v1.push_back(a[i]); } else v2.push_back(a[i]); } //1 2 3 4 5 6 7 //0 5 //1 5 2 6 3 7 4 //3 2 4 5 2 //2 2 3 4 5 //0 3 1 4 2 //2 4 2 5 3 for(int i = 0;i<n/2+1;i++){ if(i==n/2){ cout<<v1[i]; } else{ cout<<v1[i]<<" "<<v2[i]<<" "; } } cout<<endl; } } return 0; }
[ "minhduc4600@gmail.com" ]
minhduc4600@gmail.com
ad85df56510f697cbee1ba7038f8e200be645ec9
90047daeb462598a924d76ddf4288e832e86417c
/net/dns/mdns_client_impl.h
f86de96f22213cd5027eda6855021f4c376e7ff9
[ "BSD-3-Clause" ]
permissive
massbrowser/android
99b8c21fa4552a13c06bbedd0f9c88dd4a4ad080
a9c4371682c9443d6e1d66005d4db61a24a9617c
refs/heads/master
2022-11-04T21:15:50.656802
2017-06-08T12:31:39
2017-06-08T12:31:39
93,747,579
2
2
BSD-3-Clause
2022-10-31T10:34:25
2017-06-08T12:36:07
null
UTF-8
C++
false
false
10,132
h
// Copyright 2013 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 NET_DNS_MDNS_CLIENT_IMPL_H_ #define NET_DNS_MDNS_CLIENT_IMPL_H_ #include <stdint.h> #include <map> #include <memory> #include <queue> #include <string> #include <utility> #include <vector> #include "base/cancelable_callback.h" #include "base/gtest_prod_util.h" #include "base/macros.h" #include "base/observer_list.h" #include "net/base/io_buffer.h" #include "net/base/ip_endpoint.h" #include "net/base/net_export.h" #include "net/dns/mdns_cache.h" #include "net/dns/mdns_client.h" #include "net/socket/datagram_server_socket.h" #include "net/socket/udp_server_socket.h" #include "net/socket/udp_socket.h" namespace base { class Clock; class Timer; } // namespace base namespace net { class MDnsSocketFactoryImpl : public MDnsSocketFactory { public: MDnsSocketFactoryImpl() {} ~MDnsSocketFactoryImpl() override{}; void CreateSockets( std::vector<std::unique_ptr<DatagramServerSocket>>* sockets) override; private: DISALLOW_COPY_AND_ASSIGN(MDnsSocketFactoryImpl); }; // A connection to the network for multicast DNS clients. It reads data into // DnsResponse objects and alerts the delegate that a packet has been received. class NET_EXPORT_PRIVATE MDnsConnection { public: class Delegate { public: // Handle an mDNS packet buffered in |response| with a size of |bytes_read|. virtual void HandlePacket(DnsResponse* response, int bytes_read) = 0; virtual void OnConnectionError(int error) = 0; virtual ~Delegate() {} }; explicit MDnsConnection(MDnsConnection::Delegate* delegate); virtual ~MDnsConnection(); // Both methods return true if at least one of the socket handlers succeeded. bool Init(MDnsSocketFactory* socket_factory); void Send(const scoped_refptr<IOBuffer>& buffer, unsigned size); private: class SocketHandler { public: SocketHandler(std::unique_ptr<DatagramServerSocket> socket, MDnsConnection* connection); ~SocketHandler(); int Start(); void Send(const scoped_refptr<IOBuffer>& buffer, unsigned size); private: int DoLoop(int rv); void OnDatagramReceived(int rv); // Callback for when sending a query has finished. void SendDone(int rv); std::unique_ptr<DatagramServerSocket> socket_; MDnsConnection* connection_; IPEndPoint recv_addr_; DnsResponse response_; IPEndPoint multicast_addr_; bool send_in_progress_; std::queue<std::pair<scoped_refptr<IOBuffer>, unsigned> > send_queue_; DISALLOW_COPY_AND_ASSIGN(SocketHandler); }; // Callback for handling a datagram being received on either ipv4 or ipv6. void OnDatagramReceived(DnsResponse* response, const IPEndPoint& recv_addr, int bytes_read); void PostOnError(SocketHandler* loop, int rv); void OnError(int rv); // Only socket handlers which successfully bound and started are kept. std::vector<std::unique_ptr<SocketHandler>> socket_handlers_; Delegate* delegate_; base::WeakPtrFactory<MDnsConnection> weak_ptr_factory_; DISALLOW_COPY_AND_ASSIGN(MDnsConnection); }; class MDnsListenerImpl; class NET_EXPORT_PRIVATE MDnsClientImpl : public MDnsClient { public: // The core object exists while the MDnsClient is listening, and is deleted // whenever the number of listeners reaches zero. The deletion happens // asychronously, so destroying the last listener does not immediately // invalidate the core. class Core : public base::SupportsWeakPtr<Core>, MDnsConnection::Delegate { public: Core(base::Clock* clock, base::Timer* timer); ~Core() override; // Initialize the core. Returns true on success. bool Init(MDnsSocketFactory* socket_factory); // Send a query with a specific rrtype and name. Returns true on success. bool SendQuery(uint16_t rrtype, const std::string& name); // Add/remove a listener to the list of listeners. void AddListener(MDnsListenerImpl* listener); void RemoveListener(MDnsListenerImpl* listener); // Query the cache for records of a specific type and name. void QueryCache(uint16_t rrtype, const std::string& name, std::vector<const RecordParsed*>* records) const; // Parse the response and alert relevant listeners. void HandlePacket(DnsResponse* response, int bytes_read) override; void OnConnectionError(int error) override; private: FRIEND_TEST_ALL_PREFIXES(MDnsTest, CacheCleanupWithShortTTL); typedef std::pair<std::string, uint16_t> ListenerKey; typedef std::map<ListenerKey, std::unique_ptr<base::ObserverList<MDnsListenerImpl>>> ListenerMap; // Alert listeners of an update to the cache. void AlertListeners(MDnsCache::UpdateType update_type, const ListenerKey& key, const RecordParsed* record); // Schedule a cache cleanup to a specific time, cancelling other cleanups. void ScheduleCleanup(base::Time cleanup); // Clean up the cache and schedule a new cleanup. void DoCleanup(); // Callback for when a record is removed from the cache. void OnRecordRemoved(const RecordParsed* record); void NotifyNsecRecord(const RecordParsed* record); // Delete and erase the observer list for |key|. Only deletes the observer // list if is empty. void CleanupObserverList(const ListenerKey& key); ListenerMap listeners_; MDnsCache cache_; base::Clock* clock_; base::Timer* cleanup_timer_; base::Time scheduled_cleanup_; std::unique_ptr<MDnsConnection> connection_; DISALLOW_COPY_AND_ASSIGN(Core); }; MDnsClientImpl(); ~MDnsClientImpl() override; // MDnsClient implementation: std::unique_ptr<MDnsListener> CreateListener( uint16_t rrtype, const std::string& name, MDnsListener::Delegate* delegate) override; std::unique_ptr<MDnsTransaction> CreateTransaction( uint16_t rrtype, const std::string& name, int flags, const MDnsTransaction::ResultCallback& callback) override; bool StartListening(MDnsSocketFactory* socket_factory) override; void StopListening() override; bool IsListening() const override; Core* core() { return core_.get(); } private: FRIEND_TEST_ALL_PREFIXES(MDnsTest, CacheCleanupWithShortTTL); // Test constructor, takes a mock clock and mock timer. MDnsClientImpl(std::unique_ptr<base::Clock> clock, std::unique_ptr<base::Timer> cleanup_timer); std::unique_ptr<Core> core_; std::unique_ptr<base::Clock> clock_; std::unique_ptr<base::Timer> cleanup_timer_; DISALLOW_COPY_AND_ASSIGN(MDnsClientImpl); }; class MDnsListenerImpl : public MDnsListener, public base::SupportsWeakPtr<MDnsListenerImpl> { public: MDnsListenerImpl(uint16_t rrtype, const std::string& name, base::Clock* clock, MDnsListener::Delegate* delegate, MDnsClientImpl* client); ~MDnsListenerImpl() override; // MDnsListener implementation: bool Start() override; // Actively refresh any received records. void SetActiveRefresh(bool active_refresh) override; const std::string& GetName() const override; uint16_t GetType() const override; MDnsListener::Delegate* delegate() { return delegate_; } // Alert the delegate of a record update. void HandleRecordUpdate(MDnsCache::UpdateType update_type, const RecordParsed* record_parsed); // Alert the delegate of the existence of an Nsec record. void AlertNsecRecord(); private: void ScheduleNextRefresh(); void DoRefresh(); uint16_t rrtype_; std::string name_; base::Clock* clock_; MDnsClientImpl* client_; MDnsListener::Delegate* delegate_; base::Time last_update_; uint32_t ttl_; bool started_; bool active_refresh_; base::CancelableClosure next_refresh_; DISALLOW_COPY_AND_ASSIGN(MDnsListenerImpl); }; class MDnsTransactionImpl : public base::SupportsWeakPtr<MDnsTransactionImpl>, public MDnsTransaction, public MDnsListener::Delegate { public: MDnsTransactionImpl(uint16_t rrtype, const std::string& name, int flags, const MDnsTransaction::ResultCallback& callback, MDnsClientImpl* client); ~MDnsTransactionImpl() override; // MDnsTransaction implementation: bool Start() override; const std::string& GetName() const override; uint16_t GetType() const override; // MDnsListener::Delegate implementation: void OnRecordUpdate(MDnsListener::UpdateType update, const RecordParsed* record) override; void OnNsecRecord(const std::string& name, unsigned type) override; void OnCachePurged() override; private: bool is_active() { return !callback_.is_null(); } void Reset(); // Trigger the callback and reset all related variables. void TriggerCallback(MDnsTransaction::Result result, const RecordParsed* record); // Internal callback for when a cache record is found. void CacheRecordFound(const RecordParsed* record); // Signal the transactionis over and release all related resources. void SignalTransactionOver(); // Reads records from the cache and calls the callback for every // record read. void ServeRecordsFromCache(); // Send a query to the network and set up a timeout to time out the // transaction. Returns false if it fails to start listening on the network // or if it fails to send a query. bool QueryAndListen(); uint16_t rrtype_; std::string name_; MDnsTransaction::ResultCallback callback_; std::unique_ptr<MDnsListener> listener_; base::CancelableCallback<void()> timeout_; MDnsClientImpl* client_; bool started_; int flags_; DISALLOW_COPY_AND_ASSIGN(MDnsTransactionImpl); }; } // namespace net #endif // NET_DNS_MDNS_CLIENT_IMPL_H_
[ "xElvis89x@gmail.com" ]
xElvis89x@gmail.com
d613b837fea2abe5a417b3c3e8ac73cb57755638
77e2747300555901308a57e460b77d69bb7f6cf4
/export/Core/Gateway/downloadgateway.h
c34209a9ecd2f475042c3f44028bdbfc1076e3b5
[]
no_license
FederikoCorp/Editor
af3b4e0d45e70a9a79ba15f0dc6c472f85d85c25
530e019581b36d8579f5e5495af88af8ae1b2254
refs/heads/master
2020-04-10T15:37:58.245304
2018-12-15T16:57:45
2018-12-15T16:57:45
161,116,477
0
0
null
null
null
null
UTF-8
C++
false
false
301
h
#ifndef STORAGEGATEWAY_H #define STORAGEGATEWAY_H #include <memory> class Scene; class DownloadGateway { public: DownloadGateway() = default; virtual ~DownloadGateway() = default; virtual std::unique_ptr<Scene> loadScene(const std::string &fileName) = 0; }; #endif // STORAGEGATEWAY_H
[ "KutilkinFedor@gmail.com" ]
KutilkinFedor@gmail.com
b171d22b8e357009a66f3147f51f50600d2e796c
90047daeb462598a924d76ddf4288e832e86417c
/ash/wm/drag_details.cc
c9841979223c3df3460f57a7f5d719fc2765665c
[ "BSD-3-Clause" ]
permissive
massbrowser/android
99b8c21fa4552a13c06bbedd0f9c88dd4a4ad080
a9c4371682c9443d6e1d66005d4db61a24a9617c
refs/heads/master
2022-11-04T21:15:50.656802
2017-06-08T12:31:39
2017-06-08T12:31:39
93,747,579
2
2
BSD-3-Clause
2022-10-31T10:34:25
2017-06-08T12:36:07
null
UTF-8
C++
false
false
2,826
cc
// Copyright 2014 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. #include "ash/wm/drag_details.h" #include "ash/public/cpp/window_properties.h" #include "ash/wm/window_resizer.h" #include "ash/wm_window.h" #include "ui/aura/window.h" #include "ui/base/hit_test.h" #include "ui/compositor/layer.h" namespace ash { namespace { int GetSizeChangeDirectionForWindowComponent(int window_component) { int size_change_direction = WindowResizer::kBoundsChangeDirection_None; switch (window_component) { case HTTOPLEFT: case HTTOPRIGHT: case HTBOTTOMLEFT: case HTBOTTOMRIGHT: case HTGROWBOX: case HTCAPTION: size_change_direction |= WindowResizer::kBoundsChangeDirection_Horizontal | WindowResizer::kBoundsChangeDirection_Vertical; break; case HTTOP: case HTBOTTOM: size_change_direction |= WindowResizer::kBoundsChangeDirection_Vertical; break; case HTRIGHT: case HTLEFT: size_change_direction |= WindowResizer::kBoundsChangeDirection_Horizontal; break; default: break; } return size_change_direction; } } // namespace DragDetails::DragDetails(WmWindow* window, const gfx::Point& location, int window_component, aura::client::WindowMoveSource source) : initial_state_type(window->GetWindowState()->GetStateType()), initial_bounds_in_parent(window->GetBounds()), initial_location_in_parent(location), // When drag starts, we might be in the middle of a window opacity // animation, on drag completion we must set the opacity to the target // opacity rather than the current opacity (crbug.com/687003). initial_opacity(window->GetLayer()->GetTargetOpacity()), window_component(window_component), bounds_change( WindowResizer::GetBoundsChangeForWindowComponent(window_component)), position_change_direction( WindowResizer::GetPositionChangeDirectionForWindowComponent( window_component)), size_change_direction( GetSizeChangeDirectionForWindowComponent(window_component)), is_resizable(bounds_change != WindowResizer::kBoundsChangeDirection_None), source(source), should_attach_to_shelf( window->GetType() == ui::wm::WINDOW_TYPE_PANEL && window->aura_window()->GetProperty(kPanelAttachedKey)) { wm::WindowState* window_state = window->GetWindowState(); if (window_state->IsNormalOrSnapped() && window_state->HasRestoreBounds() && window_component == HTCAPTION) { restore_bounds = window_state->GetRestoreBoundsInScreen(); } } DragDetails::~DragDetails() {} } // namespace ash
[ "xElvis89x@gmail.com" ]
xElvis89x@gmail.com
7165a5a5b8db0c0dd270b85d3e514839deeefc09
3ee8c47a2115db04c53cbe900cd7318273ce91e6
/src/server/struct/basic_blocks/BrickLayer.h
c66b36b022c76db76efb4b785c34cf8a111ff7f1
[]
no_license
kmintae/CITE
e805ea90147ce7bf7110f1aad2a2de78eff1fbfb
ce09634a7aca3148e8cf62fb32abb898e24a3e6d
refs/heads/master
2022-10-08T21:29:15.910006
2020-06-06T18:57:00
2020-06-06T18:57:00
269,110,811
0
0
null
null
null
null
UTF-8
C++
false
false
752
h
/** * BrickLayer.h * Purpose: Class encapsulates 'BrickLayer', Collection of Bricks in 'Same Level' * @author Mintae Kim */ #pragma once #ifndef _WINSOCKAPI_ #define _WINSOCKAPI_ #endif #include <string> #include <vector> #include <Windows.h> #include "Phase.h" #include "Brick.h" #include "../vector/Vector.h" class BrickLayer { private: std::vector<Brick*> brickList; std::vector<Brick*> readyList, ongoingList, stackedList; public: ~BrickLayer(); void addBrick(Brick *nb); std::vector<Brick*> &getBrickList(); std::vector<Brick*> getEnableBrickList(); std::vector<Brick*> &getStackedList(); void markAsSelected(Brick* b); void markAsDone(Brick* b); bool isDone(); std::string toString(); };
[ "shsesther928@postech.ac.kr" ]
shsesther928@postech.ac.kr
ca85657d2f26520a682eff6d968944de242e3299
04b1803adb6653ecb7cb827c4f4aa616afacf629
/ash/system/model/virtual_keyboard_model.h
91a7f82bbec7a8e0c8404c8a72ecc6fa5faaf169
[ "BSD-3-Clause" ]
permissive
Samsung/Castanets
240d9338e097b75b3f669604315b06f7cf129d64
4896f732fc747dfdcfcbac3d442f2d2d42df264a
refs/heads/castanets_76_dev
2023-08-31T09:01:04.744346
2021-07-30T04:56:25
2021-08-11T05:45:21
125,484,161
58
49
BSD-3-Clause
2022-10-16T19:31:26
2018-03-16T08:07:37
null
UTF-8
C++
false
false
1,655
h
// Copyright 2018 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 ASH_SYSTEM_MODEL_VIRTUAL_KEYBOARD_MODEL_H_ #define ASH_SYSTEM_MODEL_VIRTUAL_KEYBOARD_MODEL_H_ #include <memory> #include "ash/ash_export.h" #include "ash/keyboard/arc/arc_input_method_surface_manager.h" #include "base/macros.h" #include "base/observer_list.h" namespace ash { class ArcInputMethodSurfaceManager; // Model to store virtual keyboard visibility state. class ASH_EXPORT VirtualKeyboardModel : public ArcInputMethodSurfaceManager::Observer { public: class Observer { public: virtual ~Observer() {} virtual void OnVirtualKeyboardVisibilityChanged() = 0; }; VirtualKeyboardModel(); ~VirtualKeyboardModel() override; void AddObserver(Observer* observer); void RemoveObserver(Observer* observer); // Start/stop observing ArcInputMethodSurfaceManager. void SetInputMethodSurfaceManagerObserver( ArcInputMethodSurfaceManager* input_method_surface_manager); void RemoveInputMethodSurfaceManagerObserver( ArcInputMethodSurfaceManager* input_method_surface_manager); // ArcInputMethodSurfaceManager::Observer: void OnArcInputMethodSurfaceBoundsChanged(const gfx::Rect& bounds) override; bool visible() const { return visible_; } private: void NotifyChanged(); // The visibility of virtual keyboard. bool visible_ = false; base::ObserverList<Observer>::Unchecked observers_; DISALLOW_COPY_AND_ASSIGN(VirtualKeyboardModel); }; } // namespace ash #endif // ASH_SYSTEM_MODEL_VIRTUAL_KEYBOARD_MODEL_H_
[ "sunny.nam@samsung.com" ]
sunny.nam@samsung.com
d9701cdb6bc54cddff81fcf94404b4de386065a7
634120df190b6262fccf699ac02538360fd9012d
/Develop/Server/GameServerOck/unittest/TestBattleArena_Packet.cpp
2d3c424e6668f6436ee40e131a2389cb5bdcd1e9
[]
no_license
ktj007/Raiderz_Public
c906830cca5c644be384e68da205ee8abeb31369
a71421614ef5711740d154c961cbb3ba2a03f266
refs/heads/master
2021-06-08T03:37:10.065320
2016-11-28T07:50:57
2016-11-28T07:50:57
74,959,309
6
4
null
2016-11-28T09:53:49
2016-11-28T09:53:49
null
UHC
C++
false
false
23,983
cpp
#include "stdafx.h" #include "GTestForward.h" #include "GPartySystem.h" #include "GBattleArenaMgr.h" #include "GPlayerBattleArena.h" #include "GMatchRule_SameTeamMember.h" #include "GGameRule_DeathMatch.h" #include "GBattleArenaDefine.h" #include "GGlobal.h" #include "GServer.h" #include "GSharedField.h" #include "GPlayerObjectManager.h" #include "GParty.h" #include "GFieldFactory.h" #include "FBasePlayer.h" #include "GDynamicFieldMaster.h" SUITE(BattleArena_Packet) { struct FBattleArena : public FBasePlayer { FBattleArena() { // 초기 필드 만들기 GFieldInfo* pSFieldInfo = new GFieldInfo; pSFieldInfo->m_bDynamic = false; pSFieldInfo->m_nFieldID = 777; pSFieldInfo->m_nDefaultChannelCount = 1; pSFieldInfo->SetFieldMaxXY_ForTest(50000.0f, 50000.0f); gmgr.pFieldInfoMgr->Insert(pSFieldInfo); gmgr.pFieldMgr->GetFactory()->CreateSharedFieldMaster(pSFieldInfo); m_pField = gmgr.pFieldMgr->GetFactory()->CreateSharedField(gsys.pServer->NewUID(), pSFieldInfo->m_nFieldID, 0); // 플레이어 생성 MakePlayer(m_pPlayerBlueLeader, L"BlueLeader", &m_pLinkBlueLeader); MakePlayer(m_pPlayerBlueMember1, L"BlueMember1", &m_pLinkBlueMember1); MakePlayer(m_pPlayerBlueMember2, L"BlueMember2", &m_pLinkBlueMember2); MakePlayer(m_pPlayerRedLeader, L"RedLeader", &m_pLinkRedLeader); MakePlayer(m_pPlayerRedMember1, L"RedMember1", &m_pLinkRedMember1); MakePlayer(m_pPlayerRedMember2, L"RedMember2", &m_pLinkRedMember2); // 파티 생성 MakeParty(m_pPlayerBlueLeader, m_pPlayerBlueMember1, m_pPlayerBlueMember2); MakeParty(m_pPlayerRedLeader, m_pPlayerRedMember1, m_pPlayerRedMember2); gsys.pServer->FrameCounterClear(); // 투기장 필드그룹 정보 FIELD_GROUP_INFO* info = new FIELD_GROUP_INFO; info->nID = GConst::ARENA_FIELDGROUP_ID; // 투기장 필드 정보 GFieldInfo* pFieldInfo = new GFieldInfo; pFieldInfo->m_bDynamic = true; pFieldInfo->m_nFieldID = GConst::ARENA_FIELD_ID; pFieldInfo->SetFieldMaxXY_ForTest(50000.0f, 50000.0f); // 시작 마커 정보 MARKER_INFO markerStarting; markerStarting.nID = 1; markerStarting.nFieldID = GConst::ARENA_FIELD_ID; markerStarting.vPoint = vec3(1000,1000,1000); markerStarting.vDir = vec3(0,1,0); pFieldInfo->InsertMarkerInfo(markerStarting); // 1번 시작점 markerStarting.nID = 2; markerStarting.nFieldID = GConst::ARENA_FIELD_ID; markerStarting.vPoint = vec3(2000,2000,2000); markerStarting.vDir = vec3(0,0,1); pFieldInfo->InsertMarkerInfo(markerStarting); // 2번 시작점 info->vecFieldInfo.push_back(pFieldInfo); gmgr.pFieldInfoMgr->Insert(pFieldInfo); gmgr.pFieldInfoMgr->InsertGroup(info); gmgr.pBattleArenaMgr->AddGameRule(new GGameRule_DeathMatch); } ~FBattleArena() { test.network.ClearLinks(); } void MakePlayer(GEntityPlayer*& pPlayer, std::wstring strName, MockLink** pMockLink=NULL) { pPlayer = NewEntityPlayer(m_pField, vec3(100,100,0)); if (pMockLink) { *pMockLink = test.network.NewLink(pPlayer); SetIgnoreCommonCommand(*pMockLink); } swprintf_s(pPlayer->GetPlayerInfo()->szName, strName.c_str()); vecAllPlayers.push_back(pPlayer); } void MakeParty(GEntityPlayer* pLeader, GEntityPlayer* pMember, GEntityPlayer* pMember2) { GParty* pParty = GUTHelper_Party::CreateParty(pLeader); GUTHelper_Party::AddMember(pParty, pMember); GUTHelper_Party::AddMember(pParty, pMember2); } void BeginCommandRecord() { m_pLinkBlueLeader->ResetCommands(); m_pLinkBlueMember1->ResetCommands(); m_pLinkBlueMember2->ResetCommands(); m_pLinkRedLeader->ResetCommands(); m_pLinkRedMember1->ResetCommands(); m_pLinkRedMember2->ResetCommands(); } void SetIgnoreCommonCommand(MockLink* pLink) { pLink->AddIgnoreID(MC_BATTLEARENA_KILL_INFO); pLink->AddIgnoreID(MC_FIELD_IN_NPC); pLink->AddIgnoreID(MC_FIELD_OUT_NPC); pLink->AddIgnoreID(MC_FIELD_IN_PLAYER); pLink->AddIgnoreID(MC_FIELD_OUT_PLAYER); pLink->AddIgnoreID(MC_FIELD_SECTOR_ENTITY_INFO); pLink->AddIgnoreID(MC_TRIGGER_UPDATE_USABLE_SENSOR); pLink->AddIgnoreID(MC_ACTION_USE_TALENT); pLink->AddIgnoreID(MC_ACTION_TALENT_HIT); pLink->AddIgnoreID(MC_CHAR_ENEMY_INFO); pLink->AddIgnoreID(MC_NPC_CHANGE_COMBAT_TARGET); pLink->AddIgnoreID(MC_ACTION_TALENT_HIT_NO_MF); pLink->AddIgnoreID(MC_FIELD_SET_TIME); pLink->AddIgnoreID(MC_CHAR_ENEMY_INFO_CLEAR); pLink->AddIgnoreID(MC_NPCINTERACTION_END); pLink->AddIgnoreID(MC_NPCINTERACTION_ICON); pLink->AddIgnoreID(MC_PARTY_REFRESH_INFO_ALL); pLink->AddIgnoreID(MC_PARTY_REFRESH_INFO); pLink->AddIgnoreID(MC_PARTY_NOTIFY_JOIN); pLink->AddIgnoreID(MC_PARTY_INVITE_QUESTION); pLink->AddIgnoreID(MC_ACTION_DIE); pLink->AddIgnoreID(MC_FIELD_PREPARING_TO_LOAD); pLink->AddIgnoreID(MC_CHAR_MYINFO); pLink->AddIgnoreID(MC_TIME_SYNCH); pLink->AddIgnoreID(MC_MSG_RES); } void WaitForPlayCount(int nCount=GConst::ARENA_GAME_COUNT) { for (int i=0; i<nCount; i++) { gsys.pServer->Update(1.0f); } } void WaitForScoreBoardCount() { for (int i=0; i<GConst::ARENA_SCOREBOARD_COUNT; i++) { gsys.pServer->Update(1.0f); } } void SetMatchRule_SameEntryMember() { gmgr.pBattleArenaMgr->GetMatcher().ClearRules(); gmgr.pBattleArenaMgr->GetMatcher().AddRule(new GMatchRule_SameTeamMember()); } void SetFinishRule_DeathMatch(int nMaxLifeCounter = 1) { gmgr.pBattleArenaMgr->ClearGameRules(); GGameRule_DeathMatch* pFinishRule = new GGameRule_DeathMatch(); pFinishRule->SetMaxLifeCounter(nMaxLifeCounter); gmgr.pBattleArenaMgr->AddGameRule(pFinishRule); } void CheckRegister(MockLink* m_pLink, int nExpectedGameType) { const minet::MCommand& Command = m_pLink->GetCommand(0); CHECK_EQUAL(Command.GetID(), MC_BATTLEARENA_REGISTER); if (Command.GetParameterCount() < 1) { CHECK(false); return; } int nGameType; if (!Command.GetParameter(&nGameType, 0, MPT_INT)) { CHECK(false); return; } CHECK_EQUAL(nGameType, nExpectedGameType); m_pLink->PopFrontCommand(); } void CheckDeregister(MockLink* m_pLink) { const minet::MCommand& Command = m_pLink->GetCommand(0); CHECK_EQUAL(Command.GetID(), MC_BATTLEARENA_DEREGISTER); m_pLink->PopFrontCommand(); } void CheckMatched(MockLink* m_pLink) { const minet::MCommand& Command = m_pLink->GetCommand(0); CHECK_EQUAL(Command.GetID(), MC_BATTLEARENA_MATCHED); m_pLink->PopFrontCommand(); } void CheckGameCounting(MockLink* m_pLink, float fExpectedCount) { const minet::MCommand& Command = m_pLink->GetCommand(0); CHECK_EQUAL(Command.GetID(), MC_BATTLEARENA_COUNTING); if (Command.GetParameterCount() < 1) { CHECK(false); return; } float fCount; if (!Command.GetParameter(&fCount, 0, MPT_FLOAT)) { CHECK(false); return; } CHECK_EQUAL(fCount, fExpectedCount); m_pLink->PopFrontCommand(); } void CheckGameStart(MockLink* m_pLink) { const minet::MCommand& Command = m_pLink->GetCommand(0); CHECK_EQUAL(Command.GetID(), MC_BATTLEARENA_GAMESTART); m_pLink->PopFrontCommand(); } void CheckChangeField(MockLink* m_pLink) { const minet::MCommand& Command = m_pLink->GetCommand(0); CHECK_EQUAL(Command.GetID(), MC_FIELD_CHANGE_FIELD); m_pLink->PopFrontCommand(); } void CheckReadyForDeathmatch(MockLink* m_pLink, int nExpectedLife) { const minet::MCommand& Command = m_pLink->GetCommand(0); CHECK_EQUAL(Command.GetID(), MC_BATTLEARENA_READY_DEATHMATCH); if (Command.GetParameterCount() < 1) { CHECK(false); return; } int nLife; if (!Command.GetParameter(&nLife, 0, MPT_INT)) { CHECK(false); return; } CHECK_EQUAL(nLife, nExpectedLife); m_pLink->PopFrontCommand(); } void CheckDeathmatchUpdate(MockLink* m_pLink) { const minet::MCommand& Command = m_pLink->GetCommand(0); CHECK_EQUAL(Command.GetID(), MC_BATTLEARENA_DEATHMATCH_UPDATE); m_pLink->PopFrontCommand(); } void CheckScoreboardForDeathmatch(MockLink* m_pLink) { const minet::MCommand& Command = m_pLink->GetCommand(0); CHECK_EQUAL(Command.GetID(), MC_BATTLEARENA_SCOREBOARD_DEATHMATCH); m_pLink->PopFrontCommand(); } void CheckFinished(MockLink* m_pLink) { const minet::MCommand& Command = m_pLink->GetCommand(0); CHECK_EQUAL(Command.GetID(), MC_BATTLEARENA_FINISHED); m_pLink->PopFrontCommand(); } void CheckDie(MockLink* m_pLink) { const minet::MCommand& Command = m_pLink->GetCommand(0); CHECK_EQUAL(Command.GetID(), MC_BATTLEARENA_DIE); m_pLink->PopFrontCommand(); } GSharedField* m_pField; GEntityPlayer* m_pPlayerBlueLeader; GEntityPlayer* m_pPlayerBlueMember1; GEntityPlayer* m_pPlayerBlueMember2; GEntityPlayer* m_pPlayerRedLeader; GEntityPlayer* m_pPlayerRedMember1; GEntityPlayer* m_pPlayerRedMember2; MockLink* m_pLinkBlueLeader; MockLink* m_pLinkBlueMember1; MockLink* m_pLinkBlueMember2; MockLink* m_pLinkRedLeader; MockLink* m_pLinkRedMember1; MockLink* m_pLinkRedMember2; vector<GEntityPlayer*> vecAllPlayers; DECLWRAPPER_FieldInfoMgr; DECLWRAPPER_FieldMgr; DECLWRAPPER_BuffMgr; GTestMgrWrapper<GBattleArenaMgr> BattleArenaMgr; GTestMgrWrapper<GPlayerObjectManager> PlayerObjetMgr; DECLWRAPPER_NPCMgr; }; TEST_FIXTURE(FBattleArena, Register) { SetMatchRule_SameEntryMember(); BeginCommandRecord(); CHECK_EQUAL(0, gmgr.pBattleArenaMgr->GetBattleArenaQty()); CHECK_EQUAL(0, gmgr.pBattleArenaMgr->GetTeamQty()); m_pLinkBlueLeader->OnRecv(MC_BATTLEARENA_REGISTER_REQ, 0, NULL); CheckRegister(m_pLinkBlueLeader, BattleArena::GAMETYPE_DEATHMATCH); CheckRegister(m_pLinkBlueMember1, BattleArena::GAMETYPE_DEATHMATCH); CHECK_EQUAL(0, gmgr.pBattleArenaMgr->GetBattleArenaQty()); CHECK_EQUAL(1, gmgr.pBattleArenaMgr->GetTeamQty()); m_pLinkRedLeader->OnRecv(MC_BATTLEARENA_REGISTER_REQ, 0, NULL); CheckRegister(m_pLinkRedLeader, BattleArena::GAMETYPE_DEATHMATCH); CheckRegister(m_pLinkRedMember1, BattleArena::GAMETYPE_DEATHMATCH); CHECK_EQUAL(1, gmgr.pBattleArenaMgr->GetBattleArenaQty()); CHECK_EQUAL(2, gmgr.pBattleArenaMgr->GetTeamQty()); } TEST_FIXTURE(FBattleArena, Deregister) { SetMatchRule_SameEntryMember(); CHECK_EQUAL(0, gmgr.pBattleArenaMgr->GetBattleArenaQty()); CHECK_EQUAL(0, gmgr.pBattleArenaMgr->GetTeamQty()); m_pLinkBlueLeader->OnRecv(MC_BATTLEARENA_REGISTER_REQ, 0, NULL); CHECK_EQUAL(0, gmgr.pBattleArenaMgr->GetBattleArenaQty()); CHECK_EQUAL(1, gmgr.pBattleArenaMgr->GetTeamQty()); BeginCommandRecord(); m_pLinkBlueLeader->OnRecv(MC_BATTLEARENA_DEREGISTER_REQ, 0, NULL); CHECK_EQUAL(m_pLinkBlueLeader->GetCommand(0).GetID(), MC_BATTLEARENA_DEREGISTER); CheckDeregister(m_pLinkBlueLeader); CHECK_EQUAL(0, gmgr.pBattleArenaMgr->GetBattleArenaQty()); CHECK_EQUAL(0, gmgr.pBattleArenaMgr->GetTeamQty()); } TEST_FIXTURE(FBattleArena, GameFlow) { SetMatchRule_SameEntryMember(); SetFinishRule_DeathMatch(2); // 2점 내기 BeginCommandRecord(); m_pLinkBlueLeader->OnRecv(MC_BATTLEARENA_REGISTER_REQ, 0, NULL); m_pLinkRedLeader->OnRecv(MC_BATTLEARENA_REGISTER_REQ, 0, NULL); // 매칭 시스템에 등록됨 CheckRegister(m_pLinkBlueLeader, BattleArena::GAMETYPE_DEATHMATCH); CheckRegister(m_pLinkBlueMember1, BattleArena::GAMETYPE_DEATHMATCH); CheckRegister(m_pLinkRedLeader, BattleArena::GAMETYPE_DEATHMATCH); CheckRegister(m_pLinkRedMember1, BattleArena::GAMETYPE_DEATHMATCH); // 매칭됨 CheckMatched(m_pLinkBlueLeader); CheckMatched(m_pLinkBlueMember1); CheckMatched(m_pLinkRedLeader); CheckMatched(m_pLinkRedMember1); // 게임 카운팅 시작 CheckChangeField(m_pLinkBlueLeader); CheckChangeField(m_pLinkBlueMember1); CheckChangeField(m_pLinkRedLeader); CheckChangeField(m_pLinkRedMember1); RUN_LIST(GEntityPlayer, vecAllPlayers, GetPlayerField().GetFieldEntry().OnEnterFieldComplete()); CheckReadyForDeathmatch(m_pLinkBlueLeader, 2); CheckReadyForDeathmatch(m_pLinkBlueMember1, 2); CheckReadyForDeathmatch(m_pLinkRedLeader, 2); CheckReadyForDeathmatch(m_pLinkRedMember1, 2); CheckGameCounting(m_pLinkBlueLeader, GConst::ARENA_GAME_COUNT); CheckGameCounting(m_pLinkBlueMember1, GConst::ARENA_GAME_COUNT); CheckGameCounting(m_pLinkRedLeader, GConst::ARENA_GAME_COUNT); CheckGameCounting(m_pLinkRedMember1, GConst::ARENA_GAME_COUNT); // 게임 시작 WaitForPlayCount(); CheckGameStart(m_pLinkBlueLeader); CheckGameStart(m_pLinkBlueMember1); CheckGameStart(m_pLinkRedLeader); CheckGameStart(m_pLinkRedMember1); // 1회 죽음 m_pPlayerRedLeader->doDie(); CheckDie(m_pLinkBlueLeader); CheckDie(m_pLinkBlueMember1); CheckDie(m_pLinkRedLeader); CheckDie(m_pLinkRedMember1); CheckDeathmatchUpdate(m_pLinkBlueLeader); CheckDeathmatchUpdate(m_pLinkBlueMember1); CheckDeathmatchUpdate(m_pLinkRedLeader); CheckDeathmatchUpdate(m_pLinkRedMember1); // 2회 죽음 m_pPlayerRedMember1->doDie(); CheckDie(m_pLinkBlueLeader); CheckDie(m_pLinkBlueMember1); CheckDie(m_pLinkRedLeader); CheckDie(m_pLinkRedMember1); CheckDeathmatchUpdate(m_pLinkBlueLeader); CheckDeathmatchUpdate(m_pLinkBlueMember1); CheckDeathmatchUpdate(m_pLinkRedLeader); CheckDeathmatchUpdate(m_pLinkRedMember1); // 게임 종료, 점수판 보기 CheckScoreboardForDeathmatch(m_pLinkBlueLeader); CheckScoreboardForDeathmatch(m_pLinkBlueMember1); CheckScoreboardForDeathmatch(m_pLinkRedLeader); CheckScoreboardForDeathmatch(m_pLinkRedMember1); // 게임 마무리 WaitForScoreBoardCount(); CheckFinished(m_pLinkBlueLeader); CheckFinished(m_pLinkBlueMember1); CheckFinished(m_pLinkRedLeader); CheckFinished(m_pLinkRedMember1); gmgr.pFieldMgr->Update(0.0f); // 투기장 필드가 삭제될 틱 // MC_CHANGE_FILED, HP 갱신, 부활 패킷 남음 CHECK_EQUAL(4, m_pLinkBlueLeader->GetCommandCount()); CHECK_EQUAL(4, m_pLinkBlueMember1->GetCommandCount()); CHECK_EQUAL(4, m_pLinkRedLeader->GetCommandCount()); CHECK_EQUAL(4, m_pLinkRedMember1->GetCommandCount()); } TEST_FIXTURE(FBattleArena, RejoinInCounting) { // 게임규칙 추가 gmgr.pBattleArenaMgr->GetMatcher().ClearRules(); gmgr.pBattleArenaMgr->GetMatcher().AddRule(new GMatchRule_SameTeamMember()); gmgr.pBattleArenaMgr->ClearGameRules(); GGameRule_DeathMatch* pFinishRule = new GGameRule_DeathMatch(); pFinishRule->SetMaxLifeCounter(2); // 데스매치 라이프를 1로 설정 gmgr.pBattleArenaMgr->AddGameRule(pFinishRule); CHECK_EQUAL(true, m_pPlayerBlueLeader->GetPlayerBattleArena().RegisterEntry()); CHECK_EQUAL(true, m_pPlayerRedLeader->GetPlayerBattleArena().RegisterEntry()); // 새로운 투기장이 생성됨 GBattleArena* pBattleArena1 = gmgr.pBattleArenaMgr->FindBattleArena(m_pPlayerBlueLeader->GetPlayerBattleArena().GetBattleArenaUID()); RUN_LIST(GEntityPlayer, vecAllPlayers, GetPlayerField().GetFieldEntry().OnEnterFieldComplete()); WaitForPlayCount(1); // 1초 지남 // 게임중에 접속 종료 GDynamicFieldMaster* pFieldGroup = gmgr.pFieldMgr->GetDynamicFieldMaster(m_pPlayerRedMember2->GetPlayerField().GetDynamicFieldGroupUID()); GGateInfo rGateInfo = m_pPlayerRedMember2->GetPlayerField().GetGateInfo(); rGateInfo.nFieldID = m_pPlayerRedMember2->GetFieldID(); rGateInfo.vPosition = m_pPlayerRedMember2->GetPos(); m_pPlayerRedMember2->GetPlayerField().SetGateInfo(rGateInfo); m_pPlayerRedMember2->Destroy(); GPlayerObject* pPlayerObj = gmgr.pPlayerObjectManager->GetPlayer(m_pPlayerRedMember2->GetUID()); TVALID(pPlayerObj); gmgr.pPlayerObjectManager->ErasePlayer(pPlayerObj->GetUID()); // 재접속 BeginCommandRecord(); gmgr.pPlayerObjectManager->AddPlayer(pPlayerObj); pPlayerObj->OnEndLogin(); m_pLinkRedMember2->OnRecv(MC_CHAR_GAMESTART, 2, NEW_INT(-1), NEW_VEC(vec3::ZERO)); CHECK_EQUAL(3, m_pLinkRedMember2->GetCommandCount()); // 필드 이동 패킷 { const minet::MCommand& Command = m_pLinkRedMember2->GetCommand(0); CHECK_EQUAL(Command.GetID(), MC_FIELD_CHANGE_FIELD); } // 게임규칙 패킷 { const minet::MCommand& Command = m_pLinkRedMember2->GetCommand(1); CHECK_EQUAL(Command.GetID(), MC_BATTLEARENA_READY_DEATHMATCH); if (Command.GetParameterCount() < 1) { CHECK(false); return; } int nMaxScore; if (!Command.GetParameter(&nMaxScore, 0, MPT_INT)) { CHECK(false); return; } CHECK_EQUAL(2, nMaxScore); // 1초 지난 시간 } // 카운팅 패킷 { const minet::MCommand& Command = m_pLinkRedMember2->GetCommand(2); CHECK_EQUAL(Command.GetID(), MC_BATTLEARENA_COUNTING); if (Command.GetParameterCount() < 1) { CHECK(false); return; } float fWaitCount; if (!Command.GetParameter(&fWaitCount, 0, MPT_FLOAT)) { CHECK(false); return; } CHECK_EQUAL(GConst::ARENA_GAME_COUNT-1.0f, fWaitCount); // 1초 지난 시간 } } TEST_FIXTURE(FBattleArena, RejoinInPlaying) { // 게임규칙 추가 gmgr.pBattleArenaMgr->GetMatcher().ClearRules(); gmgr.pBattleArenaMgr->GetMatcher().AddRule(new GMatchRule_SameTeamMember()); gmgr.pBattleArenaMgr->ClearGameRules(); GGameRule_DeathMatch* pFinishRule = new GGameRule_DeathMatch(); pFinishRule->SetMaxLifeCounter(2); // 데스매치 라이프를 1로 설정 gmgr.pBattleArenaMgr->AddGameRule(pFinishRule); CHECK_EQUAL(true, m_pPlayerBlueLeader->GetPlayerBattleArena().RegisterEntry()); CHECK_EQUAL(true, m_pPlayerRedLeader->GetPlayerBattleArena().RegisterEntry()); // 새로운 투기장이 생성됨 GBattleArena* pBattleArena1 = gmgr.pBattleArenaMgr->FindBattleArena(m_pPlayerBlueLeader->GetPlayerBattleArena().GetBattleArenaUID()); RUN_LIST(GEntityPlayer, vecAllPlayers, GetPlayerField().GetFieldEntry().OnEnterFieldComplete()); WaitForPlayCount(); // 게임중에 접속 종료 GDynamicFieldMaster* pFieldGroup = gmgr.pFieldMgr->GetDynamicFieldMaster(m_pPlayerRedMember2->GetPlayerField().GetDynamicFieldGroupUID()); GGateInfo rGateInfo = m_pPlayerRedMember2->GetPlayerField().GetGateInfo(); rGateInfo.nFieldID = m_pPlayerRedMember2->GetFieldID(); rGateInfo.vPosition = m_pPlayerRedMember2->GetPos(); m_pPlayerRedMember2->GetPlayerField().SetGateInfo(rGateInfo); m_pPlayerRedMember2->Destroy(); GPlayerObject* pPlayerObj = gmgr.pPlayerObjectManager->GetPlayer(m_pPlayerRedMember2->GetUID()); TVALID(pPlayerObj); gmgr.pPlayerObjectManager->ErasePlayer(pPlayerObj->GetUID()); // 재접속 BeginCommandRecord(); gmgr.pPlayerObjectManager->AddPlayer(pPlayerObj); pPlayerObj->OnEndLogin(); m_pLinkRedMember2->OnRecv(MC_CHAR_GAMESTART, 2, NEW_INT(-1), NEW_VEC(vec3::ZERO)); CHECK_EQUAL(2, m_pLinkRedMember2->GetCommandCount()); // 파티 검사 MUID uidParty = m_pPlayerRedMember2->GetPartyUID(); GParty* pParty = gsys.pPartySystem->FindParty(uidParty); TVALID(pParty); CHECK_EQUAL(3, pParty->GetMemberCount()); CHECK_EQUAL(3, pParty->GetOnlineMemberCount()); // 필드 이동 패킷 { const minet::MCommand& Command = m_pLinkRedMember2->GetCommand(0); CHECK_EQUAL(Command.GetID(), MC_FIELD_CHANGE_FIELD); if (Command.GetParameterCount() < 4) { CHECK(false); return; } int nFieldID; if (!Command.GetParameter(&nFieldID, 0, MPT_INT)) { CHECK(false); return; } CHECK_EQUAL(GConst::ARENA_FIELD_ID, nFieldID); } // 재접속 패킷 { const minet::MCommand& Command = m_pLinkRedMember2->GetCommand(1); CHECK_EQUAL(Command.GetID(), MC_BATTLEARENA_REJOIN_DEATHMATCH); if (Command.GetParameterCount() < 6) { CHECK(false); return; } float fGameElaspedTime; int nMaxLife; MUID uidTeam[2]; int nScore[2]; if (!Command.GetParameter(&fGameElaspedTime, 0, MPT_FLOAT)) { CHECK(false); return; } if (!Command.GetParameter(&nMaxLife, 1, MPT_INT)) { CHECK(false); return; } if (!Command.GetParameter(&uidTeam[0], 2, MPT_UID)) { CHECK(false); return; } if (!Command.GetParameter(&uidTeam[1], 3, MPT_UID)) { CHECK(false); return; } if (!Command.GetParameter(&nScore[0], 4, MPT_INT)) { CHECK(false); return; } if (!Command.GetParameter(&nScore[1], 5, MPT_INT)) { CHECK(false); return; } CHECK_EQUAL(0.0f, fGameElaspedTime); CHECK_EQUAL(2, nMaxLife); CHECK_EQUAL(m_pPlayerBlueLeader->GetPartyUID(), uidTeam[0]); CHECK_EQUAL(m_pPlayerRedLeader->GetPartyUID(), uidTeam[1]); CHECK_EQUAL(2, nScore[0]); CHECK_EQUAL(2, nScore[1]); } m_pLinkRedMember2->ResetCommands(); // 1회 죽음 m_pPlayerRedLeader->doDie(); CheckDie(m_pLinkBlueLeader); CheckDie(m_pLinkBlueMember1); CheckDie(m_pLinkBlueMember2); CheckDie(m_pLinkRedLeader); CheckDie(m_pLinkRedMember1); CheckDie(m_pLinkRedMember2); CheckDeathmatchUpdate(m_pLinkBlueLeader); CheckDeathmatchUpdate(m_pLinkBlueMember1); CheckDeathmatchUpdate(m_pLinkBlueMember2); CheckDeathmatchUpdate(m_pLinkRedLeader); CheckDeathmatchUpdate(m_pLinkRedMember1); CheckDeathmatchUpdate(m_pLinkRedMember2); // 2회 죽음 m_pPlayerRedMember1->doDie(); CheckDie(m_pLinkBlueLeader); CheckDie(m_pLinkBlueMember1); CheckDie(m_pLinkBlueMember2); CheckDie(m_pLinkRedLeader); CheckDie(m_pLinkRedMember1); CheckDie(m_pLinkRedMember2); CheckDeathmatchUpdate(m_pLinkBlueLeader); CheckDeathmatchUpdate(m_pLinkBlueMember1); CheckDeathmatchUpdate(m_pLinkBlueMember2); CheckDeathmatchUpdate(m_pLinkRedLeader); CheckDeathmatchUpdate(m_pLinkRedMember1); CheckDeathmatchUpdate(m_pLinkRedMember2); // 게임 종료, 점수판 보기 CheckScoreboardForDeathmatch(m_pLinkBlueLeader); CheckScoreboardForDeathmatch(m_pLinkBlueMember1); CheckScoreboardForDeathmatch(m_pLinkBlueMember2); CheckScoreboardForDeathmatch(m_pLinkRedLeader); CheckScoreboardForDeathmatch(m_pLinkRedMember1); CheckScoreboardForDeathmatch(m_pLinkRedMember2); // 게임 마무리 WaitForScoreBoardCount(); CheckFinished(m_pLinkBlueLeader); CheckFinished(m_pLinkBlueMember1); CheckFinished(m_pLinkBlueMember2); CheckFinished(m_pLinkRedLeader); CheckFinished(m_pLinkRedMember1); CheckFinished(m_pLinkRedMember2); } TEST_FIXTURE(FBattleArena, RejoinAfterBrokenField) { // 게임규칙 추가 gmgr.pBattleArenaMgr->GetMatcher().ClearRules(); gmgr.pBattleArenaMgr->GetMatcher().AddRule(new GMatchRule_SameTeamMember()); gmgr.pBattleArenaMgr->ClearGameRules(); GGameRule_DeathMatch* pFinishRule = new GGameRule_DeathMatch(); pFinishRule->SetMaxLifeCounter(2); // 데스매치 라이프를 1로 설정 gmgr.pBattleArenaMgr->AddGameRule(pFinishRule); CHECK_EQUAL(true, m_pPlayerBlueLeader->GetPlayerBattleArena().RegisterEntry()); CHECK_EQUAL(true, m_pPlayerRedLeader->GetPlayerBattleArena().RegisterEntry()); // 새로운 투기장이 생성됨 GBattleArena* pBattleArena1 = gmgr.pBattleArenaMgr->FindBattleArena(m_pPlayerBlueLeader->GetPlayerBattleArena().GetBattleArenaUID()); RUN_LIST(GEntityPlayer, vecAllPlayers, GetPlayerField().GetFieldEntry().OnEnterFieldComplete()); WaitForPlayCount(); // 게임 종료됨 m_pPlayerRedLeader->doDie(); m_pPlayerRedMember1->doDie(); // 점수판 뜨고 종료되기전에 한명 종료 GGateInfo rGateInfo = m_pPlayerRedMember2->GetPlayerField().GetGateInfo(); rGateInfo.nFieldID = m_pPlayerRedMember2->GetFieldID(); rGateInfo.vPosition = m_pPlayerRedMember2->GetPos(); m_pPlayerRedMember2->GetPlayerField().SetGateInfo(rGateInfo); m_pPlayerRedMember2->Destroy(); GPlayerObject* pPlayerObj = gmgr.pPlayerObjectManager->GetPlayer(m_pPlayerRedMember2->GetUID()); TVALID(pPlayerObj); gmgr.pPlayerObjectManager->ErasePlayer(pPlayerObj->GetUID()); // 게임 종료후 재접속 WaitForScoreBoardCount(); gmgr.pPlayerObjectManager->AddPlayer(pPlayerObj); pPlayerObj->OnEndLogin(); m_pLinkRedMember2->OnRecv(MC_CHAR_GAMESTART, 2, NEW_INT(-1), NEW_VEC(vec3::ZERO)); // 원래의 공유필드로 돌아옴 RUN_LIST(GEntityPlayer, vecAllPlayers, GetPlayerField().GetFieldEntry().OnEnterFieldComplete()); CHECK_EQUAL(777, m_pPlayerRedMember2->GetFieldID()); } }
[ "espause0703@gmail.com" ]
espause0703@gmail.com
3d802eace3f74489216bf69230db84bfe341969b
4503b4ec29e9a30d26c433bac376f2bddaefd9e5
/PCL 1.7.2_vs2013/x64/3rdParty/VTK-6.1.0/include/vtk-6.1/vtkGLSLShaderDeviceAdapter2.h
f81a37dca7531f7b9ca97d40d66f42ed08332334
[]
no_license
SwunZH/ecocommlibs
0a872e0bbecbb843a0584fb787cf0c5e8a2a270b
4cff09ff1e479f5f519f207262a61ee85f543b3a
refs/heads/master
2021-01-25T12:02:39.067444
2018-02-23T07:04:43
2018-02-23T07:04:43
123,447,012
1
0
null
2018-03-01T14:37:53
2018-03-01T14:37:53
null
UTF-8
C++
false
false
3,016
h
/*========================================================================= Program: Visualization Toolkit Module: vtkGLSLShaderDeviceAdapter2.h Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the above copyright notice for more information. =========================================================================*/ // .NAME vtkGLSLShaderDeviceAdapter2 - adapter to pass generic vertex // attributes to the rendering pipeline to be used in a vtkShaderProgram2. // .SECTION Description // vtkShaderDeviceAdapter subclass for vtkShaderProgram2. #ifndef __vtkGLSLShaderDeviceAdapter2_h #define __vtkGLSLShaderDeviceAdapter2_h #include "vtkRenderingOpenGLModule.h" // For export macro #include "vtkShaderDeviceAdapter2.h" class vtkShaderProgram2; class VTKRENDERINGOPENGL_EXPORT vtkGLSLShaderDeviceAdapter2 : public vtkShaderDeviceAdapter2 { public: vtkTypeMacro(vtkGLSLShaderDeviceAdapter2, vtkShaderDeviceAdapter2); static vtkGLSLShaderDeviceAdapter2 *New(); virtual void PrintSelf(ostream &os, vtkIndent indent); // Descrition: // This method is called before rendering. This gives the shader device // adapter an opportunity to collect information, such as attribute indices // that it will need while rendering. virtual void PrepareForRender(); // Description: // Sends a single attribute to the graphics card. // The attrname parameter identifies the name of attribute. // The components parameter gives the number of // components in the attribute. In general, components must be between // 1-4, but a rendering system may impose even more constraints. The // type parameter is a VTK type enumeration (VTK_FLOAT, VTK_INT, etc.). // Again, a rendering system may not support all types for all // attributes. The attribute parameter is the actual data for the // attribute. // If offset is specified, it is added to attribute pointer \c after // it has been casted to the proper type. // If attribute is NULL, the OpenGL ID for the attribute will simply be // cached. virtual void SendAttribute(const char* attrname, int components, int type, const void *attribute, unsigned long offset=0); //BTX protected: vtkGLSLShaderDeviceAdapter2(); ~vtkGLSLShaderDeviceAdapter2(); // Description: int GetAttributeLocation(const char* attrName); private: vtkGLSLShaderDeviceAdapter2(const vtkGLSLShaderDeviceAdapter2&); // Not implemented void operator=(const vtkGLSLShaderDeviceAdapter2&); // Not implemented class vtkInternal; vtkInternal* Internal; //ETX }; #endif
[ "hnk0313@3e9e098e-e079-49b3-9d2b-ee27db7392fb" ]
hnk0313@3e9e098e-e079-49b3-9d2b-ee27db7392fb
83ab639bdbd4a5291aa817dcd021713585bb77a3
3bd36034275b3211f07ccee2801a54aa370f2aae
/modules/remote_controller/board_zz_rcs_F1.cpp
d507b3f437fef5f0c32b8aceb49a9e3d6b1cca78
[]
no_license
my12doom/pilot2
6cb8b2a07f972c6204bd522fe108a1601e103df8
414ed523d515f76615531516e82470a61d3f7f03
refs/heads/master
2023-03-10T03:49:14.444871
2023-03-03T07:16:06
2023-03-03T07:16:06
47,027,997
11
5
null
null
null
null
UTF-8
C++
false
false
2,884
cpp
#include "board.h" #include <HAL/STM32F1/F1SPI.h> #include <HAL/STM32F1/F1GPIO.h> #include <HAL/STM32F1/F1Interrupt.h> #include <HAL/STM32F1/F1SysTimer.h> #include <misc.h> #include <HAL/STM32F1/F1Timer.h> #include <HAL/STM32F1/F1UART.h> #include <stm32f10x.h> #include <string.h> #include "PPMOUT_f1.h" using namespace STM32F1; using namespace HAL; int16_t adc_data[6] = {0}; F1GPIO _cs(GPIOA, GPIO_Pin_8); F1GPIO _ce(GPIOA, GPIO_Pin_9); F1GPIO _irq(GPIOA, GPIO_Pin_10); F1GPIO _dbg(GPIOB, GPIO_Pin_11); F1GPIO _dbg2(GPIOB, GPIO_Pin_8); F1SPI _spi; F1Interrupt _interrupt; F1Timer _timer(TIM2); STM32F1::F1UART _sbus(USART2); STM32F1::F1UART tele(USART3); extern "C" void TIM2_IRQHandler(void) { _timer.call_callback(); } int board_init() { NVIC_PriorityGroupConfig(NVIC_PriorityGroup_3); RCC_APB2PeriphClockCmd(RCC_APB2Periph_AFIO, ENABLE); GPIO_PinRemapConfig(GPIO_Remap_SWJ_JTAGDisable, ENABLE); cs = &_cs; ce = &_ce; irq = &_irq; dbg = &_dbg; dbg2 = &_dbg2; SCL = NULL; SDA = NULL; spi = &_spi; interrupt = &_interrupt; timer = &_timer; //sbus = &_sbus; //telemetry = &tele; //tele.set_baudrate(500000); _sbus.set_baudrate(115200); // _spi.init(SPI2); _interrupt.init(GPIOA, GPIO_Pin_10, interrupt_falling); NVIC_InitTypeDef NVIC_InitStructure; NVIC_InitStructure.NVIC_IRQChannel = EXTI15_10_IRQn; NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = 2; NVIC_InitStructure.NVIC_IRQChannelSubPriority = 0; NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE; NVIC_Init(&NVIC_InitStructure); static PPMOUT ppmout; ppm = &ppmout; return 0; } static uint16_t le2be_uint16(uint16_t in) { uint8_t msb = in >> 8; uint8_t lsb = in & 0xff; return msb | (lsb<<8); } uint8_t key; void custom_output(uint8_t * payload, int payload_size, int latency) { static int64_t last_output = 0; if (systimer->gettime() - last_output < 14000 || latency > 200000) return; last_output = systimer->gettime(); key = payload[12]; struct { uint8_t fade; uint8_t system; uint16_t channels[7]; } dsm_packet = {0}; dsm_packet.fade = 0; dsm_packet.system = 0xB2; // DSMX 11ms 2048 // first 5 channel: analog //uint16_t values[7];// throttle, aileron, elevator, rudder, gear uint16_t * values = (uint16_t*)payload; dsm_packet.channels[0] = le2be_uint16((values[2]>>1) | (0<<11)); dsm_packet.channels[1] = le2be_uint16((values[0]>>1) | (1<<11)); dsm_packet.channels[2] = le2be_uint16((values[1]>>1) | (2<<11)); dsm_packet.channels[3] = le2be_uint16((values[3]>>1) | (3<<11)); dsm_packet.channels[4] = le2be_uint16((values[4]>>1) | (4<<11)); // 6th channel: combination of buttons dsm_packet.channels[5] = le2be_uint16(key | (5<<11)); // 7th channel, 0xffff for compatability dsm_packet.channels[6] = 0xffff; _sbus.write(&dsm_packet, sizeof(dsm_packet)); }
[ "monike@zerozero.cn" ]
monike@zerozero.cn
48f08b2f9e61024a9850f090d8c37e730fc58e70
0636fd41b62270cdc6778ba31e3e6ff5cc18d57b
/PacketBuffer.h
aa59fcb554ccaa808446fd80906768cb613ca7d8
[]
no_license
seanwarren/fifo-flim
d29615c25eeffc8c2c5ca837a6c4e2358a5b9413
8697c16f27add476d7a2da72664a24e1fc51092b
refs/heads/master
2021-03-27T10:26:44.179535
2019-05-30T04:08:18
2019-05-30T04:08:18
45,884,696
0
0
null
null
null
null
UTF-8
C++
false
false
3,350
h
#pragma once #include <vector> #include <mutex> #include <condition_variable> template<class T> class PacketBuffer { typedef enum { BufferEmpty, BufferFilling, BufferFilled, BufferProcessing } BufferState; public: PacketBuffer(int n_buffers, size_t buffer_length) : n_buffers(n_buffers), buffer_length(buffer_length) { // Allocate buffers buffer = std::vector<std::vector<T>>(n_buffers, std::vector<T>(buffer_length)); buffer_state = std::vector<BufferState>(n_buffers, BufferEmpty); buffer_size = std::vector<size_t>(n_buffers, 0); } void reset() { std::fill(buffer_state.begin(), buffer_state.end(), BufferEmpty); std::fill(buffer_size.begin(), buffer_size.end(), 0); for (auto& b : buffer) b.resize(buffer_length); fill_idx = 0; process_idx = 0; stream_finished = false; } double fillFactor() { return ((fill_idx - process_idx + n_buffers) % n_buffers) / static_cast<double>(n_buffers); } std::vector<T>* getNextBufferToFill() { // return an empty vector if there is no valid buffer if (buffer_state[fill_idx] != BufferEmpty) { qWarning("Internal buffer overflowed"); return nullptr; } // Get buffer and increment index of next buffer buffer_state[fill_idx] = BufferFilling; buffer_size[fill_idx] = 0; return &(buffer[fill_idx]); } void finishedFillingBuffer(size_t size) { // Set state of buffer to filled and increment pointer buffer_size[fill_idx] = size; buffer_state[fill_idx] = BufferFilled; fill_idx = (fill_idx + 1) % n_buffers; buffer_cv.notify_all(); } void failedToFillBuffer() { buffer_state[fill_idx] = BufferEmpty; } std::vector<T>& getNextBufferToProcess() { // return an empty vector if there is no valid buffer if (buffer_state[process_idx] != BufferFilled) return empty_buffer; // Get buffer and increment index of next buffer buffer_state[process_idx] = BufferProcessing; return buffer[process_idx]; } size_t getProcessingBufferSize() { if (buffer_state[process_idx] != BufferFilled) return 0; return buffer_size[process_idx]; } bool streamFinished() { return stream_finished && (buffer_state[process_idx] != BufferFilled); } void waitForNextBuffer() { if (buffer_state[process_idx] != BufferFilled) { std::unique_lock<std::mutex> lk(buffer_mutex); buffer_cv.wait(lk, [this] { return stream_finished || (buffer_state[process_idx] == BufferFilled); }); } } void finishedProcessingBuffer() { // Set state of buffer to empty buffer_state[process_idx] = BufferEmpty; // Increment index of point to next buffer process_idx = (process_idx + 1) % n_buffers; } void setStreamFinished() { stream_finished = true; buffer_cv.notify_all(); } private: int fill_idx = 0; int process_idx = 0; int n_buffers; size_t buffer_length; std::vector<T> empty_buffer; std::vector<BufferState> buffer_state; std::vector<std::vector<T>> buffer; std::vector<size_t> buffer_size; std::mutex buffer_mutex; std::condition_variable buffer_cv; bool stream_finished = false; };
[ "s.warren@garvan.org.au" ]
s.warren@garvan.org.au
65939a5e0fcae0c516abcc8aef0c96c431a157a8
5d83739af703fb400857cecc69aadaf02e07f8d1
/Archive2/76/b57191471a5ef5/main.cpp
e297f0f778d3aaf1877e75456a40c99253945a26
[]
no_license
WhiZTiM/coliru
3a6c4c0bdac566d1aa1c21818118ba70479b0f40
2c72c048846c082f943e6c7f9fa8d94aee76979f
refs/heads/master
2021-01-01T05:10:33.812560
2015-08-24T19:09:22
2015-08-24T19:09:22
56,789,706
3
0
null
null
null
null
UTF-8
C++
false
false
452
cpp
#include <type_traits> template<class ...> using void_t = void; template<class, class = void> struct has_iterator : std::false_type {}; template<class T> struct has_iterator<T, void_t<typename T::iterator>> : std::true_type {}; struct vector_int { typedef int* iterator; }; struct vector_bool { }; int main() { static_assert(has_iterator<vector_int>::value, compiler); static_assert(!has_iterator<vector_bool>::value, compiler); }
[ "francis.rammeloo@36614edc-3e3a-acb8-9062-c8ae0e4185df" ]
francis.rammeloo@36614edc-3e3a-acb8-9062-c8ae0e4185df
019f2c0b59296df0afcc78f0522c3174d2aa85c4
1e919fcd207a948f04dd0efc263b53ebe405cefb
/TREES/30DayLeetCodeChallenge 30thq.cpp
1d50b7ca37208d4a2f7ea9d6233cf66302f1165a
[]
no_license
Leodicap99/leetcode
40acc8d493d435195c11b20a203738d00a2a1e23
d17020c3e11ce325394232988c65e83dc71fe8da
refs/heads/master
2022-12-07T07:44:09.241698
2020-08-30T05:29:22
2020-08-30T05:29:22
258,233,603
17
6
null
null
null
null
UTF-8
C++
false
false
1,203
cpp
/* Check If a String Is a Valid Sequence from Root to Leaves Path in a Binary Tree Given a binary tree where each path going from the root to any leaf form a valid sequence, check if a given string is a valid sequence in such binary tree. We get the given string from the concatenation of an array of integers arr and the concatenation of all values of the nodes along a path results in a sequence in the given binary tree. Input: root = [0,1,0,0,1,0,null,null,1,0,0], arr = [0,1,0,1] Output: true Explanation: The path 0 -> 1 -> 0 -> 1 is a valid sequence (green color in the figure). Other valid sequences are: 0 -> 1 -> 1 -> 0 0 -> 0 -> 0 */ ANSWER: bool dfs(TreeNode* root,vector<int>& arr,int index) { if(!root)return false; if(index==arr.size()-1 && !root->left && !root->right &&root->val==arr[index])return true; else if(index<arr.size()&&root->val==arr[index]) return dfs(root->left,arr,index+1)||dfs(root->right,arr,index+1); else return false; } bool isValidSequence(TreeNode* root, vector<int>& arr) { if(!root)return arr.size()==0; return dfs(root,arr,0); }
[ "noreply@github.com" ]
noreply@github.com
75671f77d3f4a95397f7ee22d08660935bad1f54
01cd23a38c901356c1d03869faf9a528bdeba720
/framework/PVRUtils/OpenGLES/ErrorsGles.cpp
1fa9f7095f9313877f0cb9c8747711f87dc1fe52
[ "MIT" ]
permissive
powervr-graphics/Native_SDK
f29fd2848b43abb290e09632391282d90b40a046
91b58cc2d1d2b1405b997ad7bc46f9224d0ec1ce
refs/heads/master
2023-07-07T01:20:21.987328
2023-04-28T15:57:49
2023-04-28T15:57:49
25,927,337
651
238
MIT
2022-02-28T09:05:46
2014-10-29T15:28:11
C++
UTF-8
C++
false
false
1,311
cpp
/*! \brief Contains implementation for the ApiErrors utilities \file PVRUtils/OpenGLES/ErrorsGles.cpp \author PowerVR by Imagination, Developer Technology Team \copyright Copyright (c) Imagination Technologies Limited. */ //!\cond NO_DOXYGEN #include "PVRUtils/OpenGLES/ErrorsGles.h" #include "PVRUtils/OpenGLES/BindingsGles.h" namespace pvr { namespace utils { const char* getGlErrorString(GLuint apiError) { static char buffer[64]; switch (apiError) { case GL_INVALID_ENUM: return "GL_INVALID_ENUM"; case GL_INVALID_VALUE: return "GL_INVALID_VALUE"; case GL_INVALID_OPERATION: return "GL_INVALID_OPERATION"; case GL_OUT_OF_MEMORY: return "GL_OUT_OF_MEMORY"; case GL_INVALID_FRAMEBUFFER_OPERATION: return "GL_INVALID_FRAMEBUFFER_OPERATION"; case GL_NO_ERROR: return "GL_NO_ERROR"; } // Return the HEX code of the error as a std::string. sprintf(buffer, "0x%X", apiError); return buffer; } void throwOnGlError(const char* note) { GLuint err = static_cast<GLuint>(gl::GetError()); if (err != GL_NO_ERROR) { throw GlError(err, note); } } bool succeeded(Result res) { if (res == Result::Success) { return true; } else { throwOnGlError("ApiErrors::succeeded"); Log(LogLevel::Error, "%s", getResultCodeString(res)); } return false; } } // namespace utils } // namespace pvr //!\endcond
[ "omarzohdi@gmail.com" ]
omarzohdi@gmail.com
0b9018ec763fd66119be77db98a30ca8d414a510
5ff88468827a2465709a1fe60587c0894c4c30fe
/process_test.cpp
fbbf8f1e9001ec35e83fc0d54b4ac7e23cb49f7c
[]
no_license
Callie-Johnston/Process_Exercise
830fa2edaa0ea990676b3b265170e60e5e7167a4
9d1ddeecc9b3f4122f42617e0078e30d49e5445b
refs/heads/master
2021-01-22T06:37:36.973899
2012-04-13T07:07:39
2012-04-13T07:07:39
null
0
0
null
null
null
null
UTF-8
C++
false
false
894
cpp
#include <cstdlib> #include <cstdio> #include <unistd.h> #include <iostream> #include <sstream> #include <memory> #include "Process.hpp" int main(int argc, char *argv[]) { using namespace std; std::vector<char*> args; for(int nn=1; nn<argc; ++nn) { std::cerr << "Arg: " << argv[nn] << std::endl; args.push_back(argv[nn]); } // args.push_back( NULL ); { Process myproc(args,true); //sleep(5); // write/read test for(int n=0; n<5; ++n) { stringstream ss; ss << "1+ " << n << endl; cerr << "calling write with line=" << ss.str() << "END" << endl; myproc.write(ss.str()); string output = myproc.read(); cerr << "output from process: " << output << "END" << endl; } } cerr << "Process object destroyed" << endl; cerr << "Program exiting. Confirm child process has been cleaned up." << endl; //sleep(5); return(EXIT_SUCCESS); }
[ "calliej7@vt.edu" ]
calliej7@vt.edu
167799f7e4a950359741142127ce0e385a25ef89
3e5bbc8cc5f70fa19c68ebed93aa418fb11c0362
/Codigo/Estruturas/rmq.cpp
bab04d301e65f828b6d2679be12e77d82eac3127
[]
no_license
brenopoggiali/Biblioteca
51522566e035c3c11decf55fb2bfdf29af36b651
ab24cc31a27f9466461a8ad85b577395f74dcacf
refs/heads/master
2021-03-13T21:13:50.354141
2020-03-10T21:02:08
2020-03-10T21:02:08
246,713,119
0
0
null
2020-03-12T01:05:00
2020-03-12T01:04:59
null
UTF-8
C++
false
false
1,560
cpp
// RMQ <O(n), O(1)> // // O(n) pra buildar, query O(1) // Para retornar o indice, basta // trocar v[...] para ... na query template<typename T> struct rmq { vector<T> v; int n, b; vector<int> id, st; vector<vector<int>> table; vector<vector<vector<int>>> entre; int op(int x, int y) { return v[x] < v[y] ? x : y; } rmq(vector<T>& v_) { v = v_, n = v.size(); b = (__builtin_clz(0)-__builtin_clz(n))/4 + 1; id.resize(n); table.assign(4*b, vector<int>((n+b-1)/b)); entre.assign(1<<b<<b, vector<vector<int>>(b, vector<int>(b, -1))); for (int i = 0; i < n; i += b) { int at = 0, l = min(n, i+b); st.clear(); for (int j = i; j < l; j++) { while (st.size() and op(st.back(), j) == j) st.pop_back(), at *= 2; st.push_back(j), at = 2*at+1; } for (int j = i; j < l; j++) id[j] = at; if (entre[at][0][0] == -1) for (int x = 0; x < l-i; x++) { entre[at][x][x] = x; for (int y = x+1; y < l-i; y++) entre[at][x][y] = op(i+entre[at][x][y-1], i+y) - i; } table[0][i/b] = i+entre[at][0][l-i-1]; } for (int j = 1; (1<<j) <= (n+b-1)/b; j++) for (int i = 0; i+(1<<j) <= (n+b-1)/b; i++) table[j][i] = op(table[j-1][i], table[j-1][i+(1<<(j-1))]); } T query(int i, int j) { if (i/b == j/b) return v[i/b*b+entre[id[i]][i%b][j%b]]; int x = i/b+1, y = j/b-1, ans = i; if (x <= y) { int t = __builtin_clz(0) - __builtin_clz(y-x+1) - 1; ans = op(ans, op(table[t][x], table[t][y-(1<<t)+1])); } ans = op(ans, op(i/b*b+entre[id[i]][i%b][b-1], j/b*b+entre[id[j]][0][j%b])); return v[ans]; } };
[ "malettabruno@gmail.com" ]
malettabruno@gmail.com
d8a5025a0cc72594da3186b847dc6d935b6cbabb
5b2083c53a8ac57449285d454028891313c7ece9
/resource.cpp
0f82eda61de9771a75a368a6565bfade0b10ad65
[]
no_license
mediogre/eskada-editor
1569ea176d030ea5ee422152afbf9a85937940b1
2fd83d4351901c522653e572a26885bdb8b9a735
refs/heads/master
2020-05-31T14:47:18.196102
2010-01-14T08:40:03
2010-01-14T08:40:03
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,350
cpp
#include "global.h" irr::scene::IMesh* m_greed; irr::video::ITexture* t_greed; irr::scene::IMesh* m_wall; irr::video::ITexture* t_wall; irr::scene::IMesh* m_rock; irr::video::ITexture* t_rock; irr::scene::IMesh* m_tree; irr::video::ITexture* t_tree; irr::scene::IMesh* m_floor; irr::video::ITexture* t_world_1; void loadResourses() { m_greed = smgr->getMesh("res/greed.3ds"); t_greed = driver->getTexture("res/floor_greed.jpg"); m_wall = smgr->getMesh("res/wall.3ds"); t_wall = driver->getTexture("res/wall.jpg"); m_rock = smgr->getMesh("res/obj_rock.3ds"); t_rock = driver->getTexture("res/obj_rock.jpg"); //m_wall = smgr->getMesh("res/test_home.3ds"); //t_wall = driver->getTexture("res/test_home.jpg"); m_tree = smgr->getMesh("res/obj_tree.3ds"); t_tree = driver->getTexture("res/obj_tree_1.jpg"); m_floor = smgr->getMesh("res/floor.3ds"); t_world_1 = driver->getTexture("res/floor_world_1.jpg"); /* irr::video::IImage *tmp_img, *img = driver->createImageFromFile("res/floor_sand.jpg"); for(int i=0; i<16; i++) { tmp_img = driver->createImage(img, irr::core::position2d<irr::s32>(i*32,0), irr::core::dimension2d<irr::u32>(32,32)); t_sand16[i] = driver->addTexture("t", tmp_img); } img->drop(); */ } void unloadResourses() { clearTiles(); }
[ "elmigo@yandex.ru" ]
elmigo@yandex.ru
91936f9a2432979a701239cd345d579d4db9dcb6
1bbfeca83bac53d22b1110ca7f6c9a28bc46c22e
/ru-olymp-train-winter-2009/Submits/081227/10_51_17_15_A_4171.cpp
73f2235d1d64bdb9fb2ef65ac9101eaeaadc29a0
[]
no_license
stden/olymp
a633c1dfb1dd8d184a123d6da89f46163d5fad93
d85a4bb0b88797ec878b64db86ad8ec8854a63cd
refs/heads/master
2016-09-06T06:30:56.466755
2013-07-13T08:48:16
2013-07-13T08:48:16
5,158,472
1
0
null
null
null
null
UTF-8
C++
false
false
1,647
cpp
#include<iostream> #include<vector> #include<string> #include<cstring> #include<algorithm> #include<set> #include<map> #include<queue> #include<deque> #include<cmath> using namespace std; typedef long long int64; typedef long double real; #define forn(i,n) for(int i=0;i<(int)n;i++) #define ford(i,n) for(int i=(int)n-1;i>=0;i--) #define all(a) a.begin(),a.end() #define fs first #define sc second #define pb push_back #define mp make_pair #define task "help" const int km=3; const int bm=3; string good[km]={"Program","halt","exit"}; string no[km]={"close","input.txt","output.txt"}; const int smax=5; double should=3; char zn[smax]={'+','=','-','*','/'}; int inf=500; int md=200; vector<string> a; string s; void answer(string s){ printf("%s\n",s.data()); exit(0); } int main(){ freopen(task".in","rt",stdin); freopen(task".out","wt",stdout); srand(time(0)); int bad=0; while(cin>>s)a.pb(s); if(a.size()>inf)answer("NO"); bool find_const=false; bool find_type=false; forn(i,a.size()){ forn(j,a[i].size()-6) if(a[i].substr(j,6)=="objfpc")answer("NO"); forn(k,km) if(a[i].size()>=good[k].size()) forn(j,(int)a[i].size()-good[k].size()) if(a[i].substr(j,good[k].size())==good[k])answer("YES"); forn(k,bm) if(a[i].size()>=no[k].size()) forn(j,(int)a[i].size()-no[k].size()) if(a[i].substr(j,no[k].size())==no[k])answer("NO"); if(a[i]=="const")find_const=true; if(a[i]=="type")find_type=true; if(a[i].length()>md)answer("NO"); } if(!find_const && !find_type && a.size()>250)answer("NO"); answer("YES"); return 0; };
[ "super.denis@gmail.com" ]
super.denis@gmail.com
72115cbbb14c319fc786e479b38e8b81063be03b
4bea57e631734f8cb1c230f521fd523a63c1ff23
/projects/openfoam/rarefied-flows/impingment/sims/test/nozzle1/3.06/grad(p)
44893932266694f8c7480acb7cf8fa6ba7ca838f
[]
no_license
andytorrestb/cfal
76217f77dd43474f6b0a7eb430887e8775b78d7f
730fb66a3070ccb3e0c52c03417e3b09140f3605
refs/heads/master
2023-07-04T01:22:01.990628
2021-08-01T15:36:17
2021-08-01T15:36:17
294,183,829
1
0
null
null
null
null
UTF-8
C++
false
false
45,812
/*--------------------------------*- 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 "3.06"; object grad(p); } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [1 -2 -2 0 0 0 0]; internalField nonuniform List<vector> 1900 ( (55707.1 -0.112831 0) (-41128.9 -0.071952 0) (-2336.44 0.359483 0) (748.555 0.428013 0) (687.499 1.58399 0) (709.873 -0.488479 0) (726.408 -13.7815 0) (702.546 -83.9956 0) (696.94 -226.81 0) (-648.563 -349.135 0) (55707 -0.267726 0) (-41128.4 -0.0704309 0) (-2335.94 0.384731 0) (749.779 -1.0766 0) (686.583 -2.76036 0) (694.507 -6.91383 0) (642.901 -14.5136 0) (489.517 -63.1747 0) (431.8 -159.866 0) (171.224 -392.678 0) (55706.8 4.01457e-09 0) (-41128.2 6.75016e-10 0) (-2337.44 2.66454e-09 0) (745.41 7.28306e-10 0) (681.662 -6.21725e-10 0) (698.12 -1.56319e-09 0) (670.147 -6.03961e-10 0) (557.193 -2.66454e-10 0) (367.436 7.10543e-10 0) (-58.282 7.10543e-11 0) (55707 0.267726 0) (-41128.4 0.0704309 0) (-2335.94 -0.384731 0) (749.779 1.0766 0) (686.583 2.76036 0) (694.507 6.91383 0) (642.901 14.5136 0) (489.517 63.1747 0) (431.8 159.866 0) (171.224 392.678 0) (55707.1 0.112831 0) (-41128.9 0.071952 0) (-2336.44 -0.359483 0) (748.555 -0.428013 0) (687.499 -1.58399 0) (709.873 0.488479 0) (726.408 13.7815 0) (702.546 83.9956 0) (696.94 226.81 0) (-648.563 349.135 0) (-1059.08 430.829 1.12817e-11) (-842.361 387.814 -1.37669e-11) (-4715.53 81.5147 -1.72269e-11) (-18686.3 2374.32 0) (-10157.6 18477 -5.90683e-11) (-204.384 281.129 1.13596e-11) (-1357.78 35.2792 1.37669e-11) (-3563.78 -541.069 1.72269e-11) (-10497.3 463.656 0) (-7469.46 14545.2 0) (-342.214 7.24058e-10 0) (-1551.59 1.32448e-09 0) (-4350.2 -1.94906e-09 0) (-10547.2 6.72862e-11 0) (942.671 -6.66134e-09 0) (-204.384 -281.129 1.13596e-11) (-1357.78 -35.2792 1.37669e-11) (-3563.78 541.069 1.72269e-11) (-10497.3 -463.656 0) (-7469.46 -14545.2 0) (-1059.08 -430.829 -3.40009e-11) (-842.361 -387.814 -1.37669e-11) (-4715.53 -81.5147 -1.72269e-11) (-18686.3 -2374.32 -4.49998e-11) (-10157.6 -18477 5.90683e-11) (16677.5 -4019.19 3.32748e-11) (390.657 -371.78 -2.78321e-11) (1345.87 852.086 0) (-1299.3 1147.79 2.17551e-11) (-13148.4 -2169.76 -9.52149e-12) (10435.4 -4372.12 -1.65769e-11) (1638.51 -101.272 1.39104e-11) (1856.9 -15.4122 0) (-2590.08 -290.208 -1.36164e-11) (-12598.5 -6970.78 2.31155e-12) (12079.6 -1.43544e-09 0) (1439.24 -4.55476e-10 0) (1164.43 8.0265e-09 0) (-4484.61 -5.05043e-09 5.44304e-12) (-14100.6 -1.26734e-08 -4.6231e-12) (10435.4 4372.12 -1.65769e-11) (1638.51 101.272 1.39104e-11) (1856.9 15.4122 0) (-2590.08 290.208 -1.36164e-11) (-12598.5 6970.78 2.31155e-12) (16677.5 4019.19 1.65769e-11) (390.657 371.78 1.11968e-14) (1345.87 -852.086 0) (-1299.3 -1147.79 3.45677e-14) (-13148.4 2169.76 9.52149e-12) (-30687.9 -2791.8 0) (-18401.8 7389.79 0) (1424.28 4027.79 0) (-358.292 1804.14 0) (-1437.66 871.056 0) (-816.681 338.252 0) (-102.749 209.849 0) (206.289 172.386 0) (405.104 145.699 0) (639.901 118.381 0) (840.019 114.02 0) (1010.29 111.32 0) (1132.64 110.274 0) (1169.25 108.14 0) (1089.28 105.021 0) (898.194 101.626 0) (650.371 98.4984 0) (393.371 95.7851 0) (195.556 94.169 0) (43.592 92.9243 0) (-125.647 92.799 0) (-283.506 93.6146 0) (-493.384 94.6308 0) (-770.943 96.2992 0) (-1046.84 97.685 0) (-1278.15 98.5339 0) (-1411.78 98.4999 0) (-1439.48 97.4586 0) (-1385.08 95.594 0) (-1284.43 93.4456 0) (-1169.32 91.6689 0) (-1064.26 90.2176 0) (-979.701 89.3316 0) (-908.148 85.7999 0) (-790.213 80.2389 0) (-612.631 76.8877 0) (-410.15 68.4798 0) (-107.397 83.3269 0) (56359 298.135 0) (-71928 2917.73 0) (-28616.2 -1567.83 0) (-18645.1 9261.08 0) (448.853 3978.84 0) (-994.592 966.448 0) (-1570.03 425.434 0) (-876.761 142.132 0) (-115.635 89.4109 0) (201.305 73.2198 0) (401.228 63.1766 0) (637.188 50.7654 0) (839.632 48.5545 0) (1010.1 46.8539 0) (1132.47 45.9732 0) (1168.83 44.646 0) (1088.7 42.8323 0) (897.596 40.9424 0) (649.839 39.2781 0) (392.986 37.9318 0) (195.312 37.1723 0) (43.4797 36.6491 0) (-125.585 36.6082 0) (-283.347 36.9656 0) (-493.143 37.4799 0) (-770.661 38.3855 0) (-1046.63 39.3169 0) (-1278.07 40.167 0) (-1411.89 40.7666 0) (-1439.78 41.0018 0) (-1385.51 40.9414 0) (-1284.87 40.8293 0) (-1169.69 41.0032 0) (-1064.52 41.5272 0) (-980.127 42.551 0) (-908.975 42.6981 0) (-790.992 42.0749 0) (-614.035 42.7701 0) (-409.446 39.6165 0) (-82.1718 49.9974 0) (56690.5 163.01 0) (-72296.3 4177.43 0) (-25747.9 8.84949e-09 0) (-16788.3 2.24467e-09 0) (-988.703 -3.18129e-09 0) (-1392.01 -2.32541e-09 0) (-1677.46 5.40981e-09 0) (-914.433 6.49178e-09 0) (-122.796 7.81597e-09 0) (198.657 1.0642e-08 0) (398.572 -3.0731e-08 0) (635.648 -5.0061e-08 0) (838.881 -2.14293e-08 0) (1009.54 8.43124e-08 0) (1132 3.0316e-07 0) (1168.33 6.02605e-07 0) (1088.2 8.12861e-07 0) (897.16 5.61361e-07 0) (649.495 -1.30514e-07 0) (392.758 -9.15001e-07 0) (195.183 -1.50869e-06 0) (43.4279 -1.0075e-06 0) (-125.555 8.70463e-07 0) (-283.252 2.47009e-06 0) (-492.971 2.38729e-06 0) (-770.409 1.9518e-06 0) (-1046.32 1.29127e-06 0) (-1277.73 3.5125e-07 0) (-1411.54 1.13541e-07 0) (-1439.43 7.9534e-07 0) (-1385.13 1.69242e-06 0) (-1284.42 2.12594e-06 0) (-1169.12 1.68747e-06 0) (-1063.81 7.85505e-07 0) (-979.36 -5.68725e-07 0) (-908.287 -1.8931e-06 0) (-790.192 -3.16258e-06 0) (-613.346 -3.3978e-06 0) (-408.048 -2.07332e-06 0) (-71.5004 -1.25742e-06 0) (57559.7 2.13743e-06 0) (-73190.6 3.9808e-05 0) (-28616.2 1567.83 0) (-18645.1 -9261.08 0) (448.853 -3978.84 0) (-994.592 -966.448 0) (-1570.03 -425.434 0) (-876.761 -142.132 0) (-115.635 -89.4109 0) (201.305 -73.2198 0) (401.228 -63.1766 0) (637.188 -50.7654 0) (839.632 -48.5545 0) (1010.1 -46.8539 0) (1132.47 -45.9732 0) (1168.83 -44.646 0) (1088.7 -42.8323 0) (897.596 -40.9424 0) (649.839 -39.2781 0) (392.986 -37.9318 0) (195.312 -37.1723 0) (43.4797 -36.6491 0) (-125.585 -36.6082 0) (-283.347 -36.9656 0) (-493.143 -37.4799 0) (-770.661 -38.3854 0) (-1046.63 -39.3169 0) (-1278.07 -40.167 0) (-1411.89 -40.7666 0) (-1439.78 -41.0018 0) (-1385.51 -40.9414 0) (-1284.87 -40.8293 0) (-1169.69 -41.0032 0) (-1064.52 -41.5272 0) (-980.127 -42.551 0) (-908.975 -42.6981 0) (-790.992 -42.0749 0) (-614.035 -42.7701 0) (-409.446 -39.6165 0) (-82.1718 -49.9974 0) (56690.5 -163.01 0) (-72296.3 -4177.43 0) (-30687.9 2791.8 0) (-18401.8 -7389.79 0) (1424.28 -4027.79 0) (-358.292 -1804.14 0) (-1437.66 -871.056 0) (-816.681 -338.252 0) (-102.749 -209.849 0) (206.289 -172.386 0) (405.104 -145.699 0) (639.901 -118.381 0) (840.019 -114.02 0) (1010.29 -111.32 0) (1132.64 -110.274 0) (1169.25 -108.14 0) (1089.28 -105.021 0) (898.194 -101.626 0) (650.371 -98.4984 0) (393.371 -95.7851 0) (195.556 -94.169 0) (43.592 -92.9243 0) (-125.647 -92.799 0) (-283.506 -93.6146 0) (-493.384 -94.6307 0) (-770.943 -96.2992 0) (-1046.84 -97.685 0) (-1278.15 -98.5339 0) (-1411.78 -98.4999 0) (-1439.48 -97.4586 0) (-1385.08 -95.594 0) (-1284.43 -93.4456 0) (-1169.32 -91.6689 0) (-1064.26 -90.2176 0) (-979.701 -89.3316 0) (-908.148 -85.7999 0) (-790.213 -80.2388 0) (-612.631 -76.8877 0) (-410.15 -68.4798 0) (-107.397 -83.3269 0) (56359 -298.135 0) (-71928 -2917.73 0) (43772.9 9276.82 0) (-23204.2 -4940.17 0) (2824.74 -2768.2 0) (249.817 -2589.26 0) (-803.572 -1406.03 0) (-531.472 -692.961 0) (-26.4921 -458.55 0) (235.782 -388.289 0) (430.622 -303.954 0) (653.923 -264.398 0) (843.614 -251.838 0) (1012.22 -245.331 0) (1134.28 -240.863 0) (1171.65 -234.877 0) (1092.11 -227.569 0) (900.996 -220.007 0) (652.888 -213.083 0) (395.257 -207.195 0) (196.824 -203.484 0) (44.2093 -200.719 0) (-125.947 -200.457 0) (-284.312 -202.361 0) (-494.548 -204.892 0) (-772.251 -208.745 0) (-1047.79 -212.411 0) (-1278.49 -215.287 0) (-1411.34 -216.738 0) (-1438.31 -216.446 0) (-1383.48 -214.948 0) (-1282.9 -213.256 0) (-1168.09 -212.592 0) (-1063.35 -213.334 0) (-977.849 -214.885 0) (-904.228 -214.656 0) (-786.303 -208.358 0) (-608.282 -209.289 0) (-412.671 -207.758 0) (-197.062 -229.228 0) (55296 -545.883 0) (-70704.9 -4609.49 0) (45457.4 5111.59 0) (-27433.7 -2072.45 0) (2938.74 -2327.57 0) (628.262 -2348.64 0) (49.6613 -1610.35 0) (-56.5983 -1029.99 0) (149.953 -755.626 0) (339.449 -636.886 0) (510.808 -534.592 0) (682.603 -482.85 0) (856.464 -461.784 0) (1019.82 -450.578 0) (1141.83 -441.951 0) (1180.77 -431.652 0) (1102.09 -419.792 0) (910.65 -407.45 0) (661.367 -396.084 0) (401.609 -386.456 0) (201.116 -380.252 0) (46.1778 -375.658 0) (-127.069 -375.368 0) (-287.347 -378.747 0) (-498.911 -383.172 0) (-777.487 -389.525 0) (-1052.64 -395.609 0) (-1282.14 -400.402 0) (-1413.14 -402.593 0) (-1438.39 -402.261 0) (-1382.87 -399.7 0) (-1282.98 -397.621 0) (-1170.06 -397.309 0) (-1066.96 -399.887 0) (-981.968 -403.299 0) (-903.96 -407.881 0) (-787.138 -400.97 0) (-614.385 -411.255 0) (-428.012 -421.481 0) (-385.145 -449.213 0) (52708 -850.812 0) (-67615.9 -6737.57 0) (46701.6 5268.72 0) (-30372.8 -1136.76 0) (2558.59 -2020.83 0) (940.955 -1877.81 0) (467.125 -1620.96 0) (292.168 -1258.7 0) (352.317 -1034.41 0) (448.779 -892.731 0) (579.056 -811.771 0) (724.083 -758.973 0) (874.713 -734.09 0) (1031.34 -720.611 0) (1152.52 -709.469 0) (1193 -697.786 0) (1115.44 -683.437 0) (923.842 -668.422 0) (673.118 -653.963 0) (410.513 -641.562 0) (207.228 -633.348 0) (48.9157 -627.209 0) (-128.924 -626.958 0) (-291.832 -631.532 0) (-504.933 -637.355 0) (-784.236 -645.088 0) (-1058.27 -652.027 0) (-1285.22 -656.104 0) (-1413.13 -656.681 0) (-1435.52 -652.059 0) (-1379.01 -646.213 0) (-1280.6 -639.67 0) (-1170.27 -636.544 0) (-1069.12 -637.884 0) (-985.552 -637.573 0) (-901.984 -641.612 0) (-789.554 -631.511 0) (-628.047 -647.548 0) (-449.249 -664.581 0) (-610.781 -693.935 0) (49236.3 -1101.22 0) (-63392.5 -8151.69 0) (49439.1 18.6437 0) (-34458.2 -1083.34 0) (2224.64 -1697.84 0) (1013.59 -1713.53 0) (646.255 -1620.68 0) (508.626 -1404.96 0) (502.613 -1260.98 0) (553.99 -1149.66 0) (639.702 -1081.24 0) (757.46 -1047.19 0) (893.431 -1026.48 0) (1043.55 -1015.67 0) (1163.83 -1008.21 0) (1205.85 -998.719 0) (1130.39 -987.489 0) (939.052 -973.167 0) (687.251 -958.788 0) (421.474 -945.673 0) (214.948 -936.557 0) (52.3353 -929.624 0) (-131.235 -929.427 0) (-297.366 -934.437 0) (-511.974 -940.655 0) (-791.626 -947.985 0) (-1063.26 -953.06 0) (-1286.62 -954.309 0) (-1409.24 -948.206 0) (-1428.3 -938.192 0) (-1370.93 -922.462 0) (-1273.67 -910.304 0) (-1168.34 -899.532 0) (-1067.95 -893.948 0) (-985.561 -884.651 0) (-898.119 -880.952 0) (-792.858 -865.246 0) (-646.253 -876.507 0) (-472.712 -895.748 0) (-805.903 -921.538 0) (45521.4 -1218.95 0) (-58699.5 -8581.76 0) (45675.6 -4726.45 0) (-32026.9 -1121.01 0) (1951.32 -1568.83 0) (1015.32 -1652.25 0) (764.471 -1587.06 0) (638.784 -1478.54 0) (598.337 -1390.2 0) (621.98 -1326.58 0) (677.797 -1288.38 0) (776.854 -1272.84 0) (905.091 -1263.14 0) (1048.94 -1262 0) (1168.85 -1261.33 0) (1212.97 -1263.32 0) (1140.06 -1259.67 0) (951.499 -1252.96 0) (699.612 -1242.77 0) (431.935 -1232.39 0) (222.694 -1224.34 0) (55.787 -1217.76 0) (-133.562 -1217.54 0) (-302.652 -1221.8 0) (-517.989 -1226.55 0) (-796.19 -1230.33 0) (-1064.36 -1230.49 0) (-1280.54 -1222.69 0) (-1397.6 -1208.02 0) (-1410.71 -1182.48 0) (-1352.14 -1156.75 0) (-1258.5 -1128.93 0) (-1154.51 -1105.22 0) (-1054.78 -1086.64 0) (-973.028 -1060.67 0) (-883.284 -1039.94 0) (-785.27 -1015.9 0) (-657.441 -1011.6 0) (-492.643 -1030.38 0) (-922.229 -1058.28 0) (41854.6 -1172.01 0) (-53948.2 -8697.15 0) (43804.3 -3056.48 0) (-31415.4 -1072.13 0) (1712.72 -1444.81 0) (996.023 -1527.7 0) (813.645 -1496.44 0) (698.332 -1460.99 0) (649.053 -1418.54 0) (652.102 -1396.29 0) (691.482 -1387.17 0) (781.786 -1387.76 0) (903.881 -1389.78 0) (1045.29 -1395.88 0) (1162.56 -1408.65 0) (1207.46 -1420.4 0) (1140.37 -1431.09 0) (955.336 -1433.67 0) (707.067 -1431.71 0) (439.234 -1426.3 0) (229.047 -1420.98 0) (58.8921 -1415.57 0) (-135.121 -1414.96 0) (-306.048 -1417.26 0) (-520.197 -1418.51 0) (-795.429 -1416.61 0) (-1055.89 -1407.9 0) (-1264.97 -1390.83 0) (-1370.49 -1360.24 0) (-1378.9 -1323.54 0) (-1319.32 -1278.89 0) (-1224.01 -1239.09 0) (-1127.59 -1200.01 0) (-1025.02 -1165.29 0) (-940.565 -1125.55 0) (-854.983 -1089.42 0) (-765.546 -1057.78 0) (-660.204 -1040.8 0) (-517.693 -1058.64 0) (-942.379 -1086.71 0) (38160.3 -1048.96 0) (-49189.2 -8506.91 0) (41697.1 -4130.68 0) (-30473.8 -1022.89 0) (1512.32 -1314.11 0) (965.566 -1395.78 0) (828.755 -1386.61 0) (713.849 -1384.36 0) (660.683 -1373.91 0) (652.212 -1381.05 0) (686.017 -1389.3 0) (774.332 -1397.17 0) (897.264 -1404.61 0) (1030.76 -1417.49 0) (1145.22 -1435.5 0) (1191.34 -1459.16 0) (1127.27 -1477.99 0) (950.911 -1490.97 0) (706.718 -1495.87 0) (442.273 -1495.96 0) (233.033 -1493.71 0) (61.5836 -1489.57 0) (-135.196 -1488.23 0) (-306.067 -1488.05 0) (-517.36 -1485.11 0) (-785.967 -1476.87 0) (-1039.52 -1461.16 0) (-1234.62 -1433.51 0) (-1332.76 -1395.17 0) (-1332.32 -1344.97 0) (-1270.76 -1293.15 0) (-1182.49 -1243.22 0) (-1083.39 -1195.1 0) (-983.03 -1154.95 0) (-899.913 -1108.06 0) (-817.979 -1066.51 0) (-738.416 -1034.46 0) (-658.265 -1016.91 0) (-536.887 -1029.66 0) (-912.908 -1049.27 0) (34704.2 -958.069 0) (-44739.8 -8225.75 0) (38838.1 -4865.41 0) (-28701.2 -956.354 0) (1353.4 -1166.31 0) (926.16 -1249.61 0) (824.645 -1261.71 0) (710.574 -1277.08 0) (652.248 -1285.4 0) (637.276 -1311.01 0) (675.944 -1326.74 0) (767.025 -1338.73 0) (884.298 -1345.73 0) (1015.53 -1361.34 0) (1122.41 -1382.57 0) (1166.51 -1409.61 0) (1109.72 -1433.73 0) (938.106 -1450.39 0) (702.26 -1459.31 0) (441.309 -1462.28 0) (235.207 -1461.91 0) (64.1736 -1458.24 0) (-133.664 -1456.04 0) (-303.039 -1454.08 0) (-509.423 -1448.17 0) (-772.35 -1436.58 0) (-1014.11 -1417.02 0) (-1201.38 -1386.59 0) (-1285.17 -1344.14 0) (-1280.59 -1291.7 0) (-1221.27 -1237.8 0) (-1129.52 -1184.58 0) (-1042.53 -1137.08 0) (-941.143 -1094 0) (-855.345 -1048.46 0) (-784.065 -1007.66 0) (-717.744 -977.714 0) (-655.577 -962.83 0) (-548.878 -967.563 0) (-873.393 -979.479 0) (31244.8 -883.645 0) (-40339.3 -7849.41 0) (36087 -5003.05 0) (-26909.2 -883.425 0) (1229.74 -1044.05 0) (873.633 -1124.45 0) (802.278 -1159.25 0) (691.027 -1185.18 0) (627.989 -1202.43 0) (612.376 -1231.01 0) (659.304 -1246.54 0) (756.031 -1252.65 0) (875.477 -1262.53 0) (995.257 -1271.72 0) (1098.71 -1296.09 0) (1142.04 -1319.34 0) (1087.97 -1344.83 0) (926.265 -1359.78 0) (695.258 -1368.49 0) (439.765 -1371.01 0) (236.934 -1370.5 0) (67.24 -1366.06 0) (-131.189 -1363.11 0) (-298.479 -1360.83 0) (-500.498 -1354.34 0) (-755.957 -1343.33 0) (-991.344 -1324.74 0) (-1164.39 -1297.96 0) (-1241.32 -1255.88 0) (-1229.84 -1211.06 0) (-1167.53 -1155.86 0) (-1085.44 -1112.62 0) (-996.113 -1063.22 0) (-897.634 -1026.46 0) (-816.713 -984.897 0) (-749.801 -950.092 0) (-695.213 -924.213 0) (-648.483 -912.125 0) (-552.93 -912.616 0) (-832.042 -918.488 0) (28084.1 -829.026 0) (-36324.3 -7436.34 0) (33165.7 -5179.19 0) (-24886.2 -812.036 0) (1121.14 -941.084 0) (815.149 -1004.48 0) (766.117 -1060.38 0) (668.971 -1088.44 0) (608.091 -1107.89 0) (594.762 -1131.4 0) (655.088 -1141.81 0) (751.618 -1151.45 0) (865.919 -1157.14 0) (983.189 -1173.56 0) (1076.52 -1191.27 0) (1119.54 -1220.19 0) (1070.74 -1240.55 0) (915.314 -1255.92 0) (691.444 -1260.83 0) (439.371 -1261.2 0) (239.968 -1258.81 0) (71.2937 -1252.63 0) (-128.624 -1249.08 0) (-294.587 -1247.81 0) (-492.553 -1242.88 0) (-743.828 -1234.43 0) (-970.388 -1221.21 0) (-1135.02 -1195.54 0) (-1201.44 -1162.4 0) (-1184.2 -1114.21 0) (-1126.4 -1071.33 0) (-1040.25 -1024.37 0) (-959.5 -980.81 0) (-865.673 -945.509 0) (-781.755 -908.715 0) (-725.588 -877.301 0) (-681.157 -855.337 0) (-644.402 -845.845 0) (-555.01 -844.589 0) (-792.842 -848.158 0) (24964 -766.805 0) (-32374.5 -7014.21 0) (30313.7 -5259.91 0) (-22825.2 -741.417 0) (1044.3 -853.759 0) (758.67 -902.015 0) (721.364 -972.538 0) (645.254 -998.561 0) (586.592 -1021.81 0) (579.681 -1039.53 0) (639.985 -1046.13 0) (741.26 -1057.89 0) (854.168 -1061.82 0) (962.373 -1077.79 0) (1053.77 -1098.94 0) (1094.55 -1124.13 0) (1053.54 -1146.38 0) (906.726 -1157.11 0) (690.171 -1159.24 0) (441.709 -1156.07 0) (245.194 -1151.34 0) (76.6119 -1143.06 0) (-126.551 -1139.08 0) (-292.497 -1139.43 0) (-487.602 -1136.66 0) (-735.076 -1132.48 0) (-953.862 -1123.06 0) (-1107.72 -1104.64 0) (-1162.95 -1070.8 0) (-1142.09 -1031.69 0) (-1080.95 -986.394 0) (-998.202 -946.942 0) (-920.123 -906.897 0) (-828.161 -870.538 0) (-750.985 -838.166 0) (-698.364 -809.538 0) (-664.901 -789.783 0) (-638.125 -782.517 0) (-555.159 -780.252 0) (-757.087 -780.392 0) (22142.3 -705.865 0) (-28826.2 -6521.27 0) (27382.6 -5286.21 0) (-20640.3 -688.572 0) (966.383 -796.988 0) (700.689 -838.547 0) (673.082 -896.503 0) (621.491 -916.426 0) (568.612 -939.851 0) (571.329 -947.876 0) (637.395 -949.162 0) (736.494 -953.309 0) (846.744 -961.702 0) (947.422 -974.433 0) (1031.86 -1001.4 0) (1073.83 -1028.18 0) (1038.96 -1054.76 0) (902.927 -1068.21 0) (692.442 -1071.57 0) (446.979 -1067.7 0) (252.504 -1061.67 0) (83.1107 -1051.63 0) (-125.121 -1047.33 0) (-292.254 -1049.2 0) (-485.862 -1047.68 0) (-730.724 -1044.85 0) (-943.558 -1035.48 0) (-1084.67 -1015.86 0) (-1131.15 -980.353 0) (-1102.86 -941.879 0) (-1044.73 -895.089 0) (-963.643 -862.024 0) (-885.874 -821.404 0) (-799.441 -792.261 0) (-722.973 -764.992 0) (-678.965 -743.13 0) (-655.12 -729.511 0) (-635.217 -725.019 0) (-552.962 -724.174 0) (-721.16 -723.748 0) (19431.9 -655.724 0) (-25410.2 -6053.46 0) (24556.2 -5216.39 0) (-18499.3 -635.921 0) (899.774 -737.218 0) (662.774 -781.253 0) (646.317 -821.536 0) (603.482 -835.192 0) (556.286 -859.359 0) (570.709 -861.428 0) (634.75 -860.261 0) (729.176 -866.375 0) (833.812 -873.525 0) (924.124 -894.035 0) (1001.98 -919.452 0) (1043.12 -952.48 0) (1014.96 -979.439 0) (890.53 -995.208 0) (690.66 -997.391 0) (451.252 -993.133 0) (260.687 -986.984 0) (90.4261 -976.388 0) (-124.216 -971.976 0) (-292.832 -974.465 0) (-483.406 -973.143 0) (-723.318 -971.095 0) (-925.929 -963.487 0) (-1054.6 -942.178 0) (-1091.66 -907.748 0) (-1059.93 -864.8 0) (-1004 -822.764 0) (-927.197 -785.338 0) (-852.897 -750.146 0) (-773.801 -722.251 0) (-703.641 -701.534 0) (-664.173 -683.708 0) (-647.448 -674.508 0) (-632.983 -670.9 0) (-553.935 -669.916 0) (-691.126 -667.758 0) (17006.4 -603.644 0) (-22361 -5588.56 0) (21743.1 -5011.31 0) (-16324 -600.13 0) (826.335 -701.436 0) (619.437 -752.074 0) (621.105 -785.813 0) (585.043 -799.474 0) (543.33 -814.832 0) (570.46 -812.688 0) (632.628 -808.584 0) (723.712 -807.808 0) (820.089 -809.919 0) (903.166 -827.489 0) (975.545 -844.221 0) (1016.02 -871.611 0) (997.789 -892.132 0) (885.627 -906.068 0) (694.441 -909.558 0) (457.007 -910.145 0) (268.641 -908.506 0) (97.5728 -900.862 0) (-123.268 -896.594 0) (-293.378 -896.707 0) (-482.614 -891.301 0) (-721.419 -885.006 0) (-915.692 -876.076 0) (-1030.96 -857.257 0) (-1056.58 -828.851 0) (-1020.97 -794.598 0) (-968.159 -761.369 0) (-893.665 -732.544 0) (-825.081 -704.264 0) (-752.597 -685.116 0) (-685.832 -668.677 0) (-652.922 -657.102 0) (-642.777 -652.798 0) (-630.793 -648.977 0) (-549.934 -644.594 0) (-657.298 -637.303 0) (14690 -572.995 0) (-19443.2 -5120.68 0) (19148.8 -4840.4 0) (-14346.1 -568.165 0) (753.355 -672.175 0) (581.465 -730.347 0) (600.641 -762.677 0) (575.519 -782.297 0) (543.553 -789.838 0) (576.729 -779.98 0) (639.452 -766.372 0) (727.889 -758.984 0) (814.847 -748.111 0) (891.069 -755.942 0) (959.466 -761.584 0) (996.957 -777.145 0) (981.76 -788.737 0) (873.737 -791.64 0) (686.732 -785.821 0) (452.265 -778.728 0) (269.632 -774.078 0) (101.906 -765.703 0) (-120.212 -761.814 0) (-287.732 -763.495 0) (-472.131 -761.607 0) (-708.647 -763.235 0) (-899.189 -763.367 0) (-1009.09 -755.929 0) (-1031.28 -737.009 0) (-994.9 -717.012 0) (-944.205 -695.776 0) (-872.169 -681.31 0) (-807.194 -666.545 0) (-739.508 -657.408 0) (-676.647 -650.386 0) (-648.871 -647.684 0) (-639.619 -645.548 0) (-625.077 -637.243 0) (-542.685 -626.665 0) (-622.131 -611.88 0) (12686 -542.41 0) (-16874.4 -4731.59 0) (16531.2 -4285.8 0) (-12307.3 -500.741 0) (670.051 -627.479 0) (532.226 -706.329 0) (571.044 -741.094 0) (558.869 -761.211 0) (545.563 -758.232 0) (593.073 -739.657 0) (652.86 -718.523 0) (741.309 -705.603 0) (823.02 -688.611 0) (890.182 -682.87 0) (955.113 -673.529 0) (989.854 -666.668 0) (983.821 -656.184 0) (888.437 -643.494 0) (706.884 -621.907 0) (468.323 -600.625 0) (281.193 -589.083 0) (109.39 -580.408 0) (-121.141 -577.093 0) (-293.177 -580.182 0) (-482.364 -585.871 0) (-723.116 -601.897 0) (-908.652 -617.784 0) (-1005.56 -625.897 0) (-1019.08 -629.655 0) (-981.237 -632.681 0) (-933.755 -629.004 0) (-865.497 -627.807 0) (-802.049 -622.792 0) (-737.025 -620.814 0) (-676.461 -621.421 0) (-648.26 -622.952 0) (-632.716 -619.854 0) (-612.596 -608.179 0) (-525.493 -592.4 0) (-576.107 -555.954 0) (10720.1 -463.913 0) (-14360.9 -4018.98 0) (14536.3 -3700.75 0) (-10820.8 -332.793 0) (555.243 -475.827 0) (471.982 -594.692 0) (547.756 -631.927 0) (559.003 -647.221 0) (564.322 -630.189 0) (614.994 -609.759 0) (672.267 -591.708 0) (756.714 -573.053 0) (836.753 -564.262 0) (905.602 -548.67 0) (975.079 -532.28 0) (1013.67 -507.002 0) (1004.09 -485.041 0) (906.768 -467.701 0) (728.043 -446.949 0) (483.896 -425.76 0) (289.114 -410.283 0) (113.459 -395.929 0) (-119.994 -393.619 0) (-296.19 -404.192 0) (-493.057 -415.741 0) (-739.399 -433.693 0) (-922.316 -451.267 0) (-1020.53 -465.504 0) (-1037.82 -481.317 0) (-994.273 -501.162 0) (-939.508 -510.443 0) (-866.183 -515.651 0) (-800.455 -516.081 0) (-738.187 -514.939 0) (-678.708 -518.392 0) (-647.361 -516.969 0) (-625.383 -512.817 0) (-598.621 -498.137 0) (-492.359 -466.154 0) (-498.316 -381.373 0) (9348.93 -270.511 0) (-12554.5 -3139.09 0) (12644.4 -246.042 0) (-9199.67 -203.821 0) (417.676 -416.499 0) (381.803 -562.385 0) (520.424 -646.081 0) (560.545 -691.962 0) (581.663 -715.487 0) (630.155 -731.949 0) (688.232 -757.42 0) (767.758 -777.142 0) (846.517 -819.259 0) (921 -852.201 0) (995.265 -893.059 0) (1035.38 -909.044 0) (1021.69 -848.23 0) (925.144 -684.909 0) (747.3 -445.239 0) (503.656 -173.352 0) (309.938 41.3488 0) (125.448 167.486 0) (-129.103 168.991 0) (-314.495 45.2764 0) (-510.792 -166.737 0) (-757.35 -435.518 0) (-939.306 -671.502 0) (-1034.51 -830.612 0) (-1053.44 -890.37 0) (-1009.3 -869.999 0) (-947.717 -827.662 0) (-870.93 -784.505 0) (-801.362 -743.499 0) (-739.252 -704.372 0) (-678.418 -671.563 0) (-642.887 -636.127 0) (-614.568 -600.371 0) (-567.63 -554.593 0) (-412.975 -476.232 0) (-387.578 -352.703 0) (8062.66 -185.019 0) (-11075.3 547.253 0) (14102.8 135012 0) (-10985.1 10667.7 0) (209.717 8676.48 0) (250.749 10084 0) (422.891 11600.8 0) (492.121 13795.7 0) (525.789 16036.3 0) (574.587 18670.4 0) (628.718 21400.8 0) (697.123 24493.4 0) (764.423 27658.4 0) (834.486 31199.1 0) (920.303 34750.8 0) (1056.87 38622.3 0) (1220.08 42446.4 0) (1295.1 46503.3 0) (1221 50474.5 0) (952.79 54339.2 0) (617.558 57379.1 0) (236.46 59876.3 0) (-237.76 59880 0) (-619.71 57384.8 0) (-956.368 54348.5 0) (-1225.81 50488 0) (-1303.04 46521 0) (-1231.44 42469.7 0) (-1075.77 38649.8 0) (-933.846 34783.6 0) (-857.123 31230.4 0) (-785.081 27698 0) (-723.237 24524.1 0) (-668.867 21450.9 0) (-612.944 18714.2 0) (-578.758 16094 0) (-546.814 13840.2 0) (-478.996 11637.4 0) (-297.811 10065.5 0) (-217.693 8600.56 0) (10216.2 10419.3 0) (-12903.6 132780 0) (153026 -159579 0) (-130941 -13856.3 0) (-144.744 -12297.8 0) (3199.75 -13923.8 0) (4097.12 -15878.5 0) (4834.83 -18614.3 0) (5279.13 -21406.5 0) (5799.52 -24638.3 0) (6299.43 -28021.1 0) (6797.82 -31827.9 0) (7308.39 -35798.9 0) (7755.5 -40205.3 0) (8148.58 -44713.1 0) (8451.15 -49616.4 0) (8616.11 -54579.9 0) (8661.28 -59823.8 0) (8298.24 -64912 0) (7157.22 -69702.3 0) (5645.67 -73328 0) (2535.44 -76201.8 0) (-2529.97 -76204.5 0) (-5644.87 -73329.7 0) (-7156.85 -69703.5 0) (-8300.21 -64910.3 0) (-8665.94 -59818 0) (-8619.48 -54565.1 0) (-8460.13 -49595.4 0) (-8158.96 -44669.4 0) (-7775.66 -40159.4 0) (-7333.39 -35710.8 0) (-6821.21 -31734.6 0) (-6337.88 -27881.7 0) (-5840.52 -24463.5 0) (-5339.64 -21184.7 0) (-4909.11 -18321.7 0) (-4205.05 -15522.9 0) (-3339.42 -13460.9 0) (-46.6106 -11748.4 0) (127726 -13186.7 0) (-149067 -154896 0) (153026 159579 0) (-130941 13856.3 0) (-144.744 12297.8 0) (3199.75 13923.8 0) (4097.12 15878.5 0) (4834.83 18614.3 0) (5279.13 21406.5 0) (5799.52 24638.3 0) (6299.43 28021.1 0) (6797.82 31827.9 0) (7308.39 35798.9 0) (7755.5 40205.3 0) (8148.58 44713.1 0) (8451.15 49616.4 0) (8616.11 54579.9 0) (8661.28 59823.8 0) (8298.24 64912 0) (7157.22 69702.3 0) (5645.67 73328 0) (2535.44 76201.8 0) (-2529.97 76204.5 0) (-5644.87 73329.7 0) (-7156.85 69703.5 0) (-8300.21 64910.3 0) (-8665.94 59818 0) (-8619.48 54565.1 0) (-8460.13 49595.4 0) (-8158.96 44669.4 0) (-7775.66 40159.4 0) (-7333.39 35710.8 0) (-6821.21 31734.6 0) (-6337.88 27881.7 0) (-5840.52 24463.5 0) (-5339.64 21184.7 0) (-4909.11 18321.7 0) (-4205.05 15522.9 0) (-3339.42 13460.9 0) (-46.6106 11748.4 0) (127726 13186.7 0) (-149067 154896 0) (14102.8 -135012 0) (-10985.1 -10667.7 0) (209.717 -8676.48 0) (250.749 -10084 0) (422.891 -11600.8 0) (492.121 -13795.7 0) (525.789 -16036.3 0) (574.587 -18670.4 0) (628.718 -21400.8 0) (697.123 -24493.4 0) (764.423 -27658.4 0) (834.486 -31199.1 0) (920.303 -34750.8 0) (1056.87 -38622.3 0) (1220.08 -42446.4 0) (1295.1 -46503.3 0) (1221 -50474.5 0) (952.79 -54339.2 0) (617.558 -57379.1 0) (236.46 -59876.3 0) (-237.76 -59880 0) (-619.71 -57384.8 0) (-956.368 -54348.5 0) (-1225.81 -50488 0) (-1303.04 -46521 0) (-1231.44 -42469.7 0) (-1075.77 -38649.8 0) (-933.846 -34783.6 0) (-857.123 -31230.4 0) (-785.081 -27698 0) (-723.237 -24524.1 0) (-668.867 -21450.9 0) (-612.944 -18714.2 0) (-578.758 -16094 0) (-546.814 -13840.2 0) (-478.996 -11637.4 0) (-297.811 -10065.5 0) (-217.693 -8600.56 0) (10216.2 -10419.3 0) (-12903.6 -132780 0) (12644.4 246.042 0) (-9199.67 203.821 0) (417.676 416.499 0) (381.803 562.385 0) (520.424 646.081 0) (560.545 691.962 0) (581.663 715.487 0) (630.155 731.949 0) (688.232 757.42 0) (767.758 777.142 0) (846.517 819.259 0) (921 852.201 0) (995.265 893.059 0) (1035.38 909.044 0) (1021.69 848.23 0) (925.144 684.909 0) (747.3 445.239 0) (503.656 173.352 0) (309.938 -41.3488 0) (125.448 -167.486 0) (-129.103 -168.991 0) (-314.495 -45.2764 0) (-510.792 166.737 0) (-757.35 435.518 0) (-939.306 671.502 0) (-1034.51 830.612 0) (-1053.44 890.37 0) (-1009.3 869.999 0) (-947.717 827.662 0) (-870.93 784.505 0) (-801.362 743.499 0) (-739.252 704.372 0) (-678.418 671.563 0) (-642.887 636.127 0) (-614.568 600.371 0) (-567.63 554.593 0) (-412.975 476.232 0) (-387.578 352.703 0) (8062.66 185.019 0) (-11075.3 -547.253 0) (14536.3 3700.75 0) (-10820.8 332.793 0) (555.243 475.827 0) (471.982 594.692 0) (547.756 631.927 0) (559.003 647.221 0) (564.322 630.189 0) (614.994 609.759 0) (672.267 591.708 0) (756.714 573.053 0) (836.753 564.262 0) (905.602 548.67 0) (975.079 532.28 0) (1013.67 507.002 0) (1004.09 485.041 0) (906.768 467.701 0) (728.043 446.949 0) (483.896 425.76 0) (289.114 410.283 0) (113.459 395.929 0) (-119.994 393.619 0) (-296.19 404.192 0) (-493.057 415.741 0) (-739.399 433.693 0) (-922.316 451.267 0) (-1020.53 465.504 0) (-1037.82 481.317 0) (-994.273 501.162 0) (-939.508 510.443 0) (-866.183 515.651 0) (-800.455 516.081 0) (-738.187 514.939 0) (-678.708 518.392 0) (-647.361 516.969 0) (-625.383 512.817 0) (-598.621 498.137 0) (-492.359 466.154 0) (-498.316 381.373 0) (9348.93 270.511 0) (-12554.5 3139.09 0) (16531.2 4285.8 0) (-12307.3 500.741 0) (670.051 627.479 0) (532.226 706.329 0) (571.044 741.094 0) (558.869 761.211 0) (545.563 758.232 0) (593.073 739.657 0) (652.86 718.523 0) (741.309 705.603 0) (823.02 688.611 0) (890.182 682.87 0) (955.113 673.529 0) (989.854 666.668 0) (983.821 656.184 0) (888.437 643.494 0) (706.884 621.907 0) (468.323 600.625 0) (281.193 589.083 0) (109.39 580.408 0) (-121.141 577.093 0) (-293.177 580.182 0) (-482.364 585.871 0) (-723.116 601.897 0) (-908.652 617.784 0) (-1005.56 625.897 0) (-1019.08 629.655 0) (-981.237 632.681 0) (-933.755 629.004 0) (-865.497 627.807 0) (-802.049 622.792 0) (-737.025 620.814 0) (-676.461 621.421 0) (-648.26 622.952 0) (-632.716 619.854 0) (-612.596 608.179 0) (-525.493 592.4 0) (-576.107 555.954 0) (10720.1 463.913 0) (-14360.9 4018.98 0) (19148.8 4840.4 0) (-14346.1 568.165 0) (753.355 672.175 0) (581.465 730.347 0) (600.641 762.677 0) (575.519 782.297 0) (543.553 789.838 0) (576.729 779.98 0) (639.452 766.372 0) (727.889 758.984 0) (814.847 748.111 0) (891.069 755.942 0) (959.466 761.584 0) (996.957 777.145 0) (981.76 788.737 0) (873.737 791.64 0) (686.732 785.821 0) (452.265 778.728 0) (269.632 774.078 0) (101.906 765.703 0) (-120.212 761.814 0) (-287.732 763.495 0) (-472.131 761.607 0) (-708.647 763.235 0) (-899.189 763.367 0) (-1009.09 755.929 0) (-1031.28 737.009 0) (-994.9 717.012 0) (-944.205 695.776 0) (-872.169 681.31 0) (-807.194 666.545 0) (-739.508 657.408 0) (-676.647 650.386 0) (-648.871 647.684 0) (-639.619 645.548 0) (-625.077 637.243 0) (-542.685 626.665 0) (-622.131 611.88 0) (12686 542.41 0) (-16874.4 4731.59 0) (21743.1 5011.31 0) (-16324 600.13 0) (826.335 701.436 0) (619.437 752.074 0) (621.105 785.813 0) (585.043 799.474 0) (543.33 814.832 0) (570.46 812.688 0) (632.628 808.584 0) (723.712 807.808 0) (820.089 809.919 0) (903.166 827.489 0) (975.545 844.221 0) (1016.02 871.611 0) (997.789 892.132 0) (885.627 906.068 0) (694.441 909.558 0) (457.007 910.145 0) (268.641 908.506 0) (97.5728 900.862 0) (-123.268 896.594 0) (-293.378 896.707 0) (-482.614 891.301 0) (-721.419 885.006 0) (-915.692 876.076 0) (-1030.96 857.257 0) (-1056.58 828.851 0) (-1020.97 794.598 0) (-968.159 761.369 0) (-893.665 732.544 0) (-825.081 704.264 0) (-752.597 685.116 0) (-685.832 668.677 0) (-652.922 657.102 0) (-642.777 652.798 0) (-630.793 648.977 0) (-549.934 644.594 0) (-657.298 637.303 0) (14690 572.995 0) (-19443.2 5120.68 0) (24556.2 5216.39 0) (-18499.3 635.921 0) (899.774 737.218 0) (662.774 781.253 0) (646.317 821.536 0) (603.482 835.192 0) (556.286 859.359 0) (570.709 861.428 0) (634.75 860.261 0) (729.176 866.375 0) (833.812 873.525 0) (924.124 894.035 0) (1001.98 919.452 0) (1043.12 952.48 0) (1014.96 979.439 0) (890.53 995.208 0) (690.66 997.391 0) (451.252 993.133 0) (260.687 986.984 0) (90.4261 976.388 0) (-124.216 971.976 0) (-292.832 974.465 0) (-483.406 973.143 0) (-723.318 971.095 0) (-925.929 963.487 0) (-1054.6 942.178 0) (-1091.66 907.748 0) (-1059.93 864.8 0) (-1004 822.764 0) (-927.197 785.338 0) (-852.897 750.146 0) (-773.801 722.251 0) (-703.641 701.534 0) (-664.173 683.708 0) (-647.448 674.508 0) (-632.983 670.9 0) (-553.935 669.916 0) (-691.126 667.758 0) (17006.4 603.644 0) (-22361 5588.56 0) (27382.6 5286.21 0) (-20640.3 688.572 0) (966.383 796.988 0) (700.689 838.547 0) (673.082 896.503 0) (621.491 916.426 0) (568.612 939.851 0) (571.329 947.876 0) (637.395 949.162 0) (736.494 953.309 0) (846.744 961.702 0) (947.422 974.433 0) (1031.86 1001.4 0) (1073.83 1028.18 0) (1038.96 1054.76 0) (902.927 1068.21 0) (692.442 1071.57 0) (446.979 1067.7 0) (252.504 1061.67 0) (83.1107 1051.63 0) (-125.121 1047.33 0) (-292.254 1049.2 0) (-485.862 1047.68 0) (-730.724 1044.85 0) (-943.558 1035.48 0) (-1084.67 1015.86 0) (-1131.15 980.353 0) (-1102.86 941.879 0) (-1044.73 895.089 0) (-963.643 862.024 0) (-885.874 821.404 0) (-799.441 792.261 0) (-722.973 764.992 0) (-678.965 743.13 0) (-655.12 729.511 0) (-635.217 725.019 0) (-552.962 724.174 0) (-721.16 723.748 0) (19431.9 655.724 0) (-25410.2 6053.46 0) (30313.7 5259.91 0) (-22825.2 741.417 0) (1044.3 853.759 0) (758.67 902.015 0) (721.364 972.538 0) (645.254 998.561 0) (586.592 1021.81 0) (579.681 1039.53 0) (639.985 1046.13 0) (741.26 1057.89 0) (854.168 1061.82 0) (962.373 1077.79 0) (1053.77 1098.94 0) (1094.55 1124.13 0) (1053.54 1146.38 0) (906.726 1157.11 0) (690.171 1159.24 0) (441.709 1156.07 0) (245.194 1151.34 0) (76.6119 1143.06 0) (-126.551 1139.08 0) (-292.497 1139.43 0) (-487.602 1136.66 0) (-735.076 1132.48 0) (-953.862 1123.06 0) (-1107.72 1104.64 0) (-1162.95 1070.8 0) (-1142.09 1031.69 0) (-1080.95 986.394 0) (-998.202 946.942 0) (-920.123 906.897 0) (-828.161 870.538 0) (-750.985 838.166 0) (-698.364 809.538 0) (-664.901 789.783 0) (-638.125 782.517 0) (-555.159 780.252 0) (-757.087 780.392 0) (22142.3 705.865 0) (-28826.2 6521.27 0) (33165.7 5179.19 0) (-24886.2 812.036 0) (1121.14 941.084 0) (815.149 1004.48 0) (766.117 1060.38 0) (668.971 1088.44 0) (608.091 1107.89 0) (594.762 1131.4 0) (655.088 1141.81 0) (751.618 1151.45 0) (865.919 1157.14 0) (983.189 1173.56 0) (1076.52 1191.27 0) (1119.54 1220.19 0) (1070.74 1240.55 0) (915.314 1255.92 0) (691.444 1260.83 0) (439.371 1261.2 0) (239.968 1258.81 0) (71.2937 1252.63 0) (-128.624 1249.08 0) (-294.587 1247.81 0) (-492.553 1242.88 0) (-743.828 1234.43 0) (-970.388 1221.21 0) (-1135.02 1195.54 0) (-1201.44 1162.4 0) (-1184.2 1114.21 0) (-1126.4 1071.33 0) (-1040.25 1024.37 0) (-959.5 980.81 0) (-865.673 945.509 0) (-781.755 908.715 0) (-725.588 877.301 0) (-681.157 855.337 0) (-644.402 845.845 0) (-555.01 844.589 0) (-792.842 848.158 0) (24964 766.805 0) (-32374.5 7014.21 0) (36087 5003.05 0) (-26909.2 883.425 0) (1229.74 1044.05 0) (873.633 1124.45 0) (802.278 1159.25 0) (691.027 1185.18 0) (627.989 1202.43 0) (612.376 1231.01 0) (659.304 1246.54 0) (756.031 1252.65 0) (875.477 1262.53 0) (995.257 1271.72 0) (1098.71 1296.09 0) (1142.04 1319.34 0) (1087.97 1344.83 0) (926.265 1359.78 0) (695.258 1368.49 0) (439.765 1371.01 0) (236.934 1370.5 0) (67.24 1366.06 0) (-131.189 1363.11 0) (-298.479 1360.83 0) (-500.498 1354.34 0) (-755.957 1343.33 0) (-991.344 1324.74 0) (-1164.39 1297.96 0) (-1241.32 1255.88 0) (-1229.84 1211.06 0) (-1167.53 1155.86 0) (-1085.44 1112.62 0) (-996.113 1063.22 0) (-897.634 1026.46 0) (-816.713 984.897 0) (-749.801 950.092 0) (-695.213 924.213 0) (-648.483 912.125 0) (-552.93 912.616 0) (-832.042 918.488 0) (28084.1 829.026 0) (-36324.3 7436.34 0) (38838.1 4865.41 0) (-28701.2 956.354 0) (1353.4 1166.31 0) (926.16 1249.61 0) (824.645 1261.71 0) (710.574 1277.08 0) (652.248 1285.4 0) (637.276 1311.01 0) (675.944 1326.74 0) (767.025 1338.73 0) (884.298 1345.73 0) (1015.53 1361.34 0) (1122.41 1382.57 0) (1166.51 1409.61 0) (1109.72 1433.73 0) (938.106 1450.39 0) (702.26 1459.31 0) (441.309 1462.28 0) (235.207 1461.91 0) (64.1736 1458.24 0) (-133.664 1456.04 0) (-303.039 1454.08 0) (-509.423 1448.17 0) (-772.35 1436.58 0) (-1014.11 1417.02 0) (-1201.38 1386.59 0) (-1285.17 1344.14 0) (-1280.59 1291.7 0) (-1221.27 1237.8 0) (-1129.52 1184.58 0) (-1042.53 1137.08 0) (-941.143 1094 0) (-855.345 1048.46 0) (-784.065 1007.66 0) (-717.744 977.714 0) (-655.577 962.83 0) (-548.878 967.563 0) (-873.393 979.479 0) (31244.8 883.645 0) (-40339.3 7849.41 0) (41697.1 4130.68 0) (-30473.8 1022.89 0) (1512.32 1314.11 0) (965.566 1395.78 0) (828.755 1386.61 0) (713.849 1384.36 0) (660.683 1373.91 0) (652.212 1381.05 0) (686.017 1389.3 0) (774.332 1397.17 0) (897.264 1404.61 0) (1030.76 1417.49 0) (1145.22 1435.5 0) (1191.34 1459.16 0) (1127.27 1477.99 0) (950.911 1490.97 0) (706.718 1495.87 0) (442.273 1495.96 0) (233.033 1493.71 0) (61.5836 1489.57 0) (-135.196 1488.23 0) (-306.067 1488.05 0) (-517.36 1485.11 0) (-785.967 1476.87 0) (-1039.52 1461.16 0) (-1234.62 1433.51 0) (-1332.76 1395.17 0) (-1332.32 1344.97 0) (-1270.76 1293.15 0) (-1182.49 1243.22 0) (-1083.39 1195.1 0) (-983.03 1154.95 0) (-899.913 1108.06 0) (-817.979 1066.51 0) (-738.416 1034.46 0) (-658.265 1016.91 0) (-536.887 1029.66 0) (-912.908 1049.27 0) (34704.2 958.069 0) (-44739.8 8225.75 0) (43804.3 3056.48 0) (-31415.4 1072.13 0) (1712.72 1444.81 0) (996.023 1527.7 0) (813.645 1496.44 0) (698.332 1460.99 0) (649.053 1418.54 0) (652.102 1396.29 0) (691.482 1387.17 0) (781.786 1387.76 0) (903.881 1389.78 0) (1045.29 1395.88 0) (1162.56 1408.65 0) (1207.46 1420.4 0) (1140.37 1431.09 0) (955.336 1433.67 0) (707.067 1431.71 0) (439.234 1426.3 0) (229.047 1420.98 0) (58.8921 1415.57 0) (-135.121 1414.96 0) (-306.048 1417.26 0) (-520.197 1418.51 0) (-795.429 1416.61 0) (-1055.89 1407.9 0) (-1264.97 1390.83 0) (-1370.49 1360.24 0) (-1378.9 1323.54 0) (-1319.32 1278.89 0) (-1224.01 1239.09 0) (-1127.59 1200.01 0) (-1025.02 1165.29 0) (-940.565 1125.55 0) (-854.983 1089.42 0) (-765.546 1057.78 0) (-660.204 1040.8 0) (-517.693 1058.64 0) (-942.379 1086.71 0) (38160.3 1048.96 0) (-49189.2 8506.91 0) (45675.6 4726.45 0) (-32026.9 1121.01 0) (1951.32 1568.83 0) (1015.32 1652.25 0) (764.471 1587.06 0) (638.784 1478.54 0) (598.337 1390.2 0) (621.98 1326.58 0) (677.797 1288.38 0) (776.854 1272.84 0) (905.091 1263.14 0) (1048.94 1262 0) (1168.85 1261.33 0) (1212.97 1263.32 0) (1140.06 1259.67 0) (951.499 1252.96 0) (699.612 1242.77 0) (431.935 1232.39 0) (222.694 1224.34 0) (55.787 1217.76 0) (-133.562 1217.54 0) (-302.652 1221.8 0) (-517.989 1226.55 0) (-796.19 1230.33 0) (-1064.36 1230.49 0) (-1280.54 1222.69 0) (-1397.6 1208.02 0) (-1410.71 1182.48 0) (-1352.14 1156.75 0) (-1258.5 1128.93 0) (-1154.51 1105.22 0) (-1054.78 1086.64 0) (-973.028 1060.67 0) (-883.284 1039.94 0) (-785.27 1015.9 0) (-657.441 1011.6 0) (-492.643 1030.38 0) (-922.229 1058.28 0) (41854.6 1172.01 0) (-53948.2 8697.15 0) (49439.1 -18.6437 0) (-34458.2 1083.34 0) (2224.64 1697.84 0) (1013.59 1713.53 0) (646.255 1620.68 0) (508.626 1404.96 0) (502.613 1260.98 0) (553.99 1149.66 0) (639.702 1081.24 0) (757.46 1047.19 0) (893.431 1026.48 0) (1043.55 1015.67 0) (1163.83 1008.21 0) (1205.85 998.719 0) (1130.39 987.489 0) (939.052 973.167 0) (687.251 958.788 0) (421.474 945.673 0) (214.948 936.557 0) (52.3353 929.624 0) (-131.235 929.427 0) (-297.366 934.437 0) (-511.974 940.655 0) (-791.626 947.985 0) (-1063.26 953.06 0) (-1286.62 954.309 0) (-1409.24 948.206 0) (-1428.3 938.192 0) (-1370.93 922.462 0) (-1273.67 910.304 0) (-1168.34 899.532 0) (-1067.95 893.948 0) (-985.561 884.651 0) (-898.119 880.952 0) (-792.858 865.246 0) (-646.253 876.507 0) (-472.712 895.748 0) (-805.903 921.538 0) (45521.4 1218.95 0) (-58699.5 8581.76 0) (46701.6 -5268.72 0) (-30372.8 1136.76 0) (2558.59 2020.83 0) (940.955 1877.81 0) (467.125 1620.96 0) (292.168 1258.7 0) (352.317 1034.41 0) (448.779 892.731 0) (579.056 811.771 0) (724.083 758.973 0) (874.713 734.09 0) (1031.34 720.611 0) (1152.52 709.469 0) (1193 697.786 0) (1115.44 683.437 0) (923.842 668.422 0) (673.118 653.963 0) (410.513 641.562 0) (207.228 633.348 0) (48.9157 627.209 0) (-128.924 626.958 0) (-291.832 631.532 0) (-504.933 637.355 0) (-784.236 645.088 0) (-1058.27 652.027 0) (-1285.22 656.104 0) (-1413.13 656.681 0) (-1435.52 652.059 0) (-1379.01 646.213 0) (-1280.6 639.67 0) (-1170.27 636.544 0) (-1069.12 637.884 0) (-985.552 637.573 0) (-901.984 641.612 0) (-789.554 631.511 0) (-628.047 647.548 0) (-449.249 664.581 0) (-610.781 693.935 0) (49236.3 1101.22 0) (-63392.5 8151.69 0) (45457.4 -5111.59 0) (-27433.7 2072.45 0) (2938.74 2327.57 0) (628.262 2348.64 0) (49.6613 1610.35 0) (-56.5983 1029.99 0) (149.953 755.626 0) (339.449 636.886 0) (510.808 534.592 0) (682.603 482.85 0) (856.464 461.784 0) (1019.82 450.578 0) (1141.83 441.951 0) (1180.77 431.652 0) (1102.09 419.792 0) (910.65 407.45 0) (661.367 396.084 0) (401.609 386.456 0) (201.116 380.252 0) (46.1778 375.658 0) (-127.069 375.368 0) (-287.347 378.747 0) (-498.911 383.172 0) (-777.487 389.525 0) (-1052.64 395.609 0) (-1282.14 400.402 0) (-1413.14 402.593 0) (-1438.39 402.261 0) (-1382.87 399.7 0) (-1282.98 397.621 0) (-1170.06 397.309 0) (-1066.96 399.887 0) (-981.968 403.299 0) (-903.96 407.881 0) (-787.138 400.97 0) (-614.385 411.255 0) (-428.012 421.481 0) (-385.145 449.213 0) (52708 850.812 0) (-67615.9 6737.57 0) (43772.9 -9276.82 0) (-23204.2 4940.17 0) (2824.74 2768.2 0) (249.817 2589.26 0) (-803.572 1406.03 0) (-531.472 692.961 0) (-26.4921 458.55 0) (235.782 388.289 0) (430.622 303.954 0) (653.923 264.398 0) (843.614 251.838 0) (1012.22 245.331 0) (1134.28 240.863 0) (1171.65 234.877 0) (1092.11 227.569 0) (900.996 220.007 0) (652.888 213.083 0) (395.257 207.195 0) (196.824 203.484 0) (44.2093 200.719 0) (-125.947 200.457 0) (-284.312 202.361 0) (-494.548 204.892 0) (-772.251 208.745 0) (-1047.79 212.411 0) (-1278.49 215.287 0) (-1411.34 216.738 0) (-1438.31 216.446 0) (-1383.48 214.948 0) (-1282.9 213.256 0) (-1168.09 212.592 0) (-1063.35 213.334 0) (-977.849 214.885 0) (-904.228 214.656 0) (-786.303 208.358 0) (-608.282 209.289 0) (-412.671 207.758 0) (-197.062 229.228 0) (55296 545.883 0) (-70704.9 4609.49 0) ) ; boundaryField { inlet { type extrapolatedCalculated; value nonuniform List<vector> 5((188166 -0.112831 0) (188165 -0.267726 0) (188165 4.01457e-09 0) (188165 0.267726 0) (188166 0.112831 0)); } outlet { type extrapolatedCalculated; value nonuniform List<vector> 165 ( (138340 9276.82 0) (150662 5111.59 0) (158043 5268.72 0) (170970 18.6437 0) (158115 -4726.45 0) (152752 -3056.48 0) (146333 -4130.68 0) (136830 -4865.41 0) (127580 -5003.05 0) (117546 -5179.19 0) (107616 -5259.91 0) (97271 -5286.21 0) (87240.2 -5216.39 0) (77164.2 -5011.31 0) (67923.9 -4840.4 0) (58506.7 -4285.8 0) (51404.1 -3700.75 0) (44242 -246.042 0) (50455.7 135012 0) (564650 -159579 0) (153026 -585958 0) (-130941 -49245.1 0) (-144.744 -42430.1 0) (3199.75 -48644.3 0) (4097.12 -55712.1 0) (4834.83 -65651.3 0) (5279.13 -75781.2 0) (5799.52 -87564.6 0) (6299.43 -99854.6 0) (6797.82 -113713 0) (7308.39 -128072 0) (7755.5 -144050 0) (8148.58 -160265 0) (8451.15 -177874 0) (8616.11 -195345 0) (8661.28 -213639 0) (8298.24 -231297 0) (7157.22 -248085 0) (5645.67 -261007 0) (2535.44 -271520 0) (-2529.97 -271531 0) (-5644.87 -261018 0) (-7156.85 -248100 0) (-8300.21 -231310 0) (-8665.94 -213646 0) (-8619.48 -195338 0) (-8460.13 -177867 0) (-8158.96 -160221 0) (-7775.66 -143999 0) (-7333.39 -127944 0) (-6821.21 -113559 0) (-6337.88 -99629.9 0) (-5840.52 -87250.8 0) (-5339.64 -75386.3 0) (-4909.11 -65086.2 0) (-4205.05 -55008.8 0) (-3339.42 -47631.3 0) (-46.6106 -41147.1 0) (127726 -47437.8 0) (-149067 -571331 0) (-252084 -4609.49 0) (-241081 -6737.57 0) (-226113 -8151.69 0) (-209660 -8581.76 0) (-193034 -8697.15 0) (-176136 -8506.91 0) (-160244 -8225.75 0) (-144430 -7849.41 0) (-129988 -7436.34 0) (-115766 -7014.21 0) (-102952 -6521.27 0) (-90629.5 -6053.46 0) (-79618.3 -5588.56 0) (-69088.1 -5120.68 0) (-59880.4 -4731.59 0) (-50850 -4018.98 0) (-44389.1 -3139.09 0) (-38750.2 547.253 0) (-46498.5 132780 0) (-550556 -154896 0) (-256487 2917.73 0) (-257840 4177.43 0) (-261348 3.9808e-05 0) (-257840 -4177.43 0) (-256487 -2917.73 0) (-550556 154896 0) (-46498.5 -132780 0) (-38750.2 -547.253 0) (-44389.1 3139.09 0) (-50850 4018.98 0) (-59880.4 4731.59 0) (-69088.1 5120.68 0) (-79618.3 5588.56 0) (-90629.5 6053.46 0) (-102952 6521.27 0) (-115766 7014.21 0) (-129988 7436.34 0) (-144430 7849.41 0) (-160244 8225.75 0) (-176136 8506.91 0) (-193034 8697.15 0) (-209660 8581.76 0) (-226113 8151.69 0) (-241081 6737.57 0) (-252084 4609.49 0) (153026 585958 0) (-130941 49245.1 0) (-144.744 42430.1 0) (3199.75 48644.3 0) (4097.12 55712.1 0) (4834.83 65651.3 0) (5279.13 75781.2 0) (5799.52 87564.6 0) (6299.43 99854.6 0) (6797.82 113713 0) (7308.39 128072 0) (7755.5 144050 0) (8148.58 160265 0) (8451.15 177874 0) (8616.11 195345 0) (8661.28 213639 0) (8298.24 231297 0) (7157.22 248085 0) (5645.67 261007 0) (2535.44 271520 0) (-2529.97 271531 0) (-5644.87 261018 0) (-7156.85 248100 0) (-8300.21 231310 0) (-8665.94 213646 0) (-8619.48 195338 0) (-8460.13 177867 0) (-8158.96 160221 0) (-7775.66 143999 0) (-7333.39 127944 0) (-6821.21 113559 0) (-6337.88 99629.9 0) (-5840.52 87250.8 0) (-5339.64 75386.3 0) (-4909.11 65086.2 0) (-4205.05 55008.8 0) (-3339.42 47631.3 0) (-46.6106 41147.1 0) (127726 47437.8 0) (-149067 571331 0) (564650 159579 0) (50455.7 -135012 0) (44242 246.042 0) (51404.1 3700.75 0) (58506.7 4285.8 0) (67923.9 4840.4 0) (77164.2 5011.31 0) (87240.2 5216.39 0) (97271 5286.21 0) (107616 5259.91 0) (117546 5179.19 0) (127580 5003.05 0) (136830 4865.41 0) (146333 4130.68 0) (152752 3056.48 0) (158115 4726.45 0) (170970 -18.6437 0) (158043 -5268.72 0) (150662 -5111.59 0) (138340 -9276.82 0) ) ; } obstacle { type extrapolatedCalculated; value nonuniform List<vector> 40 ( (55707.1 0 0) (-41128.9 0 0) (-2336.44 0 0) (748.555 0 0) (687.499 0 0) (709.873 0 0) (726.408 0 0) (702.546 0 0) (696.94 0 0) (-648.563 0 0) (55707.1 0 0) (-41128.9 0 0) (-2336.44 0 0) (748.555 0 0) (687.499 0 0) (709.873 0 0) (726.408 0 0) (702.546 0 0) (696.94 0 0) (-648.563 0 0) (-534.367 -356.245 1.1424e-11) (-404.182 -269.454 -1.37669e-11) (-3226.98 -2151.32 -1.72269e-11) (-11840.8 -7893.9 0) (1495.68 997.121 -6.2227e-11) (-534.367 356.245 -3.41431e-11) (-404.182 269.454 -1.37669e-11) (-3226.98 2151.32 -1.72269e-11) (-11840.8 7893.9 -4.68553e-11) (1495.68 -997.121 6.2227e-11) (16915.3 1879.48 1.65769e-11) (426.698 47.4109 1.42786e-15) (1235.93 137.326 0) (-1409.43 -156.604 4.71639e-15) (-12749.9 -1416.66 9.41348e-12) (16915.3 -1879.48 3.32104e-11) (426.698 -47.4109 -2.78223e-11) (1235.93 -137.326 0) (-1409.43 156.604 2.17849e-11) (-12749.9 1416.66 -9.41348e-12) ) ; } empty { type empty; } } // ************************************************************************* //
[ "andytorrestb@gmail.com" ]
andytorrestb@gmail.com
305e488dfff6619c38ec5a7bb3182161b90b3b90
8443144a2cf857153eb6024ef6f1181bcea8d625
/GeometryEngine/Render Utils/RenderSteps/PostProcessPass.cpp
b8f4cce090d266cc8dfebb5ced71b05dddce6729
[]
no_license
Ithos/TestGameEngine
dc9d90d551ba6fa8ad96264949d9720958b9f556
91ddfd70e573311ee8d405434555e8b1dbdcf4ff
refs/heads/master
2022-12-22T11:55:45.798212
2022-12-08T12:23:50
2022-12-08T12:23:50
171,184,187
0
0
null
null
null
null
UTF-8
C++
false
false
3,691
cpp
#include "../Items/CommonItemParameters.h" #include "Items\GraphicItems\Camera.h" #include "Items\GraphicItems\Light.h" #include "Items\GeometryItem.h" #include "../Items/PostProcess/DoublePassPostProcess.h" #include "../Items/CommonInerfaces/CustomPostProcessStepInterface.h" #include"../GBuffer.h" #include "PostProcessPass.h" void GeometryEngine::GeometryRenderStep::PostProcessPass::Render(GeometryWorldItem::GeometryCamera::Camera * cam, std::map<float, GeometryWorldItem::GeometryItem::GeometryItem*> * orderedItems, std::unordered_set<GeometryWorldItem::GeometryLight::Light*>* lights) { assert(cam != nullptr && "DoublePostProcessPass -> Camera not found"); applyPostProcess(cam->GetGBuffer(), cam->GetPostProcess()); } void GeometryEngine::GeometryRenderStep::PostProcessPass::applyPostProcess(GeometryBuffer::GBuffer * buf, const std::list<GeometryPostProcess::PostProcess*> & postProcess) { assert(buf != nullptr && "DoublePostProcessPass --> Geometry buffer not found"); GBufferTextureInfo gbuff(buf->GetTextureSize()); buf->FillGBufferInfo(gbuff); buf->BindTexture(GeometryEngine::GeometryBuffer::GBuffer::GBUFFER_TEXTURE_TYPE_TEXCOORD); buf->ClearColorTexture(GeometryEngine::GeometryBuffer::GBuffer::GBUFFER_TEXTURE_TYPE_TEXCOORD); buf->BindFinalTexture(GeometryEngine::GeometryBuffer::GBuffer::GBUFFER_NUM_TEXTURES, gbuff); glDisable(GL_DEPTH); glDisable(GL_DEPTH_TEST); for (auto it = postProcess.begin(); it != postProcess.end(); ++it) { GeometryEngine::GeometryPostProcess::PostProcess* postProcess = (*it); for (int i = 0; i < postProcess->GetIterations(); ++i) { initPostProcessPass(buf); postProcess->ApplyPostProcess(gbuff); secondPostProcessPass(buf); if(!applyExtraSteps(postProcess, buf, gbuff)) finishPostProcesPass(buf); } } glEnable(GL_DEPTH_TEST); glEnable(GL_DEPTH); buf->UnbindFinalTexture(); buf->UnbindTexture(GeometryEngine::GeometryBuffer::GBuffer::GBUFFER_TEXTURE_TYPE_TEXCOORD); } void GeometryEngine::GeometryRenderStep::PostProcessPass::initPostProcessPass(GeometryBuffer::GBuffer * buf) { assert(buf != nullptr && "DoublePostProcessPass --> Geometry buffer not found"); buf->BindTexturesForPostProcess(); } void GeometryEngine::GeometryRenderStep::PostProcessPass::secondPostProcessPass(GeometryBuffer::GBuffer * buf) { assert(buf != nullptr && "DoublePostProcessPass --> Geometry buffer not found"); buf->FinishPostProcessBinding(); } void GeometryEngine::GeometryRenderStep::PostProcessPass::finishPostProcesPass(GeometryBuffer::GBuffer* buf) { assert(buf != nullptr && "FinalPass --> Geometry buffer not found"); QVector2D texSize = buf->GetTextureSize(); glBlitFramebuffer( 0, 0, texSize.x(), texSize.y(), 0, 0, texSize.x(), texSize.y(), GL_COLOR_BUFFER_BIT, GL_LINEAR ); } bool GeometryEngine::GeometryRenderStep::PostProcessPass::applyExtraSteps(GeometryPostProcess::PostProcess * postProcess, GeometryBuffer::GBuffer * buf, const GBufferTextureInfo& gBuff) { GeometryEngine::CustomShading::CustomPostProcessStepInterface* manager = postProcess->GetComponentManager(); if (manager != nullptr && manager->ContainsStep(GeometryEngine::CustomShading::CustomPostProcessSteps::SECOND_STEP)) { buf->UnbindTexture(GeometryEngine::GeometryBuffer::GBuffer::GBUFFER_NUM_TEXTURES); buf->BindTexture(GeometryEngine::GeometryBuffer::GBuffer::GBUFFER_TEXTURE_TYPE_TEXCOORD); manager->RenderStep(GeometryEngine::CustomShading::CustomPostProcessSteps::SECOND_STEP, gBuff); buf->UnbindTexture(GeometryEngine::GeometryBuffer::GBuffer::GBUFFER_TEXTURE_TYPE_TEXCOORD); buf->BindTexture(GeometryEngine::GeometryBuffer::GBuffer::GBUFFER_NUM_TEXTURES); return true; } return false; }
[ "alvaroperez.devel@gmail" ]
alvaroperez.devel@gmail
ca5db6ea8253de0a6d33ca37261e7ecca6f55c56
18a6a5559476297b9a979ecd6ff461429d54cd8e
/Feather2New/message.ino
2b363b1cba4d294ff77da5e673a454493a330ad8
[]
no_license
Svalann/BigData_inlupp1
071c2ac8d339c9e9aaddf27e0ff1619e4dfd627d
1f5f457aaecf52b2915b4c155f340294aa3e4f33
refs/heads/master
2020-04-24T15:08:25.759165
2019-05-20T08:02:10
2019-05-20T08:02:10
172,053,694
0
0
null
null
null
null
UTF-8
C++
false
false
1,486
ino
#include <Adafruit_Sensor.h> #include <ArduinoJson.h> #include <DHT.h> static DHT dht(DHT_PIN, DHT_TYPE); void initSensor() { dht.begin(); } float readTemperature() { return dht.readTemperature(); } float readHumidity() { return dht.readHumidity(); } void readMessage(char *payload) { float temperature = readTemperature(); float humidity = readHumidity(); StaticJsonBuffer<MESSAGE_MAX_LEN> jsonBuffer; JsonObject &root = jsonBuffer.createObject(); root["id"] = DEVICE_ID; root["type"] = DEVICE_TYPE; root["student"] = DEVICE_STUDENT; JsonArray& positiondata = root.createNestedArray("position"); positiondata.add(DEVICE_LOCATION_LAT); positiondata.add(DEVICE_LOCATION_LON); JsonArray& dhtdata = root.createNestedArray("dht"); if (std::isnan(temperature)){ dhtdata.add(NULL); } else { dhtdata.add(temperature); } if (std::isnan(humidity)){ dhtdata.add(NULL); } else { dhtdata.add(humidity); } root.printTo(payload, MESSAGE_MAX_LEN); } void parseTwinMessage(char *message) { StaticJsonBuffer<MESSAGE_MAX_LEN> jsonBuffer; JsonObject &root = jsonBuffer.parseObject(message); if (!root.success()) { Serial.printf("Parse %s failed.\r\n", message); return; } if (root["desired"]["interval"].success()) { interval = root["desired"]["interval"]; } else if (root.containsKey("interval")) { interval = root["interval"]; } }
[ "viktor.svahlstedt@gmail.com" ]
viktor.svahlstedt@gmail.com
8164b0d958abfb5890b6a42444d075c9ff4f2997
b9b17fcfac43774e730ecf221bc26164598010b6
/src/viewtool.h
ccac35aad148d9d0b51041f9d4fc602ea7efd8e2
[ "BSD-3-Clause" ]
permissive
taviso/mpgravity
e2334e77e9d5e9769e05d24609e4bbed00f23b5c
f6a2a7a02014b19047e44db76ae551bd689c16ac
refs/heads/master
2023-07-26T00:49:37.297106
2020-04-24T06:15:10
2020-04-24T06:15:10
251,759,803
13
0
null
null
null
null
UTF-8
C++
false
false
2,894
h
/*****************************************************************************/ /* SOURCE CONTROL VERSIONS */ /*---------------------------------------------------------------------------*/ /* */ /* Version Date Time Author / Comment (optional) */ /* */ /* $Log: viewtool.h,v $ /* Revision 1.1 2010/07/21 17:14:58 richard_wood /* Initial checkin of V3.0.0 source code and other resources. /* Initial code builds V3.0.0 RC1 /* /* Revision 1.1 2009/06/09 13:21:29 richard_wood /* *** empty log message *** /* /* Revision 1.2 2008/09/19 14:52:26 richard_wood /* Updated for VS 2005 /* /* */ /*****************************************************************************/ /********************************************************************************** Copyright (c) 2003, Albert M. Choy All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * 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. * Neither the name of Microplanet, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. **********************************************************************************/ #pragma once const int idViewToolbar = 100; class TViewToolBar : public CToolBar { public: BOOL Create(CWnd* pParentWnd); public: CComboBox m_comboBox; };
[ "taviso@gmail.com" ]
taviso@gmail.com
52250e5af79e7d588c68883f0ebc4c70ad978175
fb7efe44f4d9f30d623f880d0eb620f3a81f0fbd
/content/renderer/media/webrtc_audio_device_impl.h
c2939fae98676b752f44786ddebc2f48b98af36a
[ "BSD-3-Clause" ]
permissive
wzyy2/chromium-browser
2644b0daf58f8b3caee8a6c09a2b448b2dfe059c
eb905f00a0f7e141e8d6c89be8fb26192a88c4b7
refs/heads/master
2022-11-23T20:25:08.120045
2018-01-16T06:41:26
2018-01-16T06:41:26
117,618,467
3
2
BSD-3-Clause
2022-11-20T22:03:57
2018-01-16T02:09:10
null
UTF-8
C++
false
false
17,401
h
// Copyright 2013 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_RENDERER_MEDIA_WEBRTC_AUDIO_DEVICE_IMPL_H_ #define CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_DEVICE_IMPL_H_ #include <stdint.h> #include <list> #include <memory> #include <string> #include <vector> #include "base/compiler_specific.h" #include "base/files/file.h" #include "base/logging.h" #include "base/macros.h" #include "base/memory/ref_counted.h" #include "base/threading/thread_checker.h" #include "content/common/content_export.h" #include "content/renderer/media/webrtc_audio_device_not_impl.h" #include "ipc/ipc_platform_file.h" // A WebRtcAudioDeviceImpl instance implements the abstract interface // webrtc::AudioDeviceModule which makes it possible for a user (e.g. webrtc:: // VoiceEngine) to register this class as an external AudioDeviceModule (ADM). // Then WebRtcAudioDeviceImpl::SetSessionId() needs to be called to set the // session id that tells which device to use. The user can then call // WebRtcAudioDeviceImpl::StartPlayout() and // WebRtcAudioDeviceImpl::StartRecording() from the render process to initiate // and start audio rendering and capturing in the browser process. IPC is // utilized to set up the media streams. // // Usage example: // // using namespace webrtc; // // { // scoped_refptr<WebRtcAudioDeviceImpl> external_adm; // external_adm = new WebRtcAudioDeviceImpl(); // external_adm->SetSessionId(session_id); // VoiceEngine* voe = VoiceEngine::Create(); // VoEBase* base = VoEBase::GetInterface(voe); // base->Init(external_adm); // int ch = base->CreateChannel(); // ... // base->StartReceive(ch) // base->StartPlayout(ch); // base->StartSending(ch); // ... // <== full-duplex audio session with AGC enabled ==> // ... // base->DeleteChannel(ch); // base->Terminate(); // base->Release(); // VoiceEngine::Delete(voe); // } // // webrtc::VoiceEngine::Init() calls these ADM methods (in this order): // // RegisterAudioCallback(this) // webrtc::VoiceEngine is an webrtc::AudioTransport implementation and // implements the RecordedDataIsAvailable() and NeedMorePlayData() callbacks. // // Init() // Creates and initializes the AudioOutputDevice and AudioInputDevice // objects. // // SetAGC(true) // Enables the adaptive analog mode of the AGC which ensures that a // suitable microphone volume level will be set. This scheme will affect // the actual microphone control slider. // // AGC overview: // // It aims to maintain a constant speech loudness level from the microphone. // This is done by both controlling the analog microphone gain and applying // digital gain. The microphone gain on the sound card is slowly // increased/decreased during speech only. By observing the microphone control // slider you can see it move when you speak. If you scream, the slider moves // downwards and then upwards again when you return to normal. It is not // uncommon that the slider hits the maximum. This means that the maximum // analog gain is not large enough to give the desired loudness. Nevertheless, // we can in general still attain the desired loudness. If the microphone // control slider is moved manually, the gain adaptation restarts and returns // to roughly the same position as before the change if the circumstances are // still the same. When the input microphone signal causes saturation, the // level is decreased dramatically and has to re-adapt towards the old level. // The adaptation is a slowly varying process and at the beginning of capture // this is noticed by a slow increase in volume. Smaller changes in microphone // input level is leveled out by the built-in digital control. For larger // differences we need to rely on the slow adaptation. // See http://en.wikipedia.org/wiki/Automatic_gain_control for more details. // // AGC implementation details: // // The adaptive analog mode of the AGC is always enabled for desktop platforms // in WebRTC. // // Before recording starts, the ADM enables AGC on the AudioInputDevice. // // A capture session with AGC is started up as follows (simplified): // // [renderer] // | // ADM::StartRecording() // AudioInputDevice::InitializeOnIOThread() // AudioInputHostMsg_CreateStream(..., agc=true) [IPC] // | // [IPC to the browser] // | // AudioInputRendererHost::OnCreateStream() // AudioInputController::CreateLowLatency() // AudioInputController::DoSetAutomaticGainControl(true) // AudioInputStream::SetAutomaticGainControl(true) // | // AGC is now enabled in the media layer and streaming starts (details omitted). // The figure below illustrates the AGC scheme which is active in combination // with the default media flow explained earlier. // | // [browser] // | // AudioInputStream::(Capture thread loop) // AgcAudioStream<AudioInputStream>::GetAgcVolume() => get latest mic volume // AudioInputData::OnData(..., volume) // AudioInputController::OnData(..., volume) // AudioInputSyncWriter::Write(..., volume) // | // [volume | size | data] is sent to the renderer [shared memory] // | // [renderer] // | // AudioInputDevice::AudioThreadCallback::Process() // WebRtcAudioDeviceImpl::Capture(..., volume) // AudioTransport::RecordedDataIsAvailable(...,volume, new_volume) // | // The AGC now uses the current volume input and computes a suitable new // level given by the |new_level| output. This value is only non-zero if the // AGC has take a decision that the microphone level should change. // | // if (new_volume != 0) // AudioInputDevice::SetVolume(new_volume) // AudioInputHostMsg_SetVolume(new_volume) [IPC] // | // [IPC to the browser] // | // AudioInputRendererHost::OnSetVolume() // AudioInputController::SetVolume() // AudioInputStream::SetVolume(scaled_volume) // | // Here we set the new microphone level in the media layer and at the same time // read the new setting (we might not get exactly what is set). // | // AudioInputData::OnData(..., updated_volume) // AudioInputController::OnData(..., updated_volume) // | // | // This process repeats until we stop capturing data. Note that, a common // steady state is that the volume control reaches its max and the new_volume // value from the AGC is zero. A loud voice input is required to break this // state and start lowering the level again. // // Implementation notes: // // - This class must be created and destroyed on the main render thread and // most methods are called on the same thread. However, some methods are // also called on a Libjingle worker thread. RenderData is called on the // AudioOutputDevice thread and CaptureData on the AudioInputDevice thread. // To summarize: this class lives on four different threads, so it is // important to be careful with the order in which locks are acquired in // order to avoid potential deadlocks. // - The webrtc::AudioDeviceModule is reference counted. // - AGC is only supported in combination with the WASAPI-based audio layer // on Windows, i.e., it is not supported on Windows XP. // - All volume levels required for the AGC scheme are transfered in a // normalized range [0.0, 1.0]. Scaling takes place in both endpoints // (WebRTC client a media layer). This approach ensures that we can avoid // transferring maximum levels between the renderer and the browser. // namespace media { class AudioBus; } namespace content { class ProcessedLocalAudioSource; class WebRtcAudioRenderer; // TODO(xians): Move the following two interfaces to webrtc so that // libjingle can own references to the renderer and capturer. class WebRtcAudioRendererSource { public: // Callback to get the rendered data. virtual void RenderData(media::AudioBus* audio_bus, int sample_rate, int audio_delay_milliseconds, base::TimeDelta* current_time) = 0; // Callback to notify the client that the renderer is going away. virtual void RemoveAudioRenderer(WebRtcAudioRenderer* renderer) = 0; // Callback to notify the client that the audio renderer thread stopped. // This function must be called only when that thread is actually stopped. // Otherwise a race may occur. virtual void AudioRendererThreadStopped() = 0; protected: virtual ~WebRtcAudioRendererSource() {} }; // TODO(xians): Merge this interface with WebRtcAudioRendererSource. // The reason why we could not do it today is that WebRtcAudioRendererSource // gets the data by pulling, while the data is pushed into // WebRtcPlayoutDataSource::Sink. class WebRtcPlayoutDataSource { public: class Sink { public: // Callback to get the playout data. // Called on the audio render thread. virtual void OnPlayoutData(media::AudioBus* audio_bus, int sample_rate, int audio_delay_milliseconds) = 0; // Callback to notify the sink that the source has changed. // Called on the main render thread. virtual void OnPlayoutDataSourceChanged() = 0; // Called to notify that the audio render thread has changed, and // OnPlayoutData() will from now on be called on the new thread. // Called on the new audio render thread. virtual void OnRenderThreadChanged() = 0; protected: virtual ~Sink() {} }; // Adds/Removes the sink of WebRtcAudioRendererSource to the ADM. // These methods are used by the MediaStreamAudioProcesssor to get the // rendered data for AEC. virtual void AddPlayoutSink(Sink* sink) = 0; virtual void RemovePlayoutSink(Sink* sink) = 0; protected: virtual ~WebRtcPlayoutDataSource() {} }; // Note that this class inherits from webrtc::AudioDeviceModule but due to // the high number of non-implemented methods, we move the cruft over to the // WebRtcAudioDeviceNotImpl. class CONTENT_EXPORT WebRtcAudioDeviceImpl : public WebRtcAudioDeviceNotImpl, public WebRtcAudioRendererSource, public WebRtcPlayoutDataSource { public: // The maximum volume value WebRtc uses. static const int kMaxVolumeLevel = 255; // Instances of this object are created on the main render thread. WebRtcAudioDeviceImpl(); // webrtc::RefCountedModule implementation. // The creator must call AddRef() after construction and use Release() // to release the reference and delete this object. // Called on the main render thread. int32_t AddRef() const override; int32_t Release() const override; private: // webrtc::AudioDeviceModule implementation. // All implemented methods are called on the main render thread unless // anything else is stated. int32_t RegisterAudioCallback( webrtc::AudioTransport* audio_callback) override; int32_t Init() override; int32_t Terminate() override; bool Initialized() const override; int32_t PlayoutIsAvailable(bool* available) override; bool PlayoutIsInitialized() const override; int32_t RecordingIsAvailable(bool* available) override; bool RecordingIsInitialized() const override; // All Start/Stop methods are called on a libJingle worker thread. int32_t StartPlayout() override; int32_t StopPlayout() override; bool Playing() const override; int32_t StartRecording() override; int32_t StopRecording() override; bool Recording() const override; // Called on the AudioInputDevice worker thread. int32_t SetMicrophoneVolume(uint32_t volume) override; // TODO(henrika): sort out calling thread once we start using this API. int32_t MicrophoneVolume(uint32_t* volume) const override; int32_t MaxMicrophoneVolume(uint32_t* max_volume) const override; int32_t MinMicrophoneVolume(uint32_t* min_volume) const override; int32_t StereoPlayoutIsAvailable(bool* available) const override; int32_t StereoRecordingIsAvailable(bool* available) const override; int32_t PlayoutDelay(uint16_t* delay_ms) const override; int32_t RecordingDelay(uint16_t* delay_ms) const override; int32_t RecordingSampleRate(uint32_t* sample_rate) const override; int32_t PlayoutSampleRate(uint32_t* sample_rate) const override; public: // Sets the |renderer_|, returns false if |renderer_| already exists. // Called on the main renderer thread. bool SetAudioRenderer(WebRtcAudioRenderer* renderer); // Adds/Removes the |capturer| to the ADM. Does NOT take ownership. // Capturers must remain valid until RemoveAudioCapturer() is called. // TODO(xians): Remove these two methods once the ADM does not need to pass // hardware information up to WebRtc. void AddAudioCapturer(ProcessedLocalAudioSource* capturer); void RemoveAudioCapturer(ProcessedLocalAudioSource* capturer); // Gets paired device information of the capture device for the audio // renderer. This is used to pass on a session id, sample rate and buffer // size to a webrtc audio renderer (either local or remote), so that audio // will be rendered to a matching output device. // Returns true if the capture device has a paired output device, otherwise // false. Note that if there are more than one open capture device the // function will not be able to pick an appropriate device and return false. bool GetAuthorizedDeviceInfoForAudioRenderer( int* session_id, int* output_sample_rate, int* output_buffer_size); const scoped_refptr<WebRtcAudioRenderer>& renderer() const { return renderer_; } private: typedef std::list<ProcessedLocalAudioSource*> CapturerList; typedef std::list<WebRtcPlayoutDataSource::Sink*> PlayoutDataSinkList; class RenderBuffer; // Make destructor private to ensure that we can only be deleted by Release(). ~WebRtcAudioDeviceImpl() override; // WebRtcAudioRendererSource implementation. // Called on the AudioOutputDevice worker thread. void RenderData(media::AudioBus* audio_bus, int sample_rate, int audio_delay_milliseconds, base::TimeDelta* current_time) override; // Called on the main render thread. void RemoveAudioRenderer(WebRtcAudioRenderer* renderer) override; void AudioRendererThreadStopped() override; // WebRtcPlayoutDataSource implementation. void AddPlayoutSink(WebRtcPlayoutDataSource::Sink* sink) override; void RemovePlayoutSink(WebRtcPlayoutDataSource::Sink* sink) override; // Used to check methods that run on the main render thread. base::ThreadChecker main_thread_checker_; // Used to check methods that are called on libjingle's signaling thread. base::ThreadChecker signaling_thread_checker_; base::ThreadChecker worker_thread_checker_; base::ThreadChecker audio_renderer_thread_checker_; mutable int ref_count_; // List of captures which provides access to the native audio input layer // in the browser process. The last capturer in this list is considered the // "default capturer" by the methods implementing the // webrtc::AudioDeviceModule interface. CapturerList capturers_; // Provides access to the audio renderer in the browser process. scoped_refptr<WebRtcAudioRenderer> renderer_; // A list of raw pointer of WebRtcPlayoutDataSource::Sink objects which want // to get the playout data, the sink need to call RemovePlayoutSink() // before it goes away. PlayoutDataSinkList playout_sinks_; // Weak reference to the audio callback. // The webrtc client defines |audio_transport_callback_| by calling // RegisterAudioCallback(). webrtc::AudioTransport* audio_transport_callback_; // Cached value of the current audio delay on the output/renderer side. int output_delay_ms_; // Protects |recording_|, |output_delay_ms_|, |input_delay_ms_|, |renderer_| // |recording_|, |microphone_volume_| and |playout_sinks_|. mutable base::Lock lock_; // Used to protect the racing of calling OnData() since there can be more // than one input stream calling OnData(). mutable base::Lock capture_callback_lock_; bool initialized_; bool playing_; bool recording_; // Buffer used for temporary storage during render callback. // It is only accessed by the audio render thread. std::vector<int16_t> render_buffer_; DISALLOW_COPY_AND_ASSIGN(WebRtcAudioDeviceImpl); }; } // namespace content #endif // CONTENT_RENDERER_MEDIA_WEBRTC_AUDIO_DEVICE_IMPL_H_
[ "jacob-chen@iotwrt.com" ]
jacob-chen@iotwrt.com
4d4d5f57c9666a8284bcd8a951f27eb0909ca8c4
bfaece7c27b5c3a7113918b5743ac16e8caed270
/src/blockchain_utilities/bootstrap_file.cpp
30841cff303340978f03a60444dde968ab2e17b8
[ "BSD-3-Clause" ]
permissive
enro-project/enro
fe0f38924260f0b5721a2a0e68e72d5cffb9bf49
96b709239c5fa059ea6c4c3c8ba0f431964f1344
refs/heads/master
2020-04-12T03:34:10.752640
2018-12-19T00:08:08
2018-12-19T00:08:08
162,269,737
0
0
null
null
null
null
UTF-8
C++
false
false
16,965
cpp
// Copyright (c) 2014-2018, The Enro Project Copyright (c) 2014-2018, The Monero Project // // 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 disclaimer. // // 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. Neither the name of the copyright holder nor the names of its contributors may be // used to endorse or promote products derived from this software without specific // prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY // EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF // MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL // THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, // STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF // THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include "bootstrap_serialization.h" #include "serialization/binary_utils.h" // dump_binary(), parse_binary() #include "serialization/json_utils.h" // dump_json() #include "bootstrap_file.h" #undef MONERO_DEFAULT_LOG_CATEGORY #define MONERO_DEFAULT_LOG_CATEGORY "bcutil" namespace po = boost::program_options; using namespace cryptonote; using namespace epee; namespace { // This number was picked by taking the leading 4 bytes from this output: // echo Enro bootstrap file | sha1sum const uint32_t blockchain_raw_magic = 0x28721586; const uint32_t header_size = 1024; std::string refresh_string = "\r \r"; } bool BootstrapFile::open_writer(const boost::filesystem::path& file_path) { const boost::filesystem::path dir_path = file_path.parent_path(); if (!dir_path.empty()) { if (boost::filesystem::exists(dir_path)) { if (!boost::filesystem::is_directory(dir_path)) { MFATAL("export directory path is a file: " << dir_path); return false; } } else { if (!boost::filesystem::create_directory(dir_path)) { MFATAL("Failed to create directory " << dir_path); return false; } } } m_raw_data_file = new std::ofstream(); bool do_initialize_file = false; uint64_t num_blocks = 0; if (! boost::filesystem::exists(file_path)) { MDEBUG("creating file"); do_initialize_file = true; num_blocks = 0; } else { num_blocks = count_blocks(file_path.string()); MDEBUG("appending to existing file with height: " << num_blocks-1 << " total blocks: " << num_blocks); } m_height = num_blocks; if (do_initialize_file) m_raw_data_file->open(file_path.string(), std::ios_base::binary | std::ios_base::out | std::ios::trunc); else m_raw_data_file->open(file_path.string(), std::ios_base::binary | std::ios_base::out | std::ios::app | std::ios::ate); if (m_raw_data_file->fail()) return false; m_output_stream = new boost::iostreams::stream<boost::iostreams::back_insert_device<buffer_type>>(m_buffer); if (m_output_stream == nullptr) return false; if (do_initialize_file) initialize_file(); return true; } bool BootstrapFile::initialize_file() { const uint32_t file_magic = blockchain_raw_magic; std::string blob; if (! ::serialization::dump_binary(file_magic, blob)) { throw std::runtime_error("Error in serialization of file magic"); } *m_raw_data_file << blob; bootstrap::file_info bfi; bfi.major_version = 0; bfi.minor_version = 1; bfi.header_size = header_size; bootstrap::blocks_info bbi; bbi.block_first = 0; bbi.block_last = 0; bbi.block_last_pos = 0; buffer_type buffer2; boost::iostreams::stream<boost::iostreams::back_insert_device<buffer_type>> output_stream_header(buffer2); uint32_t bd_size = 0; blobdata bd = t_serializable_object_to_blob(bfi); MDEBUG("bootstrap::file_info size: " << bd.size()); bd_size = bd.size(); if (! ::serialization::dump_binary(bd_size, blob)) { throw std::runtime_error("Error in serialization of bootstrap::file_info size"); } output_stream_header << blob; output_stream_header << bd; bd = t_serializable_object_to_blob(bbi); MDEBUG("bootstrap::blocks_info size: " << bd.size()); bd_size = bd.size(); if (! ::serialization::dump_binary(bd_size, blob)) { throw std::runtime_error("Error in serialization of bootstrap::blocks_info size"); } output_stream_header << blob; output_stream_header << bd; output_stream_header.flush(); output_stream_header << std::string(header_size-buffer2.size(), 0); // fill in rest with null bytes output_stream_header.flush(); std::copy(buffer2.begin(), buffer2.end(), std::ostreambuf_iterator<char>(*m_raw_data_file)); return true; } void BootstrapFile::flush_chunk() { m_output_stream->flush(); uint32_t chunk_size = m_buffer.size(); // MTRACE("chunk_size " << chunk_size); if (chunk_size > BUFFER_SIZE) { MWARNING("WARNING: chunk_size " << chunk_size << " > BUFFER_SIZE " << BUFFER_SIZE); } std::string blob; if (! ::serialization::dump_binary(chunk_size, blob)) { throw std::runtime_error("Error in serialization of chunk size"); } *m_raw_data_file << blob; if (m_max_chunk < chunk_size) { m_max_chunk = chunk_size; } long pos_before = m_raw_data_file->tellp(); std::copy(m_buffer.begin(), m_buffer.end(), std::ostreambuf_iterator<char>(*m_raw_data_file)); m_raw_data_file->flush(); long pos_after = m_raw_data_file->tellp(); long num_chars_written = pos_after - pos_before; if (static_cast<unsigned long>(num_chars_written) != chunk_size) { MFATAL("Error writing chunk: height: " << m_cur_height << " chunk_size: " << chunk_size << " num chars written: " << num_chars_written); throw std::runtime_error("Error writing chunk"); } m_buffer.clear(); delete m_output_stream; m_output_stream = new boost::iostreams::stream<boost::iostreams::back_insert_device<buffer_type>>(m_buffer); MDEBUG("flushed chunk: chunk_size: " << chunk_size); } void BootstrapFile::write_block(block& block) { bootstrap::block_package bp; bp.block = block; std::vector<transaction> txs; uint64_t block_height = boost::get<txin_gen>(block.miner_tx.vin.front()).height; // now add all regular transactions for (const auto& tx_id : block.tx_hashes) { if (tx_id == crypto::null_hash) { throw std::runtime_error("Aborting: tx == null_hash"); } transaction tx = m_blockchain_storage->get_db().get_tx(tx_id); txs.push_back(tx); } // these non-coinbase txs will be serialized using this structure bp.txs = txs; // These three attributes are currently necessary for a fast import that adds blocks without verification. bool include_extra_block_data = true; if (include_extra_block_data) { size_t block_weight = m_blockchain_storage->get_db().get_block_weight(block_height); difficulty_type cumulative_difficulty = m_blockchain_storage->get_db().get_block_cumulative_difficulty(block_height); uint64_t coins_generated = m_blockchain_storage->get_db().get_block_already_generated_coins(block_height); bp.block_weight = block_weight; bp.cumulative_difficulty = cumulative_difficulty; bp.coins_generated = coins_generated; } blobdata bd = t_serializable_object_to_blob(bp); m_output_stream->write((const char*)bd.data(), bd.size()); } bool BootstrapFile::close() { if (m_raw_data_file->fail()) return false; m_raw_data_file->flush(); delete m_output_stream; delete m_raw_data_file; return true; } bool BootstrapFile::store_blockchain_raw(Blockchain* _blockchain_storage, tx_memory_pool* _tx_pool, boost::filesystem::path& output_file, uint64_t requested_block_stop) { uint64_t num_blocks_written = 0; m_max_chunk = 0; m_blockchain_storage = _blockchain_storage; m_tx_pool = _tx_pool; uint64_t progress_interval = 100; MINFO("Storing blocks raw data..."); if (!BootstrapFile::open_writer(output_file)) { MFATAL("failed to open raw file for write"); return false; } block b; // block_start, block_stop use 0-based height. m_height uses 1-based height. So to resume export // from last exported block, block_start doesn't need to add 1 here, as it's already at the next // height. uint64_t block_start = m_height; uint64_t block_stop = 0; MINFO("source blockchain height: " << m_blockchain_storage->get_current_blockchain_height()-1); if ((requested_block_stop > 0) && (requested_block_stop < m_blockchain_storage->get_current_blockchain_height())) { MINFO("Using requested block height: " << requested_block_stop); block_stop = requested_block_stop; } else { block_stop = m_blockchain_storage->get_current_blockchain_height() - 1; MINFO("Using block height of source blockchain: " << block_stop); } for (m_cur_height = block_start; m_cur_height <= block_stop; ++m_cur_height) { // this method's height refers to 0-based height (genesis block = height 0) crypto::hash hash = m_blockchain_storage->get_block_id_by_height(m_cur_height); m_blockchain_storage->get_block_by_hash(hash, b); write_block(b); if (m_cur_height % NUM_BLOCKS_PER_CHUNK == 0) { flush_chunk(); num_blocks_written += NUM_BLOCKS_PER_CHUNK; } if (m_cur_height % progress_interval == 0) { std::cout << refresh_string; std::cout << "block " << m_cur_height << "/" << block_stop << std::flush; } } // NOTE: use of NUM_BLOCKS_PER_CHUNK is a placeholder in case multi-block chunks are later supported. if (m_cur_height % NUM_BLOCKS_PER_CHUNK != 0) { flush_chunk(); } // print message for last block, which may not have been printed yet due to progress_interval std::cout << refresh_string; std::cout << "block " << m_cur_height-1 << "/" << block_stop << ENDL; MINFO("Number of blocks exported: " << num_blocks_written); if (num_blocks_written > 0) MINFO("Largest chunk: " << m_max_chunk << " bytes"); return BootstrapFile::close(); } uint64_t BootstrapFile::seek_to_first_chunk(std::ifstream& import_file) { uint32_t file_magic; std::string str1; char buf1[2048]; import_file.read(buf1, sizeof(file_magic)); if (! import_file) throw std::runtime_error("Error reading expected number of bytes"); str1.assign(buf1, sizeof(file_magic)); if (! ::serialization::parse_binary(str1, file_magic)) throw std::runtime_error("Error in deserialization of file_magic"); if (file_magic != blockchain_raw_magic) { MFATAL("bootstrap file not recognized"); throw std::runtime_error("Aborting"); } else MINFO("bootstrap file recognized"); uint32_t buflen_file_info; import_file.read(buf1, sizeof(buflen_file_info)); str1.assign(buf1, sizeof(buflen_file_info)); if (! import_file) throw std::runtime_error("Error reading expected number of bytes"); if (! ::serialization::parse_binary(str1, buflen_file_info)) throw std::runtime_error("Error in deserialization of buflen_file_info"); MINFO("bootstrap::file_info size: " << buflen_file_info); if (buflen_file_info > sizeof(buf1)) throw std::runtime_error("Error: bootstrap::file_info size exceeds buffer size"); import_file.read(buf1, buflen_file_info); if (! import_file) throw std::runtime_error("Error reading expected number of bytes"); str1.assign(buf1, buflen_file_info); bootstrap::file_info bfi; if (! ::serialization::parse_binary(str1, bfi)) throw std::runtime_error("Error in deserialization of bootstrap::file_info"); MINFO("bootstrap file v" << unsigned(bfi.major_version) << "." << unsigned(bfi.minor_version)); MINFO("bootstrap magic size: " << sizeof(file_magic)); MINFO("bootstrap header size: " << bfi.header_size); uint64_t full_header_size = sizeof(file_magic) + bfi.header_size; import_file.seekg(full_header_size); return full_header_size; } uint64_t BootstrapFile::count_bytes(std::ifstream& import_file, uint64_t blocks, uint64_t& h, bool& quit) { uint64_t bytes_read = 0; uint32_t chunk_size; char buf1[sizeof(chunk_size)]; std::string str1; h = 0; while (1) { import_file.read(buf1, sizeof(chunk_size)); if (!import_file) { std::cout << refresh_string; MDEBUG("End of file reached"); quit = true; break; } bytes_read += sizeof(chunk_size); str1.assign(buf1, sizeof(chunk_size)); if (! ::serialization::parse_binary(str1, chunk_size)) throw std::runtime_error("Error in deserialization of chunk_size"); MDEBUG("chunk_size: " << chunk_size); if (chunk_size > BUFFER_SIZE) { std::cout << refresh_string; MWARNING("WARNING: chunk_size " << chunk_size << " > BUFFER_SIZE " << BUFFER_SIZE << " height: " << h-1 << ", offset " << bytes_read); throw std::runtime_error("Aborting: chunk size exceeds buffer size"); } if (chunk_size > CHUNK_SIZE_WARNING_THRESHOLD) { std::cout << refresh_string; MDEBUG("NOTE: chunk_size " << chunk_size << " > " << CHUNK_SIZE_WARNING_THRESHOLD << " << height: " << h-1 << ", offset " << bytes_read); } else if (chunk_size <= 0) { std::cout << refresh_string; MDEBUG("ERROR: chunk_size " << chunk_size << " <= 0" << " height: " << h-1 << ", offset " << bytes_read); throw std::runtime_error("Aborting"); } // skip to next expected block size value import_file.seekg(chunk_size, std::ios_base::cur); if (! import_file) { std::cout << refresh_string; MFATAL("ERROR: unexpected end of file: bytes read before error: " << import_file.gcount() << " of chunk_size " << chunk_size); throw std::runtime_error("Aborting"); } bytes_read += chunk_size; h += NUM_BLOCKS_PER_CHUNK; if (h >= blocks) break; } return bytes_read; } uint64_t BootstrapFile::count_blocks(const std::string& import_file_path) { std::streampos dummy_pos; uint64_t dummy_height = 0; return count_blocks(import_file_path, dummy_pos, dummy_height); } // If seek_height is non-zero on entry, return a stream position <= this height when finished. // And return the actual height corresponding to this position. Allows the caller to locate its // starting position without having to reread the entire file again. uint64_t BootstrapFile::count_blocks(const std::string& import_file_path, std::streampos &start_pos, uint64_t& seek_height) { boost::filesystem::path raw_file_path(import_file_path); boost::system::error_code ec; if (!boost::filesystem::exists(raw_file_path, ec)) { MFATAL("bootstrap file not found: " << raw_file_path); throw std::runtime_error("Aborting"); } std::ifstream import_file; import_file.open(import_file_path, std::ios_base::binary | std::ifstream::in); uint64_t start_height = seek_height; uint64_t h = 0; if (import_file.fail()) { MFATAL("import_file.open() fail"); throw std::runtime_error("Aborting"); } uint64_t full_header_size; // 4 byte magic + length of header structures full_header_size = seek_to_first_chunk(import_file); MINFO("Scanning blockchain from bootstrap file..."); bool quit = false; uint64_t bytes_read = 0, blocks; int progress_interval = 10; while (! quit) { if (start_height && h + progress_interval >= start_height - 1) { start_height = 0; start_pos = import_file.tellg(); seek_height = h; } bytes_read += count_bytes(import_file, progress_interval, blocks, quit); h += blocks; std::cout << "\r" << "block height: " << h-1 << " " << std::flush; // std::cout << refresh_string; MDEBUG("Number bytes scanned: " << bytes_read); } import_file.close(); std::cout << ENDL; std::cout << "Done scanning bootstrap file" << ENDL; std::cout << "Full header length: " << full_header_size << " bytes" << ENDL; std::cout << "Scanned for blocks: " << bytes_read << " bytes" << ENDL; std::cout << "Total: " << full_header_size + bytes_read << " bytes" << ENDL; std::cout << "Number of blocks: " << h << ENDL; std::cout << ENDL; // NOTE: h is the number of blocks. // Note that a block's stored height is zero-based, but parts of the code use // one-based height. return h; }
[ "enrodev@gmail.com" ]
enrodev@gmail.com
4364605653e119fbffbda467320d83687bfd8ddc
bb20ba88cc104e320374612e00fdddd5fefe86d8
/C++/3rd_Party/CGAL/include/CGAL/Min_sphere_of_spheres_d/Min_sphere_of_spheres_d_impl.h
7fe8aa33ec796a8e61b3e0f0327afd76277b9174
[]
no_license
cbtogu/3DLearning
5949e22d16f14a57ab04e0eec0ef1c4364747c76
9cfc64ad1e0473aff4e2aef34da50731249d3433
refs/heads/master
2022-01-31T10:37:58.177148
2017-07-06T15:11:43
2017-07-06T15:11:43
null
0
0
null
null
null
null
UTF-8
C++
false
false
12,834
h
// Copyright (c) 1997 ETH Zurich (Switzerland). // All rights reserved. // // This file is part of CGAL (www.cgal.org). // 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 3 of the License, or (at your option) any later version. // // Licensees holding a valid commercial license may use this file in // accordance with the commercial license agreement provided with the software. // // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. // // $URL$ // $Id: Min_sphere_of_spheres_d_impl.h,v 1.4 2017/02/06 12:37:07 Emmanuel.Pot Exp $ // // // Author(s) : Kaspar Fischer #ifndef CGAL_MINIBALL_MINIBALL_C #define CGAL_MINIBALL_MINIBALL_C #include <numeric> #include <CGAL/Min_sphere_of_spheres_d.h> #ifdef CGAL_MINIBALL_DEBUG #include <iostream> #endif #include <cstdlib> #include <algorithm> #include <CGAL/Min_sphere_of_spheres_d.h> namespace CGAL_MINIBALL_NAMESPACE { template<typename FT> inline bool compare(const FT& a,const FT& b, const FT& ap,const FT& bp) { const FT u = a-ap, uu = u*u; if (u >= FT(0)) { if (bp <= uu) return false; // here (1) holds const FT v = uu-b+bp; if (v <= 0) return false; // here (2) holds return 4 * uu * bp < sqr(v); } else { // here (1) holds const FT v = uu-b+bp; if (v >= FT(0)) return true; // here (3) holds return 4 * uu *bp > sqr(v); } } template<class Traits> void Min_sphere_of_spheres_d<Traits>::update(LP_algorithm) { using namespace Min_sphere_of_spheres_d_impl; const int n = (int)l.size(); int i, k = n; do { CGAL_MINIBALL_ASSERT(k>=e && e>=0); // permute: for (int j=k-1; j>=e; --j) // todo. theory: is this necessary? std::swap(l[j],l[e+rng()%(j+1-e)]); for (i=e; i<n; ++i) if (!ss.contains(t.center_cartesian_begin(*l[i]), t.radius(*l[i]),Tol<FT>::result(),Is_exact()) && ss.pivot(l,e,i)) { k = i+1; break; } } while (i < n); } template<class Traits> bool Min_sphere_of_spheres_d<Traits>::find_farthest(int from,int to, int& i,const Tag_true /* use_sqrt */, const Tag_false /* is_exact */) { using namespace Min_sphere_of_spheres_d_impl; // we will compute the excesses w.r.t. to the ball B with // center ss.begin() and radius radius: const FT radius = ss.radius() * Tol<FT>::result(); // find ball with largest excess: FT maximum = radius; for (int k=from; k<to; ++k) { // compute the (squared) distance from c1 to c2: const FT dist = inner_product_n<D>(ss.begin(), t.center_cartesian_begin(*l[k]),FT(0),std::plus<FT>(), Subtract_and_square<FT>()); // compute excess: using std::sqrt; const FT ex = sqrt(dist)+t.radius(*l[k]); // compare with current maximum: if (ex > maximum) { // (*) maximum = ex; i = k; } } // return whether B doesn't contain the ball l[i]: return maximum > radius; } template<class Traits> bool Min_sphere_of_spheres_d<Traits>::find_farthest(int from, int to, int& i, const Tag_true /* use_sqrt */, const Tag_true /* is_exact*/) { using namespace Min_sphere_of_spheres_d_impl; // we will compute the excesses w.r.t. to the ball B with // center center and radius radius: Pair_to_double<FT> cast(ss.disc()); const double radius = cast(ss.radius()); double center[D]; std::transform(ss.begin(),ss.begin()+D,center,cast); // find ball with largest excess: double maximum = radius; for (int k=from; k<to; ++k) { // compute the (squared) distance from c1 to c2: const double dist = inner_product_n<D>(center, t.center_cartesian_begin(*l[k]),0.0,std::plus<double>(), Subtract_and_square_to_double<FT>()); // compute excess: using std::sqrt; const double ex = sqrt(dist) + CGAL_MINIBALL_NTS to_double(t.radius(*l[k])); // compare with current maximum: if (ex > maximum) { // (*) maximum = ex; i = k; } } // return whether B doesn't contain the ball l[i]: return maximum > radius && !ss.contains(t.center_cartesian_begin(*l[i]), t.radius(*l[i]),Tol<FT>::result(),Is_exact()); } template<class Traits> bool Min_sphere_of_spheres_d<Traits>::find_farthest(int from,int to, int& i, const Tag_false /* use_sqrt */, const Tag_false /* is_exact*/ ) { using namespace Min_sphere_of_spheres_d_impl; // we will compute the excesses w.r.t. to the ball with // center ss.begin() and radius radius: const FT radius = ss.radius() * Tol<FT>::result(); // find ball with largest excess: bool found = false; FT max = radius, maxp = 0; for (int k=from; k<to; ++k) { // compute the (squared) distance from c1 to c2: const FT dist = inner_product_n<D>(ss.begin(), t.center_cartesian_begin(*l[k]),FT(0),std::plus<FT>(), Subtract_and_square<FT>()); if (compare(max,maxp,t.radius(*l[k]),dist)) { max = t.radius(*l[k]); maxp = dist; i = k; found = true; } } // return whether B doesn't contain the ball l[i]: return found; } template<class Traits> bool Min_sphere_of_spheres_d<Traits>::find_farthest(int from,int to, int& i,const Tag_false /* use_sqrt */, const Tag_true /* is_exact */) { using namespace Min_sphere_of_spheres_d_impl; // we will compute the excesses w.r.t. to the ball B with // center center and radius radius: Pair_to_double<FT> cast(ss.disc()); const double radius = cast(ss.radius()); double center[D]; std::transform(ss.begin(),ss.begin()+D,center,cast); // find ball with largest excess: bool found = false; double max = radius, maxp = 0; for (int k=from; k<to; ++k) { // compute the (squared) distance from c1 to c2: const double dist = inner_product_n<D>(center, t.center_cartesian_begin(*l[k]),0.0,std::plus<double>(), Subtract_and_square_to_double<FT>()); const double r = CGAL_MINIBALL_NTS to_double(t.radius(*l[k])); if (compare(max,maxp,r,dist)) { max = r; maxp = dist; i = k; found = true; } } // return whether B doesn't contain the ball l[i]: return found && !ss.contains(t.center_cartesian_begin(*l[i]), t.radius(*l[i]),Tol<FT>::result(),Is_exact()); } template<class Traits> void Min_sphere_of_spheres_d<Traits>::update(Farthest_first_heuristic) { const int n = (int)l.size(); int i = e; CGAL_MINIBALL_ASSERT(e <= n); bool enclosing = (e == 0)? n == 0 : !find_farthest(e,n,i,Use_sqrt(),Is_exact()); while (!enclosing && ss.pivot(l,e,i)) { enclosing = !find_farthest(e,n,i,Use_sqrt(),Is_exact()); } if (!is_approximate(Is_exact())) update(LP_algorithm()); } template<class Traits> bool Min_sphere_of_spheres_d<Traits>:: is_valid(const Tag_false /* is_exact */) { return true; } template<class Traits> bool Min_sphere_of_spheres_d<Traits>:: is_valid(const Tag_true /* is_exact */) { using namespace Min_sphere_of_spheres_d_impl; using std::cerr; using std::endl; // check size of support set: if (e > static_cast<int>(l.size()) || e > (D+1)) { cerr << "BUG: Min_sphere_of_spheres_d: support set too large." << endl << "Refer to the bug-reporting instructions at http://www.cgal.org/bug_report.html" << endl; return false; } else if (l.size() > 0 && e<=0) { cerr << "BUG: Min_sphere_of_spheres_d: support set too small." << endl << "Refer to the bug-reporting instructions at http://www.cgal.org/bug_report.html" << endl; return false; } // check case of no balls: if (l.size() <= 0) { if (!is_empty()) { cerr << "BUG: Min_sphere_of_spheres_d: miniball of {} non-empty." << endl << "Refer to the bug-reporting instructions at http://www.cgal.org/bug_report.html" << endl; return false; } else return true; } // check that the miniball is enclosing: for (unsigned int i=0; i<l.size(); ++i) if (!ss.contains(t.center_cartesian_begin(*l[i]), t.radius(*l[i]),Tol<FT>::result(),Is_exact())) { cerr << "Min_sphere_of_spheres_d: miniball not enclosing." << endl << "Please contact the author <kf@iaeth.ch>." << endl; return false; } // check that all support balls lie on the boundary: typedef Pair<FT> P; bool isSupporting = true; for (int i=0; i<e; ++i) { // check radii: const P rd = ss.radius()-t.radius(*l[i]); if (is_neg(rd,ss.disc())) isSupporting = false; // compute the (squared) distance from ss.begin() to l[i]'s center: const P dist = inner_product_n<D>(ss.begin(), t.center_cartesian_begin(*l[i]),P(0,0),std::plus<P>(), Subtract_and_square_pair<FT>(ss.disc())); // compute the square of rd: const P sqrRd(sqr(rd.first)+sqr(rd.second)*ss.disc(), FT(2)*rd.first*rd.second); // check containment: if (!is_zero(dist-sqrRd,ss.disc())) isSupporting = false; } if (!isSupporting) { cerr << "BUG: Min_sphere_of_spheres_d: support not on boundary." << endl << "Refer to the bug-reporting instructions at http://www.cgal.org/bug_report.html" << endl; return false; } // set up initial system's coefficient matrix: FT (*m)[D+1] = new FT[e][D+1]; for (int j=0; j<e; ++j) copy_n<D>(t.center_cartesian_begin(*l[j]),m[j]); for (int j=0; j<e; ++j) m[j][D] = FT(1); // set up initial system's right-hand-side: Pair<FT> rhs[D+1]; copy_n<D>(ss.begin(),rhs); rhs[D] = FT(1); // perform Gaussian elimination: for (int j=0; j<e; ++j) { // check rank: if (m[j][j] == FT(0)) { // find row with non-zero entry in column j: int i = j; while (i<D+1 && m[j][i]==FT(0)) ++i; if (i >= D+1) { cerr << "BUG: Min_sphere_of_spheres_d: supp. centers aff. dep." << endl << "Refer to the bug-reporting instructions at http://www.cgal.org/bug_report.html" << endl; return false; } // exchange rows: for (int k=0; k<e; ++k) std::swap(m[k][j],m[k][i]); std::swap(rhs[j],rhs[i]); } CGAL_MINIBALL_ASSERT(m[j][j] != FT(0)); // eliminate m[j][j+1..D] by subtracting a // multiple of row j from row i: for (int i=j+1; i<D+1; ++i) { // determine factor: const FT factor = m[j][i]/m[j][j]; // subtract row j times factor from row i: for (int k=0; k<e; ++k) m[k][i] -= m[k][j]*factor; rhs[i] -= rhs[j]*factor; } } // check that we now have an upper triangular matrix: for (int j=0; j<e; ++j) for(int i=j+1; i<D+1; ++i) CGAL_MINIBALL_ASSERT(m[j][i] == FT(0)); // check solvability: for (int i=e; i<D+1; ++i) if (!is_zero(rhs[i],ss.disc())) { cerr << "BUG: Min_sphere_of_spheres_d: center of the miniball" << endl << " not in the span of the support centers." << endl << "Refer to the bug-reporting instructions at http://www.cgal.org/bug_report.html" << endl; return false; } // compute coefficients by backsubstitution: Pair<FT> lambda[D+1]; for (int i=e-1; i>=0; --i) { lambda[i] = rhs[i]; for (int j=i+1; j<e; ++j) lambda[i] -= lambda[j]*m[j][i]; lambda[i] = lambda[i]/m[i][i]; } // check coefficients: for (int i=0; i<e; ++i) if (is_neg_or_zero(lambda[i],ss.disc())) { cerr << "BUG: Min_sphere_of_spheres_d: center of miniball not in" << endl << " interior of convex hull of support centers." << endl << "Refer to the bug-reporting instructions at http://www.cgal.org/bug_report.html" << endl; return false; } // tidy up: delete[] m; return true; } } // namespace CGAL_MINIBALL_NAMESPACE #endif // CGAL_MINIBALL_MINIBALL_CC
[ "Etienne.Houze@polytechnique.edu" ]
Etienne.Houze@polytechnique.edu
b861381cb925d406e34adaa4075e7785c10ebe83
661af8ba300056c1817925d476ad24346ae39779
/iwidarwin-master/iwi2200-osx10.5/iwi2200.h
45fe588089e44668a451382ba88265a24fc271e4
[]
no_license
charlieporth1/Collection-of-HACK
a9f0ad2b07d6d820342029faf0cd9d4f6866070b
8ab56eb71378dca3387639908ba46f40952f6a9f
refs/heads/master
2023-01-27T17:15:35.561666
2018-05-22T13:49:05
2018-05-22T13:49:05
133,408,180
1
4
null
2023-01-11T22:20:10
2018-05-14T18:58:44
C
UTF-8
C++
false
false
39,832
h
#ifndef __iwi2200_h__ #define __iwi2200_h__ #include "defines.h" //#define CONFIG_IPW2200_QOS //#define TX_QUEUE_CHECK //#define IWI_NOLOG //#define IWI_DEBUG_NORMAL //#define IWI_DEBUG_FULL_MODE #define IWI_WARNERR #if defined(IWI_NOLOG) #define IWI_LOG(...) #else #define IWI_LOG(...) printf("iwi2200: " __VA_ARGS__) #endif //#define IOLog(...) IWI_LOG(__VA_ARGS__) #if defined(IWI_DEBUG_FULL_MODE) || defined(IWI_DEBUG_NORMAL) #define IWI_DEBUG(fmt,...)IWI_LOG(" %s() " fmt, __FUNCTION__, ##__VA_ARGS__) #else #define IWI_DEBUG(...) #endif #if defined(IWI_DEBUG_FULL_MODE) #define IWI_DEBUG_FULL(...) IWI_DEBUG(__VA_ARGS__) #else #define IWI_DEBUG_FULL(...) #endif #if defined(IWI_DEBUG_NORMAL) || defined(IWI_WARNERR) || defined(IWI_DEBUG_FULL_MODE) #define IWI_WARN(...) IWI_LOG(" W " __VA_ARGS__) #define IWI_ERR(...) IWI_LOG(" E " __VA_ARGS__) #else #define IWI_WARN(...) #define IWI_ERR(...) #endif #define IWI_DEBUG_FN(...) IWI_DEBUG(__VA_ARGS__) #ifdef IWI_DEBUG_FULL_MODE #define IWI_DEBUG_DUMP(...) printk_buf(__VA_ARGS__) #else #define IWI_DEBUG_DUMP(...) #endif #define IWI_DUMP_MBUF(f, skb, len) \ IWI_DEBUG_FULL(" %d(%s) DumpMbuf m_data 0x%08x datastart 0x%08x pktlen %d m_len %d args len %d\n", \ f , __FUNCTION__, mbuf_data(skb) ,mbuf_datastart(skb) ,mbuf_len(skb) , mbuf_pkthdr_len(skb) , len ) #ifdef CONFIG_IPW2200_QOS #define VQ "q" #else #define VQ #endif #define min_t(type,x,y) \ ({ type __x = (x); type __y = (y); __x < __y ? __x: __y; }) inline static int snprint_line(char *buf, size_t count, const u8 * data, u32 len, u32 ofs) { int out, i, j, l; char c; out = snprintf(buf, count, "%08X", ofs); for (l = 0, i = 0; i < 2; i++) { out += snprintf(buf + out, count - out, " "); for (j = 0; j < 8 && l < len; j++, l++) out += snprintf(buf + out, count - out, "%02X ", data[(i * 8 + j)]); for (; j < 8; j++) out += snprintf(buf + out, count - out, " "); } out += snprintf(buf + out, count - out, " "); for (l = 0, i = 0; i < 2; i++) { out += snprintf(buf + out, count - out, " "); for (j = 0; j < 8 && l < len; j++, l++) { c = data[(i * 8 + j)]; // if (!isascii(c) || !isprint(c)) c = '.'; out += snprintf(buf + out, count - out, "%c", c); } for (; j < 8; j++) out += snprintf(buf + out, count - out, " "); } return out; } inline static int snprintk_buf(u8 * output, size_t size, const u8 * data, size_t len) { size_t out = size; u32 ofs = 0; int total = 0; while (size && len) { out = snprint_line((char *)output, size, &data[ofs], min_t(size_t, len, 16U), ofs); ofs += 16; output += out; size -= out; len -= min_t(size_t, len, 16U); total += out; } return total; } inline void printk_buf(const u8 * data, u32 len) { char line[81]; u32 ofs = 0; while (len) { snprint_line(line, sizeof(line), &data[ofs], min(len, 16U), ofs); IWI_LOG("%s\n", line); ofs += 16; len -= min(len, 16U); } } inline void skb_reserve(mbuf_t skb, int len) { //skb->data += len; //skb->tail += len; /* if (mbuf_len(skb)==0) { void *data=(UInt8*)mbuf_data(skb)+len; mbuf_setdata(skb,data,mbuf_len(skb)+len); } */ IWI_DUMP_MBUF(1,skb,len); void *data = (UInt8*)mbuf_data(skb) + len; IWI_DUMP_MBUF(2,skb,len); mbuf_setdata(skb,data, mbuf_len(skb));// m_len is not changed. } inline void *skb_put(mbuf_t skb, unsigned int len) { /*unsigned char *tmp = skb->tail; SKB_LINEAR_ASSERT(skb); skb->tail += len; skb->len += len; return tmp;*/ void *data = (UInt8*)mbuf_data(skb) + mbuf_len(skb); IWI_DUMP_MBUF(1,skb,len); if(mbuf_trailingspace(skb) > len ){ //mbuf_prepend(&skb,len,MBUF_WAITOK); /* no prepend work */ mbuf_setlen(skb,mbuf_len(skb)+len); if(mbuf_flags(skb) & MBUF_PKTHDR) mbuf_pkthdr_setlen(skb,mbuf_pkthdr_len(skb)+len); } else { IWI_WARN("skb_put failed - fixing\n"); mbuf_t nm; mbuf_getpacket(MBUF_WAITOK, &nm); mbuf_setlen(nm,mbuf_len(skb)+len); mbuf_pkthdr_setlen(nm,mbuf_len(skb)+len); bcopy(mbuf_data(skb),mbuf_data(nm),mbuf_len(skb)); skb=nm; data = (UInt8*)mbuf_data(skb) + mbuf_len(skb)-len; } IWI_DUMP_MBUF(2,skb,len); return data; } inline void *skb_push(mbuf_t skb, unsigned int len) { /*skb->data -= len; skb->len += len; if (unlikely(skb->data<skb->head)) skb_under_panic(skb, len, current_text_addr()); return skb->data;*/ /* void *data=(UInt8*)mbuf_data(skb)-len; mbuf_setdata(skb,data,mbuf_len(skb)+len); */ IWI_DUMP_MBUF(1,skb,len); mbuf_prepend(&skb,len,MBUF_WAITOK); IWI_DUMP_MBUF(2,skb,len); return (UInt8 *)mbuf_data(skb); } inline void *skb_pull(mbuf_t skb, unsigned int len) { /*skb->len -= len; BUG_ON(skb->len < skb->data_len); return skb->data += len;*/ IWI_DUMP_MBUF(1,skb,len); mbuf_adj(skb,len); void *data=(UInt8*)mbuf_data(skb); IWI_DUMP_MBUF(2,skb,len); return data; } #define kTransmitQueueCapacity 1000 typedef __u16 __be16; struct ethhdr { unsigned char h_dest[ETH_ALEN]; /* destination eth addr */ unsigned char h_source[ETH_ALEN]; /* source ether addr */ __be16 h_proto; /* packet type ID field */ } __attribute__((packed)); struct ipw_frame { int len; union { struct ieee80211_hdr frame; u8 raw[IEEE80211_FRAME_LEN]; u8 cmd[360]; } u; struct list_head list; }; static int from_priority_to_tx_queue[] = { IPW_TX_QUEUE_1, IPW_TX_QUEUE_2, IPW_TX_QUEUE_2, IPW_TX_QUEUE_1, IPW_TX_QUEUE_3, IPW_TX_QUEUE_3, IPW_TX_QUEUE_4, IPW_TX_QUEUE_4 }; static unsigned char rfc1042_header[] = { 0xaa, 0xaa, 0x03, 0x00, 0x00, 0x00 }; /* Bridge-Tunnel header (for EtherTypes ETH_P_AARP and ETH_P_IPX) */ static unsigned char bridge_tunnel_header[] = { 0xaa, 0xaa, 0x03, 0x00, 0x00, 0xf8 }; #define IPW_CMD(x) case IPW_CMD_ ## x : return #x static char *get_cmd_string(u8 cmd) { switch (cmd) { IPW_CMD(HOST_COMPLETE); IPW_CMD(POWER_DOWN); IPW_CMD(SYSTEM_CONFIG); IPW_CMD(MULTICAST_ADDRESS); IPW_CMD(SSID); IPW_CMD(ADAPTER_ADDRESS); IPW_CMD(PORT_TYPE); IPW_CMD(RTS_THRESHOLD); IPW_CMD(FRAG_THRESHOLD); IPW_CMD(POWER_MODE); IPW_CMD(WEP_KEY); IPW_CMD(TGI_TX_KEY); IPW_CMD(SCAN_REQUEST); IPW_CMD(SCAN_REQUEST_EXT); IPW_CMD(ASSOCIATE); IPW_CMD(SUPPORTED_RATES); IPW_CMD(SCAN_ABORT); IPW_CMD(TX_FLUSH); IPW_CMD(QOS_PARAMETERS); IPW_CMD(DINO_CONFIG); IPW_CMD(RSN_CAPABILITIES); IPW_CMD(RX_KEY); IPW_CMD(CARD_DISABLE); IPW_CMD(SEED_NUMBER); IPW_CMD(TX_POWER); IPW_CMD(COUNTRY_INFO); IPW_CMD(AIRONET_INFO); IPW_CMD(AP_TX_POWER); IPW_CMD(CCKM_INFO); IPW_CMD(CCX_VER_INFO); IPW_CMD(SET_CALIBRATION); IPW_CMD(SENSITIVITY_CALIB); IPW_CMD(RETRY_LIMIT); IPW_CMD(IPW_PRE_POWER_DOWN); IPW_CMD(VAP_BEACON_TEMPLATE); IPW_CMD(VAP_DTIM_PERIOD); IPW_CMD(EXT_SUPPORTED_RATES); IPW_CMD(VAP_LOCAL_TX_PWR_CONSTRAINT); IPW_CMD(VAP_QUIET_INTERVALS); IPW_CMD(VAP_CHANNEL_SWITCH); IPW_CMD(VAP_MANDATORY_CHANNELS); IPW_CMD(VAP_CELL_PWR_LIMIT); IPW_CMD(VAP_CF_PARAM_SET); IPW_CMD(VAP_SET_BEACONING_STATE); IPW_CMD(MEASUREMENT); IPW_CMD(POWER_CAPABILITY); IPW_CMD(SUPPORTED_CHANNELS); IPW_CMD(TPC_REPORT); IPW_CMD(WME_INFO); IPW_CMD(PRODUCTION_COMMAND); default: return "UNKNOWN"; } } static u8 qos_oui[QOS_OUI_LEN] = { 0x00, 0x50, 0xF2 }; static struct ieee80211_qos_parameters def_qos_parameters_CCK = { {QOS_TX0_CW_MIN_CCK, QOS_TX1_CW_MIN_CCK, QOS_TX2_CW_MIN_CCK, QOS_TX3_CW_MIN_CCK}, {QOS_TX0_CW_MAX_CCK, QOS_TX1_CW_MAX_CCK, QOS_TX2_CW_MAX_CCK, QOS_TX3_CW_MAX_CCK}, {QOS_TX0_AIFS, QOS_TX1_AIFS, QOS_TX2_AIFS, QOS_TX3_AIFS}, {QOS_TX0_ACM, QOS_TX1_ACM, QOS_TX2_ACM, QOS_TX3_ACM}, {QOS_TX0_TXOP_LIMIT_CCK, QOS_TX1_TXOP_LIMIT_CCK, QOS_TX2_TXOP_LIMIT_CCK, QOS_TX3_TXOP_LIMIT_CCK} }; static struct ieee80211_qos_parameters def_qos_parameters_OFDM = { {QOS_TX0_CW_MIN_OFDM, QOS_TX1_CW_MIN_OFDM, QOS_TX2_CW_MIN_OFDM, QOS_TX3_CW_MIN_OFDM}, {QOS_TX0_CW_MAX_OFDM, QOS_TX1_CW_MAX_OFDM, QOS_TX2_CW_MAX_OFDM, QOS_TX3_CW_MAX_OFDM}, {QOS_TX0_AIFS, QOS_TX1_AIFS, QOS_TX2_AIFS, QOS_TX3_AIFS}, {QOS_TX0_ACM, QOS_TX1_ACM, QOS_TX2_ACM, QOS_TX3_ACM}, {QOS_TX0_TXOP_LIMIT_OFDM, QOS_TX1_TXOP_LIMIT_OFDM, QOS_TX2_TXOP_LIMIT_OFDM, QOS_TX3_TXOP_LIMIT_OFDM} }; static struct ieee80211_qos_parameters def_parameters_OFDM = { {DEF_TX0_CW_MIN_OFDM, DEF_TX1_CW_MIN_OFDM, DEF_TX2_CW_MIN_OFDM, DEF_TX3_CW_MIN_OFDM}, {DEF_TX0_CW_MAX_OFDM, DEF_TX1_CW_MAX_OFDM, DEF_TX2_CW_MAX_OFDM, DEF_TX3_CW_MAX_OFDM}, {DEF_TX0_AIFS, DEF_TX1_AIFS, DEF_TX2_AIFS, DEF_TX3_AIFS}, {DEF_TX0_ACM, DEF_TX1_ACM, DEF_TX2_ACM, DEF_TX3_ACM}, {DEF_TX0_TXOP_LIMIT_OFDM, DEF_TX1_TXOP_LIMIT_OFDM, DEF_TX2_TXOP_LIMIT_OFDM, DEF_TX3_TXOP_LIMIT_OFDM} }; static struct ieee80211_qos_parameters def_parameters_CCK = { {DEF_TX0_CW_MIN_CCK, DEF_TX1_CW_MIN_CCK, DEF_TX2_CW_MIN_CCK, DEF_TX3_CW_MIN_CCK}, {DEF_TX0_CW_MAX_CCK, DEF_TX1_CW_MAX_CCK, DEF_TX2_CW_MAX_CCK, DEF_TX3_CW_MAX_CCK}, {DEF_TX0_AIFS, DEF_TX1_AIFS, DEF_TX2_AIFS, DEF_TX3_AIFS}, {DEF_TX0_ACM, DEF_TX1_ACM, DEF_TX2_ACM, DEF_TX3_ACM}, {DEF_TX0_TXOP_LIMIT_CCK, DEF_TX1_TXOP_LIMIT_CCK, DEF_TX2_TXOP_LIMIT_CCK, DEF_TX3_TXOP_LIMIT_CCK} }; static const char ipw_modes[] = { 'a', 'b', 'g', '?' }; struct ipw_status_code { u16 status; const char *reason; }; #define MFIE_STRING(x) case MFIE_TYPE_ ##x: return #x static const char *get_info_element_string(u16 id) { switch (id) { MFIE_STRING(SSID); MFIE_STRING(RATES); MFIE_STRING(FH_SET); MFIE_STRING(DS_SET); MFIE_STRING(CF_SET); MFIE_STRING(TIM); MFIE_STRING(IBSS_SET); MFIE_STRING(COUNTRY); MFIE_STRING(HOP_PARAMS); MFIE_STRING(HOP_TABLE); MFIE_STRING(REQUEST); MFIE_STRING(CHALLENGE); MFIE_STRING(POWER_CONSTRAINT); MFIE_STRING(POWER_CAPABILITY); MFIE_STRING(TPC_REQUEST); MFIE_STRING(TPC_REPORT); MFIE_STRING(SUPP_CHANNELS); MFIE_STRING(CSA); MFIE_STRING(MEASURE_REQUEST); MFIE_STRING(MEASURE_REPORT); MFIE_STRING(QUIET); MFIE_STRING(IBSS_DFS); MFIE_STRING(ERP_INFO); MFIE_STRING(RSN); MFIE_STRING(RATES_EX); MFIE_STRING(GENERIC); MFIE_STRING(QOS_PARAMETER); default: return "UNKNOWN"; } } inline int is_multicast_ether_addr(const u8 *addr) { return addr[0] & 0x01; } inline int is_broadcast_ether_addr(const u8 *addr) { return (addr[0] & addr[1] & addr[2] & addr[3] & addr[4] & addr[5]) == 0xff; } inline unsigned int __div(unsigned long long n, unsigned int base) { return n / base; } #undef jiffies #define jiffies \ ({ \ uint64_t m,f; \ clock_get_uptime(&m); \ absolutetime_to_nanoseconds(m,&f); \ ((f * HZ) / 1000000000); \ }) inline unsigned int jiffies_to_msecs(const unsigned long j) { #if HZ <= MSEC_PER_SEC && !(MSEC_PER_SEC % HZ) return (MSEC_PER_SEC / HZ) * j; #elif HZ > MSEC_PER_SEC && !(HZ % MSEC_PER_SEC) return (j + (HZ / MSEC_PER_SEC) - 1)/(HZ / MSEC_PER_SEC); #else return (j * MSEC_PER_SEC) / HZ; #endif } inline unsigned long msecs_to_jiffies(const unsigned int m) { //if (m > jiffies_to_msecs(MAX_JIFFY_OFFSET)) return MAX_JIFFY_OFFSET; #if HZ <= MSEC_PER_SEC && !(MSEC_PER_SEC % HZ) return (m + (MSEC_PER_SEC / HZ) - 1) / (MSEC_PER_SEC / HZ); #elif HZ > MSEC_PER_SEC && !(HZ % MSEC_PER_SEC) return m * (HZ / MSEC_PER_SEC); #else return (m * HZ + MSEC_PER_SEC - 1) / MSEC_PER_SEC; #endif } #define time_after(a,b) ((long)(b) - (long)(a) < 0) #define container_of(ptr, type, member) \ ({ \ const typeof( ((type *)0)->member ) *__mptr = (ptr); \ (type *)( (char *)__mptr - offsetof(type,member) ); \ }) #define __list_for_each(pos, head) \ for (pos = (head)->next; pos != (head); pos = pos->next) #define list_entry(ptr, type, member) \ container_of(ptr, type, member) static inline void prefetch(const void *x) {;} #define list_for_each_entry(pos, head, member) \ for (pos = list_entry((head)->next, typeof(*pos), member); \ prefetch(pos->member.next), &pos->member != (head); \ pos = list_entry(pos->member.next, typeof(*pos), member)) #define LIST_POISON1 ((void *) 0x00100100) #define LIST_POISON2 ((void *) 0x00200200) struct hlist_head { struct hlist_node *first; }; inline int list_empty(const struct list_head *head) { return head->next == head; } inline void __hlist_del(struct hlist_node *n) { struct hlist_node *next = n->next; struct hlist_node **pprev = n->pprev; *pprev = next; if (next) next->pprev = pprev; } inline void __list_add(struct list_head *new2, struct list_head *prev, struct list_head *next) { next->prev = new2; new2->next = next; new2->prev = prev; prev->next = new2; } inline void list_add_tail(struct list_head *new2, struct list_head *head) { __list_add(new2, head->prev, head); } inline void list_add(struct list_head *new2, struct list_head *head) { __list_add(new2, head, head->next); } inline void hlist_del(struct hlist_node *n) { __hlist_del(n); n->next = (struct hlist_node *)LIST_POISON1; n->pprev = (struct hlist_node **)LIST_POISON2; } inline void __list_del(struct list_head * prev, struct list_head * next) { next->prev = prev; prev->next = next; } inline void list_del(struct list_head *entry) { __list_del(entry->prev, entry->next); entry->next = (struct list_head *)LIST_POISON1; entry->prev = (struct list_head *)LIST_POISON2; } struct ipw_network_match { struct ieee80211_network *network; struct ipw_supported_rates rates; }; struct fw_header { u32 version; u32 mode; }; struct fw_chunk { u32 address; u32 length; }; struct firmware { size_t size; u8 *data; }; struct iwi_hdr { UInt8 type; #define IWI_HDR_TYPE_DATA 0 #define IWI_HDR_TYPE_COMMAND 1 #define IWI_HDR_TYPE_NOTIF 3 #define IWI_HDR_TYPE_FRAME 9 UInt8 seq; UInt8 flags; #define IWI_HDR_FLAG_IRQ 0x04 UInt8 reserved; } __attribute__ ((packed)); /* command */ struct iwi_cmd_desc { struct iwi_hdr hdr; UInt8 type; #define IWI_CMD_ENABLE 2 #define IWI_CMD_SET_CONFIG 6 #define IWI_CMD_SET_ESSID 8 #define IWI_CMD_SET_MAC_ADDRESS 11 #define IWI_CMD_SET_RTS_THRESHOLD 15 #define IWI_CMD_SET_FRAG_THRESHOLD 16 #define IWI_CMD_SET_POWER_MODE 17 #define IWI_CMD_SET_WEP_KEY 18 #define IWI_CMD_SCAN 20 #define IWI_CMD_ASSOCIATE 21 #define IWI_CMD_SET_RATES 22 #define IWI_CMD_ABORT_SCAN 23 #define IWI_CMD_SET_WME_PARAMS 25 #define IWI_CMD_SET_OPTIE 31 #define IWI_CMD_DISABLE 33 #define IWI_CMD_SET_IV 34 #define IWI_CMD_SET_TX_POWER 35 #define IWI_CMD_SET_SENSITIVITY 42 #define IWI_CMD_SET_WMEIE 84 UInt8 len; UInt16 reserved; UInt8 data[120]; } __attribute__ ((packed)); struct iwi_cmd_ring { // bus_dma_tag_t desc_dmat; // bus_dmamap_t desc_map; // bus_addr_t physaddr; IOBufferMemoryDescriptor *memD; dma_addr_t physaddr; struct iwi_cmd_desc *desc; int count; int queued; int cur; int next; }; struct iwi_rx_radiotap_header { // struct ieee80211_radiotap_header wr_ihdr; UInt8 wr_flags; UInt8 wr_rate; UInt16 wr_chan_freq; UInt16 wr_chan_flags; UInt8 wr_antsignal; UInt8 wr_antenna; }; #define IWI_RX_RADIOTAP_PRESENT \ ((1 << IEEE80211_RADIOTAP_FLAGS) | \ (1 << IEEE80211_RADIOTAP_RATE) | \ (1 << IEEE80211_RADIOTAP_CHANNEL) | \ (1 << IEEE80211_RADIOTAP_DB_ANTSIGNAL) | \ (1 << IEEE80211_RADIOTAP_ANTENNA)) struct iwi_tx_radiotap_header { // struct ieee80211_radiotap_header wt_ihdr; UInt8 wt_flags; UInt16 wt_chan_freq; UInt16 wt_chan_flags; }; struct iwi_tx_data { IOMemoryMap* map; mbuf_t m; // struct ieee80211_node *ni; }; struct iwi_tx_ring { // bus_dma_tag_t desc_dmat; // bus_dma_tag_t data_dmat; // bus_dmamap_t desc_map; dma_addr_t physaddr; // bus_addr_t csr_ridx; // bus_addr_t csr_widx; struct iwi_tx_desc *desc; struct iwi_tx_data *data; int count; int queued; int cur; IOBufferMemoryDescriptor *memD; int next; }; struct iwi_rx_data { IOBufferMemoryDescriptor *memD; // bus_dmamap_t map; dma_addr_t physaddr; UInt32 reg; mbuf_t m; void * m_data; }; struct iwi_rx_ring { // bus_dma_tag_t data_dmat; struct iwi_rx_data *data; int count; int cur; }; /* header for transmission */ struct iwi_tx_desc { struct iwi_hdr hdr; UInt32 reserved1; UInt8 station; UInt8 reserved2[3]; UInt8 cmd; #define IWI_DATA_CMD_TX 0x0b UInt8 seq; UInt16 len; UInt8 priority; UInt8 flags; #define IWI_DATA_FLAG_SHPREAMBLE 0x04 #define IWI_DATA_FLAG_NO_WEP 0x20 #define IWI_DATA_FLAG_NEED_ACK 0x80 UInt8 xflags; #define IWI_DATA_XFLAG_QOS 0x10 UInt8 wep_txkey; #define WEP_KEY_LEN 13 UInt8 wepkey[WEP_KEY_LEN+1]; UInt8 rate; UInt8 antenna; UInt8 reserved3[10]; // struct ieee80211_qosframe_addr4 wh; UInt32 iv; UInt32 eiv; UInt32 nseg; #define IWI_MAX_NSEG 6 UInt32 seg_addr[IWI_MAX_NSEG]; UInt16 seg_len[IWI_MAX_NSEG]; }; struct iwi_configuration { UInt8 bluetooth_coexistence; UInt8 reserved1; UInt8 answer_pbreq; UInt8 allow_invalid_frames; UInt8 multicast_enabled; UInt8 drop_unicast_unencrypted; UInt8 disable_unicast_decryption; UInt8 drop_multicast_unencrypted; UInt8 disable_multicast_decryption; UInt8 antenna; UInt8 reserved2; UInt8 use_protection; UInt8 protection_ctsonly; UInt8 enable_multicast_filtering; UInt8 bluetooth_threshold; UInt8 reserved4; UInt8 allow_beacon_and_probe_resp; UInt8 allow_mgt; UInt8 noise_reported; UInt8 reserved5; } __attribute__ ((packed)); /* structure for command IWI_CMD_SET_RATES */ struct iwi_rateset { UInt8 mode; UInt8 nrates; UInt8 type; #define IWI_RATESET_TYPE_NEGOCIATED 0 #define IWI_RATESET_TYPE_SUPPORTED 1 UInt8 reserved; UInt8 rates[12]; } __attribute__ ((packed)); struct iwi_scan { UInt8 type; #define IWI_SCAN_TYPE_PASSIVE 1 #define IWI_SCAN_TYPE_BROADCAST 3 UInt16 dwelltime; UInt8 channels[54]; #define IWI_CHAN_5GHZ (0 << 6) #define IWI_CHAN_2GHZ (1 << 6) UInt8 reserved[3]; } __attribute__ ((packed)); typedef enum { MEDIUM_TYPE_AUTO=0, MEDIUM_TYPE_MANUAL, MEDIUM_TYPE_NONE, MEDIUM_TYPE_INVALID } mediumType_t; //added from ieee80211 crypto files: static inline int timer_pending(const struct timer_list * timer) { return timer->expires != NULL; } static LIST_HEAD(ieee80211_crypto_algs); struct ieee80211_crypto_alg { struct list_head list; struct ieee80211_crypto_ops *ops; }; //end class darwin_iwi2200 : public IO80211Controller { OSDeclareDefaultStructors(darwin_iwi2200) public: virtual SInt32 getASSOCIATE_RESULT( IO80211Interface * interface, struct apple80211_assoc_result_data * ard ); virtual SInt32 getLastAssocData( struct apple80211_assoc_data * ad); virtual SInt32 apple80211Request( UInt32 req, int type, IO80211Interface * intf, void * data ); virtual IOReturn setWakeOnMagicPacket( bool active ); virtual IOReturn getPacketFilters(const OSSymbol * group, UInt32 * filters) const; virtual IOReturn enablePacketFilter(const OSSymbol * group, UInt32 aFilter, UInt32 enabledFilters, IOOptionBits options); virtual UInt32 getFeatures() const; virtual IOReturn getMaxPacketSize(UInt32 * maxSize) const; virtual IOReturn getMinPacketSize(UInt32 * minSize) const; virtual void getPacketBufferConstraints(IOPacketBufferConstraints * constraints) const; virtual bool init(OSDictionary *dictionary = 0); virtual void free(void); virtual bool start(IOService *provider); virtual void stop(IOService *provider); virtual IOReturn getHardwareAddress(IOEthernetAddress *addr); virtual IOReturn enable(IONetworkInterface * netif); virtual IOReturn disable(IONetworkInterface * netif); static void interruptOccurred(OSObject * owner, void * src, IOService *nub, int count); virtual IOBufferMemoryDescriptor * MemoryDmaAlloc(UInt32 buf_size, dma_addr_t *phys_add, void *virt_add); virtual bool configureInterface( IONetworkInterface * interface ); virtual bool createWorkLoop( void ); virtual IOWorkLoop * getWorkLoop( void ) const; virtual IOOutputQueue * createOutputQueue( void ); virtual const OSString * newModelString( void ) const; virtual const OSString * newVendorString( void ) const; virtual IOReturn selectMedium(const IONetworkMedium * medium); virtual IOOptionBits getState( void ) const; virtual IOReturn message( UInt32 type, IOService * provider, void * argument); virtual UInt32 outputPacket(mbuf_t m, void * param); virtual IOReturn registerWithPolicyMaker(IOService * policyMaker); virtual IOReturn setPowerState(unsigned long powerStateOrdinal, IOService *policyMaker); virtual void setPowerStateOff(void); virtual void setPowerStateOn(void); virtual IOReturn setMulticastMode(bool active); virtual IOReturn setMulticastList(IOEthernetAddress * addrs, UInt32 count); //kext control functions: friend int sendNetworkList(kern_ctl_ref kctlref, u_int32_t unit, void *unitinfo,int opt, void *data, size_t *len); //send network list to network selector app. friend int setSelectedNetwork(kern_ctl_ref kctlref, u_int32_t unit, void *unitinfo,mbuf_t m, int flags); //get slected network from network selector app. friend int ConnectClient(kern_ctl_ref kctlref,struct sockaddr_ctl *sac,void **unitinfo); //connect to network selector app. friend int disconnectClient(kern_ctl_ref kctlref, u_int32_t unit, void *unitinfo); //disconnect network selector app. friend int configureConnection(kern_ctl_ref ctlref, u_int unit, void *userdata, int opt, void *data, size_t len); //protected: UInt32 handleInterrupt(void); UInt32 outputPacket2(mbuf_t m, void * param); bool addMediumType(UInt32 type, UInt32 speed, UInt32 code, char* name = 0); int sendCommand(UInt8 type,void *data,UInt8 len,bool async); int ipw_scan( int type); int initCmdQueue(); int resetCmdQueue(); int initRxQueue(); int resetRxQueue(); int initTxQueue(); int resetTxQueue(); void ipw_rx(); int configu(); void notifIntr( struct ipw_rx_notification *notif); void inline ipw_write32(UInt32 offset, UInt32 data); UInt32 inline ipw_read32(UInt32 offset); void inline ipw_set_bit(UInt32 reg, UInt32 mask); void inline ipw_clear_bit(UInt32 reg, UInt32 mask); int ipw_poll_bit(UInt32 reg, UInt32 mask, int timeout); void cacheEEPROM(); void inline eeprom_write_reg(UInt32 data); void inline eeprom_cs(bool sel); void inline eeprom_write_bit(UInt8 bit); void eeprom_op(UInt8 op, UInt8 addr); UInt16 eeprom_read_UInt16(UInt8 addr); UInt32 read_reg_UInt32(UInt32 reg); void ipw_zero_memory(UInt32 start, UInt32 count); inline void ipw_fw_dma_reset_command_blocks(); void ipw_write_reg32( UInt32 reg, UInt32 value); int ipw_fw_dma_enable(); int ipw_fw_dma_add_buffer(UInt32 src_phys, UInt32 dest_address, UInt32 length); int ipw_fw_dma_write_command_block(int index, struct command_block *cb); int ipw_fw_dma_kick(); int ipw_fw_dma_add_command_block( UInt32 src_address, UInt32 dest_address, UInt32 length, int interrupt_enabled, int is_last); void ipw_write_indirect(UInt32 addr, UInt8 * buf, int num); int ipw_fw_dma_wait(); int ipw_fw_dma_command_block_index(); void ipw_fw_dma_dump_command_block(); void ipw_fw_dma_abort(); UInt32 ipw_read_reg32( UInt32 reg); void ipw_write_reg8(UInt32 reg, UInt8 value); UInt8 ipw_read_reg8(UInt32 reg); void ipw_write_reg16(UInt32 reg, UInt16 value); int ipw_stop_nic(); int ipw_reset_nic(); int ipw_init_nic(); void ipw_start_nic(); inline void ipw_enable_interrupts(); int ipw_set_geo(const struct ieee80211_geo *geo); int rf_kill_active(); void ipw_down(); int ipw_up(); inline int ipw_is_init(); void ipw_deinit(); void ipw_led_shutdown(); u32 ipw_register_toggle(u32 reg); void ipw_led_activity_off(); void ipw_led_link_off(); void ipw_led_band_off(); inline void ipw_disable_interrupts(); void ipw_led_radio_off(); void ipw_led_init(); void ipw_led_link_on(); void ipw_led_band_on(); int ipw_sw_reset(int option); int ipw_get_fw(const struct firmware **raw, const char *name); void ipw_led_link_down(); void ipw_rf_kill(); int ipw_best_network( struct ipw_network_match *match, struct ieee80211_network *network, int roaming); int ipw_compatible_rates( const struct ieee80211_network *network, struct ipw_supported_rates *rates); void ipw_copy_rates(struct ipw_supported_rates *dest, const struct ipw_supported_rates *src); int ipw_is_rate_in_mask( int ieee_mode, u8 rate); void ipw_adhoc_create( struct ieee80211_network *network); int ipw_is_valid_channel(u8 channel); int ipw_channel_to_index(u8 channel); void ipw_create_bssid( u8 * bssid); void ipw_set_fixed_rate( int mode); void ipw_qos_init( int enable, int burst_enable, u32 burst_duration_CCK, u32 burst_duration_OFDM); struct ipw_rx_queue *darwin_iwi2200::ipw_rx_queue_alloc(); int ipw_queue_tx_hcmd( int hcmd, void *buf, int len, int sync); int ipw_queue_space(const struct clx2_queue *q); int ipw_queue_tx_reclaim( struct clx2_tx_queue *txq, int qindex); int is_duplicate_packet( struct ieee80211_hdr_4addr *header); int ipw_get_tx_queue_number( u16 priority); int ipw_net_is_queue_full(int pri); int ipw_qos_set_tx_queue_command( u16 priority, struct tfd_data *tfd); int ipw_net_hard_start_xmit(struct ieee80211_txb *txb, int pri); mbuf_t ieee80211_frag_cache_get(struct ieee80211_hdr_4addr *hdr); struct ieee80211_frag_entry *ieee80211_frag_cache_find(struct ieee80211_device *ieee, unsigned int seq, unsigned int frag, u8 * src, u8 * dst); int ieee80211_frag_cache_invalidate(struct ieee80211_hdr_4addr *hdr); int ieee80211_is_eapol_frame(mbuf_t skb); bool uploadFirmware2(UInt16 *base, const unsigned char *fw, UInt32 size, int offset); bool uploadFirmware(u8 * data, size_t len); bool uploadUCode(const unsigned char * data, UInt16 len); bool uploadUCode2(UInt16 *base, const unsigned char *uc, UInt16 size, int offset); void stopMaster(UInt16 *base); void stopDevice(UInt16 *base); bool resetDevice(UInt16 *); UInt16 readPromWord(UInt16 *base, UInt8 addr); int ieee80211_copy_snap(u8 * data, u16 h_proto); int ipw_load(); void ipw_add_scan_channels( struct ipw_scan_request_ext *scan, int scan_type); int ipw_associate(); void ipw_adapter_restart(); void ipw_arc_release(); int ipw_stop_master(); void queue_te(int num, thread_call_func_t func, thread_call_param_t par, UInt32 timei, bool start); void queue_td(int num , thread_call_func_t func); void ipw_scan_check(); int ipw_associate_network( struct ieee80211_network *network, struct ipw_supported_rates *rates, int roaming); void ipw_remove_current_network(); void ipw_abort_scan(); int ipw_disassociate(); int ipw_set_tx_power(); void init_sys_config(struct ipw_sys_config *sys_config); int init_supported_rates( struct ipw_supported_rates *rates); void ipw_set_hwcrypto_keys(); void ipw_add_cck_scan_rates(struct ipw_supported_rates *rates, u8 modulation, u32 rate_mask); void ipw_add_ofdm_scan_rates(struct ipw_supported_rates *rates, u8 modulation, u32 rate_mask); void ipw_send_tgi_tx_key( int type, int index); void ipw_send_wep_keys( int type); void ipw_set_hw_decrypt_unicast( int level); void ipw_set_hw_decrypt_multicast( int level); const struct ieee80211_geo* ipw_get_geo(); void ipw_send_disassociate( int quiet); int ipw_send_associate( struct ipw_associate *associate); void ipw_link_up(); void ipw_link_down(); const char* ipw_get_status_code(u16 status); int ipw_qos_activate( struct ieee80211_qos_data *qos_network_data); u8 ipw_qos_current_mode(); u32 ipw_qos_get_burst_duration(); void ipw_init_ordinals(); void ipw_reset_stats(); int ipw_get_ordinal( u32 ord, void *val, u32 * len); void ipw_read_indirect( u32 addr, u8 * buf, int num); u32 ipw_get_current_rate(); u32 ipw_get_max_rate(); void ipw_gather_stats(); void average_add(struct average *avg, s16 val); void ipw_rx_queue_reset( struct ipw_rx_queue *rxq); int ipw_queue_reset(); void ipw_tx_queue_free(); void ipw_queue_tx_free( struct clx2_tx_queue *txq, int count); int ipw_queue_inc_wrap(int index, int n_bd); void ipw_queue_tx_free_tfd( struct clx2_tx_queue *txq); int ipw_queue_tx_init( struct clx2_tx_queue *q, int count, u32 read, u32 write, u32 base, u32 size); void ipw_queue_init( struct clx2_queue *q, int count, u32 read, u32 write, u32 base, u32 size); void ipw_rx_queue_replenish(); void ipw_rx_queue_restock(); int is_network_packet( struct ieee80211_hdr_4addr *header); int ipw_is_multicast_ether_addr(const u8 * addr); s16 exponential_average(s16 prev_avg, s16 val, u8 depth); int __ipw_send_cmd( struct host_cmd *cmd); int ipw_send_cmd_simple( u8 command); int ipw_send_cmd_pdu( u8 command, u8 len, void *data); void ieee80211_rx_mgt(struct ieee80211_hdr_4addr *header, struct ieee80211_rx_stats *stats, int caplen); void ieee80211_process_probe_response(struct ieee80211_probe_response *beacon, struct ieee80211_rx_stats *stats, int caplen); // copy from isr_process_probe_response in ipw-0.2 int ieee80211_network_init( struct ieee80211_probe_response *beacon, struct ieee80211_network *network, struct ieee80211_rx_stats *stats); int ieee80211_parse_info_param(struct ieee80211_info_element *info_element, u16 length, struct ieee80211_network *network); int ieee80211_handle_assoc_resp(struct ieee80211_assoc_response *frame, struct ieee80211_rx_stats *stats); int is_beacon(__le16 fc) { return (WLAN_FC_GET_STYPE(le16_to_cpu(fc)) == IEEE80211_STYPE_BEACON); } int is_same_network(struct ieee80211_network *src, struct ieee80211_network *dst) { return ((src->ssid_len == dst->ssid_len) && (src->channel == dst->channel) && !compare_ether_addr(src->bssid, dst->bssid) && !memcmp(src->ssid, dst->ssid, src->ssid_len)); } unsigned compare_ether_addr(const u8 *_a, const u8 *_b) { const u16 *a = (const u16 *) _a; const u16 *b = (const u16 *) _b; if(ETH_ALEN != 6) return -1; return ((a[0] ^ b[0]) | (a[1] ^ b[1]) | (a[2] ^ b[2])) != 0; } void update_network(struct ieee80211_network *dst, struct ieee80211_network *src); void ipw_handle_mgmt_packet( struct ipw_rx_mem_buffer *rxb, struct ieee80211_rx_stats *stats); void ieee80211_network_reset(struct ieee80211_network *network); u8 ipw_add_station( u8 * bssid); void ipw_write_direct( u32 addr, void *buf, int num); void ipw_adhoc_check(); bool ipw_handle_data_packet( struct ipw_rx_mem_buffer *rxb, struct ieee80211_rx_stats *stats); void __ipw_led_activity_on(); int ipw_qos_association( struct ieee80211_network *network); int ipw_qos_set_info_element(); int ipw_send_qos_info_command( struct ieee80211_qos_information_element *qos_param); int ipw_handle_assoc_response(struct ieee80211_assoc_response *resp, struct ieee80211_network *network); int ipw_qos_association_resp( struct ieee80211_network *network); int ipw_handle_beacon(struct ieee80211_beacon *resp, struct ieee80211_network *network, int caplen); int ipw_handle_probe_response(struct ieee80211_probe_response *resp, struct ieee80211_network *network, int caplen); int ipw_qos_handle_probe_response( int active_network, struct ieee80211_network *network); void ipw_bg_qos_activate(); int ieee80211_parse_qos_info_param_IE(struct ieee80211_info_element *info_element, struct ieee80211_network *network); int ieee80211_read_qos_info_element(struct ieee80211_qos_information_element *element_info, struct ieee80211_info_element *info_element); int ieee80211_verify_qos_info(struct ieee80211_qos_information_element *info_element, int sub_type); int ieee80211_read_qos_param_element(struct ieee80211_qos_parameter_info *element_param, struct ieee80211_info_element *info_element); int ieee80211_qos_convert_ac_to_parameters(struct ieee80211_qos_parameter_info *param_elm, struct ieee80211_qos_parameters *qos_param); void ipw_handle_missed_beacon( int missed_count); void ipw_merge_adhoc_network(); int ipw_find_adhoc_network( struct ipw_network_match *match, struct ieee80211_network *network, int roaming); void ipw_rebuild_decrypted_skb( mbuf_t skb); int ieee80211_rx(mbuf_t skb, struct ieee80211_rx_stats *rx_stats); mbuf_t mergePacket(mbuf_t m); void ieee80211_txb_free(struct ieee80211_txb *txb); u8 ipw_find_station( u8 * bssid); int ipw_handle_probe_request(struct ieee80211_probe_request *frame, struct ieee80211_rx_stats *stats); struct ipw_frame *ipw_get_free_frame(); int ipw_fill_beacon_frame( struct ieee80211_hdr *hdr, u8 * dest, int left); void *ieee80211_next_info_element(struct ieee80211_info_element *info_element); int ieee80211_xmit(mbuf_t skb); int ipw_tx_skb( struct ieee80211_txb *txb, int pri); struct ieee80211_txb *ieee80211_alloc_txb(int nr_frags, int txb_size, int headroom, int gfp_mask); int ipw_is_qos_active(mbuf_t skb); int ipw_send_system_config(); void spin_lock_irqsave(IOSimpleLock *lock, IOInterruptState flags); void spin_unlock_irqrestore(IOSimpleLock *lock, IOInterruptState flags); void spin_lock(IOSimpleLock *lock); void spin_unlock(IOSimpleLock *lock); inline UInt32 MEM_READ_4(UInt16 *base, UInt32 addr) { CSR_WRITE_4(base, IWI_CSR_INDIRECT_ADDR, addr & IWI_INDIRECT_ADDR_MASK); return CSR_READ_4(base, IWI_CSR_INDIRECT_DATA); } inline UInt8 MEM_READ_1(UInt16 *base, UInt32 addr) { CSR_WRITE_4(base, IWI_CSR_INDIRECT_ADDR, addr); return CSR_READ_1(base, IWI_CSR_INDIRECT_DATA); } void check_firstup(); int ieee80211_classify(mbuf_t skb); u16 ipw_supported_rate_to_ie(struct ieee80211_info_element *ie, const u16 rates_mask, const u16 basic_rate, const int max_count); static u8 ipw_index_to_rate(int i) { u8 rates[IEEE80211_MAX_RATES]= { IEEE80211_CCK_RATE_1MB , IEEE80211_CCK_RATE_2MB , IEEE80211_CCK_RATE_5MB , IEEE80211_CCK_RATE_11MB, IEEE80211_OFDM_RATE_6MB, IEEE80211_OFDM_RATE_9MB, IEEE80211_OFDM_RATE_12MB, IEEE80211_OFDM_RATE_18MB, IEEE80211_OFDM_RATE_24MB, IEEE80211_OFDM_RATE_36MB, IEEE80211_OFDM_RATE_48MB, IEEE80211_OFDM_RATE_54MB, }; if (i >= IPW_MAX_RATES) return 0xff; return rates[i]; } int ieee80211_tx_frame(struct ieee80211_hdr *frame, int hdr_len, int total_len, int encrypt_mpdu); int ipw_handle_auth(struct ieee80211_auth *auth); int ipw_handle_disassoc(struct ieee80211_disassoc *disassoc); int ipw_handle_deauth(struct ieee80211_deauth *deauth); static int is_network_beacon(struct ieee80211_network *src, struct ieee80211_network *dst) { return ((src->channel == dst->channel) && !memcmp(src->bssid, dst->bssid, ETH_ALEN)); } void ipw_free_frame( struct ipw_frame *frame); void ipw_clear_free_frames(); //ieee80211_crypt functions: void ieee80211_crypt_deinit_entries( int force); void ieee80211_crypt_quiescing(); void ieee80211_crypt_delayed_deinit(struct ieee80211_crypt_data **crypt); //int ieee80211_register_crypto_ops(struct ieee80211_crypto_ops *ops); //int ieee80211_unregister_crypto_ops(struct ieee80211_crypto_ops *ops); struct ieee80211_crypto_ops *ieee80211_get_crypto_ops(const char *name); ieee80211_crypt_data* init_wep(void *key, int len, int idx); int ieee80211_rx_frame_decrypt(struct ieee80211_device *ieee, mbuf_t skb, struct ieee80211_crypt_data *crypt); int ieee80211_encrypt_fragment(struct ieee80211_device *ieee, mbuf_t frag, int hdr_len); int ieee80211_rx_frame_decrypt_msdu(struct ieee80211_device *ieee, mbuf_t skb, int keyidx, struct ieee80211_crypt_data *crypt); void free_wep(ieee80211_crypt_data *tmp); //end of ieee80211_crypt functions. #define CB_NUMBER_OF_ELEMENTS_SMALL 64 IOPCIDevice * fPCIDevice; // PCI nub IOEthernetAddress fEnetAddr; // holds the mac address currently hardcoded IOWorkLoop * fWorkLoop; // the workloop IO80211Interface* fNetif; // ??? //IOEthernetInterface* fNetif; //IONetworkInterface* fNetif; IOInterruptEventSource * fInterruptSrc; // ??? //IOTimerEventSource * fWatchdogTimer; // ??? IOBasicOutputQueue * fTransmitQueue; // ??? UInt16 * memBase; UInt32 event; u8 eeprom[0x100]; // statistics IONetworkStats *netStats; IOEthernetStats *etherStats; // packet buffer variables //IOOutputQueue *transmitQueue; IOMbufNaturalMemoryCursor *rxMbufCursor; IOMbufNaturalMemoryCursor *txMbufCursor; IOMemoryMap * map; // io memory map UInt8 irqNumber; // irq number UInt16 vendorID; // vendor ID shld be 8086 (intel) UInt16 deviceID; // device ID UInt16 pciReg; // revision IOPhysicalAddress ioBase; // map->getPhysicalAddress(); IOMemoryDescriptor * memDes; // map->getMemoryDescriptor(); IODeviceMemory * mem; // fPCIDevice->getDeviceMemoryWithIndex(index); OSDictionary * mediumDict; IONetworkMedium * mediumTable[MEDIUM_TYPE_INVALID]; //IO80211Interface2 ieee80211; iwi_cmd_ring cmdq; iwi_rx_ring rxq; iwi_tx_ring txq; struct fw_image_desc sram_desc; struct alive_command_responce dino_alive; u8 nic_type; u32 led_activity_on; u32 led_activity_off; u32 led_association_on; u32 led_association_off; u32 led_ofdm_on; u32 led_ofdm_off; u32 status; u32 config; u32 iw_mode; u32 assoc_networkmode; struct ipw_sys_config sys_config; int pl; int cmdlog; int debug; int channel; int mode; int disable2; int early_up; u32 ipw_debug_level; int associate; int auto_create; int led; int bt_coexist; int hwcrypto; int roaming; int antenna; struct ipw_supported_rates rates; u32 power; IOLock *mutex; IOSimpleLock *spin; u32 freq_band; u32 band; u32 modulation; u8 channel2; u16 rates_mask; u8 essid[IW_ESSID_MAX_SIZE]; u8 essid_len; u8 speed_scan[MAX_SPEED_SCAN]; u8 speed_scan_pos; //struct ipw_rx_queue *rxq; //struct clx2_tx_queue txq_cmd; //struct clx2_tx_queue txq[4]; u16 rts_threshold; struct list_head network_list; struct list_head network_free_list; thread_call_t tlink[20]; ipw_priv *priv; ieee80211_device ieee2; ipw_priv priv2; net_device net_dev2; int qos_enable; int qos_burst_enable; int qos_no_ack_mask; int burst_duration_CCK; int burst_duration_OFDM; ifnet_t fifnet; struct ieee80211_network nonets[20]; int test_lock; IOService * _pmPolicyMaker; UInt32 _pmPowerState; thread_call_t _powerOffThreadCall; thread_call_t _powerOnThreadCall; //open link to user interface application flag: int userInterfaceLink; //this flag will be used to abort all non-necessary background operation while //the user is connected to the driver. IOMbufLittleMemoryCursor *_mbufCursor; int firstifup; struct ieee80211_txb txb0; const char *fakemac; UInt8 pmPCICapPtr; bool magicPacketEnabled, magicPacketSupported,rxpkt,txpkt; }; static OSMallocTag gOSMallocTag; #endif
[ "charlieporth1@gmail.com" ]
charlieporth1@gmail.com
0e556b497cacf7515cf6a5537c3030cbd4abda4f
8031f987844ebf49aee1bc806fe7b06ff1eb1019
/DataStructures/BIT.cpp
a3a19de0454da25b4e3f1c63049f06c6454ddf61
[]
no_license
crystaalroo/icpc
9cf20a9839fd0f11eafb76246809f61a5746101e
051e9f30768770c6b9a7c420f8848da4652a6890
refs/heads/main
2023-06-13T22:05:49.400983
2021-07-06T04:34:29
2021-07-06T04:34:29
365,426,180
0
0
null
null
null
null
UTF-8
C++
false
false
373
cpp
template <typename T> struct BinaryIndexedTree { vector<T> data; BinaryIndexedTree(int sz) { data.assign(++sz, 0); } T query(int k) { T ret = 0; for(++k; k > 0; k -= k & -k) ret += data[k]; return (ret); } void add(int k, T x) { for(++k; k < data.size(); k += k & -k) data[k] += x; } }; #define BIT BinaryIndexedTree
[ "crystal.rodsot@gmail.com" ]
crystal.rodsot@gmail.com
ae80b0f2191d6f6a45a6361cac63a5419700838a
0c5ae27ecffdb6adae35229a39cdd9b4af322eec
/0917 - number theory & combinations/9613.cpp
90bb3be7aa8720b37e678ac5719da857c34ff920
[]
no_license
Altu-Bitu/Altu-Bitu_myeongji
209bd8e09b7fb2acb26ede1201a53d5efb9fdbbe
a02636de98bce5461fd1f4b37e659c92db3bff02
refs/heads/main
2023-07-31T03:42:08.510451
2021-10-05T09:35:47
2021-10-05T09:35:47
400,039,603
0
0
null
2021-10-05T09:35:48
2021-08-26T04:27:52
C++
UTF-8
C++
false
false
645
cpp
// // Created by 김명지 on 2021-09-23. // #include <iostream> using namespace std; const int MAX = 100; int arr[MAX]; int GCD(int a, int b) { if (a%b == 0) return b; return GCD(b, a%b); } int main(void) { ios_base::sync_with_stdio(0); cin.tie(0); int T; cin >> T; for (int t = 0; t < T; t++) { int N; cin >> N; for (int i = 0; i < N; i++) cin >> arr[i]; long long sum = 0; for (int i = 0; i < N; i++) for (int j = i + 1; j < N; j++) sum += GCD(arr[i], arr[j]); cout << sum << "\n"; } return 0; }
[ "88931238+Gom3rye@users.noreply.github.com" ]
88931238+Gom3rye@users.noreply.github.com
e6ef7b1500309f3462a725cfad40442ca7f148fc
7e8b99c63b0f8ea30c7f00bb65a45bdaa1b80f5e
/Student Management System/main.cpp
34fdda8b0417f72e0b2fe66fa5e8f69d28cec15a
[]
no_license
onkcharkupalli1051/cpp
a2d5742a0b40771471e6460b4f5f92cba281973a
1a442d19f8b48942528632525fc299326bb85845
refs/heads/main
2023-04-04T07:13:15.185812
2021-04-22T03:38:23
2021-04-22T03:38:23
334,149,280
0
0
null
null
null
null
UTF-8
C++
false
false
2,798
cpp
#include<iostream> #include<string> #include<stdlib.h> using namespace std; class Student { int rollno,grade; string fname,mname,lname,dob,address; public: void show_data(int search_key); // void get_data(int i); void search_student(int search_key); void add_student(); void edit_student(int id_number); }; void Student::show_data(int search_key) { cout<<endl<<"Student Details : "<<endl<<"Roll no : "<<rollno<<"Grade : "<<grade; cout<<endl<<"Name : "<<fname<<" "<<mname<<" "<<lname; cout<<endl<<"DOB : "<<dob<<endl<<"Address : "<<address; } // void get_data(int i) // { // } void Student::search_student(int search_key) { show_data(search_key); } void Student::add_student() { cout<<endl<<"Add Operation : "<<endl<<"Enter rollno. grade(space)"; cin>>rollno>>grade; cout<<endl<<"Enter fname mname lname : "; cin>>fname>>mname>>lname; cout<<endl<<"Enter dob(DDMMYYYY) : "; cin>>dob; cout<<endl<<"ENter address"; cin>>address; } void Student::edit_student(int id_number) { cout<<endl<<"Add Operation : "<<endl<<"Enter rollno. grade(space)"; cin>>rollno>>grade; cout<<endl<<"Enter fname mname lname : "; cin>>fname>>mname>>lname; cout<<endl<<"Enter dob(DDMMYYYY) : "; cin>>dob; cout<<endl<<"ENter address"; cin>>address; } int main() { int choice,count=1; cout<<" Student Management System "<<endl; while(1) { cout<<"**************************************************"<<endl; cout<<"Operations"<<endl<<"1. Add student data" <<endl<<"2. Edit Student Data"<<endl<<"3. Search Student"<<endl<<"4. Exit"<<endl<<"Enter your choice : "; cin>>choice; switch(choice) { case 1: Student a[count]; a[count].add_student(); count++; break; case 2: cout<<endl<<"Enter student Roll no. : "; int temp_id; if(temp_id > count) { printf("Roll doesn't exist."); break; } else { a[count].edit_student(temp_id); } break; case 3: cout<<endl<<"Enter student Roll no. : "; temp_id; if(temp_id > count) { printf("Roll doesn't exist."); break; } else { a[count].search_student(temp_id); } break; case 4: exit(0); } } return 0; }
[ "onkarcharkupalli@gmail.com" ]
onkarcharkupalli@gmail.com
ced75b57911468da58f1697585b8f22bca60af0f
e429092861e55f466a03893f4139ecd72f06480f
/raushan.cpp
27fd71d32831fb052370ac056cf1d0933c982119
[]
no_license
deepmonu/k17pd19
6c4017a14ab65487f2f066b5bd2e4e1b9ce71df3
4a80855caa069fb4ee1ea8bace10140021627644
refs/heads/master
2020-05-14T14:33:17.450525
2019-04-17T07:24:18
2019-04-17T07:24:18
181,836,273
0
0
null
null
null
null
UTF-8
C++
false
false
1,801
cpp
#include<bits/stdc++.h> using namespace std; #define totalprocess 5 class process { public: int at,bt,pr,pno; }; process proc[50]; bool compare(process a,process b) { if(a.at == b.at) { return a.pr<b.pr; } else { return a.at<b.at; } } void get_wt_time(int wt[]) //using fcfs find wt { int s[50],pt[50]; s[0]=0; wt[0]=0; for(int i=0;i<totalprocess;i++) { s[i]=proc[i-1].bt + s[i-1]; wt[i]=s[i]-proc[i].at+1; if(wt[i]<0) { wt[i]=0; } pt[i]=1+(wt[i]/proc[i].bt); proc[i].pr=pt[i]; } sort(proc,proc+totalprocess,compare); } void get_tat_time(int tat[],int wt[]) //filling turnaroundtime { for(int i=0;i<totalprocess;i++) { tat[i]=proc[i].bt+wt[i]; } } void findgant_chart() { int wt[50],tat[50]; double wa_avg=0,t_avg=0; get_wt_time(wt); get_tat_time(tat,wt); int s_time[50],c_time[50]; s_time[0]=1; c_time[0]=s_time[0]+tat[0]; for(int i=0;i<totalprocess;i++) { s_time[i]=c_time[i-1]; c_time[i]=s_time[i]+tat[i]-wt[i]; } cout<<"process_no\tstart_time\tcomplete_time\tturnaroundtime\twaiting_time"<<endl; for(int i=0;i<totalprocess;i++) { wa_avg += wt[i]; t_avg +=tat[i]; cout<<proc[i].pno<<"\t\t"<<s_time[i]<<"\t\t"<<c_time[i]<<"\t\t"<<tat[i]<<"\t\t\t"<<wt[i]<<endl; } cout<<"Average wating time is:"; cout<<wa_avg/(float)totalprocess<<endl; cout<<"average turnaround time :"; cout<<t_avg/(float)totalprocess<<endl; } int main() { int arrivaltime[]={1,2,3,4,5}; int bursttime[] = {3,5,1,7,4}; for(int i=0;i<totalprocess;i++) { proc[i].at=arrivaltime[i]; proc[i].bt=bursttime[i]; proc[i].pno=i+1; } findgant_chart(); return 0; }
[ "noreply@github.com" ]
noreply@github.com
0edfa7a89777aea7c80f8b6358d7a9a46ab7e2fb
1bf38806e1387ae721f8fe48387b34d9b9af601d
/ZhumuSdkProgress/Src/Business/BusinessLogic.h
7158c4c1b618faaaefcbea12d0edc6ae4fa77b0c
[]
no_license
xiaomengzi/ZhumuSdk_SHLX
4dde17ad3aefd675139dc1b77d973bbcedec8ac0
1eb23efef6961ab243fe2285cdc6da3731741729
refs/heads/master
2022-12-03T21:38:44.922188
2020-08-18T10:01:57
2020-08-18T10:01:57
286,018,210
0
0
null
null
null
null
GB18030
C++
false
false
7,009
h
#ifndef _BUSINESSLOGIC_H_ #define _BUSINESSLOGIC_H_ #include "TcpServer\CustomTcpServer.h" #include "auth_service_interface.h" #include "CustomData.h" #include "meeting_service_interface.h" #include <map> class CZhumuSdkAgency; class CAuthServiceEvent; class CBusinessLogic { private: CBusinessLogic(); ~CBusinessLogic(); public: static CBusinessLogic *Initialize(); static void Uninitialize(); static CBusinessLogic *GetInstance(); void InitData(); void UnInitData(); private: static CBusinessLogic *m_pInstance; public: // 开启tcp服务 void StartTcpServer(); // 关闭tcp服务 void StopTcpServer(); /************************************************************************/ /* 上层协议调用处理函数 */ /************************************************************************/ public: // 初始化瞩目sdk int InitZhumuSDK(std::string strContent); // 登录瞩目sdk int LoginZhumuSDK(std::string strContent); // 开启预约会议 int StartAppointmentMeetingZhumuSDK(std::string strContent); // 开启即时会议 int StartInstantMeetingZhumuSDK(std::string strContent); // 加入会议 int JoinMeetingZhumuSDK(std::string strContent); // 匿名加入会议 int AnonymityJoinMeetingZhumuSDK(std::string strContent); // 通用设置 int SettingMeetingZhumu(std::string strContent); // 设置默认麦克风 int SelectMicZhumuSDK(std::string strContent); // 设置所选麦克风的音量。0~255 int SetMicVolZhumuSDK(std::string strContent); // 选择扬声器装置。 int SelectSpeakerZhumuSDK(std::string strContent); // 设置所选扬声器的音量。0~255 int SetSpeakerVolZhumuSDK(std::string strContent); // 设置默认摄像头 int SelectCameraZhumuSDK(std::string strContent); // 直接共享 int DirectSharingZhumu(std::string strContent); // 销毁瞩目SDK void DestroyZhumuSDK(); // 会议设置 int MeetingCtrlZhumuSDK(std::string strContent); /************************************************************************/ /* 执行结果协议反馈处理函数 */ /************************************************************************/ public: // 反馈初始化SDK结果 bool FeedbackInitResult(ZHUMU_SDK_NAMESPACE::SDKError ret); // 反馈认证结果 bool FeedbackAuthResult(ZHUMU_SDK_NAMESPACE::AuthResult ret); // 反馈登录结果 bool FeedbackLoginResult(ZHUMU_SDK_NAMESPACE::LOGINSTATUS ret); // 反馈会议状态 bool FeedbackMeetingStatusResult(ZHUMU_SDK_NAMESPACE::MeetingStatus status, int iResult = 0); // 反馈会议设置结果 bool FeedbackMeetingSettingResult(SettingServerType settingType, ZHUMU_SDK_NAMESPACE::SDKError ret); /************************************************************************/ /* 瞩目SDK回调处理函数 */ /************************************************************************/ public: // 瞩目SDK 验证回调事件处理 void AuthenticationReturn(ZHUMU_SDK_NAMESPACE::AuthResult ret); // 瞩目SDK 登录回调事件处理 void LoginReturn(ZHUMU_SDK_NAMESPACE::LOGINSTATUS ret, ZHUMU_SDK_NAMESPACE::IAccountInfo* pAccountInfo); // 瞩目SDK 会议回调事件处理 void MeetingStatusChanged(ZHUMU_SDK_NAMESPACE::MeetingStatus status, int iResult /*= 0*/); private: // 登录 void DirectLogin(); // 通过错误码获取错误描述 CString GetErrorDescriptionByErrorCode(ZHUMU_SDK_NAMESPACE::MeetingFailCode errCode); public: // 注册主窗口句柄 void RegisterMainDlgHwnd(HWND hWnd); HWND GetMainDlgHwnd(); // 瞩目SDK是否已经初始化 true-初始化 false-未初始化 bool GetZhumuSdkAlreadyInit() const; void SetZhumuSdkAlreadyInit(bool val); // 瞩目SDK是否正在登陆 true-正在登陆 false-未登录 bool GetIsLanding() const; void SetIsLanding(bool val); // 瞩目SDK是否已经登录 true-已经登录 false-未登录 bool GetAlreadyLanding() const; void SetAlreadyLanding(bool val); // 登录SDK bool GetIsDirectLogin() const; void SetIsDirectLogin(bool val); // 是否为匿名入会 bool GetIsAnonymousJoin() const; void SetIsAnonymousJoin(bool val); // 是否已经认证 bool GetAlreadyAuth() const; void SetAlreadyAuth(bool val); // 是否正在准备会议 true-正在准备会议 false-未准备会议 bool GetReadyMeeting() const; void SetReadyMeeting(bool val); // 是否正在参加会议 true-正在参加会议 false-参加会议 bool GetAttendMeeting() const; void SetAttendMeeting(bool val); // 登录瞩目SDK参数 LoginSDKParam GetLoginSDKParam() const; void SetLoginSDKParam(LoginSDKParam val); // 协议处理超时时间 int GetWaitTimeOut() const; void SetWaitTimeOut(int val); // 协议处理是否异步 bool GetAsynchronous() const; void SetAsynchronous(bool val); // 验证结果是否返回 true-已经翻译 false-未返回 bool GetAuthResultReturned() const; void SetAuthResultReturned(bool val); // 登录结果是否返回 true-已经翻译 false-未返回 bool GetLoginResultReturned() const; void SetLoginResultReturned(bool val); private: CCustomTcpServer m_tcpServer; HWND m_hWndMainDlg; bool m_bZhumuSdkAlreadyInit; // 瞩目SDK是否已经初始化 true-初始化 false-未初始化 bool m_bIsLanding; // 瞩目SDK是否正在登陆 true-正在登陆 false-未登录 bool m_bAlreadyLanding; // 瞩目SDK是否已经登录 true-已经登录 false-未登录 bool m_bIsDirectLogin; // 登录SDK bool m_bIsAnonymousJoin; // 是否为匿名入会 bool m_bAlreadyAuth; // 是否已经认证 bool m_bReadyMeeting; // 是否正在准备会议 true-正在准备会议 false-未准备会议 bool m_bAttendMeeting; // 是否正在参加会议 true-正在参加会议 false-参加会议 LoginSDKParam m_loginSDKParam; // 登录瞩目SDK参数 int m_nWaitTimeOut; // 协议处理超时时间 bool m_bAsynchronous; // 协议处理是否异步 bool m_bAuthResultReturned; // 验证结果是否返回 true-已经翻译 false-未返回 bool m_bLoginResultReturned; // 登录结果是否返回 true-已经翻译 false-未返回 CZhumuSdkAgency* m_pZhumuSdkAgency; std::map<ZHUMU_SDK_NAMESPACE::MeetingFailCode, CString> m_mapMeetFailCode; }; #endif //_BUSINESSLOGIC_H_
[ "1424453637@qq.com" ]
1424453637@qq.com
cab278ea42121d5ece5c61099169936182c26396
ee186ae9735394a9a51a31b3cbae19f0950d9020
/VirtualMachine.cpp
c662df6ec113e0c42f0216950c910eb61be16074
[]
no_license
ziemowit141/VirtualMachine
95fe11ae3e74a7fafa253d3ade83b1f6be034658
ed62d46d3148def02ea5f0e257ecd33be6826b25
refs/heads/master
2023-02-12T15:12:36.245807
2021-01-15T09:52:52
2021-01-15T09:52:52
313,724,019
0
0
null
null
null
null
UTF-8
C++
false
false
124
cpp
#include "VirtualMachine.h" VMGeneralPurposeRegister& VirtualMachine::reg(const int& r) { return registers_[r & 0xf]; }
[ "ziemowit141" ]
ziemowit141
1d2ba92c1461a0aec7b1c5932635a7341f2f37ca
9e48e4b016ccf0cb684deb755527a468ff5e5d8e
/src/Tools/KalmanFilter.cpp
d7537946036745cb8fa1d0e8babc7b74c88e4eae
[]
no_license
Phoenix-flame/Soccer
09b5a76efb0a221d96dfbef0c79501a19b0b179b
eb546b82447d81fcf49ff92cea04864e0623684c
refs/heads/master
2023-02-11T08:53:28.808949
2021-01-15T14:13:18
2021-01-15T14:13:18
328,573,887
1
0
null
null
null
null
UTF-8
C++
false
false
1,364
cpp
#include <Tools/KalmanFilter.h> namespace Phoenix{ KalmanFilter::KalmanFilter( double dt, const Eigen::MatrixXd& A, const Eigen::MatrixXd& C, const Eigen::MatrixXd& Q, const Eigen::MatrixXd& R, const Eigen::MatrixXd& P) : A(A), C(C), Q(Q), R(R), P0(P), m(C.rows()), n(A.rows()), dt(dt), initialized(false), I(n, n), x_hat(n), x_hat_new(n){ I.setIdentity(); } KalmanFilter::KalmanFilter() {} void KalmanFilter::init(double t0, const Eigen::VectorXd& x0) { x_hat = x0; P = P0; this->t0 = t0; t = t0; initialized = true; } void KalmanFilter::init() { x_hat.setZero(); P = P0; t0 = 0; t = t0; initialized = true; } void KalmanFilter::update(const Eigen::VectorXd& y) { if(!initialized) throw std::runtime_error("Filter is not initialized!"); x_hat_new = A * x_hat; P = A*P*A.transpose() + Q; K = P*C.transpose()*(C*P*C.transpose() + R).inverse(); x_hat_new += K * (y - C*x_hat_new); P = (I - K*C)*P; x_hat = x_hat_new; t += dt; } void KalmanFilter::update(const Eigen::VectorXd& y, double dt, const Eigen::MatrixXd A) { this->A = A; this->dt = dt; update(y); } }
[ "alireza17010@gmail.com" ]
alireza17010@gmail.com
be6221c44b54350e98d58d06cc40ed39d1c804f5
89ce5fa0b85f3272c80f265ca2e48463be2eae08
/GUI/Bengine/AudioEngine.cpp
878ca6082b0af641c2bf2471960f533467f4367f
[]
no_license
Doug0855/TigerZone
a90ee4c49bde96702231abfcadab202b3c979ad0
1354a081545c766c135a0507bb16a760cb7afd15
refs/heads/master
2021-01-11T07:35:21.966130
2016-12-05T19:42:45
2016-12-05T19:42:45
72,787,994
2
3
null
2016-12-02T21:46:03
2016-11-03T21:21:10
C++
UTF-8
C++
false
false
3,252
cpp
#include "AudioEngine.h" #include "BengineErrors.h" namespace Bengine { void SoundEffect::play(int loops /* = 0 */ ) { if (Mix_PlayChannel(-1, m_chunk, loops) == -1) { if (Mix_PlayChannel(0, m_chunk, loops) == -1) { fatalError("Mix_PlayChannel error: " + std::string(Mix_GetError())); } } } void Music::play(int loops /* = -1 */) { Mix_PlayMusic(m_music, loops); } void Music::pause() { Mix_PauseMusic(); } void Music::stop() { Mix_HaltMusic(); } void Music::resume() { Mix_ResumeMusic(); } AudioEngine::AudioEngine() { // Empty } AudioEngine::~AudioEngine() { destroy(); } void AudioEngine::init() { if (m_isInitialized) { fatalError("Tried to initialize Audio Engine twice!\n"); } // Parameter can be a bitwise combination of MIX_INIT_FAC, // MIX_INIT_MOD, MIX_INIT_MP3, MIX_INIT_OGG if (Mix_Init(MIX_INIT_MP3 | MIX_INIT_OGG) == -1) { fatalError("Mix_Init error: " + std::string(Mix_GetError())); } if (Mix_OpenAudio(MIX_DEFAULT_FREQUENCY, MIX_DEFAULT_FORMAT, 2, 1024) == -1) { fatalError("Mix_OpenAudio error: " + std::string(Mix_GetError())); } m_isInitialized = true; } void AudioEngine::destroy() { if (m_isInitialized) { m_isInitialized = false; for (auto& it : m_effectMap) { Mix_FreeChunk(it.second); } for (auto& it : m_musicMap) { Mix_FreeMusic(it.second); } m_effectMap.clear(); m_musicMap.clear(); Mix_CloseAudio(); Mix_Quit(); } } SoundEffect AudioEngine::loadSoundEffect(const std::string& filePath) { // Try to find the audio in the cache auto it = m_effectMap.find(filePath); SoundEffect effect; if (it == m_effectMap.end()) { // Failed to find it, must load Mix_Chunk* chunk = Mix_LoadWAV(filePath.c_str()); // Check for errors if (chunk == nullptr) { fatalError("Mix_LoadWAV error: " + std::string(Mix_GetError())); } effect.m_chunk = chunk; m_effectMap[filePath] = chunk; } else { // Its already cached effect.m_chunk = it->second; } return effect; } Music AudioEngine::loadMusic(const std::string& filePath) { // Try to find the audio in the cache auto it = m_musicMap.find(filePath); Music music; if (it == m_musicMap.end()) { // Failed to find it, must load Mix_Music* mixMusic = Mix_LoadMUS(filePath.c_str()); // Check for errors if (mixMusic == nullptr) { fatalError("Mix_LoadMUS error: " + std::string(Mix_GetError())); } music.m_music = mixMusic; m_musicMap[filePath] = mixMusic; } else { // Its already cached music.m_music = it->second; } return music; } }
[ "coltonmoler@gmail.com" ]
coltonmoler@gmail.com
fe1dc706665550b619aa22adf58d0129115ee8bc
0e5442e46e1e48118f0d3914de12e7a0b6a05e4d
/inc/Radiance/Path_tracing.hpp
6a1a8cafc1a0bc9ff64aab86e234b34a8fb6a9ce
[]
no_license
kyawakyawa/path_tracing
5f7bf283c3e6665384b0ba8acca5d604184d7070
98a0b30f5b308af60afbb739e9a6ae45bcc439b5
refs/heads/master
2023-01-05T15:34:48.693435
2020-11-01T13:17:01
2020-11-01T13:17:01
110,186,886
4
0
null
null
null
null
UTF-8
C++
false
false
4,675
hpp
#pragma once #include "Radiance.hpp" struct Path_tracing : Radiance { const int min_depth = 4; const int max_depth = 64; const Infinity_light_source back; Path_tracing() = default; Path_tracing(int md,int Md) : Path_tracing(md,Md,"") { }; Path_tracing(int md,int Md,const std::string &ibl) : Path_tracing(md,Md,ibl,FColor(0,0,0)) {}; Path_tracing(int md,int Md,const std::string &ibl,const FColor& cl) : min_depth(md),max_depth(Md),back(ibl,cl) {}; FColor radiance(const Ray &ray) const { return pathtracing(ray,0); } void set(std::vector<Shape*> *s,std::vector<Light_source*> *l) { shapes = s; lights = l; } inline FColor pathtracing(const Ray &ray,const int depth) const{ const Intersection_info *intersection_info = get_intersection_of_nearest(ray); if(intersection_info == nullptr){//物体が存在しない return back.get_radiance(ray.direction); } const Intersection_point *intersection = intersection_info->intersection_point; const Material material = intersection->material; const Vec3 normal = ((ray.direction * intersection->normal < 0.0) ? 1.0 : -1.0) * intersection->normal; FColor L = (ray.direction * intersection->normal < 0.0) ? material.Le : FColor(0,0,0); R P = std::max(std::max(material.kd.red,material.kd.green),material.kd.blue); if(depth < min_depth) P = 1.0; if (depth >= max_depth)//最大値で大幅に確率を下げる P *= pow(0.5, depth - max_depth); if(P < Random::rando()){//再帰が深すぎ delete intersection_info; return L; } switch (material.type){ case MT_DEFAULT: { Vec3 u; if (std::abs(normal.x) > 1e-6) // ベクトルwと直交するベクトルを作る。w.xが0に近い場合とそうでない場合とで使うベクトルを変える。 u = (cross(Vec3(0.0, 1.0, 0.0), normal)).normalized(); else u = (cross(Vec3(1.0, 0.0, 0.0), normal)).normalized(); Vec3 v = cross(normal,u); R u1 = Random::rando() * 2.0 * 3.1415926535,u2 = Random::rando(),u3 = std::sqrt(u2); Vec3 omega = u * std::cos(u1) * u3 + v * std::sin(u1) * u3 + normal * std::sqrt(1 - u2); L += material.kd * pathtracing(Ray(intersection->position /*+ epsilon * omega*/,omega),depth + 1) * (1.0 / P); } break; case MT_PERFECT_REF: { const Vec3 r = -2.0 * (normal * ray.direction) * normal + ray.direction; const Vec3 p = intersection->position; L += material.kd * pathtracing(Ray(p,r),depth + 1) * (1.0 / P); } break; case MT_REFRACTION: { const R n = ((ray.direction * intersection->normal < 0.0) ? 1.0 / material.n : material.n); const R dn = ray.direction * normal; const R cos2t = 1.0 - n * n * (1.0 - dn * dn); const Vec3 p = intersection->position; const Vec3 r = -2.0 * (normal * ray.direction) * normal + ray.direction; if(cos2t < 0.0){ L += material.kd * pathtracing(Ray(p,r),depth + 1) * (1.0 / P); break; } Vec3 T = (n * ray.direction - (n * dn + std::sqrt(cos2t) ) * normal).normalized(); const R a = 1.0 - material.n,b = 1.0 + material.n; const R F0 = (a * a) / (b * b); const R Fr = F0 + (1.0 - F0) * std::pow(1.0 + ((ray.direction * intersection->normal < 0.0) ? dn : T * normal),5); const R Tr = (1.0 - Fr) * n * n; const R probability = 0.25 * 0.5 * Fr; if(depth > 2){ if(Random::rando() < probability){ L += material.kd * pathtracing(Ray(p,r),depth + 1) * (1.0 / P / probability) * Fr; }else{ L += material.kd * pathtracing(Ray(p,T),depth + 1) * (1.0 / P / (1.0 - probability)) * Tr; } }else { L += material.kd * (pathtracing(Ray(p,r),depth + 1) * Fr + pathtracing(Ray(p,T),depth + 1) * Tr) * (1.0 / P); } } break; case MT_NORMALIZED_PHONG: { Vec3 u; if (std::abs(normal.x) > 1e-6) // ベクトルwと直交するベクトルを作る。w.xが0に近い場合とそうでない場合とで使うベクトルを変える。 u = (cross(Vec3(0.0, 1.0, 0.0), normal)).normalized(); else u = (cross(Vec3(1.0, 0.0, 0.0), normal)).normalized(); const Vec3 v = cross(normal,u); const R u1 = Random::rando() * 2.0 * 3.1415926535,t = std::pow(Random::rando(),1.0 / (2 + material.n));//alpha = 5 const R t2 = std::sqrt(1.0 - t * t); const Vec3 omega = u * std::cos(u1) * t2 + v * std::sin(u1) * t2 + normal * t; const R nome = normal * omega; const R f = (omega - 2 * nome * normal) * ray.direction / nome; L += material.kd * std::pow(f,material.n) * pathtracing(Ray(intersection->position /*+ epsilon * omega*/,omega),depth + 1) * (1.0 / P); } } delete intersection_info; return L; } };
[ "ikaairplanef15@yahoo.co.jp" ]
ikaairplanef15@yahoo.co.jp
25bb8db1d5ab9c88dc1f73472d3ee7dcbcdf084a
bca026c552c5c0abe1100b6f179fcd6ccad0385f
/src/utils.h
682eaaba2d0ed5d083c02ed8df8bcfde56684e89
[]
no_license
pvastig/children
4dd2ca9f160ff2bae2690b8f87bc208698a77cd3
d4c47d83a76e1339fe1f90cba0d41700644d545f
refs/heads/master
2020-05-21T10:00:16.437469
2020-03-02T16:09:10
2020-03-02T16:09:10
45,912,619
0
0
null
null
null
null
UTF-8
C++
false
false
3,668
h
#pragma once #include <chrono> #include <fstream> #include <future> #include <iostream> #include <string_view> #include <type_traits> namespace utils { constexpr char const* newLine = "\n"; #define PRINT_DASHED_LINE std::cout << "--------------" << std::endl // TODO: improve template. leave comment about working template<class T> void printComplexContainer(T container) { for (auto const& [key, items] : container) { auto const& firstValue = *items.cbegin(); print(key, '\t', firstValue, newLine); std::for_each(std::next(items.cbegin()), items.cend(), [](auto const& item) { print('\t', item, newLine); }); } } template<class T> class Singleton final { public: Singleton& operator=(Singleton) = delete; Singleton(Singleton const&) = delete; Singleton(Singleton&&) = delete; Singleton& operator=(Singleton&&) = delete; static T& instance() { static T object; return object; } }; class Timer { public: void start(); void stop(); long duration() const; private: std::chrono::time_point<std::chrono::high_resolution_clock> m_begin, m_end; }; #define START_TIME Singleton<Timer>::instance().start() #define STOP_TIME Singleton<Timer>::instance().stop() #define DURATION_TIME Singleton<Timer>::instance().duration() class Log { public: Log(std::string_view fileName); ~Log(); template<class T> Log& operator<<(T msg); private: std::ofstream m_outputFile; }; template<class T> Log& Log::operator<<(T msg) { if (m_outputFile.is_open()) m_outputFile << msg; return *this; } template<class F, typename... Ts> auto runAsync(F&& f, Ts&&... params) { return std::async(std::launch::async, std::forward<F>(f), std::forward<Ts>(params)...); } // templates for determining whether the std::pair container element is template<typename T> struct IsPair : std::false_type {}; template<typename T, typename U> struct IsPair<std::pair<T, U>> : std::true_type {}; template<typename T> constexpr bool isPairV = IsPair<T>::value; // templates for determining if the container is std::map template<typename, typename = void> struct IsMapping : std::false_type {}; template<typename Container> struct IsMapping< Container, std::enable_if_t<isPairV<typename std::iterator_traits<typename Container::iterator>::value_type>>> : std::true_type {}; template<typename T> constexpr bool IsMappingV = IsMapping<T>::value; template<class Out, class Container> typename std::enable_if_t<IsMappingV<Container>, void> print(Out& out, Container&& container); template<class Out, class Container> typename std::enable_if_t<!IsMappingV<Container>, void> print(Out& out, Container&& container); template<class Out, typename... Args> void print(Out& out, Args... args) { (out << ... << args); } template<class Out, class Container> typename std::enable_if_t<!IsMappingV<Container>> print(Out& out, Container&& container) { for (auto&& item : std::forward<Container>(container)) out << item << newLine; } template<class Out, class Container> typename std::enable_if_t<IsMappingV<Container>, void> print(Out& out, Container&& container) { for (auto&& [first, second] : std::forward<Container>(container)) out << first << " " << second; } // template checks whether container is size template<typename T, typename = void> struct HasSize : std::false_type {}; template<typename T> struct HasSize<T, std::enable_if_t<std::is_same<decltype(std::declval<T>().size()), size_t>::value>> : std::true_type {}; template<typename T> constexpr bool HasSizeV = HasSize<T>::value; } // namespace utils
[ "pvastig@gmail.com" ]
pvastig@gmail.com
2d1883998bfdad265a1e5ed153a43355b5241afc
2d87ca65369c663006586ef354bad6d575b012a1
/lib/src/graphic/Quad.cpp
e8058e7e1b0f7958d0dbe175741433580d5b09e4
[]
no_license
xpac27/TinyWorld
9fe708c1355c01bd17ae0afd4077339bd1b06c2e
95dad4674006aeec697f0221a8b37bc331ae7d39
refs/heads/master
2021-01-13T02:30:38.949318
2020-04-16T12:10:12
2020-04-16T12:10:12
26,079,028
7
1
null
2016-03-02T08:28:22
2014-11-02T11:49:22
C++
UTF-8
C++
false
false
897
cpp
#include "Quad.hpp" Quad::Quad() { GLfloat quadVertices[] = { // Positions UV -1.0f, 1.0f, 0.0f, 0.0f, 1.0f, -1.0f, -1.0f, 0.0f, 0.0f, 0.0f, 1.0f, 1.0f, 0.0f, 1.0f, 1.0f, 1.0f, -1.0f, 0.0f, 1.0f, 0.0f, }; glGenVertexArrays(1, &quadVAO); glGenBuffers(1, &quadVBO); glBindVertexArray(quadVAO); glBindBuffer(GL_ARRAY_BUFFER, quadVBO); glBufferData(GL_ARRAY_BUFFER, sizeof(quadVertices), &quadVertices, GL_STATIC_DRAW); glEnableVertexAttribArray(0); glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, 5 * sizeof(GLfloat), 0); glEnableVertexAttribArray(1); glVertexAttribPointer(1, 2, GL_FLOAT, GL_FALSE, 5 * sizeof(GLfloat), reinterpret_cast<const GLvoid *>(sizeof(GLfloat) * 3)); } void Quad::draw() { glBindVertexArray(quadVAO); glDrawArrays(GL_TRIANGLE_STRIP, 0, 4); glBindVertexArray(0); }
[ "xpac27@gmail.com" ]
xpac27@gmail.com
a27513c359a46db7023225b7952c369e1b932d27
f43b347f4fff0823451fe9b7a29ae7a1f7f8994e
/src/iohandler.h
9358232242640edc349f89ff640ba780c1dc34ee
[]
no_license
junli1026/SimpleNet
4ab02c4e029db254cb635faa8aea96c9417b38e4
4ca0a6ce5a3bc02a78cc15626e818178169b9506
refs/heads/master
2021-01-02T08:52:44.980379
2014-11-13T08:00:12
2014-11-13T08:00:12
null
0
0
null
null
null
null
UTF-8
C++
false
false
671
h
#ifndef _IOHANDLER_H_ #define _IOHANDLER_H_ #include <functional> #include <memory> #include <map> #include <unistd.h> #include "socket.h" #include "buffer.h" namespace simple{ class IOHandler{ private: std::map<int, std::shared_ptr<IOSocket>> sockets_; IOHandler& operator=(const IOHandler& IOHandler){} IOHandler(const IOHandler& IOHandler){} public: bool contains(int fd); void add(int fd); void erase(int fd); void doRead(int fd); void doWrite(int fd); std::shared_ptr<Buffer> getReadBuffer(int fd); std::shared_ptr<Buffer> getWriteBuffer(int fd); std::map<int, std::shared_ptr<IOSocket>>& getSocketMap(); IOHandler(); ~IOHandler(); }; } #endif
[ "jun@ubuntu.(none)" ]
jun@ubuntu.(none)
3e7444cdeed72420b63576658fa14b7e6900e242
44d779848bfaa899cb0e829a3f68bc5abe9dc151
/Sorion/SDK/LunMC.h
39ce169cb72e19a3af0048512b905f4a91d8d4f6
[]
no_license
GCPins/Sorion-Gold
0cc3794a4c7c4056a9a8135685284ab9b8a09404
fec6da63c2687fde65b164e32567fb290df55133
refs/heads/master
2022-11-14T10:03:19.299305
2020-07-01T02:04:00
2020-07-01T02:04:00
null
0
0
null
null
null
null
UTF-8
C++
false
false
49,496
h
#pragma once #include "TextHolder.h" #include "LunMath.h" #include "LunMem.h" #include <functional> #define ulong uint64_t // Created with ReClass.NET 1.2 by KN4CK3R class GuiData { public: char pad_0008[16]; //0x0008 Vector2 Resolution; //0x0018 Vector2 Resolution2; //0x0020 Vector2 ScaledResolution; //0x0028 int N0000190A; //0x0030 float GuiScale; //0x0034 char pad_0038[26]; //0x0038 uint16_t MouseX; //0x0052 uint16_t MouseY; //0x0054 char pad_0056[1006]; //0x0056 virtual void Destructor(); virtual void onInitMinecraftGame(); virtual void Function2(); virtual void Function3(); virtual void Function4(); virtual void Function5(); virtual void Function6(); virtual void Function7(); virtual void Function8(); virtual void Function9(); virtual void Function10(); virtual void Function11(); virtual void Function12(); virtual void Function13(); virtual void Function14(); virtual void Function15(); virtual void Function16(); virtual void Function17(); virtual void Function18(); virtual void Function19(); virtual void Function20(); virtual void Function21(); virtual void Function22(); virtual void Function23(); virtual void Function24(); virtual void Function25(); virtual void Function26(); virtual void Function27(); virtual void Function28(); virtual void Function29(); virtual void Function30(); virtual void Function31(); virtual void Function32(); virtual void Function33(); virtual void Function34(); virtual void Function35(); virtual void Function36(); virtual void Function37(); virtual void Function38(); virtual void Function39(); virtual void Function40(); virtual void Function41(); virtual void Function42(); virtual void Function43(); virtual void Function44(); virtual void Function45(); virtual void Function46(); virtual void Function47(); virtual void Function48(); virtual void Function49(); virtual void Function50(); virtual void Function51(); virtual void Function52(); virtual void Function53(); virtual void Function54(); virtual void Function55(); virtual void Function56(); virtual void Function57(); }; //Size: 0x0440 class ClientInstance { public: char pad_0008[160]; //0x0008 class MinecraftGame* MinecraftGame; //0x00A8 class MinecraftGame* MinecraftGame2; //0x00B0 class Minecraft* Minecraft; //0x00B8 char pad_00C0[8]; //0x00C0 class LevelRenderer* LevelRenderer; //0x00C8 char pad_00D0[8]; //0x00D0 class LoopbackPacketSender* LoopbackPacketSender; //0x00D8 class HolographicPlatform* HolographicPlatform; //0x00E0 class VoiceSystem* VoiceSystem; //0x00E8 class VanillaMoveInputHandler* VanillaMoveInputHandler; //0x00F0 char pad_00F8[8]; //0x00F8 class MinecraftKeyboardManager* MinecraftKeyboardManager; //0x0100 class HitDetectSystem* HitDetectSystem; //0x0108 class UserAuthentication* UserAuthentication; //0x0110 class SceneFactory* SceneFactory; //0x0118 char pad_0120[32]; //0x0120 class LocalPlayer* LocalPlayer; //0x0140 char pad_0148[256]; //0x0148 virtual void destructorClientInstance(); virtual void onInitMinecraftGame(); virtual void Function2(); virtual void Function3(); virtual void Function4(); virtual void Function5(); virtual void Function6(); virtual void Function7(); virtual void Function8(); virtual void Function9(); virtual void Function10(); virtual long Function11(); virtual void Function12(); virtual void Function13(); virtual void Function14(); virtual void Function15(); virtual void Function16(); virtual void Function17(); virtual void Function18(); virtual void Function19(); virtual void Function20(); virtual class BlockSource* getBlockSource(); virtual class LocalPlayer* getLocalPlayerButTheGayOffset(); virtual class LocalPlayer* getLocalPlayerAgain(); virtual class LocalPlayer* getLocalPlayerButPleaseDontCrash(); virtual void setOldLocalPlayer(void* thePlayer); virtual void getLocalPlayer(); virtual void setLocalPlayer(void* player); virtual void Function28(); virtual void Function29(); virtual void Function30(); virtual ulong Function31(); virtual ulong Function32(); virtual ulong Function33(); virtual ulong Function34(); virtual ulong Function35(); virtual ulong Function36(); virtual ulong Function37(); virtual ulong Function38(); virtual ulong Function39(); virtual ulong Function40(); virtual ulong Function41(); virtual ulong Function42(); virtual ulong Function43(); virtual ulong Function44(); virtual class LocalPlayer** getLocalPlayerPointer(); virtual ulong Function46(); virtual bool Function47(); //Dunno virtual ulong Function48(); virtual ulong Function49(); virtual ulong Function50(); virtual ulong Function51(); virtual ulong Function52(); virtual ulong Function53(); virtual ulong Function54(); virtual ulong Function55(); virtual ulong Function56(); virtual ulong Function57(); virtual ulong Function58(); virtual ulong Function59(); virtual ulong Function60(); virtual ulong Function61(); virtual ulong Function62(); virtual ulong Function63(); virtual ulong Function64(); virtual ulong Function65(); virtual ulong Function66(); virtual ulong Function67(); virtual ulong Function68(); virtual ulong Function69(); virtual ulong Function70(); virtual ulong Function71(); virtual ulong Function72(); virtual ulong Function73(); virtual ulong Function74(); virtual ulong Function75(); virtual ulong Function76(); virtual ulong Function77(); virtual ulong Function78(); virtual ulong Function79(); virtual ulong Function80(); virtual ulong Function81(); virtual ulong Function82(); virtual ulong Function83(); virtual ulong Function84(); virtual ulong Function85(); virtual ulong Function86(); virtual ulong Function87(); virtual ulong Function88(); virtual ulong Function89(); virtual ulong Function90(); virtual ulong Function91(); virtual ulong Function92(); virtual ulong Function93(); virtual ulong Function94(); virtual ulong Function95(); virtual ulong Function96(); virtual ulong Function97(); virtual ulong Function98(); virtual ulong Function99(); virtual ulong Function100(); virtual ulong Function101(); virtual ulong Function102(); virtual ulong Function103(); virtual ulong Function104(); virtual ulong Function105(); virtual ulong Function106(); virtual ulong Function107(); virtual ulong Function108(); virtual ulong Function109(); virtual ulong Function110(); virtual ulong Function111(); virtual ulong Function112(); virtual ulong Function113(); virtual ulong Function114(); virtual ulong Function115(); virtual ulong Function116(); virtual ulong Function117(); virtual ulong Function118(); virtual ulong Function119(); virtual ulong Function120(); virtual ulong Function121(); virtual ulong Function122(); virtual ulong Function123(); virtual ulong Function124(); virtual ulong Function125(); virtual ulong Function126(); virtual ulong Function127(); virtual ulong Function128(); virtual ulong Function129(); virtual ulong Function130(); virtual ulong Function131(); virtual ulong Function132(); virtual ulong Function133(); virtual ulong Function134(); virtual ulong Function135(); virtual ulong Function136(); virtual ulong Function137(); virtual ulong Function138(); virtual ulong Function139(); virtual ulong Function140(); virtual ulong Function141(); virtual ulong Function142(); virtual ulong Function143(); virtual ulong Function144(); virtual ulong Function145(); virtual ulong Function146(); virtual ulong Function147(); virtual ulong Function148(); virtual ulong Function149(); virtual ulong Function150(); virtual ulong Function151(); virtual ulong Function152(); virtual ulong Function153(); virtual ulong Function154(); virtual ulong Function155(); virtual ulong Function156(); virtual ulong Function157(); virtual ulong Function158(); virtual ulong Function159(); virtual ulong Function160(); virtual ulong Function161(); virtual ulong Function162(); virtual ulong Function163(); virtual ulong Function164(); virtual ulong Function165(); virtual ulong Function166(); virtual ulong Function167(); virtual ulong Function168(); virtual ulong Function169(); virtual ulong Function170(); virtual ulong Function171(); virtual ulong Function172(); virtual ulong Function173(); virtual ulong Function174(); virtual void* Function175(); virtual void* Function176(); virtual void* Function177(); virtual void* Function178(); virtual void* Function179(); virtual void* Function180(); virtual void* Function181(); virtual void* Function182(); virtual void* Function183(); virtual void* Function184(); virtual void* Function185(); virtual void* Function186(); virtual void* Function187(); virtual void* Function188(); virtual void* Function189(); virtual void* Function190(); virtual void* Function191(); virtual GuiData* getGuiData(); virtual void* Function193(); virtual void* Function194(); virtual void* Function195(); virtual void* Function196(); virtual void* Function197(); virtual void* Function198(); virtual void* Function199(); virtual void* Function200(); virtual void* Function201(); virtual void* Function202(); virtual void Function203(); virtual void Function204(); virtual void Function205(); virtual void Function206(); virtual void Function207(); virtual void Function208(); virtual void Function209(); virtual void Function210(); virtual void Function211(); virtual void Function212(); virtual void Function213(); virtual void Function214(); virtual void Function215(); virtual void Function216(); virtual void Function217(); virtual void Function218(); virtual void Function219(); virtual void Function220(); virtual void Function221(); virtual void Function222(); virtual void Function223(); virtual void Function224(); virtual void Function225(); virtual void Function226(); virtual void Function227(); virtual void Function228(); virtual void Function229(); virtual void Function230(); virtual void Function231(); virtual void Function232(); virtual void Function233(); virtual void Function234(); virtual void Function235(); virtual void Function236(); virtual void Function237(); virtual void Function238(); virtual void Function239(); virtual void Function240(); virtual void Function241(); virtual void Function242(); virtual void Function243(); virtual void Function244(); virtual void Function245(); virtual void Function246(); virtual void Function247(); virtual void Function248(); virtual void Function249(); virtual void Function250(); virtual void Function251(); virtual void Function252(); virtual void Function253(); virtual void Function254(); virtual void Function255(); virtual void Function256(); virtual void Function257(); virtual void Function258(); virtual void Function259(); virtual void Function260(); virtual void Function261(); virtual void Function262(); virtual void Function263(); virtual void Function264(); virtual void Function265(); }; //Size: 0x01F0 class SimpleContainer { public: char pad_0008[264]; //0x0008 virtual void Function0(); virtual void Function1(); virtual void Function2(); virtual void Function3(); virtual void getItem(int); virtual bool hasRoomForItem(struct ItemStack); virtual void addItem(struct ItemStack); virtual void addItemToFirstEmptySlot(struct ItemStack); virtual void setItem(int, struct ItemStack); virtual void removeItem(int, int); virtual void removeAllItems(void); virtual void Function11(); virtual __int64 getContainerSize(void); virtual __int64 getMaxStackSize(void); virtual void Function14(); virtual void Function15(); virtual void Function16(); virtual void Function17(); virtual void Function18(); virtual void Function19(); virtual int findFirstSlotForItem(struct ItemStack); virtual void Function21(); virtual void Function22(); virtual void Function23(); virtual void Function24(); virtual void setCustomName(TextHolder); virtual bool hasCustomName(void); virtual void Function27(); virtual void Function28(); virtual void createTransactionContext(std::function<void(struct Container&, int, ItemStack const&, ItemStack const&)>, std::function<void(void)>); virtual void triggerTransactionChange(int, struct ItemStack const&, struct ItemStack const&); }; //Size: 0x0110 class PlayerUIContainer { public: char pad_0000[32]; //0x0000 int8_t InvenOpen; //0x0020 char pad_0021[271]; //0x0021 }; //Size: 0x0130 class Actor { public: char pad_0000[216]; //0x0000 uint64_t ActorId; //0x00D8 char pad_00E0[152]; //0x00E0 bool OnGround; //0x0178 char pad_0179[399]; //0x0179 int MovedTick; //0x0308 char pad_030C[36]; //0x030C class MultiPlayerLevel* MultiPlayerLevel; //0x0330 char pad_0338[120]; //0x0338 char Type[8]; //0x03B0 char pad_03B8[160]; //0x03B8 Vector3 Pos; //0x0458 Vector3 Pos2; //0x0464 uint32_t N00000E3B; //0x0470 Vector2 Size; //0x0474 Vector3 Pos3; //0x047C char pad_0488[912]; //0x0488 virtual void Function0(); virtual void Function1(); virtual void Function2(); virtual void Function3(); virtual void Function4(); virtual void Function5(); virtual void Function6(); virtual void Function7(); virtual void Function8(); virtual void Function9(); virtual void setPos(Vector3* pos); virtual Vector3* getPos(); virtual void Function12(); virtual void Function13(); virtual void Function14(); virtual void getFiringPos(void); virtual void setRot(Vector2* vector); virtual void Function17(); virtual void Function18(); virtual void Function19(); virtual void Function20(); virtual void Function21(); virtual void Function22(); virtual void Function23(); virtual void Function24(); virtual void Function25(); virtual void Function26(); virtual void Function27(); virtual void Function28(); virtual void Function29(); virtual void Function30(); virtual void Function31(); virtual void chorusFruitTeleport(); virtual void Function33(); virtual void Function34(); virtual void Function35(); virtual void Function36(); virtual void Function37(); virtual void Function38(); virtual void Function39(); virtual void Function40(); virtual void Function41(); virtual void Function42(); virtual void Function43(); virtual void Function44(); virtual void Function45(); virtual void Function46(); virtual void Function47(); virtual bool isInWall(void); virtual bool isInvisible(void); virtual void Function50(); virtual void Function51(); virtual void setNameTagVisible(bool); virtual void getNameTag(); virtual void Function54(); virtual void Function55(); virtual void Function56(); virtual void Function57(); virtual void Function58(); virtual void Function59(); virtual void Function60(); virtual bool isInWater(void); virtual bool hasEnteredWater(void); virtual bool isImmersedInWater(void); virtual void Function64(); virtual bool isInLava(void); virtual bool isUnderLiquid(void); virtual bool isOverWater(void); virtual void Function68(); virtual void Function69(); virtual void Function70(); virtual void Function71(); virtual void Function72(); virtual void Function73(); virtual void Function74(); virtual void Function75(); virtual void Function76(); virtual void Function77(); virtual void Function78(); virtual void Function79(); virtual void Function80(); virtual void Function81(); virtual bool isImmobile(); virtual void isSilent(); virtual void Function84(); virtual void Function85(); virtual void Function86(); virtual void Function87(); virtual void isSneaking(); virtual void setSneaking(bool); virtual void Function90(); virtual void Function91(); virtual bool isAlive(void); virtual void Function93(); virtual void Function94(); virtual void Function95(); virtual void Function96(); virtual void Function97(); virtual void canAttack(class Actor*, bool); virtual void setTarget(class Actor*); virtual void Function100(); virtual void Function101(); virtual void attack(class Actor*); virtual void Function103(); virtual void Function104(); virtual void Function105(); virtual void Function106(); virtual void setSitting(bool); virtual void Function108(); virtual void Function109(); virtual void getInventorySize(void); virtual void getEquippedSlots(void); virtual void Function112(); virtual void setStanding(bool); virtual void Function114(); virtual void getEntityTypeId(bool); virtual bool isJumping(void); virtual void Function117(); virtual void Function118(); virtual void Function119(); virtual void Function120(); virtual void Function121(); virtual void Function122(); virtual void Function123(); virtual void Function124(); virtual void Function125(); virtual void Function126(); virtual void feed(int); virtual void Function128(); virtual void Function129(); virtual void Function130(); virtual void Function131(); virtual void Function132(); virtual void Function133(); virtual void Function134(); virtual void Function135(); virtual void Function136(); virtual void Function137(); virtual void Function138(); virtual void Function139(); virtual void Function140(); virtual void Function141(); virtual void Function142(); virtual void Function143(); virtual void Function144(); virtual void Function145(); virtual void getSelectedItem(void); virtual void setCarriedItem(class ItemStack const&); virtual void setOffHandSlot(class ItemStack const&); virtual void getEquippedTotem(void); virtual void consumeTotem(void); virtual void Function151(); virtual void Function152(); virtual void Function153(); virtual void Function154(); virtual void Function155(); virtual void Function156(); virtual void Function157(); virtual void Function158(); virtual void Function159(); virtual void Function160(); virtual void Function161(); virtual void Function162(); virtual void Function163(); virtual void Function164(); virtual void Function165(); virtual void changeDimension(int, bool); //Think int is supposed to be custom dimension id class virtual void Function167(); virtual void Function168(); virtual void Function169(); virtual void Function170(); virtual void Function171(); virtual void Function172(); virtual void Function173(); virtual void Function174(); virtual void Function175(); virtual void Function176(); virtual void Function177(); virtual void Function178(); virtual void Function179(); virtual void Function180(); virtual void Function181(); virtual void Function182(); virtual void Function183(); virtual void Function184(); virtual void Function185(); virtual void Function186(); virtual void Function187(); virtual void Function188(); virtual void Function189(); virtual void Function190(); virtual void Function191(); virtual void Function192(); virtual void Function193(); virtual void Function194(); virtual void Function195(); virtual void Function196(); virtual void Function197(); virtual void Function198(); virtual void swing(); virtual void Function200(); virtual void Function201(); virtual void Function202(); virtual void Function203(); virtual void Function204(); virtual void Function205(); virtual void Function206(); virtual void Function207(); virtual bool isCreative(void); virtual bool isAdventure(void); virtual void add(class ItemStack const&); virtual void drop(class ItemStack const&, bool); virtual void Function212(); virtual void Function213(); virtual void Function214(); virtual void setSize(float, float); virtual void Function216(); virtual void Function217(); virtual void Function218(); virtual void Function219(); virtual void Function220(); virtual void Function221(); virtual void Function222(); virtual void Function223(); virtual void Function224(); virtual void Function225(); virtual void Function226(); virtual void Function227(); virtual void Function228(); virtual void Function229(); virtual void Function230(); virtual void Function231(); virtual void outOfWorld(); virtual void Function233(); virtual void Function234(); virtual void Function235(); virtual void Function236(); virtual void Function237(); virtual void Function238(); virtual void Function239(); virtual void Function240(); }; //Size: 0x0800 class LocalPlayer { public: char pad_0008[208]; //0x0008 uint64_t ActorId; //0x00D8 char pad_00E0[32]; //0x00E0 Vector2 LookingVec; //0x0100 Vector2 LookingVec2; //0x0108 char pad_0110[144]; //0x0110 bool OnGround; //0x01A0 char pad_01A1[27]; //0x01A1 float FallingIncrementer; //0x01BC char pad_01C0[96]; //0x01C0 float stepHeight; //0x0220 char pad_0224[220]; //0x0224 int N000006AB; //0x0300 float Speed; //0x0304 int MoveTick; //0x0308 char pad_030C[20]; //0x030C class BlockSource* BlockSource; //0x0320 int N000006B0; //0x0328 char pad_032C[4]; //0x032C class MultiPlayerLevel* MultiPlayerLevel; //0x0330 char pad_0338[120]; //0x0338 char Type[8]; //0x03B0 char pad_03B8[160]; //0x03B8 Vector3 Pos; //0x0458 Vector3 Pos2; //0x0464 int N000006E7; //0x0470 float HitboxWidth; //0x0474 float HitboxHeight; //0x0478 Vector3 Pos3; //0x047C char pad_0488[8]; //0x0488 int N000006EA; //0x0490 Vector3 VelocityXYZ; //0x0494 char pad_04A0[216]; //0x04A0 class SimpleContainer SimpleContainer; //0x0578 class SimpleContainer SimpleContainer2; //0x0688 char pad_0798[308]; //0x0798 float airAcceleration; //0x08CC char pad_08D0[488]; //0x08D0 bool isFlying; //0x0AB8 char pad_0AB9[1287]; //0x0AB9 class CraftingContainerManagerModel* CraftingContainerManagerModel; //0x0FC0 char pad_0FC8[8]; //0x0FC8 class PlayerInventoryProxy* PlayerInventoryProxy; //0x0FD0 char pad_0FD8[456]; //0x0FD8 class ItemStack* ItemStacks; //0x11A0 char pad_11A8[272]; //0x11A8 uint64_t InventoryUiState; //0x12B8 char pad_12C0[488]; //0x12C0 class PlayerUIContainer PlayerUIContainer; //0x14A8 char pad_15D8[2196]; //0x15D8 int currentGamemode; //0x1E6C virtual void hasComponent(); virtual void reloadHardcoded(); virtual void reloadHardcodedClient(); virtual void initializeComponents(); virtual void reloadComponents(); virtual void _serverInitItemStackIds(); virtual void _doInitialMove(); virtual void scalar_deleting_destructor(); virtual void reset(); virtual void getOnDeathExperience(); virtual void getOwnerEntityType(); virtual void remove(); virtual void setPos(Vector3* pos); virtual Vector3* getPos(); virtual Vector3* getPosOld(); virtual void getPosExtrapolated(); virtual void getAttachPos(); virtual void getFiringPos(void); virtual void setRot(Vector2* vector); virtual void move(); virtual void getInterpolatedRidingPosition(); virtual void getInterpolatedBodyRot(); virtual void getInterpolatedHeadRot(); virtual void getInterpolatedBodyYaw(); virtual void getYawSpeedInDegreesPerSecond(); virtual void getInterpolatedWalkAnimSpeed(); virtual void getInterpolatedRidingOffset(); virtual void checkBlockCollisions(); virtual void checkBlockCollisions2(); virtual void isFireImmune(); virtual void Function28(); virtual void blockedByShield(); virtual void moveRelative(); virtual void teleportTo(); virtual void tryTeleportTo(); virtual void chorusFruitTeleport(); virtual void lerpTo(Vector3* start, Vector3* end, int fracOfJourney); //According to unity documentation LMAO virtual void lerpMotion(Vector3*); virtual void getAddPacket(); virtual void normalTick(); virtual void baseTick(); virtual void rideTick(); virtual void positionRider(); virtual void getRidingHeight(); virtual void startRiding(); virtual void addRider(); virtual void flagRiderToRemove(); virtual void getExitTip(); virtual void intersects(); virtual void isFree(); virtual void isFree2(); virtual bool isInWall(void); virtual bool isInvisible(void); virtual void canShowNameTag(); virtual void allowAscendingScaffolding(); virtual void setNameTagVisible(bool); virtual void getNameTag(); virtual void getNameTagAsHash(); virtual void getFormattedNameTag(); virtual void filterFormattedNameTag(); virtual void setNameTag(); virtual void allowAscendingScaffolding2(); virtual void setScoreTag(); virtual void getScoreTag(); virtual bool isInWater(void); virtual bool hasEnteredWater(void); virtual bool isImmersedInWater(void); virtual void Function64(); virtual bool isInLava(void); virtual bool isUnderLiquid(void); virtual bool isOverWater(void); virtual void makeStuckInBlock(); virtual void getCameraOffset(); virtual void getShadowHeightOffs(); virtual void getShadowRadius(); virtual void getHeadLookVector(); virtual void Function73(); virtual void canSee(); virtual void canSee2(); virtual void isSkyLit(); virtual void getBrightness(); virtual void Function78(); virtual void Function79(); virtual void onAboveBubbleColumn(); virtual void onInsideBubbleColumn(); virtual bool isImmobile(); virtual void isSilent(); virtual void isPickable(); virtual void allowAscendingScaffolding3(); virtual void isSleeping(); virtual void allowAscendingScaffolding4(); virtual bool isSneaking(); virtual void setSneaking(bool); virtual bool isBlocking(); virtual bool isDamageBlocked(); virtual bool isAlive(void); virtual bool isOnFire(); virtual bool isOnHotBlock(); virtual void allowAscendingScaffolding5(); virtual void canAttack(class Actor*, bool); virtual void setTarget(class Actor*); virtual void Function100(); virtual void Function101(); virtual void attack(class Actor*); virtual void performRangedAttack(); virtual void adjustDamageAmount(int amt); virtual void getEquipmentCount(); virtual void setOwner(); virtual void setSitting(bool); virtual void Function108(); virtual void Function109(); virtual void getInventorySize(void); virtual void getEquipSlots(void); virtual void getChestSlots(); virtual void setStanding(bool); virtual bool canPowerJump(); virtual void setCanPowerJump(bool); virtual bool isJumping(void); virtual void isEnchanted(); virtual void Function118(); virtual void Function119(); virtual void shouldRender(); virtual bool isInvulnerableTo(); virtual bool getBlockDamageCause(); virtual void actuallyHurt(int damage, Actor* dealer, bool unknown); virtual void animateHurt(); virtual void doFireHurt(int damage); virtual void onLightningHit(); virtual void onBounceStarted(); virtual void feed(int); virtual void handleEntityEvent(); virtual void getBaseAmbientValue(); virtual void getActorRendererId(); virtual void spawnAtLocation(); virtual void spawnAtLocation2(); virtual void spawnAtLocation3(); virtual void spawnAtLocation4(); virtual void spawnAtLocation5(); virtual void despawn(); virtual void killed(); virtual void awardKillScore(); virtual void setArmor(); virtual void getArmor(); virtual void getArmorMaterialTypeInSlot(); virtual void getArmorMaterialTextureTypeInSlot(); virtual void getArmorColorInSlot(); virtual void setEquippedSlot(); virtual void setEquippedSlot2(); virtual void getCarriedItem(void); virtual void setCarriedItem(class ItemStack const&); virtual void setOffHandSlot(class ItemStack const&); virtual void getEquippedTotem(void); virtual void consumeTotem(void); virtual void save(); virtual void saveWithoutId(); virtual void load(); virtual void loadLinks(); virtual void getEntityTypeId(); virtual void queryEntityRenderer(); virtual void getDamagingEntityUniqueID(); virtual void setOnFire(); virtual void getHandleWaterAABB(); virtual void handleInsidePortal(); virtual void getPortalCooldown(); virtual void getPortalWaitTime(); virtual void getDimensionId(); virtual void allowAscendingScaffolding6(); virtual void Function165(); virtual void changeDimension(int, bool); //Think int is supposed to be custom dimension id class virtual void getDamagingEntityUniqueID2(); virtual void checkFallDamage(); virtual void causeFallDamage(); virtual void handleFallDistanceOnServer(); virtual void playSynchronizedSound(); virtual void playSynchronizedSound2(); virtual void onSynchedDataUpdate(); virtual void canAddRider(); virtual void allowAscendingScaffolding7(); virtual void Function176(); virtual void inCaravan(); virtual void Function178(); virtual void tickLeash(); virtual void Function180(); virtual void allowAscendingScaffolding8(); virtual void stopRiding(); virtual void startSwimming(); virtual void stopSwimming(); virtual void buildDebugInfo(); virtual void getCommandPermissionLevel(); virtual void getMutableAttribute(); virtual void getAttribute(); virtual void getDeathTime(); virtual void heal(); virtual void isInvertedHealAndHarm(); virtual void canBeAffected(); virtual void canBeAffected2(); virtual void canBeAffectedByArrow(); virtual void onEffectAdded(); virtual void onEffectUpdated(); virtual void onEffectRemoved(); virtual void getAnimationComponent(); virtual void openContainerComponent(); virtual void swing(); virtual void useItem(); virtual void Function201(); virtual void Function202(); virtual void getDebugText(); virtual void getYHeadRot(); virtual void getRiderYRotation(); virtual void getYHeadRot2(); virtual void isWorldBuilder(); virtual bool isCreative(void); virtual bool isAdventure(void); virtual void add(class ItemStack const&); virtual void drop(class ItemStack const&, bool); virtual void getInteraction(); virtual void allowAscendingScaffolding10okwtfwhysomany(); virtual void Function214(); virtual void setSize(float, float); virtual void getLifeSpan(); virtual void onOrphan(); virtual void wobble(); virtual void wasHurt(); virtual void startSpinAttack(); virtual void stopSpinAttack(); virtual void setDamageNearbyMobs(); virtual void Function223(); virtual void reloadLootTable(); virtual void reloadLootTable2(); virtual void getWalkTargetValue(); virtual void kill(); virtual void die(); virtual void shouldTick(); virtual void updateEntitySpecificMolangVariables(); virtual void shouldTryMakeStepSound(); virtual void getNextStep(); virtual void allowAscendingScaffoldingHolyShitStop(); virtual void outOfWorld(); virtual void hurt(); virtual void markHurt(); virtual void readAdditionalSaveData(); virtual void addAdditionalSaveData(); virtual void playStepSound(); virtual void playFlySound(); virtual void Function241(); virtual void checkInsideBlocks(); virtual void pushOutOfBlocks(); virtual void updateWaterState(void); virtual void doWaterSplashEffect(void); virtual void spawnTrailBubbles(); virtual void updateInsideBlock(); virtual void getDefaultLootTable(); virtual void Function247(); virtual void removeRider(); virtual void onSizeUpdated(); virtual void Function250(); virtual void knockback(); virtual void resolveDeathLoot(); virtual void Function253(); virtual void setSleeping(); virtual bool isSprinting(void); virtual void setSprinting(bool); virtual void playAmbientSound(); virtual void getAmbientSound(); virtual void getAmbientSoundPostponeTicks(); virtual void getAmbientSoundPostponeTicksRange(); virtual void getItemInHandIcon(); virtual float getSpeed(void); virtual void setSpeed(float); virtual void getJumpPower(); virtual void hurtEffects(); virtual void getMeleeWeaponDamageBonus(); virtual void getMeleeKnockbackBonus(); virtual void travel(); virtual void applyFinalFriction(); virtual void updateWalkAnim(); virtual void aiStep(); virtual void pushActors(); virtual void lookAt(); virtual void isLookingAtAnEntity(); virtual void checkSpawnRules(); virtual void checkSpawnObstruction(); virtual void getAttackAnim(); virtual void getItemUseDuration(); virtual void getItemUseStartupProgress(); virtual void getItemUseIntervalProgress(); virtual void getItemuseIntervalAxis(); virtual void getTimeAlongSwing(); virtual void Function282(); virtual void getMaxHeadXRot(); virtual void getLastHurtByMob(); virtual void setLastHurtByMob(); virtual void getLastHurtByPlayer(); virtual void setLastHurtByPlayer(); virtual void getLastHurtMob(); virtual void setLastHurtMob(); virtual void Function290(); virtual void doHurtTarget(); virtual void Function292(); virtual void leaveCaravan(); virtual void joinCaravan(); virtual void hasCaravanTail(); virtual void getCaravanHead(); virtual void getArmorValue(); virtual void getArmorCoverPercentage(); virtual void hurtArmor(); virtual void setDamagedArmor(); virtual void Function301(); virtual void sendArmor(); virtual void containerChanged(); virtual void updateEquipment(); virtual void clearEquipment(); virtual void getAllArmor(); virtual void getAllArmorID(); virtual void getAllHand(); virtual void getAllEquipment(); virtual void getArmorTypeHash(); virtual void dropEquipment(); virtual void dropEquipment2(); virtual void Function313(); virtual void Function314(); virtual void getDamageAfterMagicAbsorb(); virtual void createAIGoals(); virtual void Function317(); virtual void setItemSlot(); virtual void setTransitioningSitting(); virtual void attackAnimation(); virtual void getCooldownTime(); virtual void getWalkTargetValue2(); virtual void allowAscendingScaffoldingSTOP_PLEASE(); virtual void Function324(); virtual void ascendLadder(); virtual void ascendScaffolding(); virtual void descendScaffolding(); virtual void initBodyControl(); virtual void jumpFromGround(void); virtual void Function327(); virtual void newServerAiStep(); virtual void Function329(); virtual void getDamageAfterEnchantReduction(); virtual void getDamageAfterArmorAbsorb(); virtual void dropBags(); virtual void dropContainer(); virtual void tickDeath(); virtual void endJump(void); virtual void updateGliding(void); virtual void Function339(); virtual void Function340(); virtual void Function341(); virtual void Function342(); virtual void Function343(); virtual void Function344(); virtual void Function345(); virtual void Function346(); virtual void Function347(); virtual void Function348(); virtual void Function349(); virtual void Function350(); virtual void setName(TextHolder* name); virtual void Function352(); virtual void Function353(); virtual void Function354(); virtual void respawn(void); virtual void Function356(); virtual void Function357(); virtual void Function358(); virtual void Function359(); virtual void Function360(); virtual void Function361(); virtual void Function362(); virtual void Function363(); virtual void Function364(); virtual void Function365(); virtual void Function366(); virtual void openContainer(Vector3i* pos); virtual void openFurnace(Vector3i* pos); virtual void openBlastFurnace(Vector3i* pos); virtual void openSmoker(Vector3i* pos); virtual void openEnchanter(Vector3i* pos); virtual void openAnvil(Vector3i* pos); virtual void openGrindstone(Vector3i* pos); virtual void openBrewingStand(Vector3i* pos); virtual void Function375(); virtual void openHopper(Vector3i* pos); virtual void openDispenser(Vector3i* pos); virtual void openBeacon(Vector3i* pos); virtual void Function379(); virtual void Function380(); virtual void openCommandBlock(Vector3i* pos); virtual void Function382(); virtual void Function383(); virtual void Function384(); virtual void Function385(); virtual void Function386(); virtual void Function387(); virtual void openInventory(); virtual void openStructureEditor(Vector3i* pos); virtual void openLabTable(Vector3i* pos); virtual void openElementConstructor(Vector3i* pos); virtual void openCompoundCreator(Vector3i* pos); virtual void openMaterialReader(Vector3i* pos); virtual void Function394(); virtual void Function395(); virtual void Function396(); virtual void Function397(); virtual void Function398(); virtual void displayLocalizableMessage(TextHolder* text); virtual void displayTextObjectMessage();//(TextObjectRoot* textObj, TextHolder* textHolder); virtual void Function401(); virtual void Function402(); virtual void Function403(); virtual void Function404(); virtual void Function405(); virtual void Function406(); virtual void Function407(); virtual void Function408(); virtual void Function409(); virtual void Function410(); virtual void Function411(); virtual void Function412(); virtual void Function413(); virtual void Function414(); virtual void Function415(); virtual void setPlayerGameType(int); virtual void crit(class Actor*); virtual void Function418(); virtual void Function419(); virtual void Function420(); virtual void Function421(); virtual void addLevels(int); virtual void Function423(); virtual void Function424(); virtual void Function425(); virtual void Function426(); virtual void Function427(); virtual void setFieldOfViewModifier(float); virtual void Function429(); virtual void Function430(); virtual void Function431(); virtual void Function432(); virtual void Function433(); virtual void Function434(); virtual void Function435(); virtual void Function436(); virtual void sendInventoryTransaction(void* transaction);//void is actually a InventoryTransaction, but i dont have that virtual void Function438(); virtual void Function439(); virtual void Function440(); virtual void Function441(); virtual void Function442(); virtual void Function443(); virtual void Function444(); virtual void onMovePlayerPacketNormal(Vector3* pos, Vector2* looking, float param_3); virtual void Function446(); virtual void Function447(); virtual void Function448(); virtual void Function449(); virtual void Function450(); virtual void Function451(); virtual void Function452(); virtual void Function453(); virtual void Function454(); virtual void Function455(); virtual void Function456(); virtual void Function457(); virtual void Function458(); virtual void Function459(); virtual void Function460(); virtual void Function461(); virtual void Function462(); virtual void Function463(); virtual void Function464(); virtual void Function465(); virtual void Function466(); virtual void Function467(); virtual void Function468(); virtual void Function469(); virtual void Function470(); virtual void Function471(); virtual void Function472(); virtual void Function473(); virtual void Function474(); virtual void Function475(); virtual void Function476(); virtual void Function477(); virtual void Function478(); virtual void Function479(); virtual void Function480(); virtual void Function481(); virtual void Function482(); virtual void Function483(); virtual void Function484(); virtual void Function485(); virtual void Function486(); virtual void Function487(); virtual void Function488(); virtual void Function489(); virtual void Function490(); virtual void Function491(); virtual void Function492(); virtual void Function493(); virtual void Function494(); virtual void Function495(); virtual void Function496(); virtual void Function497(); virtual void Function498(); virtual void Function499(); virtual void Function500(); virtual void Function501(); virtual void Function502(); virtual void Function503(); virtual void Function504(); virtual void Function505(); virtual void Function506(); virtual void Function507(); virtual void Function508(); virtual void Function509(); virtual void Function510(); virtual void Function511(); virtual void Function512(); virtual void Function513(); virtual void Function514(); virtual void Function515(); virtual void Function516(); virtual void Function517(); virtual void Function518(); virtual void Function519(); virtual void Function520(); virtual void Function521(); virtual void Function522(); virtual void Function523(); virtual void Function524(); virtual void Function525(); virtual void Function526(); virtual void Function527(); virtual void Function528(); virtual void Function529(); }; //Size: 0x0800 class MultiPlayerLevel { public: char pad_0000[64]; //0x0000 void* playerListBegin; //0x0040 void* playerListEnd; //0x0048 char pad_0050[8]; //0x0050 void* playerListBegin2; //0x0058 void* playerListEnd2; //0x0060 char pad_0068[344]; //0x0068 long EntityCount; //0x01C0 char pad_01C8[1816]; //0x01C8 int N000008BE; //0x08E0 int LookingBlockSide; //0x08E4 int LookingBlockX; //0x08E8 int LookingBlockY; //0x08EC int LookingBlockZ; //0x08F0 char pad_08F4[12]; //0x08F4 class Actor* LookingActor; //0x0900 char pad_0908[120]; //0x0908 }; //Size: 0x1010 class MinecraftGame { public: char pad_0008[48]; //0x0008 class MinecraftGraphics* MinecraftGraphics; //0x0038 class MinecraftGraphics* MinecraftGraphics2; //0x0040 class NullFrameBuilder* NullFrameBuilder; //0x0048 class GameArguments* GameArguments; //0x0050 class GameRenderer* GameRenderer; //0x0058 char pad_0060[56]; //0x0060 class TextureGroup* TextureGroup; //0x0098 class TextureGroup* TextureGroup2; //0x00A0 class FontRepository* FontRepository; //0x00A8 class FontRepository* FontRepository2; //0x00B0 class BitmapFont* leBetterFont; //0x00B8 class BitmapFont* theBetterFont; //0x00C0 char pad_00C8[40]; //0x00C8 class BitmapFont* anotherFont; //0x00F0 char pad_00F8[40]; //0x00F8 class BitmapFont* fourthFont; //0x0120 char pad_0128[40]; //0x0128 class BitmapFont* fifthFontIdk; //0x0150 char pad_0158[40]; //0x0158 class BitmapFont* sixthFontOk; //0x0180 char pad_0188[1712]; //0x0188 virtual void Function0(); virtual void Function1(); virtual void Function2(); virtual void Function3(); virtual void Function4(); virtual void Function5(); virtual void Function6(); virtual void Function7(); virtual void Function8(); virtual void Function9(); virtual void Function10(); virtual void Function11(); virtual void Function12(); virtual void Function13(); virtual void Function14(); virtual void Function15(); virtual void Function16(); virtual void Function17(); virtual void Function18(); virtual void Function19(); virtual void Function20(); virtual void Function21(); virtual void Function22(); virtual void Function23(); virtual void Function24(); virtual void Function25(); virtual void Function26(); virtual void Function27(); virtual void Function28(); virtual void Function29(); virtual void Function30(); virtual void Function31(); virtual void Function32(); virtual void Function33(); virtual void Function34(); virtual void Function35(); virtual void Function36(); virtual void Function37(); virtual void Function38(); virtual void Function39(); virtual void Function40(); virtual void Function41(); virtual int getScreenWidth(); virtual int getScreenHeight(); virtual void Function44(); virtual void Function45(); virtual void Function46(); virtual void Function47(); virtual void Function48(); virtual void Function49(); }; //Size: 0x0810 class MinecraftGraphics { public: char pad_0008[8]; //0x0008 class ShaderGroup* ShaderGroup; //0x0010 char pad_0018[2032]; //0x0018 virtual void Function0(); virtual void Function1(); virtual void Function2(); virtual void Function3(); virtual void Function4(); virtual void Function5(); virtual void Function6(); virtual void Function7(); virtual void Function8(); virtual void Function9(); }; //Size: 0x0808 class ShaderGroup { public: char pad_0000[8]; //0x0000 }; //Size: 0x0008 class NullFrameBuilder { public: char pad_0000[1024]; //0x0000 }; //Size: 0x0400 class GameArguments { public: char pad_0000[1032]; //0x0000 }; //Size: 0x0408 class GameRenderer { public: char pad_0000[2056]; //0x0000 }; //Size: 0x0808 class TextureGroup { public: char pad_0000[8]; //0x0000 }; //Size: 0x0008 class FontRepository { public: char pad_0008[256]; //0x0008 virtual void Function0(); virtual void Function1(); virtual void Function2(); virtual void Function3(); virtual void Function4(); virtual void Function5(); virtual void Function6(); virtual void Function7(); virtual void Function8(); virtual void Function9(); }; //Size: 0x0108 class MinecraftUIRenderContext { public: char pad_0008[56]; //0x0008 virtual ~MinecraftUIRenderContext(); virtual float getLineLength(BitmapFont* font, TextHolder* str, float textSize, bool unknown); virtual float getTextAlpha(); virtual void setTextAlpha(float alpha); virtual __int64 drawDebugText(const float* pos, TextHolder* text, float* color, float alpha, unsigned int textAlignment, const float* textMeasureData, const void* caretMeasureData); virtual __int64 drawText(BitmapFont* font, float* pos, TextHolder* text, Color* color, float alpha, long textAlignment, const float* textMeasureData, const uintptr_t* caretMeasureData); virtual void flushText(float timeSinceLastFlush); // time used for ticking the obfuscated text virtual __int64 drawImageNOTIMPLEMENTED(); // didnt bother putting in the parameters virtual __int64 drawNinesliceNOTIMPLEMENTED(); virtual __int64 flushImagesNOTIMPLEMENTED(); virtual __int64 beginSharedMeshBatchNOTIMPLEMENTED(); virtual __int64 endSharedMeshBatchNOTIMPLEMENTED(); virtual void drawRectangle(const float* pos, const float* color, float alpha, int lineWidth); // line width is guessed virtual void fillRectangle(const float* pos, const float* color, float alpha); }; //Size: 0x0040 class UserAuthentication { public: char pad_0000[72]; //0x0000 }; //Size: 0x0048 class BitmapFont { public: char pad_0000[72]; //0x0000 }; //Size: 0x0048 class LoopbackPacketSender { public: char pad_0008[8]; //0x0008 class NetworkHandler* NetworkHandler; //0x0010 char pad_0018[48]; //0x0018 virtual void Function0(); virtual void Function1(); virtual void sendToServer(void* packet); virtual void Function3(); virtual void Function4(); virtual void Function5(); virtual void Function6(); virtual void Function7(); virtual void Function8(); virtual void Function9(); }; //Size: 0x0048 class HolographicPlatform { public: char pad_0000[8]; //0x0000 }; //Size: 0x0008 class VoiceSystem { public: char pad_0000[8]; //0x0000 }; //Size: 0x0008 class VanillaMoveInputHandler { public: char pad_0000[8]; //0x0000 }; //Size: 0x0008 class MinecraftKeyboardManager { public: char pad_0000[8]; //0x0000 }; //Size: 0x0008 class HitDetectSystem { public: char pad_0000[8]; //0x0000 }; //Size: 0x0008 class PrivateKeyManager { public: char pad_0000[24]; //0x0000 }; //Size: 0x0018 class SceneFactory { public: char pad_0000[8]; //0x0000 }; //Size: 0x0008 class Minecraft { public: char pad_0000[192]; //0x0000 class NetworkHandler* NetworkHandler; //0x00C0 class LoopbackPacketSender* LoopbackPacketSender; //0x00C8 char pad_00D0[56]; //0x00D0 }; //Size: 0x0108 class N00000D28 { public: char pad_0000[8]; //0x0000 }; //Size: 0x0008 class N00000D51 { public: char pad_0000[8]; //0x0000 }; //Size: 0x0008 class GameMode { public: class ServerPlayer* Player; //0x0008 char pad_0010[48]; //0x0010 virtual void Destructor(); virtual void startDestroyBlock(Vector3i*, UCHAR, bool); virtual void destroyBlock(Vector3i*, UCHAR); virtual void continueDestroyBlock(Vector3i*, UCHAR, bool); virtual void stopDestroyBlock(Vector3i*); virtual void startBuildBlock(Vector3i*, UCHAR); virtual void buildBlock(Vector3i*, UCHAR); virtual void continueBuildBlock(Vector3i*, UCHAR); virtual void stopBuildBlock(void); virtual void tick(void); virtual float getPickRange(); virtual void useItem(); virtual void useItemOn(); virtual void interact(); virtual void attack(Actor*); virtual void releaseUsingItem(); }; //Size: 0x0040 class PlayerInventoryProxy { public: char pad_0000[16]; //0x0000 long CurrentSlot; //0x0010 char pad_0018[244]; //0x0018 }; //Size: 0x010C class ItemStack { public: char pad_0000[24]; //0x0000 class N000013CA* N00001345; //0x0018 char pad_0020[104]; //0x0020 }; //Size: 0x0088 class NetworkHandler { public: char pad_0000[24]; //0x0000 class RakNetInstance* RakNetInstance; //0x0018 class LocalConnector* LocalConnector; //0x0020 class RakNetServerLocator* RakNetServerLocator; //0x0028 char pad_0030[448]; //0x0030 }; //Size: 0x01F0 class RakNetServerLocator { public: char pad_0000[8]; //0x0000 }; //Size: 0x0008 class RakNetInstance { public: char pad_0000[864]; //0x0000 TextHolder ServerIp; //0x0360 char pad_0368[8]; //0x0368 }; //Size: 0x0370 class LocalConnector { public: char pad_0000[8]; //0x0000 }; //Size: 0x0008 class MovePlayerPacket { public: ulong VTable; //0x0000 ulong dunno; char pad_0008[16]; //0x0008 ulong dunno2; uint64_t ActorId; //0x0028 Vector3 Pos; //0x0030 Vector2 LookingVec; //0x003C char pad_0044[4]; //0x0044 int8_t N00001248; //0x0048 int8_t onGround; //0x0049 char pad_004A[54]; //0x004A class Actor* Player; //0x0080 char pad_0088[136]; //0x0088 MovePlayerPacket(Actor* player, Vector3* pos, Vector2* looking, int8_t onGround) { VTable = (ulong)GetModuleHandle(NULL) + 0x2B04E68; dunno = 0x0200000001000000; dunno2 = 0x8F41000000000000; this->ActorId = player->ActorId; this->Pos = *pos; this->LookingVec = *looking; this->onGround = onGround; this->Player = player; } }; //Size: 0x0110 class PlayerAuthInputPacket { public: ulong VTable; //0x0000 char pad_0008[32]; //0x0008 Vector2 LookingVec; //0x0028 Vector3 Pos; //0x0030 float HeadYawOrSomeShit; //0x003C char pad_0040[36]; //0x0040 PlayerAuthInputPacket(Vector2 lookingVec, Vector3 position) { VTable = (ulong)GetModuleHandle(NULL) + 0x2B04FF0; LookingVec = lookingVec; Pos = position; } }; //Size: 0x0064 class LoginPacket { public: char pad_0000[88]; //0x0000 TextHolder Language; //0x0058 char pad_0060[32]; //0x0060 }; //Size: 0x0080 class ClientToServerHandshakePacket { public: char pad_0000[192]; //0x0000 }; //Size: 0x00C0
[ "spot.meow.meow@gmail.com" ]
spot.meow.meow@gmail.com
de9c08663f7d5f61542d3c66a8977a9296c259fa
d49553002c4e981a818adc060464f3aa01cf43e8
/branch/0.3.2/pykd/pycpucontext.h
ae17cc56105f0d79556e91fc1b098f95aada3eea
[]
no_license
QuincyWork/Python-extension-for-WinDbg
1e483c1d03d3cb52bdd87ef40d66edfa9d63a937
81d8d991f839a6d9639cda17c349335e81d4ad45
refs/heads/master
2021-05-15T09:45:36.627637
2017-10-24T09:54:51
2017-10-24T09:54:51
108,106,581
2
1
null
null
null
null
UTF-8
C++
false
false
6,370
h
#pragma once #include <boost/python/tuple.hpp> namespace python = boost::python; #include "kdlib/dbgengine.h" #include "kdlib/cpucontext.h" #include "kdlib/stack.h" #include "dbgexcept.h" #include "pythreadstate.h" namespace pykd { /////////////////////////////////////////////////////////////////////////////// class StackFrameAdapter { public: static kdlib::MEMOFFSET_64 getIP( kdlib::StackFramePtr& frame ) { AutoRestorePyState pystate; return frame->getIP(); } static kdlib::MEMOFFSET_64 getRET( kdlib::StackFramePtr& frame ) { AutoRestorePyState pystate; return frame->getRET(); } static kdlib::MEMOFFSET_64 getFP( kdlib::StackFramePtr& frame ) { AutoRestorePyState pystate; return frame->getFP(); } static kdlib::MEMOFFSET_64 getSP( kdlib::StackFramePtr& frame ) { AutoRestorePyState pystate; return frame->getSP(); } static std::wstring print( kdlib::StackFramePtr& frame ); static python::list getParamsList( kdlib::StackFramePtr& frame); static python::dict getParamsDict( kdlib::StackFramePtr& frame); static kdlib::TypedVarPtr getParam( kdlib::StackFramePtr& frame, const std::wstring &paramName ) { AutoRestorePyState pystate; return frame->getTypedParam(paramName); } static python::list getLocalsList(kdlib::StackFramePtr& frame); static python::dict getLocalsDict(kdlib::StackFramePtr& frame); static kdlib::TypedVarPtr getLocal( kdlib::StackFramePtr& frame, const std::wstring &paramName ) { AutoRestorePyState pystate; if (frame->findStaticVar(paramName)) return frame->getStaticVar(paramName); return frame->getLocalVar(paramName); } }; ///////////////////////////////////////////////////////////////////////////////// python::object getRegisterByName( const std::wstring &name ); python::object getRegisterByIndex( unsigned long index ); std::wstring getRegisterName(unsigned long index); void setRegisterByName(const std::wstring& name, const python::object& value); void setRegisterByIndex(unsigned long index, const python::object& value); inline unsigned long getNumberRegisters() { AutoRestorePyState pystate; return kdlib::getRegisterNumber(); } inline kdlib::MEMOFFSET_64 getIP() { AutoRestorePyState pystate; return kdlib::getInstructionOffset(); } inline kdlib::MEMOFFSET_64 getSP() { AutoRestorePyState pystate; return kdlib::getStackOffset(); } inline kdlib::MEMOFFSET_64 getFP() { AutoRestorePyState pystate; return kdlib::getFrameOffset(); } inline void setIP(kdlib::MEMOFFSET_64 offset) { AutoRestorePyState pystate; kdlib::setInstructionOffset(offset); } inline void setSP(kdlib::MEMOFFSET_64 offset) { AutoRestorePyState pystate; return kdlib::setStackOffset(offset); } inline void setFP(kdlib::MEMOFFSET_64 offset) { AutoRestorePyState pystate; return kdlib::setFrameOffset(offset); } inline unsigned long long loadMSR( unsigned long msrIndex ) { AutoRestorePyState pystate; return kdlib::loadMSR(msrIndex); } inline void setMSR( unsigned long msrIndex, unsigned long long value ) { AutoRestorePyState pystate; return kdlib::setMSR( msrIndex, value ); } inline kdlib::CPUType getProcessorMode() { AutoRestorePyState pystate; return kdlib::getCPUMode(); } inline kdlib::CPUType getProcessorType() { AutoRestorePyState pystate; return kdlib::getCPUType(); } inline void setProcessorMode( kdlib::CPUType mode ) { AutoRestorePyState pystate; kdlib::setCPUMode(mode); } inline void switchProcessorMode() { AutoRestorePyState pystate; kdlib::switchCPUMode(); } python::list getCurrentStack(); inline kdlib::StackFramePtr getCurrentFrame() { AutoRestorePyState pystate; return kdlib::getCurrentStackFrame(); } inline unsigned long getCurrentFrameNumber() { AutoRestorePyState pystate; return kdlib::getCurrentStackFrameNumber(); } inline void setCurrentFrame( kdlib::StackFramePtr& stackFrame) { AutoRestorePyState pystate; kdlib::setCurrentStackFrame(stackFrame); } inline void setCurrentFrameByIndex( unsigned long frameIndex) { AutoRestorePyState pystate; kdlib::setCurrentStackFrameByIndex(frameIndex); } inline void resetCurrentFrame() { AutoRestorePyState pystate; kdlib::resetCurrentStackFrame(); } inline python::list getParams() { return StackFrameAdapter::getParamsList( getCurrentFrame() ); } inline kdlib::TypedVarPtr getParam( const std::wstring &name ) { return StackFrameAdapter::getParam( getCurrentFrame(), name ); } inline kdlib::TypedVarPtr getLocal( const std::wstring &name ) { return StackFrameAdapter::getLocal( getCurrentFrame(), name ); } inline python::list getLocals() { return StackFrameAdapter::getLocalsList( getCurrentFrame() ); } inline kdlib::MEMOFFSET_64 stackAlloc(unsigned short byteCount) { AutoRestorePyState pystate; return kdlib::stackAlloc(byteCount); } inline kdlib::MEMOFFSET_64 stackFree(unsigned short byteCount) { AutoRestorePyState pystate; return kdlib::stackFree(byteCount); } inline void pushStack( const kdlib::NumVariant& value ) { AutoRestorePyState pystate; return kdlib::pushInStack(value); } inline kdlib::NumVariant popStack() { AutoRestorePyState pystate; kdlib::NumVariant value; kdlib::popFromStack(value); return value; } class CPUContextAdapter { public: CPUContextAdapter() {} python::object getRegisterByName(const std::wstring &name) { return pykd::getRegisterByName(name); } python::tuple getRegisterByIndex(unsigned long index); unsigned long getRegisterNumber() { return pykd::getNumberRegisters(); } kdlib::CPUType getCPUType() { return pykd::getProcessorType(); } kdlib::CPUType getCPUMode() { return pykd::getProcessorMode(); } kdlib::MEMOFFSET_64 getIP() { return pykd::getIP(); } kdlib::MEMOFFSET_64 getSP() { return pykd::getSP(); } kdlib::MEMOFFSET_64 getFP() { return pykd::getFP(); } }; /////////////////////////////////////////////////////////////////////////////// } //end namespace pykd
[ "hu.quincy@outlook.com" ]
hu.quincy@outlook.com
1506763bd6f0b6d82e99e0661a9525d18d9b2fb1
49022e7430be70ab6880c28b759f9c68e1e2edf8
/LD46/Game/BasicElems.cpp
64d1d8737c15a0a207b3af42620678ce18def6c6
[]
no_license
f3db43f4g443/SimpleSample11
61a634afa664676f94bf51f58c38640ee7ee1b64
e6aa0ceb34843defd0433b09f42f2de036d443d7
refs/heads/master
2022-03-10T18:21:42.698566
2022-02-18T06:42:18
2022-02-18T06:42:18
68,726,252
0
1
null
2021-04-15T18:51:36
2016-09-20T15:30:41
C++
UTF-8
C++
false
false
99,507
cpp
#include "stdafx.h" #include "BasicElems.h" #include "Stage.h" #include "MyLevel.h" #include "Render/Image2D.h" #include "MyGame.h" #include "Common/Rand.h" #include "GlobalCfg.h" #include "CommonUtils.h" #include "Entities/UtilEntities.h" #include <algorithm> void CLevelSpawnHelper::OnPreview() { auto pPawn = SafeCast<CPawn>( GetRenderObject() ); if( pPawn ) { pPawn->m_pos = pPawn->m_moveTo = TVector2<int32>( 0, 0 ); pPawn->m_nCurDir = pPawn->m_nInitDir; pPawn->OnPreview(); } } int32 SInputTableItem::SInputItr::Next() { sz += l; for( bool b = true; b; ) { while( *sz == '|' || *sz == '?' ) sz++; b = false; for( int i = 0; sz[i] != '|' && sz[i]; i++ ) { if( sz[i] == '?' ) { szCondition = sz; lCondition = i; sz = sz + lCondition; b = true; break; } } } for( l = 0; sz[l] != '|' && sz[l]; l++ ); return l; } void CPawn::OnPreview() { if( m_arrSubStates.Size() ) { m_nCurDir = m_nInitDir; int32 nInitState; if( m_bUseInitState ) { nInitState = m_nInitState; if( nInitState < 0 || nInitState >= m_arrSubStates.Size() || m_arrSubStates[nInitState].nForm != m_nCurForm ) nInitState = GetDefaultState(); } else nInitState = GetDefaultState(); ChangeState( nInitState, true ); m_bTracerEffectDisabled = true; } Update0(); for( auto pChild = Get_TransformChild(); pChild; pChild = pChild->NextTransformChild() ) { auto pMount = SafeCast<CPlayerMount>( pChild ); if( pMount ) pMount->OnPreview(); } auto pTracerEffect = SafeCast<CTracerEffect>( GetRenderObject() ); if( pTracerEffect ) pTracerEffect->OnPreview(); if( m_pAI ) m_pAI->OnPreview(); } void CPawn::LoadData( IBufReader& buf ) { int32 nVersionData = 0; buf.Read( nVersionData ); buf.Read( m_pos ); buf.Read( m_nCurDir ); buf.Read( m_nHp ); buf.Read( m_bUseInitState ); buf.Read( m_bUseDefaultState ); buf.Read( m_nInitState ); buf.Read( m_nDefaultState ); } void CPawn::SaveData( CBufFile& buf ) { int32 nVersionData = 0; buf.Write( nVersionData ); buf.Write( m_pos ); buf.Write( m_nCurDir ); buf.Write( m_nHp ); buf.Write( m_bUseInitState ); buf.Write( m_bUseDefaultState ); buf.Write( m_nInitState ); buf.Write( m_nDefaultState ); } void CPawn::Init() { if( m_pHpBar && GetLevel() && GetLevel()->IsSnapShot() ) { m_pHpBar->RemoveThis(); m_pHpBar = NULL; } if( m_pHpBar && m_hpBarOrigRect.width == 0 ) m_hpBarOrigRect = static_cast<CImage2D*>( m_pHpBar.GetPtr() )->GetElem().rect; if( m_pAI ) m_pAI->PreInit(); InitState(); if( m_pUsage ) m_pUsage->Init(); for( auto pChild = Get_ChildEntity(); pChild; pChild = pChild->NextChildEntity() ) { auto pMount = SafeCast<CPlayerMount>( pChild ); if( pMount ) pMount->Init(); } } void CPawn::Update() { bVisible = !m_bForceHide; if( !m_bMountHide ) { if( m_bCurStateDirty ) { m_bCurStateDirty = false; memset( m_nCurStateSpecialState, 0, sizeof( m_nCurStateSpecialState ) ); } if( m_arrSubStates.Size() ) { while( 1 ) { bool bInterrupted = IsCurStateInterrupted(); int8 nBreakFlag = 0; bool bCanCheckAction = true; bool bJumpTo = false; if( m_pAI ) bCanCheckAction = m_pAI->CanCheckAction( GetLevel()->IsScenario() ); else bCanCheckAction = !GetLevel()->IsScenario(); auto& curState = GetCurState(); if( !bInterrupted ) { for( int i = 0; i < curState.arrEvts.Size(); i++ ) { auto& evt = curState.arrEvts[i]; if( evt.nTick != m_nCurStateTick ) continue; if( evt.eType == ePawnStateEventType_CheckAction ) { if( bCanCheckAction ) m_nCurStateCheckAction = evt.nParams[0]; } else if( evt.eType == ePawnStateEventType_MoveBegin ) { bool bSuccess = GetLevel()->PawnMoveTo( this, TVector2<int32>( evt.nParams[0] * ( m_nCurDir ? -1 : 1 ), evt.nParams[1] ), evt.nParams[2], evt.nParams[3] >> 1 ); if( !bSuccess ) { bInterrupted = true; nBreakFlag = evt.nParams[3] & 1; break; } } else if( evt.eType == ePawnStateEventType_MoveEnd ) { if( evt.nParams[0] == 0 ) GetLevel()->PawnMoveEnd( this ); else if( evt.nParams[0] == 1 ) GetLevel()->PawnMoveBreak( this, true ); } else if( evt.eType == ePawnStateEventType_Hit ) { if( !HandleHit( evt ) ) { bInterrupted = true; break; } } else if( evt.eType == ePawnStateEventType_Death ) { GetLevel()->PawnDeath( this ); return; } else if( evt.eType == ePawnStateEventType_Transform ) { bool bSuccess = GetLevel()->PawnTransform( this, evt.nParams[0], TVector2<int32>( evt.nParams[1], evt.nParams[2] ) ); if( !bSuccess ) { bInterrupted = true; nBreakFlag = evt.nParams[3]; break; } } else if( evt.eType == ePawnStateEventType_PickUp ) { if( SafeCast<CPlayer>( this )->TryPickUp( evt.nParams[0] ) == -1 ) { bJumpTo = true; break; } } else if( evt.eType == ePawnStateEventType_Drop ) SafeCast<CPlayer>( this )->TryDrop( evt.nParams[0], evt.nParams[1] ); else if( evt.eType == ePawnStateEventType_Cost ) { if( !StateCost( evt.nParams[1], evt.nParams[0] ) ) { bInterrupted = true; break; } } else if( evt.eType == ePawnStateEventType_UnMount ) { SafeCast<CPlayer>( this )->UnMount( evt.strParam, evt.nParams[0], evt.nParams[1] ); if( !evt.nParams[2] ) { bInterrupted = true; nBreakFlag = 1; break; } } else if( evt.eType == ePawnStateEventType_SetZ ) m_nRenderOrder = evt.nParams[0]; else if( evt.eType == ePawnStateEventType_Sound ) { PlaySoundEffect( evt.strParam ); if( evt.nParams[0] ) { auto d = TVector2<int32>( evt.nParams[1], evt.nParams[2] ); if( m_nCurDir ) d.x = 2 - m_nWidth - d.x; GetLevel()->Alert( this, m_moveTo + d ); } } else if( evt.eType == ePawnStateEventType_JumpTo ) { if( TransitTo( evt.strParam, evt.nParams[0], ePawnStateTransitReason_JumpTo ) ) { bJumpTo = true; break; } } else if( evt.eType == ePawnStateEventType_SpecialState ) { ASSERT( evt.nParams[0] < ELEM_COUNT( m_nCurStateSpecialState ) ); m_nCurStateSpecialState[evt.nParams[0]] += evt.nParams[1]; } else if( evt.eType == ePawnStateEventType_Interaction ) { if( !IsActionPreview() ) { CPawn* pTarget = this; auto pPlayer = SafeCast<CPlayer>( this ); if( pPlayer && pPlayer->GetCurMountingPawn() ) pTarget = pPlayer->GetCurMountingPawn(); GetStage()->GetMasterLevel()->ShowInteractionUI( pTarget, evt.strParam ); } } else if( evt.eType == ePawnStateEventType_Script ) { if( !IsActionPreview() ) { CLuaMgr::Inst().Load( evt.strParam ); CLuaMgr::Inst().PushLua( this ); CLuaMgr::Inst().Call( 1, 1 ); if( CLuaMgr::Inst().PopLuaValue<bool>() ) { bInterrupted = true; break; } } } } } if( bJumpTo ) { if( m_bCurStateDirty ) { m_bCurStateDirty = false; memset( m_nCurStateSpecialState, 0, sizeof( m_nCurStateSpecialState ) ); } continue; } if( bInterrupted ) CheckStateTransits( GetDefaultState(), nBreakFlag ); else if( m_nCurStateCheckAction >= 0 ) { if( GetLevel()->GetPlayer()->GetControllingPawn() == this ) { if( !GetLevel()->GetPlayer()->ControllingPawnCheckAction( m_nCurStateCheckAction ) ) break; } else { if( !CheckAction( m_nCurStateCheckAction ) ) break; } } else break; } } } if( m_pAI ) m_pAI->OnUpdate(); Update0(); if( m_pUsage ) m_pUsage->Update(); } void CPawn::Update1() { if( !m_arrSubStates.Size() || m_bMountHide ) return; m_nCurStateTick++; auto& curState = GetCurState(); bool bFinished = false; if( curState.nTotalTicks ) { if( m_nCurStateTick >= curState.nTotalTicks ) bFinished = true; } else if( m_nCurStateTick >= curState.nImgTexCount * curState.nTicksPerFrame ) { m_bCurStateDirty = true; m_nCurStateTick = 0; } int32 nNewState = -1; bool bCanFinish = CheckCanFinish(); if( bFinished && bCanFinish ) nNewState = GetDefaultState(); CheckStateTransits1( nNewState, ( bFinished || !curState.nTotalTicks ) && bCanFinish ); if( m_pAI ) m_pAI->OnUpdate1(); m_bDamaged = false; } bool CPawn::IsActionPreview() { return GetLevel()->IsActionPreview(); } void CPawn::OnRemovedFromLevel() { if( m_pAI ) m_pAI->OnRemovedFromLevel(); } void CPawn::OnLevelEnd() { if( m_pAI ) m_pAI->OnLevelEnd(); } void CPawn::OnLevelSave() { if( m_pSpawnHelper ) { if( m_pSpawnHelper->m_nDataType >= 2 ) { auto& mapDeadPawn = GetStage()->GetMasterLevel()->GetCurLevelData().mapDataDeadPawn; auto& data = mapDeadPawn[m_pSpawnHelper->GetName().c_str()]; data.p = GetPos(); data.p1 = GetMoveTo(); data.nDir = m_nCurDir; data.nState = m_nCurState; data.nStateTick = m_nCurState == m_pSpawnHelper->m_nDeathState ? 0 : m_nCurStateTick; data.nSpawnIndex = m_pSpawnHelper->m_nSpawnIndex; data.bIsAlive = !IsKilled(); } } } bool CPawn::OnPlayerTryToLeave() { if( m_pAI ) return m_pAI->OnPlayerTryToLeave(); return true; } void CPawn::UpdateAnimOnly() { if( m_arrSubStates.Size() ) { auto& curState = GetCurState(); for( int i = 0; i < curState.arrEvts.Size(); i++ ) { auto& evt = curState.arrEvts[i]; if( evt.nTick != m_nCurStateTick ) continue; if( evt.eType == ePawnStateEventType_Sound ) PlaySoundEffect( evt.strParam ); } Update0(); bool bFinished = curState.nTotalTicks && m_nCurStateTick >= curState.nTotalTicks; if( !bFinished ) { m_nCurStateTick++; if( m_nCurStateTick == curState.nTotalTicks ) CheckStateTransits1( -1, true ); } } } int32 CPawn::Damage( int32 nDamage, int8 nDamageType, TVector2<int32> damageOfs, CPawn* pSource ) { if( m_bIsEnemy ) GetLevel()->Alert1(); if( m_pAI ) { if( m_pAI->Damage( nDamage, nDamageType, damageOfs, pSource ) ) return nDamage; } if( nDamageType < 0 ) { if( m_nArmorType != nDamageType ) return 0; } else if( m_nArmorType > nDamageType ) return 0; m_nHp = Max( 0, m_nHp - nDamage ); SetDamaged( nDamageType, damageOfs.x, damageOfs.y ); if( nDamage && m_nHp <= 0 ) { if( !m_pAI || m_pAI->PreKill() ) OnKilled(); } return nDamage; } void CPawn::SetDamaged( int8 nType, int32 ofsX, int32 ofsY ) { if( !m_bDamaged || m_nDamageType < nType ) { m_nDamageType = nType; m_damageOfs = TVector2<int32>( ofsX, ofsY ); } m_bDamaged = true; } void CPawn::Block( TVector2<int32> damageOfs ) { if( m_pAI ) m_pAI->Block( damageOfs ); } CMyLevel* CPawn::GetLevel() { if( !GetParentEntity() ) return NULL; return SafeCast<CMyLevel>( GetParentEntity()->GetParentEntity() ); } TVector2<int32> CPawn::GetCurStateDest( int32 nTick ) { auto p = m_curStateOrigPos; auto p1 = p; auto& state = GetCurState(); if( !state.nTotalTicks ) return p; if( nTick <= 0 ) nTick = state.nTotalTicks; struct SItem { int8 nType; int32 nTick; TVector2<int32> ofs; }; static vector<SItem> vecItems; for( int i = 0; i < state.arrEvts.Size(); i++ ) { auto& evt = state.arrEvts[i]; if( evt.nTick >= nTick ) continue; if( evt.eType == ePawnStateEventType_MoveBegin ) { SItem item = { 0, evt.nTick, { evt.nParams[0] * ( m_nCurDir ? -1 : 1 ), evt.nParams[1] } }; vecItems.push_back( item ); } else if( evt.eType == ePawnStateEventType_MoveEnd ) { SItem item = { evt.nParams[0] == 0 ? 1 : 2, evt.nTick, { evt.nParams[0] * ( m_nCurDir ? -1 : 1 ), evt.nParams[1] } }; vecItems.push_back( item ); } } if( !vecItems.size() ) return p; std::stable_sort( vecItems.begin(), vecItems.end(), [] ( const SItem& a, const SItem& b ) { return a.nTick < b.nTick; } ); for( auto& item : vecItems ) { if( item.nType == 0 ) p1 = p1 + item.ofs; else if( item.nType == 1 ) p = p1; else p1 = p; } vecItems.resize( 0 ); return p; } bool CPawn::IsAutoBlockStage() { if( !m_bIsEnemy ) return false; if( m_pAI && m_pAI->IsIgnoreBlockStage() ) return false; return true; } bool CPawn::HasTag( const char* sz ) { int32 l = strlen( sz ); for( int i = 0; i < m_arrTags.Size(); i++ ) { auto str = m_arrTags[i].c_str(); auto c = strchr( m_arrTags[i].c_str(), '=' ); if( c ) { if( l == c - str && strncmp( str, sz, l ) == 0 ) return true; } else { if( m_arrTags[i] == sz ) return true; } } return false; } const char* CPawn::GetTag( const char* sz ) { int32 l = strlen( sz ); for( int i = 0; i < m_arrTags.Size(); i++ ) { auto str = m_arrTags[i].c_str(); auto c = strchr( str, '=' ); if( c ) { if( l == c - str && strncmp( str, sz, l ) == 0 ) return c + 1; } } return ""; } int32 CPawn::GetStateIndexByName( const char* szName ) const { for( int i = 0; i < m_arrSubStates.Size(); i++ ) { if( m_arrSubStates[i].strName == szName ) return i; } return -1; } int32 CPawn::Signal( int32 i ) { m_trigger.Trigger( 0, (void*)i ); if( m_pAI ) return m_pAI->Signal( i ); return 0; } int32 CPawn::CheckHit( const TVector2<int32>& p, int8 nDamageType ) { if( !CanBeHit( nDamageType ) ) return false; auto nHitWidth = m_nHitWidth ? m_nHitWidth : m_nWidth; auto nHitHeight = m_nHitHeight ? m_nHitHeight : m_nHeight; if( IsSpecialState( eSpecialState_Block ) ) nHitWidth = nHitHeight = 1; TRectangle<int32> r[4] = { { m_pos.x, m_pos.y, m_nWidth, m_nHeight }, { m_moveTo.x, m_moveTo.y, m_nWidth, m_nHeight }, { m_pos.x, m_pos.y, nHitWidth, nHitHeight }, { m_moveTo.x, m_moveTo.y, nHitWidth, nHitHeight } }; if( m_nCurDir ) { r[2].x = r[0].GetRight() - r[2].width; r[3].x = r[1].GetRight() - r[3].width; } bool b[4]; for( int i = 0; i < 4; i++ ) b[i] = p.x >= r[i].x && p.y >= r[i].y && p.x < r[i].GetRight() && p.y < r[i].GetBottom(); if( !( b[2] && b[3] || b[2] && !b[1] || b[3] && !b[0] ) ) return -1; return 1; } bool CPawn::CanBeHit( int8 nDamageType ) { if( m_bForceHit ) return true; if( m_nHp <= 0 && !m_bIsEnemy ) { if( nDamageType >= 0 || nDamageType != m_nArmorType ) return false; } return true; } void CPawn::SetMounted( bool b, bool bMountHide, int8 nMoveType ) { m_bMounted = b; m_bMountHide = b ? bMountHide : false; if( !b ) { if( nMoveType ) m_pos = m_moveTo; else m_moveTo = m_pos; } if( m_pAI ) m_pAI->OnSetMounted( b ); } int8 CPawn::GetDamageOfsDir() { return GetDamageOfsDir1( m_damageOfs.x, m_damageOfs.y ); } int8 CPawn::GetDamageOfsDir1( int32 x, int32 y ) { if( !x && !y ) return -1; int32 x1 = abs( x ); int8 n = 0; if( y >= x1 ) n = 1; else if( y <= -x1 ) n = 2; int8 nDir = m_nCurDir; if( x > 0 ) nDir = 0; else if( x < 0 ) nDir = 1; return n * 2 + nDir; } bool CPawn::HandleHit( SPawnStateEvent& evt ) { auto hitOfs = OnHit( evt ); if( evt.nParams[0] == 1 ) { if( !GetLevel()->SpawnPreset1( evt.strParam, m_moveTo.x, m_moveTo.y, m_nCurDir ) ) return false; } else { auto pHitDesc = GetHitSpawn( evt.nParams[3] ); if( pHitDesc ) { CReference<CPawn> pHit = SafeCast<CPawn>( pHitDesc->pHit->GetRoot()->CreateInstance() ); pHit->strCreatedFrom = pHitDesc->pHit; if( pHitDesc->strInitState.length() ) { auto nIndex = pHit->GetStateIndexByName( pHitDesc->strInitState ); if( nIndex >= 0 ) pHit->SetInitState( nIndex ); } TVector2<int32> ofs( pHitDesc->nOfsX, pHitDesc->nOfsY ); ofs = ofs + hitOfs; if( m_nCurDir ) { ofs.x = m_nWidth - ( ofs.x + pHit->m_nWidth ); } auto pPawnHit = SafeCast<CPawnHit>( pHit.GetPtr() ); if( pPawnHit ) pPawnHit->SetHitOfs( ofs ); auto pos = m_moveTo + ofs; auto dir = pHitDesc->nDir ? 1 - m_nCurDir : m_nCurDir; if( GetLevel()->AddPawn( pHit, pos, dir, this ) ) pHit->Signal( evt.nParams[2] ); else return false; } } return true; } TVector2<int32> CPawn::HandleStealthDetect() { if( m_pAI ) return m_pAI->HandleStealthDetect(); return TVector2<int32>( -1, -1 ); } void CPawn::HandleAlert( CPawn* pTrigger, const TVector2<int32>& p ) { if( m_pAI ) m_pAI->HandleAlert( pTrigger, p ); } bool CPawn::HasStateTag( const char* sz ) { if( !m_arrSubStates.Size() ) return false; auto state = GetCurState(); for( int i = 0; i < state.arrTags.Size(); i++ ) { if( state.arrTags[i] == sz ) return true; } return false; } CVector2 CPawn::GetHpBarOfs() { return CVector2( m_moveTo.x, m_moveTo.y ) * LEVEL_GRID_SIZE - m_curStateBeginPos; } void CPawn::ResetState() { ChangeState( GetCurState(), 0, false ); } bool CPawn::PlayState( const char* sz, int8 nType ) { if( TransitTo( sz, -1, -1 ) ) { if( !GetLevel()->IsBegin() ) Update0(); else if( nType ) Update(); return true; } return false; } bool CPawn::PlayStateTurnBack( const char* sz, int8 nType ) { auto nDir0 = m_nCurDir; m_nCurDir = !m_nCurDir; if( !TransitTo( sz, -1, -1 ) ) { m_nCurDir = nDir0; return false; } if( !GetLevel()->IsBegin() ) Update0(); else if( nType ) Update(); return true; } bool CPawn::PlayStateSetDir( const char* sz, int8 nDir, int8 nType ) { auto nDir0 = m_nCurDir; m_nCurDir = nDir; if( !TransitTo( sz, -1, -1 ) ) { m_nCurDir = nDir0; return false; } if( !GetLevel()->IsBegin() ) Update0(); else if( nType ) Update(); return true; } bool CPawn::PlayStateForceMove( const char* sz, int32 x, int32 y, int8 nDir, int8 nType ) { GetLevel()->PawnMoveBreak( this ); if( !GetLevel()->PawnMoveTo( this, TVector2<int32>( x, y ) - GetPos() ) ) return false; GetLevel()->PawnMoveEnd( this ); m_nCurDir = nDir; if( !TransitTo( sz, -1, -1 ) ) { m_curStateBeginPos = CVector2( m_pos.x, m_pos.y ) * LEVEL_GRID_SIZE; m_curStateOrigPos = m_pos; } if( !GetLevel()->IsBegin() ) Update0(); else if( nType ) Update(); return true; } CPawnAI* CPawn::ChangeAI( const char* sz ) { if( m_pAI ) { m_pAI->SetParentEntity( NULL ); m_pAI = NULL; } if( !sz || !sz[0] ) return NULL; auto pPrefab = CResourceManager::Inst()->CreateResource<CPrefab>( sz ); if( !pPrefab || !pPrefab->GetRoot()->GetStaticDataSafe<CPawnAI>() ) return NULL; m_pAI = SafeCast<CPawnAI>( pPrefab->GetRoot()->CreateInstance() ); m_pAI->SetParentEntity( this ); return m_pAI; } const char* CPawn::GetCurStateName() { return GetCurState().strName; } void CPawn::RegisterSignalScript() { auto pTrigger = CLuaTrigger::CreateAuto( CLuaTrigger::eParam_Int ); RegisterSignal( pTrigger ); } void CPawn::RegisterKilledScript() { auto pTrigger = CLuaTrigger::CreateAuto(); RegisterKilled( pTrigger ); } void CPawn::CreateIconData( CPrefabNode* pNode, const char* szCondition0, TArray<SMapIconData>& arrData ) const { if( !m_nMapIconType ) return; if( m_nMapIconType >= 1 ) { int8 nDir = pNode->GetPatchedNode()->GetStaticDataSafe<CPawn>()->GetInitDir(); CVector2 p( floor( pNode->x / LEVEL_GRID_SIZE_X + 0.5f ), floor( pNode->y / LEVEL_GRID_SIZE_Y + 0.5f ) ); if( nDir ) p.x += m_nWidth - 2; arrData.Resize( arrData.Size() + 1 ); auto& item = arrData[arrData.Size() - 1]; item.ofs = p; item.nDir = nDir; item.nTexX = m_nMapIconTexX[0]; item.nTexY = m_nMapIconTexY[0]; item.bKeepSize = m_bMapIconKeepSize[0]; item.strTag = m_strMapIconTag[0]; auto pSpawnData = pNode->GetStaticDataSafe<CLevelSpawnHelper>(); if( szCondition0[0] ) { item.arrFilter.Resize( item.arrFilter.Size() + 1 ); item.arrFilter[item.arrFilter.Size() - 1] = szCondition0; } if( pSpawnData && pSpawnData->m_strSpawnCondition.length() ) { item.arrFilter.Resize( item.arrFilter.Size() + 1 ); item.arrFilter[item.arrFilter.Size() - 1] = pSpawnData->m_strSpawnCondition; } if( pSpawnData &&( pSpawnData->m_strDeathKey.length() || pSpawnData->m_nDataType ) ) { if( pSpawnData->m_nDataType ) { string str = "&dead&"; str += pNode->GetName().c_str(); item.strCondition = str.c_str(); } else item.strCondition = pSpawnData->m_strDeathKey; item.nConditionValue = 0; if( m_nMapIconType >= 2 ) { arrData.Resize( arrData.Size() + 1 ); auto& item0 = arrData[arrData.Size() - 2]; auto& item1 = arrData[arrData.Size() - 1]; item1.ofs = p; item1.nDir = nDir; item1.nTexX = m_nMapIconTexX[1]; item1.nTexY = m_nMapIconTexY[1]; item1.bKeepSize = m_bMapIconKeepSize[1]; item1.strTag = m_strMapIconTag[1]; item1.arrFilter = item0.arrFilter; item1.strCondition = item0.strCondition; item1.nConditionValue = 1; } } } } bool CPawn::ChangeState( int32 nNewState, bool bInit ) { if( !IsValidStateIndex( nNewState ) ) return false; m_nCurState = nNewState; return ChangeState( m_arrSubStates[nNewState], 0, bInit ); } void CPawn::AutoCreateSpawnHelper() { if( m_nLevelDataType ) { auto pSpawnHelper = new CLevelSpawnHelper( -1, "", GetStateIndexByName( "death" ), m_nLevelDataType ); pSpawnHelper->SetName( GetName() ); m_pSpawnHelper = pSpawnHelper; } } void CPawn::SetTracerEffectDisabled( bool bDisabled ) { m_bTracerEffectDisabled = bDisabled; } void CPawn::InitState() { m_bCurStateDirty = true; memset( m_nCurStateSpecialState, 0, sizeof( m_nCurStateSpecialState ) ); if( m_pSpawnHelper && m_pSpawnHelper->m_bInitState ) { if( m_pSpawnHelper->m_bSpawnDeath ) m_nHp = 0; m_nCurForm = m_arrSubStates[m_pSpawnHelper->m_nInitState].nForm; ChangeState( m_pSpawnHelper->m_nInitState, true ); m_nCurStateTick = m_pSpawnHelper->m_nInitStateTick; if( m_pAI ) m_pAI->OnInit(); Update0(); return; } int32 nInitState; if( m_pSpawnHelper && m_pSpawnHelper->m_bSpawnDeath ) { nInitState = m_pSpawnHelper->m_nDeathState; m_nHp = 0; } else if( m_bUseInitState ) { nInitState = m_nInitState; if( nInitState < 0 || nInitState >= m_arrSubStates.Size() || m_arrSubStates[nInitState].nForm != m_nCurForm ) nInitState = GetDefaultState(); } else nInitState = GetDefaultState(); if( m_arrSubStates.Size() ) ChangeState( nInitState, true ); if( m_pAI ) m_pAI->OnInit(); Update0(); } bool CPawn::CheckTransitCondition( EPawnStateTransitCondition eCondition, const char* strCondition ) { if( !strCondition || !strCondition[0] ) return true; auto pLuaState = CLuaMgr::GetCurLuaState(); pLuaState->Load( strCondition ); pLuaState->PushLua( this ); pLuaState->Call( 1, 1 ); return pLuaState->PopLuaValue<bool>(); } bool CPawn::TransitTo( const char* szToName, int32 nTo, int32 nReason ) { if( GetLevel() && GetLevel()->GetPlayer() && GetLevel()->GetPlayer()->GetControllingPawn() == this ) { if( GetLevel()->GetPlayer()->ControllingPawnCheckStateInput( nReason ) ) return true; } if( szToName && szToName[0] ) { for( int i = 0; i < m_arrSubStates.Size(); i++ ) { if( m_arrSubStates[i].strName == szToName ) return ChangeState( i ); } } if( nTo >= m_arrSubStates.Size() || nTo < 0 ) return false; return ChangeState( nTo ); } bool CPawn::EnumAllCommonTransits( function<bool( SPawnStateTransit1&, int32 )> Func ) { for( int i = 0; i < m_arrCommonStateTransits.Size(); i++ ) { if( Func( m_arrCommonStateTransits[i], 0 ) ) return true; } return false; } bool CPawn::FilterCommonTransit( SPawnStateTransit1& transit, int32 nSource ) { if( m_arrForms.Size() && m_nCurForm != m_arrSubStates[transit.nTo].nForm ) return false; for( int i = 0; i < transit.arrStrExclude.Size(); i++ ) { if( transit.arrStrExclude[i] == GetCurState().strName ) return false; } if( nSource == m_nCurStateSource ) { for( int i = 0; i < transit.arrExclude.Size(); i++ ) { if( transit.arrExclude[i] == m_nCurState ) return false; } } return true; } int32 CPawn::GetDefaultState() { if( m_bUseDefaultState ) { if( m_nDefaultState >= 0 && m_nDefaultState < m_arrSubStates.Size() && ( !m_arrForms.Size() || m_arrSubStates[m_nDefaultState].nForm == m_nCurForm ) ) return m_nDefaultState; } if( !m_arrForms.Size() ) return 0; return m_arrForms[m_nCurForm].nDefaultState; } bool CPawn::ChangeState( SPawnState& state, int32 nStateSource, bool bInit ) { if( !bInit && GetLevel() ) { if( m_arrForms.Size() && state.nForm != m_nCurForm ) { if( !GetLevel()->PawnTransform( this, state.nForm, TVector2<int32>( 0, 0 ), false ) ) return false; } } else ASSERT( !m_arrForms.Size() || state.nForm == m_nCurForm ); if( !bInit && GetLevel() ) GetLevel()->PawnMoveBreak( this ); m_nCurStateTick = 0; m_curStateBeginPos = CVector2( m_pos.x, m_pos.y ) * LEVEL_GRID_SIZE; CRectangle rect( m_origRect.x - state.nImgExtLeft * m_origRect.width, m_origRect.y - state.nImgExtTop * m_origRect.height, m_origRect.width * ( 1 + state.nImgExtLeft + state.nImgExtRight ), m_origRect.height * ( 1 + state.nImgExtTop + state.nImgExtBottom ) ); if( m_nCurDir ) rect = CRectangle( LEVEL_GRID_SIZE_X * m_nWidth - rect.GetRight(), rect.y, rect.width, rect.height ); m_curStateOrigPos = m_pos; m_curStateRect = rect; m_curStateOrigTexRect = m_origTexRect; m_nCurStateCheckAction = -1; m_bCurStateDirty = true; if( m_pAI ) m_pAI->OnChangeState(); m_trigger.Trigger( 2, NULL ); return true; } void CPawn::Update0() { m_nCurStateRenderOrder = ( m_pos.y + m_moveTo.y ) * 64 - m_nRenderOrder; if( GetRenderObject() ) GetRenderObject()->bVisible = true; if( m_bMountHide ) { if( GetRenderObject() ) GetRenderObject()->bVisible = false; } else if( m_arrSubStates.Size() ) { auto& curState = GetCurState(); CRectangle texRect( m_curStateOrigTexRect.x + curState.nImgTexBeginX * m_curStateOrigTexRect.width, m_curStateOrigTexRect.y + curState.nImgTexBeginY * m_curStateOrigTexRect.height, m_curStateOrigTexRect.width * ( 1 + curState.nImgExtLeft + curState.nImgExtRight ), m_curStateOrigTexRect.height * ( 1 + curState.nImgExtTop + curState.nImgExtBottom ) ); int32 nFrame = Min( curState.nImgTexCount - 1, m_nCurStateTick / curState.nTicksPerFrame ); texRect = texRect.Offset( CVector2( texRect.width * ( nFrame % curState.nImgTexCols ), texRect.height * ( nFrame / curState.nImgTexCols ) ) ); if( m_nCurDir ) texRect = CRectangle( 2 - texRect.GetRight(), texRect.y, texRect.width, texRect.height ); auto pTracerEffect = SafeCast<CTracerEffect>( GetRenderObject() ); if( pTracerEffect ) pTracerEffect->SetDisabled( m_bTracerEffectDisabled ); auto pEft = SafeCastToInterface<IImageRect>( GetRenderObject() ); if( pEft ) { pEft->SetRect( m_curStateRect ); pEft->SetTexRect( texRect ); } else { auto pImage = SafeCast<CImage2D>( GetRenderObject() ); if( pImage ) { pImage->SetRect( m_curStateRect ); pImage->SetBoundDirty(); pImage->SetTexRect( texRect ); } } } else m_curStateBeginPos = CVector2( m_pos.x, m_pos.y ) * LEVEL_GRID_SIZE; if( GetLevel() ) { auto p = m_curStateBeginPos; if( IsSpecialState( eSpecialState_Effect_Shake ) ) { int32 x = ( m_nCurStateTick * 4 + SRand::Inst<eRand_Render>().Rand( 0, 4 ) ) % 12; int32 y = ( m_nCurStateTick * 4 + SRand::Inst<eRand_Render>().Rand( 0, 4 ) ) % 8; p.x += abs( x - 6 ) - 3; p.y += abs( y - 4 ) - 2; } SetPosition( p ); if( m_pHpBar ) { m_pHpBar->bVisible = true; auto rect = m_hpBarOrigRect; rect.width = m_nHp * rect.width / m_nMaxHp; static_cast<CImage2D*>( m_pHpBar.GetPtr() )->SetRect( rect ); m_pHpBar->SetBoundDirty(); m_pHpBar->SetPosition( GetHpBarOfs() ); } } else { if( m_pHpBar ) m_pHpBar->bVisible = false; } if( m_pAI ) m_pAI->OnUpdate0(); } bool CPawn::CheckAction( int32 nGroup ) { auto nNewState = -1; if( m_pAI ) nNewState = m_pAI->CheckAction( m_nCurDir ); if( nNewState >= 0 ) { ChangeState( nNewState ); return true; } return false; } bool CPawn::CheckStateTransits( int32 nDefaultState, int8 nBreakFlag ) { if( m_pAI ) { auto n = m_pAI->CheckStateTransits( m_nCurDir ); if( n >= 0 ) { ChangeState( n ); return true; } } auto& transits = GetCurState().arrTransits; auto& commonTransits = m_arrCommonStateTransits; for( int i = 0; i < transits.Size(); i++ ) { auto& transit = transits[i]; if( ( transit.eCondition == ePawnStateTransitCondition_Break || transit.eCondition == ePawnStateTransitCondition_Finish ) && CheckTransitCondition( transit.eCondition, transit.strCondition ) ) { if( transit.bInverse ) m_nCurDir = 1 - m_nCurDir; TransitTo( transit.strToName, transit.nTo, nBreakFlag ? ePawnStateTransitReason_JumpTo : ePawnStateTransitCondition_Break ); return true; } } auto Func = [this, nBreakFlag] ( SPawnStateTransit1& transit, int32 nSource ) { if( !FilterCommonTransit( transit, nSource ) ) return false; if( ( transit.eCondition == ePawnStateTransitCondition_Break || transit.eCondition == ePawnStateTransitCondition_Finish ) && CheckTransitCondition( transit.eCondition, transit.strCondition ) ) { if( transit.bInverse ) m_nCurDir = 1 - m_nCurDir; TransitTo( transit.strToName, transit.nTo, nBreakFlag ? ePawnStateTransitReason_JumpTo : ePawnStateTransitCondition_Break ); return true; } return false; }; if( !EnumAllCommonTransits( Func ) ) ChangeState( nDefaultState ); return true; } bool CPawn::CheckStateTransits1( int32 nDefaultState, bool bFinished ) { if( m_pAI ) { auto n = m_pAI->CheckStateTransits1( m_nCurDir, bFinished ); if( n >= 0 ) { ChangeState( n ); return true; } } auto& transits = GetCurState().arrTransits; auto& commonTransits = m_arrCommonStateTransits; for( int i = 0; i < transits.Size(); i++ ) { auto& transit = transits[i]; if( m_bDamaged && transit.eCondition == ePawnStateTransitCondition_Hit && CheckTransitCondition( transit.eCondition, transit.strCondition ) ) { if( transit.bInverse ) m_nCurDir = 1 - m_nCurDir; TransitTo( transit.strToName, transit.nTo, transit.eCondition ); return true; } if( m_nHp <= 0 && bFinished && transit.eCondition == ePawnStateTransitCondition_Killed && CheckTransitCondition( transit.eCondition, transit.strCondition ) ) { if( transit.bInverse ) m_nCurDir = 1 - m_nCurDir; TransitTo( transit.strToName, transit.nTo, transit.eCondition ); return true; } if( bFinished && transit.eCondition == ePawnStateTransitCondition_Finish && CheckTransitCondition( transit.eCondition, transit.strCondition ) ) { if( transit.bInverse ) m_nCurDir = 1 - m_nCurDir; TransitTo( transit.strToName, transit.nTo, transit.eCondition ); return true; } } auto Func = [this, bFinished] ( SPawnStateTransit1& transit, int32 nSource ) { if( !FilterCommonTransit( transit, nSource ) ) return false; if( m_bDamaged && transit.eCondition == ePawnStateTransitCondition_Hit && CheckTransitCondition( transit.eCondition, transit.strCondition ) ) { if( transit.bInverse ) m_nCurDir = 1 - m_nCurDir; TransitTo( transit.strToName, transit.nTo, transit.eCondition ); return true; } if( m_nHp <= 0 && bFinished && transit.eCondition == ePawnStateTransitCondition_Killed && CheckTransitCondition( transit.eCondition, transit.strCondition ) ) { if( transit.bInverse ) m_nCurDir = 1 - m_nCurDir; TransitTo( transit.strToName, transit.nTo, transit.eCondition ); return true; } if( bFinished && transit.eCondition == ePawnStateTransitCondition_Finish && CheckTransitCondition( transit.eCondition, transit.strCondition ) ) { if( transit.bInverse ) m_nCurDir = 1 - m_nCurDir; TransitTo( transit.strToName, transit.nTo, transit.eCondition ); return true; } return false; }; if( EnumAllCommonTransits( Func ) ) return true; if( nDefaultState >= 0 ) { ChangeState( nDefaultState ); return true; } return false; } void CPawn::OnKilled() { if( m_pSpawnHelper ) { if( m_pSpawnHelper->m_nDataType == 1 ) { auto& mapDeadPawn = GetStage()->GetMasterLevel()->GetCurLevelData().mapDataDeadPawn; auto& data = mapDeadPawn[m_pSpawnHelper->GetName().c_str()]; data.p = GetMoveTo(); data.nDir = m_nCurDir; data.nSpawnIndex = m_pSpawnHelper->m_nSpawnIndex; } else { if( m_pSpawnHelper->m_strDeathKey.length() ) GetStage()->GetMasterLevel()->SetKeyInt( m_pSpawnHelper->m_strDeathKey, 1 ); } } m_trigger.Trigger( 1, this ); if( m_strKillScript.length() ) CLuaMgr::Inst().Run( m_strKillScript ); } void CPlayerEquipment::OnPreview() { SetRenderObject( NULL ); for( int i = 0; i < 2; i++ ) { if( m_pEft[i] ) m_pEft[i]->RemoveThis(); } if( m_pSpecialRenderObject ) m_pSpecialRenderObject->RemoveThis(); } void CPlayerEquipment::Init() { if( m_pOrigRenderObject ) return; m_pOrigRenderObject = GetRenderObject(); SetRenderObject( NULL ); if( m_pSpecialRenderObject ) { if( SafeCast<CEntity>( m_pSpecialRenderObject.GetPtr() ) ) SafeCast<CEntity>( m_pSpecialRenderObject.GetPtr() )->SetParentEntity( NULL ); else m_pSpecialRenderObject->RemoveThis(); } for( int i = 0; i < 2; i++ ) { if( m_pEft[i] ) m_pEft[i]->RemoveThis(); } if( m_pSpecialRenderObject ) m_pSpecialRenderObject->RemoveThis(); } void CPlayerEquipment::Drop( class CPlayer* pPlayer, const TVector2<int32>& pos, int8 nDir, int32 nPickupState ) { if( !m_pPickUp ) return; SafeCast<CPickUp>( m_pPickUp.GetPtr() )->PreDrop( this, nPickupState ); pPlayer->GetLevel()->AddPawn( m_pPickUp, pos, nDir ); m_pPickUp = NULL; } void CPlayerEquipment::PrePickedUp( CPawn* pPickUp ) { m_pPickUp = pPickUp; } CPickUp* CPlayerEquipment::GetPickUp() { return SafeCast<CPickUp>( m_pPickUp.GetPtr() ); } void CPlayerEquipment::LoadData( IBufReader& buf ) { buf.Read( m_nAmmo ); } void CPlayerEquipment::SaveData( CBufFile& buf ) { buf.Write( m_nAmmo ); } void CPlayerMount::OnPreview() { if( m_pEquipment ) m_pEquipment->OnPreview(); } void CPlayerMount::Init() { m_levelPos = TVector2<int32>( -1, -1 ); if( m_pEquipment ) m_pEquipment->Init(); } bool CPlayerMount::IsEnabled() { if( m_bDisabled ) return false; auto pPawn = GetPawn(); if( pPawn->IsLocked() ) return false; if( pPawn->GetCurStateIndex() != m_nNeedStateIndex || pPawn->GetCurStateSource() != 0 ) return false; if( m_bNeedLevelComplete && !pPawn->GetLevel()->IsComplete() ) return false; return true; } bool CPlayerMount::CheckMount( CPlayer* pPlayer ) { if( !pPlayer->IsReadyForMount( this ) ) return false; auto pPawn = GetPawn(); if( m_nEnterDir == 0 || m_nEnterDir == 1 ) { if( ( pPawn->GetCurDir() ^ m_nEnterDir ) != pPlayer->GetCurDir() ) return false; } return true; } void CPlayerMount::Mount( CPlayer* pPlayer ) { pPlayer->Mount( GetPawn(), GetEquipment(), m_strEntryState, m_bAnimPlayerOriented, !m_bShowPawnOnMount, m_bUseMountRenderOrder, m_bEnablePreview ); } CPlayerEquipment* CPlayerMount::GetEquipment() { CPlayerMount* pMount = this; for( ;; ) { auto pMount1 = SafeCast<CPlayerMount>( pMount->GetParentEntity() ); if( !pMount1 ) break; pMount = pMount1; } return pMount->m_pEquipment; } CPawn* CPlayerMount::GetPawn() { for( auto p = GetParentEntity(); p; p = p->GetParentEntity() ) { auto pPawn = SafeCast<CPawn>( p ); if( pPawn ) return pPawn; } return NULL; } enum { ePlayerInput_Right_Down, ePlayerInput_Up_Down, ePlayerInput_Left_Down, ePlayerInput_Down_Down, ePlayerInput_Right_Up, ePlayerInput_Up_Up, ePlayerInput_Left_Up, ePlayerInput_Down_Up, ePlayerInput_A_Down, ePlayerInput_B_Down, ePlayerInput_C_Down, ePlayerInput_D_Down, ePlayerInput_A_Up, ePlayerInput_B_Up, ePlayerInput_C_Up, ePlayerInput_D_Up, }; void CPlayer::OnRemovedFromStage() { m_bForceHide = false; } void CPlayer::OnPreview() { CPawn::OnPreview(); if( m_pDefaultEquipment ) m_pDefaultEquipment->RemoveThis(); } void CPlayer::Reset( int8 nFlag ) { for( int i = 0; i < ePlayerEquipment_Count; i++ ) { if( nFlag && i == ePlayerEquipment_Ability ) continue; m_pCurEquipment[i] = NULL; } m_nHp = m_nMaxHp; m_nStealthValue = m_nMaxStealthValue = 0; } void CPlayer::LoadData( IBufReader& buf ) { for( int i = 0; i < ePlayerEquipment_Count; i++ ) m_pCurEquipment[i] = NULL; int32 nVersionData; buf.Read( nVersionData ); buf.Read( m_nHp ); buf.Read( m_nMaxStealthValue ); for( int i = 0; i < ePlayerEquipment_Count; i++ ) { CBufReader tempBuf( buf ); string strName; tempBuf.Read( strName ); if( !strName.length() ) continue; auto pPrefab = CResourceManager::Inst()->CreateResource<CPrefab>( strName.c_str() ); if( !pPrefab || !pPrefab->GetRoot()->GetStaticDataSafe<CPickUp>() ) continue; auto pPickUp = SafeCast<CPickUp>( pPrefab->GetRoot()->CreateInstance() ); pPickUp->strCreatedFrom = strName.c_str(); pPickUp->AutoCreateSpawnHelper(); pPickUp->PickUp( this ); ASSERT( m_pCurEquipment[i] && m_pCurEquipment[i] != m_pDefaultEquipment.GetPtr() ); m_pCurEquipment[i]->LoadData( tempBuf ); m_pCurEquipment[i]->Init(); } buf.Read( m_bEnableDefaultEquipment ); } void CPlayer::SaveData( CBufFile& buf ) { int32 nVersionData = 0; buf.Write( nVersionData ); buf.Write( m_nHp ); buf.Write( m_nMaxStealthValue ); for( int i = 0; i < ePlayerEquipment_Count; i++ ) { if( m_pCurEquipment[i] && m_pCurEquipment[i] != m_pDefaultEquipment.GetPtr() ) { CBufFile tempBuf; tempBuf.Write( m_pCurEquipment[i]->m_pPickUp->strCreatedFrom ); m_pCurEquipment[i]->SaveData( tempBuf ); buf.Write( tempBuf ); } else buf.Write( (int32)0 ); } buf.Write( m_bEnableDefaultEquipment ); } void CPlayer::Init() { if( m_pDefaultEquipment ) m_pDefaultEquipment->SetParentEntity( NULL ); m_pCurUsingPawn = NULL; m_pCurMount = NULL; m_pCurMountingPawn = NULL; m_pControllingPawn = NULL; m_bForceUnMount = false; m_nStealthValue = m_nMaxStealthValue; if( m_bIsRealPlayer ) ChangeAI( NULL ); m_vecInputQueues.resize( 0 ); m_nActionEftFrame = 0; /*m_nMoveXInput = 0; m_nMoveYInput = 0; m_nAttackInput = 0;*/ if( !m_pOrigRenderObject ) m_pOrigRenderObject = GetRenderObject(); if( m_bIsRealPlayer ) { for( int i = 0; i < 2; i++ ) { m_pEft[i]->bVisible = false; if( !m_pCurEft[i] ) m_pCurEft[i] = m_pEft[i]; } } CPawn::Init(); if( m_pDefaultEquipment ) { m_pDefaultEquipment->Init(); if( !m_pCurEquipment[0] && ( !m_bIsRealPlayer || m_bEnableDefaultEquipment ) ) Equip( m_pDefaultEquipment ); } m_bActionStop = true; } void CPlayer::Update() { if( m_bCurStateDirty ) { m_bCurStateDirty = false; memset( m_nCurStateSpecialState, 0, sizeof( m_nCurStateSpecialState ) ); } uint8 nKeyUp = 0; if( m_bIsRealPlayer ) { if( !GetLevel()->IsActionPreview() ) { if( !GetLevel()->IsScenario() ) { bool bInput = false; bool bDown = false; if( CGame::Inst().IsInputUp( eInput_Up ) || CGame::Inst().IsKeyUp( 'Q' ) || CGame::Inst().IsKeyUp( 'E' ) ) { m_vecInputQueues.push_back( ePlayerInput_Up_Up ); bInput = true; nKeyUp |= 2; } if( CGame::Inst().IsInputUp( eInput_Down ) || CGame::Inst().IsKeyUp( 'Z' ) || CGame::Inst().IsKeyUp( 'C' ) ) { m_vecInputQueues.push_back( ePlayerInput_Down_Up ); bInput = true; nKeyUp |= 8; } if( CGame::Inst().IsInputUp( eInput_Right ) || CGame::Inst().IsKeyUp( 'E' ) || CGame::Inst().IsKeyUp( 'C' ) ) { m_vecInputQueues.push_back( ePlayerInput_Right_Up ); bInput = true; nKeyUp |= 1; } if( CGame::Inst().IsInputUp( eInput_Left ) || CGame::Inst().IsKeyUp( 'Q' ) || CGame::Inst().IsKeyUp( 'Z' ) ) { m_vecInputQueues.push_back( ePlayerInput_Left_Up ); bInput = true; nKeyUp |= 4; } if( CGame::Inst().IsInputDown( eInput_Up ) || CGame::Inst().IsKeyDown( 'Q' ) || CGame::Inst().IsKeyDown( 'E' ) ) { m_vecInputQueues.push_back( ePlayerInput_Up_Down ); bInput = true; bDown = true; } if( CGame::Inst().IsInputDown( eInput_Down ) || CGame::Inst().IsKeyDown( 'Z' ) || CGame::Inst().IsKeyDown( 'C' ) ) { m_vecInputQueues.push_back( ePlayerInput_Down_Down ); bInput = true; bDown = true; } if( CGame::Inst().IsInputDown( eInput_Right ) || CGame::Inst().IsKeyDown( 'E' ) || CGame::Inst().IsKeyDown( 'C' ) ) { m_vecInputQueues.push_back( ePlayerInput_Right_Down ); bInput = true; bDown = true; } if( CGame::Inst().IsInputDown( eInput_Left ) || CGame::Inst().IsKeyDown( 'Q' ) || CGame::Inst().IsKeyDown( 'Z' ) ) { m_vecInputQueues.push_back( ePlayerInput_Left_Down ); bInput = true; bDown = true; } if( CGame::Inst().IsInputUp( eInput_A ) ) { m_vecInputQueues.push_back( ePlayerInput_A_Up ); bInput = true; nKeyUp |= 16; } if( CGame::Inst().IsInputUp( eInput_B ) ) { m_vecInputQueues.push_back( ePlayerInput_B_Up ); bInput = true; nKeyUp |= 32; } if( CGame::Inst().IsInputUp( eInput_C ) ) { m_vecInputQueues.push_back( ePlayerInput_C_Up ); bInput = true; nKeyUp |= 64; } if( CGame::Inst().IsInputUp( eInput_D ) ) { m_vecInputQueues.push_back( ePlayerInput_D_Up ); bInput = true; nKeyUp |= 128; } if( CGame::Inst().IsInputDown( eInput_A ) ) { m_vecInputQueues.push_back( ePlayerInput_A_Down ); bInput = true; bDown = true; } if( CGame::Inst().IsInputDown( eInput_B ) ) { m_vecInputQueues.push_back( ePlayerInput_B_Down ); bInput = true; bDown = true; } if( CGame::Inst().IsInputDown( eInput_C ) ) { m_vecInputQueues.push_back( ePlayerInput_C_Down ); bInput = true; bDown = true; } if( CGame::Inst().IsInputDown( eInput_D ) ) { m_vecInputQueues.push_back( ePlayerInput_D_Down ); bInput = true; bDown = true; } if( bDown && m_bActionStop && !m_nTickInputOnActionStop ) m_nTickInputOnActionStop = 10; if( bInput ) GetStage()->GetMasterLevel()->GetMainUI()->RefreshPlayerInput( ParseInputSequence(), -1, m_nChargeKeyDown, 0 ); } else if( m_pAI && m_bActionStop && !m_nTickInputOnActionStop ) m_nTickInputOnActionStop = 10; if( m_nTickInputOnActionStop ) { m_nTickInputOnActionStop--; if( !m_nTickInputOnActionStop ) { m_bActionStop = false; CheckAction( m_nCurActionGroup ); } } } } if( m_bForceUnMount ) { UnMount(); PlayState( "stand" ); } if( m_pControllingPawn && ( m_pControllingPawn->IsKilled() || !m_pControllingPawn->GetLevel() ) ) EndControl(); CPawn::Update(); if( m_bIsRealPlayer ) { if( !!( nKeyUp & m_nChargeKeyDown ) ) m_nChargeKeyDown = 0; /*if( m_nActionEftFrame ) { m_nActionEftFrame--; m_pCurEft[0]->bVisible = m_pCurEft[1]->bVisible = true; CRectangle rect, texRect; auto pEft = SafeCastToInterface<IImageRect>( GetRenderObject() ); if( pEft ) { rect = pEft->GetRect(); texRect = pEft->GetTexRect(); } else { auto pImg = static_cast<CImage2D*>( GetRenderObject() ); rect = pImg->GetElem().rect; texRect = pImg->GetElem().texRect; } for( int i = 0; i < 2; i++ ) { auto pImg1 = static_cast<CImage2D*>( m_pCurEft[i].GetPtr() ); pImg1->SetRect( rect ); pImg1->SetTexRect( texRect ); pImg1->SetBoundDirty(); pImg1->SetPosition( m_actionEftOfs[i * ACTION_EFT_FRAMES + m_nActionEftFrame] ); pImg1->GetParam()[0] = m_actionEftParam[i * ACTION_EFT_FRAMES + m_nActionEftFrame]; } } else*/ m_pCurEft[0]->bVisible = m_pCurEft[1]->bVisible = false; } } void CPlayer::UpdateInputOnly() { uint8 nKeyUp = 0; if( !GetLevel()->IsActionPreview() ) { if( !GetLevel()->IsScenario() ) { bool bInput = false; bool bDown = false; if( CGame::Inst().IsInputUp( eInput_Up ) || CGame::Inst().IsKeyUp( 'Q' ) || CGame::Inst().IsKeyUp( 'E' ) ) { m_vecInputQueues.push_back( ePlayerInput_Up_Up ); bInput = true; nKeyUp |= 2; } if( CGame::Inst().IsInputUp( eInput_Down ) || CGame::Inst().IsKeyUp( 'Z' ) || CGame::Inst().IsKeyUp( 'C' ) ) { m_vecInputQueues.push_back( ePlayerInput_Down_Up ); bInput = true; nKeyUp |= 8; } if( CGame::Inst().IsInputUp( eInput_Right ) || CGame::Inst().IsKeyUp( 'E' ) || CGame::Inst().IsKeyUp( 'C' ) ) { m_vecInputQueues.push_back( ePlayerInput_Right_Up ); bInput = true; nKeyUp |= 1; } if( CGame::Inst().IsInputUp( eInput_Left ) || CGame::Inst().IsKeyUp( 'Q' ) || CGame::Inst().IsKeyUp( 'Z' ) ) { m_vecInputQueues.push_back( ePlayerInput_Left_Up ); bInput = true; nKeyUp |= 4; } if( CGame::Inst().IsInputDown( eInput_Up ) || CGame::Inst().IsKeyDown( 'Q' ) || CGame::Inst().IsKeyDown( 'E' ) ) { m_vecInputQueues.push_back( ePlayerInput_Up_Down ); bInput = true; bDown = true; } if( CGame::Inst().IsInputDown( eInput_Down ) || CGame::Inst().IsKeyDown( 'Z' ) || CGame::Inst().IsKeyDown( 'C' ) ) { m_vecInputQueues.push_back( ePlayerInput_Down_Down ); bInput = true; bDown = true; } if( CGame::Inst().IsInputDown( eInput_Right ) || CGame::Inst().IsKeyDown( 'E' ) || CGame::Inst().IsKeyDown( 'C' ) ) { m_vecInputQueues.push_back( ePlayerInput_Right_Down ); bInput = true; bDown = true; } if( CGame::Inst().IsInputDown( eInput_Left ) || CGame::Inst().IsKeyDown( 'Q' ) || CGame::Inst().IsKeyDown( 'Z' ) ) { m_vecInputQueues.push_back( ePlayerInput_Left_Down ); bInput = true; bDown = true; } if( CGame::Inst().IsInputUp( eInput_A ) ) { m_vecInputQueues.push_back( ePlayerInput_A_Up ); bInput = true; nKeyUp |= 16; } if( CGame::Inst().IsInputUp( eInput_B ) ) { m_vecInputQueues.push_back( ePlayerInput_B_Up ); bInput = true; nKeyUp |= 32; } if( CGame::Inst().IsInputUp( eInput_C ) ) { m_vecInputQueues.push_back( ePlayerInput_C_Up ); bInput = true; nKeyUp |= 64; } if( CGame::Inst().IsInputUp( eInput_D ) ) { m_vecInputQueues.push_back( ePlayerInput_D_Up ); bInput = true; nKeyUp |= 128; } if( CGame::Inst().IsInputDown( eInput_A ) ) { m_vecInputQueues.push_back( ePlayerInput_A_Down ); bInput = true; bDown = true; } if( CGame::Inst().IsInputDown( eInput_B ) ) { m_vecInputQueues.push_back( ePlayerInput_B_Down ); bInput = true; bDown = true; } if( CGame::Inst().IsInputDown( eInput_C ) ) { m_vecInputQueues.push_back( ePlayerInput_C_Down ); bInput = true; bDown = true; } if( CGame::Inst().IsInputDown( eInput_D ) ) { m_vecInputQueues.push_back( ePlayerInput_D_Down ); bInput = true; bDown = true; } if( bDown && m_bActionStop && !m_nTickInputOnActionStop ) m_nTickInputOnActionStop = 10; if( bInput ) GetStage()->GetMasterLevel()->GetMainUI()->RefreshPlayerInput( ParseInputSequence(), -1, m_nChargeKeyDown, 0 ); } } if( !!( nKeyUp & m_nChargeKeyDown ) ) m_nChargeKeyDown = 0; } CPlayer* CPlayer::InitActionPreviewLevel( CMyLevel* pLevel, const TVector2<int32>& pos ) { auto pPlayer = SafeCast<CPlayer>( GetInstanceOwnerNode()->CreateInstance() ); for( int i = 0; i < ePlayerEquipment_Count; i++ ) { if( m_pCurEquipment[i] && m_pCurEquipment[i] != m_pDefaultEquipment.GetPtr() ) { auto pPrefab = CResourceManager::Inst()->CreateResource<CPrefab>( m_pCurEquipment[i]->m_pPickUp->strCreatedFrom ); auto pPickUp = SafeCast<CPickUp>( pPrefab->GetRoot()->CreateInstance() ); pPickUp->strCreatedFrom = m_pCurEquipment[i]->m_pPickUp->strCreatedFrom; pPickUp->PickUp( pPlayer ); auto pEquip = pPlayer->m_pCurEquipment[i]; pEquip->Init(); pEquip->SetAmmo( pEquip->GetMaxAmmo() ); } } pPlayer->m_bEnableDefaultEquipment = m_bEnableDefaultEquipment; pLevel->AddPawn( pPlayer, pos, 0 ); if( m_pCurMountingPawn && m_bMountEnablePreview ) { auto pPawn1 = SafeCast<CPawn>( m_pCurMountingPawn->GetInstanceOwnerNode()->CreateInstance() ); auto ofs = m_pCurMountingPawn->GetPos() - GetPos(); auto dir = m_pCurMountingPawn->GetCurDir() == m_nDirBeforeMounting ? 0 : 1; if( m_nDirBeforeMounting == 1 ) ofs.x = GetWidth() - ofs.x - pPawn1->GetWidth(); pLevel->AddPawn( pPawn1, pos + ofs, dir ); } pLevel->Begin(); auto pMount = pLevel->FindMount( TVector2<int32>( 0, 0 ) ); if( pMount ) pMount->Mount( pPlayer ); return pPlayer; } int32 CPlayer::Damage( int32 nDamage, int8 nDamageType, TVector2<int32> damageOfs, CPawn* pSource ) { if( m_bIsRealPlayer && !IsActionPreview() ) { GetStage()->GetMasterLevel()->OnPlayerDamaged(); if( m_strScriptDamaged ) { auto pLuaState = CLuaMgr::GetCurLuaState(); pLuaState->Load( m_strScriptDamaged ); pLuaState->PushLua( this ); pLuaState->Call( 1, 0 ); } } return CPawn::Damage( nDamage, nDamageType, damageOfs, pSource ); } void CPlayer::Block( TVector2<int32> damageOfs ) { if( m_pCurStateSource->m_strOnBlock.length() ) { auto pLuaState = CLuaMgr::GetCurLuaState(); pLuaState->Load( m_pCurStateSource->m_strOnBlock ); pLuaState->PushLua( this ); pLuaState->Call( 1, 0 ); } CPawn::Block( damageOfs ); } int8 CPlayer::TryPickUp( int32 nParam ) { if( !m_bIsRealPlayer ) { if( m_pAI ) m_pAI->TryPickUp(); return 1; } if( m_pCurMountingPawn ) { if( !IsActionPreview() ) m_pCurMountingPawn->Signal( nParam ); return 1; } if( m_pCurUsingPawn ) { if( m_pCurUsingPawn->GetStage() ) m_pCurUsingPawn->GetUsage()->UseHit( this ); return 1; } if( nParam ) { TVector2<int32> mountOfs[] = { { 2, 0 }, { 1, 1 }, { 1, -1 } }; auto ofs = mountOfs[nParam - 1]; if( m_nCurDir ) ofs.x = -ofs.x; auto pMount = GetLevel()->FindMount( ofs ); if( pMount ) { if( pMount->GetCostEquipment().length() ) { ASSERT( m_pCurEquipment[ePlayerEquipment_Large]->GetEquipmentName() == pMount->GetCostEquipment() ); if( pMount->GetCostEquipmentType() == 0 ) m_pCurEquipment[ePlayerEquipment_Large] = NULL; } pMount->Mount( this ); return -1; } return 0; } auto pPickUp = GetLevel()->FindPickUp( GetMoveTo(), m_nWidth, m_nHeight ); if( !pPickUp ) return 0; pPickUp->PickUp( this ); return 1; } bool CPlayer::TryDrop( int8 nType, int32 nPickupState ) { if( nType == 2 ) { if( m_nCurStateSource > 0 && m_nCurStateSource <= ePlayerEquipment_Count ) return TryDropIndex( m_nCurStateSource - 1, nPickupState ); return false; } int32 nDrop[] = { ePlayerEquipment_Large, ePlayerEquipment_Melee, ePlayerEquipment_Ranged }; bool bDrop = false; for( int i = 0; i < ELEM_COUNT( nDrop ); i++ ) { auto iDrop = nDrop[i]; if( TryDropIndex( iDrop, nPickupState ) ) { bDrop = true; if( !nType ) break; } } return bDrop; } bool CPlayer::TryDropIndex( int32 nIndex, int32 nPickupState ) { if( m_pCurEquipment[nIndex] == m_pDefaultEquipment.GetPtr() ) return false; if( m_pCurEquipment[nIndex] ) { UnEquip( m_pCurEquipment[nIndex], nPickupState ); if( nIndex == ePlayerEquipment_Melee && ( !m_bIsRealPlayer || m_bEnableDefaultEquipment ) ) m_pCurEquipment[ePlayerEquipment_Melee] = m_pDefaultEquipment; return true; } return false; } void CPlayer::Drop( int32 n ) { if( m_pCurEquipment[n] ) TryDropIndex( n, 0 ); } void CPlayer::DropAll() { for( int i = 0; i < ePlayerEquipment_Count; i++ ) { if( m_pCurEquipment[i] ) TryDropIndex( i, 0 ); } } void CPlayer::Equip( CPlayerEquipment* pEquipment ) { if( m_pCurEquipment[pEquipment->m_nEquipType] ) UnEquip( m_pCurEquipment[pEquipment->m_nEquipType] ); m_pCurEquipment[pEquipment->m_nEquipType] = pEquipment; } void CPlayer::UnEquip( CPlayerEquipment* pEquipment, int32 nPickupState ) { m_pCurEquipment[pEquipment->m_nEquipType]->Drop( this, m_moveTo, m_nCurDir, nPickupState ); m_pCurEquipment[pEquipment->m_nEquipType] = NULL; } const char* CPlayer::GetEquipmentName( int8 n ) { if( !m_pCurEquipment[n] ) return ""; return m_pCurEquipment[n]->GetEquipmentName(); } void CPlayer::Mount( CPawn* pPawn, CPlayerEquipment* pMount, const char* szState, bool bAnimPlayerOriented, bool bMountHide, bool bUseMountRenderOrder, bool bMountEnablePreview ) { m_pCurMountingPawn = pPawn; m_pCurMountingPawn->SetMounted( true, bMountHide, 0 ); m_pCurMount = pMount; m_bMountAnimPlayerOriented = bAnimPlayerOriented; m_bUseMountRenderOrder = bUseMountRenderOrder; m_bMountEnablePreview = bMountEnablePreview; m_nDirBeforeMounting = m_nCurDir; if( !bAnimPlayerOriented ) m_nCurDir = pPawn->GetCurDir(); VERIFY( TransitTo( szState, -1, -1 ) ); } void CPlayer::UnMount( const char* szAction, int8 nActionDirType, int8 nMoveType ) { CReference<CPawn> pMount = m_pCurMountingPawn; bool bMountHide = pMount->IsMountHide(); m_pCurMountingPawn->SetMounted( false, false, nMoveType ); m_pCurMount = NULL; m_pCurMountingPawn = NULL; m_bForceUnMount = false; m_nCurDir = m_nDirBeforeMounting; if( szAction && szAction[0] ) { if( nActionDirType == 2 ) pMount->PlayStateSetDir( szAction, m_nDirBeforeMounting ); else if( nActionDirType == 3 ) pMount->PlayStateSetDir( szAction, 1 - m_nDirBeforeMounting ); else if( nActionDirType == 1 ) pMount->PlayStateTurnBack( szAction ); else pMount->PlayState( szAction ); } else if( bMountHide ) pMount->ResetState(); } void CPlayer::ForceUnMount() { if( !m_pCurMount ) return; m_bForceUnMount = true; } bool CPlayer::IsReadyForMount( CPlayerMount* pMount ) { if( m_pCurMount ) return false; auto sz = pMount->GetCostEquipment(); if( sz.length() ) { if( !m_pCurEquipment[ePlayerEquipment_Large] || sz != m_pCurEquipment[ePlayerEquipment_Large]->GetEquipmentName() || m_pCurEquipment[ePlayerEquipment_Large]->GetAmmo() < pMount->GetNeedEquipmentCharge() ) return false; } else { if( m_pCurEquipment[ePlayerEquipment_Large] ) return false; } return true; } SPawnState& CPlayer::GetCurState() { if( m_pCurStateSource ) return m_pCurStateSource->m_arrSubStates[m_nCurState]; return CPawn::GetCurState(); } SPawnHitSpawnDesc* CPlayer::GetHitSpawn( int32 nHit ) { if( m_pCurStateSource ) { if( nHit >= 0 && nHit < m_pCurStateSource->m_arrHitSpawnDesc.Size() ) return &m_pCurStateSource->m_arrHitSpawnDesc[nHit]; return NULL; } return CPawn::GetHitSpawn( nHit ); } SInputTableItem* CPlayer::GetCurInputResult() { ParseInputSequence(); if( m_pCurMount ) { auto& inputTable = m_pCurMount->m_inputTable; for( int j = inputTable.Size() - 1; j >= 0; j-- ) { auto& item = inputTable[j]; if( CheckInputTableItem( item ) ) return &item; } return NULL; } if( m_pCurEquipment[ePlayerEquipment_Large] ) { auto& inputTable = m_pCurEquipment[ePlayerEquipment_Large]->m_inputTable; for( int j = inputTable.Size() - 1; j >= 0; j-- ) { auto& item = inputTable[j]; if( CheckInputTableItem( item ) ) return &item; } return NULL; } for( int i = 0; i < ePlayerEquipment_Large; i++ ) { if( m_pCurEquipment[i] ) { auto& inputTable = m_pCurEquipment[i]->m_inputTable; for( int j = inputTable.Size() - 1; j >= 0; j-- ) { auto& item = inputTable[j]; if( CheckInputTableItem( item ) ) return &item; } } } for( int i = m_inputTable.Size() - 1; i >= 0; i-- ) { auto& item = m_inputTable[i]; if( CheckInputTableItem( item ) ) return &item; } return NULL; } void CPlayer::EnableDefaultEquipment() { if( m_bEnableDefaultEquipment ) return; m_bEnableDefaultEquipment = true; if( !m_pCurEquipment[0] ) Equip( m_pDefaultEquipment ); } void CPlayer::DisableDefaultEquipment() { if( !m_bEnableDefaultEquipment ) return; m_bEnableDefaultEquipment = false; if( m_pCurEquipment[0] == m_pDefaultEquipment.GetPtr() ) UnEquip( m_pDefaultEquipment ); } bool CPlayer::HasEquipment( int8 n, const char* szName ) { return m_pCurEquipment[n] && m_pCurEquipment[n]->GetEquipmentName() == szName; } void CPlayer::RemoveEquipment( int8 n ) { m_pCurEquipment[n] = NULL; } bool CPlayer::RestoreAmmo( int8 nAmmoType, int32 nMaxAmmo ) { auto pEquipment = GetEquipment( ePlayerEquipment_Ranged ); if( pEquipment && ( nAmmoType < 0 || pEquipment->GetAmmoType() == nAmmoType ) ) { if( !nMaxAmmo ) nMaxAmmo = pEquipment->GetMaxAmmo(); else nMaxAmmo = Min( nMaxAmmo, pEquipment->GetMaxAmmo() ); pEquipment->SetAmmo( Max( nMaxAmmo, pEquipment->GetAmmo() ) ); return true; } return false; } void CPlayer::BeginControl( CPawn* pPawn ) { m_pControllingPawn = pPawn; } void CPlayer::EndControl() { m_pControllingPawn = NULL; m_bActionStop = false; FlushInput( 0, 0, 0 ); } bool CPlayer::ControllingPawnCheckAction( int32 nActionGroup ) { return CheckAction( nActionGroup ); } bool CPlayer::ControllingPawnCheckStateInput( int32 nReason ) { auto strDelayedChargeInput = m_strDelayedChargeInput; m_strDelayedChargeInput = ""; if( nReason == ePawnStateTransitCondition_Finish || nReason == ePawnStateTransitReason_JumpTo ) { auto pStateSource = GetStateSource( m_nCurStateSource ); if( pStateSource ) { bool bChecked = false; ParseInputSequence(); auto& inputTable = *m_pControllingPawn->GetControllingStateInputTable(); for( int i = inputTable.Size() - 1; i >= 0; i-- ) { auto& arrStates = inputTable[i].arrStates; for( int j = 0; j < arrStates.Size(); j++ ) { if( arrStates[j] == m_nCurState ) { bChecked = true; auto& item = inputTable[i].input; if( IsActionPreview() ) { if( strDelayedChargeInput.length() && nReason == ePawnStateTransitReason_JumpTo ) { for( SInputTableItem::SInputItr itr( item ); itr.Next(); ) { if( itr.l == strDelayedChargeInput.length() && 0 == strncmp( strDelayedChargeInput.c_str(), itr.sz, itr.l ) ) { ExecuteInputtableItem( item, m_nCurStateSource ); return true; } } } else ActionPreviewAddInputItem( m_nCurStateSource, &item ); } else if( !m_bIsRealPlayer ) { if( CheckAction( m_nCurActionGroup ) ) return true; } else { int32 nMatchLen; auto szInput = CheckInputTableItem1( item, nMatchLen ); if( szInput ) { int32 nChargeKey = 0; if( nMatchLen && szInput[nMatchLen - 1] == '#' ) nChargeKey = m_nChargeKeyDown; if( ExecuteInputtableItem( item, m_nCurStateSource ) ) { FlushInput( nMatchLen, nChargeKey, 1 ); return true; } else return false; } } } } } if( bChecked ) { if( IsActionPreview() ) { ActionPreviewAddInputItem( m_nCurStateSource, NULL ); if( ActionPreviewWaitInput( nReason == ePawnStateTransitReason_JumpTo ) ) return true; } else GetStage()->GetMasterLevel()->GetMainUI()->InsertDefaultFinishAction(); } } } else if( nReason > ePawnStateTransitCondition_Finish ) FlushInput( 0, 0, 2 ); return false; } void CPlayer::BeginStealth( int32 nMaxValue ) { m_nStealthValue = m_nMaxStealthValue = nMaxValue; } void CPlayer::CancelStealth() { m_nStealthValue = m_nMaxStealthValue = 0; } void CPlayer::UpdateStealthValue( int32 n ) { m_nStealthValue = Min( m_nMaxStealthValue, Max( 0, m_nStealthValue + n ) ); if( !m_nStealthValue ) m_nMaxStealthValue = 0; } void CPlayer::SetInputSequence( const char* szInput ) { SetInputSequence( szInput, m_parsedInputSequence ); } void CPlayer::SetInputSequence( const char* szInput, vector<int8>& result ) { auto l = strlen( szInput ); result.resize( l ); for( int i = 0; i < l; i++ ) { auto chInput = szInput[i]; auto nInput = 0; if( chInput >= '1' && chInput <= '9' ) { if( chInput == '3' || chInput == '6' || chInput == '9' ) nInput |= 1; if( chInput == '1' || chInput == '4' || chInput == '7' ) nInput |= 4; if( chInput == '7' || chInput == '8' || chInput == '9' ) nInput |= 2; if( chInput == '1' || chInput == '2' || chInput == '3' ) nInput |= 8; } else if( chInput == 'A' ) nInput = -1; else if( chInput == 'B' ) nInput = -2; else if( chInput == 'C' ) nInput = -3; else if( chInput == 'D' ) nInput = -4; result[i] = nInput; } } vector<int8>& CPlayer::ParseInputSequence() { int8 nKeyDown = 0; bool bFinish = false; bool bActionKeyDown[4] = { 0, 0, 0, 0 }; m_parsedInputSequence.resize( 0 ); for( auto n : m_vecInputQueues ) { auto k0 = nKeyDown; if( n <= ePlayerInput_Down_Down ) { if( bFinish ) { bFinish = false; m_parsedInputSequence.resize( 0 ); } nKeyDown |= 1 << n; auto n2 = n ^ 2; nKeyDown &= ~( 1 << n2 ); } else if( n <= ePlayerInput_Down_Up ) { nKeyDown &= ~( 1 << ( n - 4 ) ); } else if( n <= ePlayerInput_D_Down ) { bActionKeyDown[n - ePlayerInput_A_Down] = true; continue; } else { if( !bActionKeyDown[n - ePlayerInput_A_Up] ) continue; bActionKeyDown[n - ePlayerInput_A_Up] = false; if( bFinish ) m_parsedInputSequence.back() = -1 - n + ePlayerInput_A_Up; else m_parsedInputSequence.push_back( -1 - n + ePlayerInput_A_Up ); nKeyDown = 0; bFinish = true; continue; } if( nKeyDown && k0 != nKeyDown ) m_parsedInputSequence.push_back( nKeyDown ); } for( int i = 0; i < 4; i++ ) { if( !bActionKeyDown[i] ) continue; if( bFinish ) m_parsedInputSequence.back() = -1 - i; else m_parsedInputSequence.push_back( -1 - i ); bFinish = true; } int32 nMaxInput = 99; if( m_parsedInputSequence.size() > nMaxInput ) { if( m_strScriptInputOverflow.length() ) { auto pLuaState = CLuaMgr::GetCurLuaState(); pLuaState->Load( m_strScriptInputOverflow ); pLuaState->PushLua( this ); pLuaState->Call( 1, 0 ); } } return m_parsedInputSequence; } void CPlayer::InitState() { if( m_pCurEquipment[ePlayerEquipment_Large] ) { m_nCurState = 0; ChangeState( m_pCurEquipment[ePlayerEquipment_Large]->m_arrSubStates[0], ePlayerEquipment_Large + 1, true ); Update0(); return; } CPawn::InitState(); } bool CPlayer::TransitTo( const char* szToName, int32 nTo, int32 nReason ) { auto strDelayedChargeInput = m_strDelayedChargeInput; m_strDelayedChargeInput = ""; if( nReason == ePawnStateTransitCondition_Finish || nReason == ePawnStateTransitReason_JumpTo ) { auto pStateSource = GetStateSource( m_nCurStateSource ); if( pStateSource ) { bool bChecked = false; ParseInputSequence(); auto& inputTable = m_nCurStateSource ? pStateSource->m_stateInputTable : m_stateInputTable; for( int i = inputTable.Size() - 1; i >= 0; i-- ) { auto& arrStates = inputTable[i].arrStates; for( int j = 0; j < arrStates.Size(); j++ ) { if( arrStates[j] == m_nCurState ) { bChecked = true; auto& item = inputTable[i].input; if( IsActionPreview() ) { if( strDelayedChargeInput.length() && nReason == ePawnStateTransitReason_JumpTo ) { for( SInputTableItem::SInputItr itr( item ); itr.Next(); ) { if( itr.l == strDelayedChargeInput.length() && 0 == strncmp( strDelayedChargeInput.c_str(), itr.sz, itr.l ) ) { ExecuteInputtableItem( item, m_nCurStateSource ); return true; } } } else ActionPreviewAddInputItem( m_nCurStateSource, &item ); } else if( !m_bIsRealPlayer ) { if( CheckAction( m_nCurActionGroup ) ) return true; } else { int32 nMatchLen; auto szInput = CheckInputTableItem1( item, nMatchLen ); if( szInput ) { int32 nChargeKey = 0; if( nMatchLen && szInput[nMatchLen - 1] == '#' ) nChargeKey = m_nChargeKeyDown; if( ExecuteInputtableItem( item, m_nCurStateSource ) ) { m_nActionEftFrame = ACTION_EFT_FRAMES; FlushInput( nMatchLen, nChargeKey, 1 ); return true; } else goto forcebreak; } } } } } if( bChecked ) { if( IsActionPreview() ) { ActionPreviewAddInputItem( m_nCurStateSource, NULL ); if( ActionPreviewWaitInput( nReason == ePawnStateTransitReason_JumpTo ) ) return true; } else { m_nActionEftFrame = ACTION_EFT_FRAMES; GetStage()->GetMasterLevel()->GetMainUI()->InsertDefaultFinishAction(); } } } } else if( nReason > ePawnStateTransitCondition_Finish ) FlushInput( 0, 0, 2 ); forcebreak: auto nChargeKeyDown = m_nChargeKeyDown; if( szToName && szToName[0] ) { if( m_pCurMount ) { auto& arrStates = m_pCurMount->m_arrSubStates; for( int j = 0; j < arrStates.Size(); j++ ) { if( arrStates[j].strName == szToName ) { m_nCurState = j; if( !ChangeState( arrStates[j], ePlayerStateSource_Mount, false ) ) return false; if( nReason == ePawnStateTransitReason_JumpTo ) m_nChargeKeyDown = nChargeKeyDown; return true; } } } else { for( int i0 = 0; i0 < ePlayerEquipment_Count; i0++ ) { auto i = i0 == 0 ? ePlayerEquipment_Large : i0 - 1; if( m_nCurStateSource && m_nCurStateSource != ePlayerStateSource_Mount && i != m_nCurStateSource - 1 ) continue; if( m_pCurEquipment[i] ) { auto& arrStates = m_pCurEquipment[i]->m_arrSubStates; for( int j = 0; j < arrStates.Size(); j++ ) { if( arrStates[j].strName == szToName ) { m_nCurState = j; if( !ChangeState( arrStates[j], i + 1, false ) ) return false; if( nReason == ePawnStateTransitReason_JumpTo ) m_nChargeKeyDown = nChargeKeyDown; return true; } } } } } } if( CPawn::TransitTo( szToName, nTo, nReason ) ) { if( nReason == ePawnStateTransitReason_JumpTo ) m_nChargeKeyDown = nChargeKeyDown; return true; } return false; } bool CPlayer::EnumAllCommonTransits( function<bool( SPawnStateTransit1&, int32 )> Func ) { if( m_pCurMount ) { auto& transits = m_pCurMount->m_arrCommonStateTransits; for( int i = 0; i < transits.Size(); i++ ) { if( Func( transits[i], m_nCurStateSource ) ) return true; } return false; } if( m_nCurStateSource ) { auto pStateSource = GetStateSource( m_nCurStateSource ); if( pStateSource && pStateSource == m_pCurStateSource ) { auto& transits = pStateSource->m_arrCommonStateTransits; for( int i = 0; i < transits.Size(); i++ ) { if( Func( transits[i], m_nCurStateSource ) ) return true; } } if( m_nCurStateSource == ePlayerEquipment_Large + 1 ) return false; } return CPawn::EnumAllCommonTransits( Func ); } bool CPlayer::ChangeState( SPawnState& state, int32 nStateSource, bool bInit ) { if( !bInit && GetLevel() ) { if( m_arrForms.Size() && state.nForm != m_nCurForm ) { if( !GetLevel()->PawnTransform( this, state.nForm, TVector2<int32>( 0, 0 ), false ) ) return false; } } else ASSERT( !m_arrForms.Size() || state.nForm == m_nCurForm ); if( !bInit && GetLevel() ) GetLevel()->PawnMoveBreak( this ); if( m_pCurUsingPawn ) { if( m_pCurUsingPawn->GetStage() ) m_pCurUsingPawn->GetUsage()->EndUse( this ); m_pCurUsingPawn = NULL; } if( m_pCurMount ) { if( nStateSource != ePlayerStateSource_Mount ) UnMount(); } m_bActionStop = false; m_nChargeKeyDown = 0; m_nTickInputOnActionStop = 0; m_nCurStateTick = 0; auto origRect = m_origRect; auto origTexRect = m_origTexRect; m_pCurStateSource = GetStateSource( nStateSource ); if( m_pCurStateSource ) { origRect = m_pCurStateSource->m_origRect; origTexRect = m_pCurStateSource->m_origTexRect; auto pTracerEffect = SafeCast<CTracerEffect>( m_pOrigRenderObject.GetPtr() ); if( pTracerEffect && m_pCurStateSource->m_pSpecialRenderObject ) m_pNewRenderObject = m_pCurStateSource->m_pSpecialRenderObject; else m_pNewRenderObject = m_pCurStateSource->m_pOrigRenderObject; if( m_bIsRealPlayer ) { for( int i = 0; i < 2; i++ ) m_pNewEft[i] = m_pCurStateSource->m_pEft[i]; } } else { m_pNewRenderObject = m_pOrigRenderObject; if( m_bIsRealPlayer ) { for( int i = 0; i < 2; i++ ) m_pNewEft[i] = m_pEft[i]; } } m_nCurStateSource = nStateSource; m_curStateBeginPos = ( nStateSource == ePlayerStateSource_Mount && !m_bMountAnimPlayerOriented ? CVector2( m_pCurMountingPawn->GetPos().x, m_pCurMountingPawn->GetPos().y ) : CVector2( m_pos.x, m_pos.y ) ) * LEVEL_GRID_SIZE; CRectangle rect( origRect.x - state.nImgExtLeft * origRect.width, origRect.y - state.nImgExtTop * origRect.height, origRect.width * ( 1 + state.nImgExtLeft + state.nImgExtRight ), origRect.height * ( 1 + state.nImgExtTop + state.nImgExtBottom ) ); if( m_nCurDir ) rect = CRectangle( LEVEL_GRID_SIZE_X * m_nWidth - rect.GetRight(), rect.y, rect.width, rect.height ); m_curStateOrigPos = m_pos; m_curStateRect = rect; m_curStateOrigTexRect = origTexRect; m_nCurStateCheckAction = -1; memset( m_nCurStateSpecialState, 0, sizeof( m_nCurStateSpecialState ) ); m_bCurStateDirty = true; if( GetLevel() ) GetLevel()->OnPlayerChangeState( state, nStateSource, m_nCurDir ); if( m_pAI ) m_pAI->OnChangeState(); m_trigger.Trigger( 2, NULL ); return true; } void CPlayer::Update0() { if( m_pNewRenderObject ) { if( m_pNewRenderObject != GetRenderObject() ) SetRenderObject( m_pNewRenderObject ); m_pNewRenderObject = NULL; } if( m_bIsRealPlayer ) { for( int i = 0; i < 2; i++ ) { if( m_pNewEft[i] ) { if( m_pNewEft[i] != m_pCurEft[i].GetPtr() ) { AddChildBefore( m_pNewEft[i], m_pCurEft[i] ); m_pCurEft[i]->RemoveThis(); m_pNewEft[i]->bVisible = false; m_pCurEft[i] = m_pNewEft[i]; } m_pNewEft[i] = NULL; } } } CPawn::Update0(); if( m_pCurMountingPawn && m_nCurStateSource == ePlayerStateSource_Mount && m_bUseMountRenderOrder ) m_nCurStateRenderOrder = ( m_pCurMountingPawn->GetPosY() + m_pCurMountingPawn->GetToY() ) * 64 - m_pCurMountingPawn->GetRenderOrder(); } bool CPlayer::IsCurStateInterrupted() { //if( !m_pCurMount && m_nCurStateSource == ePlayerStateSource_Mount ) // return true; return false; } bool CPlayer::CheckAction( int32 nGroup ) { if( !m_bIsRealPlayer ) { if( m_bMounted ) return false; if( m_pAI ) { auto nDir = m_nCurDir; CString strState = ""; if( m_pAI->CheckAction1( strState, m_nCurDir ) ) { if( TransitTo( strState, -1, -1 ) ) return true; m_nCurDir = nDir; } } return false; } m_nCurActionGroup = nGroup; if( !m_bActionStop || IsActionPreview() ) { ParseInputSequence(); bool b = false; if( CPawn::CheckAction( nGroup ) ) b = true; else b = HandleInput( nGroup ); m_bActionStop = !b; return b; } return false; } bool CPlayer::CheckCanFinish() { return !m_nChargeKeyDown && !m_strDelayedChargeInput.length() && !m_pControllingPawn; } bool CPlayer::HandleInput( int32 nActionGroup ) { if( m_pControllingPawn ) { auto& inputTable = *m_pControllingPawn->GetControllingInputTable(); for( int j = inputTable.Size() - 1; j >= 0; j-- ) { auto& item = inputTable[j]; if( item.nActionGroup != nActionGroup ) continue; if( IsActionPreview() ) ActionPreviewAddInputItem( m_nCurStateSource, &item ); else { auto len = CheckInputTableItem( item ); if( len ) { bool b = ExecuteInputtableItem( item, -1 ); if( !b ) break; FlushInput( len, 0, 0 ); return true; } } } if( IsActionPreview() ) return ActionPreviewWaitInput( false ); FlushInput( 0, 0, 0 ); return false; } if( m_pCurMount ) { auto& inputTable = m_pCurMount->m_inputTable; for( int j = inputTable.Size() - 1; j >= 0; j-- ) { auto& item = inputTable[j]; if( item.nActionGroup != nActionGroup ) continue; if( IsActionPreview() ) ActionPreviewAddInputItem( ePlayerStateSource_Mount, &item ); else { auto len = CheckInputTableItem( item ); if( len ) { bool b = ExecuteInputtableItem( item, ePlayerStateSource_Mount ); if( !b ) break; FlushInput( len, 0, 0 ); return true; } } } if( IsActionPreview() ) { if( ActionPreviewWaitInput( false ) ) return true; } //m_nCurState = 0; //ChangeState( m_pCurMount->m_arrSubStates[0], ePlayerStateSource_Mount, false ); FlushInput( 0, 0, 0 ); return false; } if( m_pCurEquipment[ePlayerEquipment_Large] ) { auto& inputTable = m_pCurEquipment[ePlayerEquipment_Large]->m_inputTable; for( int j = inputTable.Size() - 1; j >= 0; j-- ) { auto& item = inputTable[j]; if( item.nActionGroup != nActionGroup ) continue; if( IsActionPreview() ) ActionPreviewAddInputItem( ePlayerEquipment_Large + 1, &item ); else { auto len = CheckInputTableItem( item ); if( len ) { bool b = ExecuteInputtableItem( item, ePlayerEquipment_Large + 1 ); if( !b ) break; FlushInput( len, 0, 0 ); return true; } } } if( !IsActionPreview() && m_parsedInputSequence.size() && m_parsedInputSequence.back() == -4 ) { FlushInput( 1, 0, 0 ); auto pMount = GetLevel()->FindMount( TVector2<int32>( 0, 0 ) ); if( pMount ) { if( pMount->GetCostEquipment().length() ) { ASSERT( m_pCurEquipment[ePlayerEquipment_Large]->GetEquipmentName() == pMount->GetCostEquipment() ); if( pMount->GetCostEquipmentType() == 0 ) m_pCurEquipment[ePlayerEquipment_Large] = NULL; } pMount->Mount( this ); return true; } TransitTo( "break", 0, -1 ); return true; } if( IsActionPreview() ) { if( ActionPreviewWaitInput( false ) ) return true; } FlushInput( 0, 0, 0 ); return false; } for( int i = 0; i < ePlayerEquipment_Large; i++ ) { if( m_pCurEquipment[i] ) { auto& inputTable = m_pCurEquipment[i]->m_inputTable; for( int j = inputTable.Size() - 1; j >= 0; j-- ) { auto& item = inputTable[j]; if( item.nActionGroup != nActionGroup ) continue; if( IsActionPreview() ) ActionPreviewAddInputItem( i + 1, &item ); else { auto len = CheckInputTableItem( item ); if( len ) { bool b = ExecuteInputtableItem( item, i + 1 ); if( !b ) break; FlushInput( len, 0, 0 ); return true; } } } } } for( int i = m_inputTable.Size() - 1; i >= 0; i-- ) { auto& item = m_inputTable[i]; if( item.nActionGroup != nActionGroup ) continue; if( IsActionPreview() ) ActionPreviewAddInputItem( 0, &item ); else { auto len = CheckInputTableItem( item ); if( len ) { bool b = ExecuteInputtableItem( item, 0 ); if( !b ) break; FlushInput( len, 0, 0 ); return true; } } } if( IsActionPreview() ) return ActionPreviewWaitInput( false ); if( m_parsedInputSequence.size() ) { if( m_parsedInputSequence.back() == -4 ) { FlushInput( 1, 0, 0 ); if( GetLevel()->FindPickUp( GetMoveTo(), m_nWidth, m_nHeight ) ) { TransitTo( "pick", 0, -1 ); return true; } auto pMount = GetLevel()->FindMount( TVector2<int32>( 0, 0 ) ); if( pMount ) { pMount->Mount( this ); return true; } auto pUseable = GetLevel()->FindUseablePawn( GetMoveTo(), m_nCurDir, m_nWidth, m_nHeight ); if( pUseable ) { auto pUsage = pUseable->GetUsage(); const char* szUseAction = pUsage->GetUseAction(); if( szUseAction[0] ) { TransitTo( pUsage->GetUseAction(), 0, -1 ); m_pCurUsingPawn = pUseable; pUsage->BeginUse( this ); } else { TransitTo( "", 0, -1 ); pUsage->UseHit( this ); } return true; } TransitTo( "break", 0, -1 ); return true; } } FlushInput( 0, 0, 0 ); return false; } int32 CPlayer::CheckInputTableItem( SInputTableItem& item ) { int32 l = 0; CheckInputTableItem1( item, l ); return l; } const char* CPlayer::CheckInputTableItem1( SInputTableItem& item, int32& len ) { for( SInputTableItem::SInputItr itr( item ); itr.Next(); ) { if( itr.lCondition ) { char* sz = (char*)alloca( itr.lCondition + 1 ); memcpy( sz, itr.szCondition, itr.lCondition ); sz[itr.lCondition] = 0; if( !GetLevel()->GetMasterLevel()->EvaluateKeyInt( sz ) ) continue; } auto sz = itr.sz; int32 l = itr.l; if( l && sz[l - 1] == '#' ) { if( !m_nChargeKeyDown ) continue; l--; } if( m_parsedInputSequence.size() < l ) continue; auto nCurDir = m_pControllingPawn ? m_pControllingPawn->GetCurDir() : m_nCurDir; bool bOK = true; for( int j = 0; j < l; j++ ) { auto nInput = m_parsedInputSequence[j + m_parsedInputSequence.size() - l]; auto chInput = sz[j]; auto nInput1 = 0; if( chInput >= '1' && chInput <= '9' ) { int8 nForward = nCurDir == 0 ? 1 : 4; int8 nBack = nCurDir == 0 ? 4 : 1; if( chInput == '3' || chInput == '6' || chInput == '9' ) nInput1 |= nForward; if( chInput == '1' || chInput == '4' || chInput == '7' ) nInput1 |= nBack; if( chInput == '7' || chInput == '8' || chInput == '9' ) nInput1 |= 2; if( chInput == '1' || chInput == '2' || chInput == '3' ) nInput1 |= 8; } else if( chInput == 'A' ) nInput1 = -1; else if( chInput == 'B' ) nInput1 = -2; else if( chInput == 'C' ) nInput1 = -3; else if( chInput == 'D' ) nInput1 = -4; if( nInput != nInput1 ) { bOK = false; break; } } if( bOK ) { len = itr.l; return sz; } } return NULL; } bool CPlayer::ExecuteInputtableItem( SInputTableItem& item, int32 nStateSource ) { CString strStateName = item.strStateName; if( strStateName.length() && strStateName.c_str()[0] == ':' ) { auto pLuaState = CLuaMgr::GetCurLuaState(); pLuaState->Load( strStateName.c_str() + 1 ); pLuaState->PushLua( this ); pLuaState->Call( 1, 0 ); strStateName = ""; } if( item.nStateIndex < 0 ) return false; int8 nChargeKeyDown = 0; if( item.strCharge.length() ) { uint8 nKeyDown = m_nChargeKeyDown; for( auto n : m_vecInputQueues ) { if( n <= ePlayerInput_Down_Down ) nKeyDown |= 1 << n; else if( n <= ePlayerInput_Down_Up ) nKeyDown &= ~( 1 << ( n - 4 ) ); else if( n <= ePlayerInput_D_Down ) nKeyDown |= 1 << ( n - ePlayerInput_A_Down + 4 ); else nKeyDown &= ~( 1 << ( n - ePlayerInput_A_Up + 4 ) ); } int8 nChargeKeys[] = { '6', '8', '4', '2', 'A', 'B', 'C', 'D' }; bool bCharge = true; for( int i = 0; i < item.strCharge.length() && bCharge; i++ ) { auto c = item.strCharge[i]; for( int k = 0; k < ELEM_COUNT( nChargeKeys ); k++ ) { if( c == nChargeKeys[k] ) { if( !( nKeyDown & ( 1 << k ) ) ) break; nChargeKeyDown |= 1 << k; } } } if( !bCharge ) nChargeKeyDown = 0; m_strActionPreviewCharge = item.strCharge; } if( m_pControllingPawn ) { auto nDir = m_pControllingPawn->GetCurDir(); if( item.bInverse ) nDir = 1 - nDir; m_pControllingPawn->StateTransit( strStateName, item.nStateIndex, nDir ); } else { if( item.bInverse ) m_nCurDir = 1 - m_nCurDir; if( nStateSource ) { auto pStateSource = GetStateSource( nStateSource ); if( strStateName.length() ) { for( int k = 0; k < pStateSource->m_arrSubStates.Size(); k++ ) { auto& state = pStateSource->m_arrSubStates[k]; if( state.strName == strStateName ) { m_nCurState = k; ChangeState( state, nStateSource, false ); m_nChargeKeyDown = nChargeKeyDown; return true; } } if( nStateSource <= ePlayerEquipment_Large ) { for( int k = 0; k < m_arrSubStates.Size(); k++ ) { auto& state = m_arrSubStates[k]; if( state.strName == strStateName ) { CPawn::ChangeState( k ); m_nChargeKeyDown = nChargeKeyDown; return true; } } } } auto& state = pStateSource->m_arrSubStates[item.nStateIndex]; m_nCurState = item.nStateIndex; ChangeState( state, nStateSource, false ); } else TransitTo( strStateName, item.nStateIndex, -1 ); } m_nChargeKeyDown = nChargeKeyDown; return true; } void CPlayer::FlushInput( int32 nMatchLen, int8 nChargeKey, int8 nType ) { if( !m_bIsRealPlayer || IsActionPreview() ) return; m_vecInputQueues.resize( 0 ); if( nType == 2 ) m_parsedInputSequence.resize( 0 ); else if( !m_pControllingPawn ) m_nActionEftFrame = ACTION_EFT_FRAMES; GetStage()->GetMasterLevel()->GetMainUI()->OnPlayerAction( m_parsedInputSequence, nMatchLen, nChargeKey, nType ); GetLevel()->OnPlayerAction( m_parsedInputSequence, nMatchLen, nType ); } bool CPlayer::StateCost( int8 nType, int32 nCount ) { if( nType == 0 ) { auto pStateSource = GetStateSource( m_nCurStateSource ); if( !pStateSource ) return false; auto nAmmo = pStateSource->GetAmmo() - nCount; if( nAmmo < 0 ) return false; pStateSource->SetAmmo( nAmmo ); return true; } else if( nType == 1 ) { if( m_nHp <= nCount ) return false; SetHp( m_nHp - nCount ); return true; } return false; } void CPlayer::ActionPreviewAddInputItem( int8 nType, SInputTableItem* pItem ) { if( pItem ) { if( pItem->nStateIndex < 0 ) return; auto& vec = m_vecActionPreviewInputItem[nType]; for( auto& pItem1 : vec ) { if( !pItem1 ) continue; if( pItem1->bInverse != pItem->bInverse ) continue; if( pItem1->strStateName.length() || pItem->strStateName.length() ) { if( pItem1->strStateName == pItem->strStateName ) { pItem1 = pItem; return; } } else if( pItem1->nStateIndex == pItem->nStateIndex ) { pItem1 = pItem; return; } } } m_vecActionPreviewInputItem[nType].push_back( pItem ); } bool CPlayer::ActionPreviewWaitInput( bool bJumpTo ) { m_nActionPreviewType = -1; m_nActionPreviewIndex = -1; while( m_nActionPreviewIndex == -1 ) GetLevel()->ActionPreviewPause(); if( m_nActionPreviewType == -1 ) return false; auto pItem = m_vecActionPreviewInputItem[m_nActionPreviewType][m_nActionPreviewIndex]; for( int i = 0; i < ELEM_COUNT( m_vecActionPreviewInputItem ); i++ ) { m_vecActionPreviewInputItem[i].clear(); } if( pItem ) { if( !bJumpTo && pItem->strInput.length() ) { SInputTableItem::SInputItr itr( *pItem ); auto l = itr.Next(); if( l && itr.sz[l - 1] == '#' ) { m_strDelayedChargeInput.assign( itr.sz, itr.sz + itr.l ); return true; } } ExecuteInputtableItem( *pItem, m_nActionPreviewType ); return true; } return false; } void CPlayer::ActionPreviewInput( int8 nType, int32 nIndex ) { m_nActionPreviewType = nType; m_nActionPreviewIndex = nIndex; } CPlayerEquipment* CPlayer::GetStateSource( int8 nType ) { if( nType == ePlayerStateSource_Mount ) return m_pCurMount; else if( nType > 0 && nType <= ePlayerEquipment_Count ) return m_pCurEquipment[nType - 1]; return NULL; } TVector2<int32> CPawnHit::OnHit( SPawnStateEvent& evt ) { auto pLevel = GetLevel(); TVector2<int32> hitOfs( 0, 0 ); if( m_nHitType == 1 ) { TVector2<int32> hitPoint( 0, 0 ); for( int i = 0; i < arrGridDesc.Size(); i++ ) { auto& desc = arrGridDesc[i]; if( desc.nFlag ) { hitPoint = TVector2<int32>( desc.nOfsX, desc.nOfsY ); break; } } int l = 0; TVector2<int32> ofs[3] = { { 2, 0 }, { 1, 1 }, { 1, -1 } }; for( ; ; l++ ) { auto p = hitPoint + ofs[m_nHitParam[0]] * l; if( m_nCurDir ) p.x = m_nWidth - p.x - 1; p = p + m_moveTo; auto pGrid = pLevel->GetGrid( p ); if( !pGrid || !pGrid->bCanEnter ) break; CPawn* pPawn = pGrid->pPawn0; if( pPawn && pPawn != m_pCreator && !pPawn->IsIgnoreBullet() && !pPawn->IsSpecialState( eSpecialState_Fall ) ) break; } hitOfs = ofs[m_nHitParam[0]] * l; if( l >= 1 ) { for( int i = 0; i <= l; i++ ) { auto pHit = SafeCast<CPawn>( m_pBeamPrefab[i == 0 ? 0 : ( i == l ? 2 : 1 )]->GetRoot()->CreateInstance() ); auto p = hitPoint + ofs[m_nHitParam[0]] * i; if( m_nCurDir ) p.x = m_nWidth - p.x - pHit->GetWidth(); auto pPawnHit = SafeCast<CPawnHit>( pHit ); if( pPawnHit ) pPawnHit->SetHitOfs( p ); auto pos = m_moveTo + p; auto dir = m_nCurDir; GetLevel()->AddPawn( pHit, pos, dir, !m_pCreator ? this : m_pCreator ); } } } for( int i = 0; i < arrGridDesc.Size(); i++ ) { auto& desc = arrGridDesc[i]; if( desc.nHitIndex >= 0 && desc.nHitIndex != evt.nParams[0] ) continue; TVector2<int32> ofs( desc.nOfsX, desc.nOfsY ); ofs = ofs + hitOfs; if( m_nCurDir ) ofs.x = m_nWidth - ofs.x - 1; auto p = ofs + m_moveTo; auto pGrid = pLevel->GetGrid( p ); if( !pGrid ) continue; auto pPawn = pGrid->pPawn0; bool bHit = pPawn && pPawn.GetPtr() != m_pCreator && !( desc.nHitType && pPawn->IsSpecialState( eSpecialState_Fall ) ); if( bHit ) { auto nCheckHit = pPawn->CheckHit( p, desc.nDamageType ); if( nCheckHit <= 0 ) { bHit = false; if( nCheckHit < 0 ) pPawn->Block( hitOfs + m_hitOfs ); } } if( !bHit ) { if( desc.nDamageType > 0 ) pGrid->nMissBashEft = ( desc.nHitType == 1 ? -1 : 1 ) * (int32)CGlobalCfg::Inst().lvIndicatorData.vecMissParams.size(); else pGrid->nMissEft = ( desc.nHitType == 1 ? -1 : 1 ) * (int32)CGlobalCfg::Inst().lvIndicatorData.vecMissParams.size(); continue; } if( desc.nDamage ) { auto n = pPawn->Damage( desc.nDamage, desc.nDamageType, hitOfs + m_hitOfs, this ); if( !n ) pGrid->nHitBlockedEft = ( desc.nHitType == 1 ? -1 : 1 ) * (int32)CGlobalCfg::Inst().lvIndicatorData.vecHitBlockedParams.size(); else if( desc.nDamageType > 0 ) pGrid->nHitBashEft = ( desc.nHitType == 1 ? -1 : 1 ) * (int32)CGlobalCfg::Inst().lvIndicatorData.vecHitParams.size(); else pGrid->nHitEft = ( desc.nHitType == 1 ? -1 : 1 ) * (int32)CGlobalCfg::Inst().lvIndicatorData.vecHitParams.size(); if( pPawn->GetDamageEft() ) { auto pEft = SafeCast<CPawn>( pPawn->GetDamageEft()->GetRoot()->CreateInstance() ); CPawn* pCreator = m_pCreator; if( !pCreator ) pCreator = this; auto pos = p; if( m_nCurDir ) pos.x -= pEft->GetWidth() - 1; pLevel->AddPawn( pEft, pos, m_nCurDir, pCreator ); } } } return hitOfs; } void CPickUp::OnPreview() { CPawnHit::OnPreview(); if( m_pEquipment ) m_pEquipment->OnPreview(); } void CPickUp::LoadData( IBufReader& buf ) { CPawn::LoadData( buf ); m_bDropped = false; m_bUseInitState = false; if( m_pEquipment ) m_pEquipment->LoadData( buf ); } void CPickUp::SaveData( CBufFile& buf ) { m_bDropped = false; m_bUseInitState = false; CPawn::SaveData( buf ); if( m_pEquipment ) m_pEquipment->SaveData( buf ); } void CPickUp::Init() { CPawnHit::Init(); if( m_pEquipment && m_pEquipment->GetParentEntity() == this ) { m_pEquipment->SetParentEntity( NULL ); m_pEquipment->Init(); } m_nLifeLeft = m_nLife; } void CPickUp::Update() { CPawn::Update(); if( m_nLifeLeft && IsPickUpReady() ) { m_nLifeLeft--; if( !m_nLifeLeft ) { GetLevel()->PawnDeath( this ); return; } if( m_nLifeLeft < 300 ) GetRenderObject()->bVisible = !( ( m_nLifeLeft / 2 ) % 5 ); else GetRenderObject()->bVisible = !( ( m_nLifeLeft / 15 ) & 1 ); } } bool CPickUp::IsPickUpReady() { return 0 == strncmp( "stand", GetCurState().strName.c_str(), 5 ); } bool CPickUp::PickUp( CPlayer* pPlayer ) { if( GetLevel() ) { if( m_strScript.length() ) { auto pLuaState = CLuaMgr::GetCurLuaState(); pLuaState->Load( m_strScript ); pLuaState->PushLua( this ); pLuaState->Call( 1, 1 ); int32 nResult = pLuaState->PopLuaValue<int32>(); if( nResult ) return false; } } if( m_pEquipment ) { m_pEquipment->PrePickedUp( this ); pPlayer->Equip( m_pEquipment ); m_pEquipment = NULL; } if( GetLevel() ) { OnKilled(); m_strKillScript = ""; GetLevel()->RemovePawn( this ); } return true; } bool CPickUp::PickUp1( CPlayer * pPlayer ) { if( m_strScript.length() ) { auto pLuaState = CLuaMgr::GetCurLuaState(); pLuaState->Load( m_strScript ); pLuaState->PushLua( this ); pLuaState->Call( 1, 1 ); int32 nResult = pLuaState->PopLuaValue<int32>(); if( nResult ) return false; } if( m_pEquipment ) { m_pEquipment->PrePickedUp( this ); pPlayer->Equip( m_pEquipment ); m_pEquipment = NULL; } return true; } int32 CPickUp::GetDefaultState() { if( !m_bDropped ) return GetStateIndexByName( "stand" ); return CPawnHit::GetDefaultState(); } void RegisterGameClasses_BasicElems() { REGISTER_ENUM_BEGIN( EPawnStateEventType ) REGISTER_ENUM_ITEM( ePawnStateEventType_CheckAction ) REGISTER_ENUM_ITEM( ePawnStateEventType_MoveBegin ) REGISTER_ENUM_ITEM( ePawnStateEventType_MoveEnd ) REGISTER_ENUM_ITEM( ePawnStateEventType_Hit ) REGISTER_ENUM_ITEM( ePawnStateEventType_Death ) REGISTER_ENUM_ITEM( ePawnStateEventType_Transform ) REGISTER_ENUM_ITEM( ePawnStateEventType_PickUp ) REGISTER_ENUM_ITEM( ePawnStateEventType_Drop ) REGISTER_ENUM_ITEM( ePawnStateEventType_Cost ) REGISTER_ENUM_ITEM( ePawnStateEventType_UnMount ) REGISTER_ENUM_ITEM( ePawnStateEventType_SetZ ) REGISTER_ENUM_ITEM( ePawnStateEventType_Sound ) REGISTER_ENUM_ITEM( ePawnStateEventType_JumpTo ) REGISTER_ENUM_ITEM( ePawnStateEventType_SpecialState ) REGISTER_ENUM_ITEM( ePawnStateEventType_Interaction ) REGISTER_ENUM_ITEM( ePawnStateEventType_Script ) REGISTER_ENUM_END() REGISTER_CLASS_BEGIN( SPawnStateEvent ) REGISTER_MEMBER( eType ) REGISTER_MEMBER( nTick ) REGISTER_MEMBER( nParams ) REGISTER_MEMBER_BEGIN( strParam ) MEMBER_ARG( text, 1 ) REGISTER_MEMBER_END() REGISTER_CLASS_END() REGISTER_ENUM_BEGIN( EPawnStateTransitCondition ) REGISTER_ENUM_ITEM( ePawnStateTransitCondition_Finish ) REGISTER_ENUM_ITEM( ePawnStateTransitCondition_Break ) REGISTER_ENUM_ITEM( ePawnStateTransitCondition_Hit ) REGISTER_ENUM_ITEM( ePawnStateTransitCondition_Killed ) REGISTER_ENUM_END() REGISTER_CLASS_BEGIN( SPawnStateTransit ) REGISTER_MEMBER( strToName ) REGISTER_MEMBER( nTo ) REGISTER_MEMBER( bInverse ) REGISTER_MEMBER( eCondition ) REGISTER_MEMBER( strCondition ) REGISTER_CLASS_END() REGISTER_CLASS_BEGIN( SPawnStateTransit1 ) REGISTER_MEMBER( strToName ) REGISTER_MEMBER( nTo ) REGISTER_MEMBER( bInverse ) REGISTER_MEMBER( arrStrExclude ) REGISTER_MEMBER( arrExclude ) REGISTER_MEMBER( eCondition ) REGISTER_MEMBER( strCondition ) REGISTER_CLASS_END() REGISTER_CLASS_BEGIN( SPawnState ) REGISTER_MEMBER( strName ) REGISTER_MEMBER( nForm ) REGISTER_MEMBER( nTotalTicks ) REGISTER_MEMBER( nTicksPerFrame ) REGISTER_MEMBER( nImgExtLeft ) REGISTER_MEMBER( nImgExtRight ) REGISTER_MEMBER( nImgExtTop ) REGISTER_MEMBER( nImgExtBottom ) REGISTER_MEMBER( nImgTexBeginX ) REGISTER_MEMBER( nImgTexBeginY ) REGISTER_MEMBER( nImgTexCols ) REGISTER_MEMBER( nImgTexCount ) REGISTER_MEMBER( arrEvts ) REGISTER_MEMBER( arrTransits ) REGISTER_MEMBER( arrTags ) REGISTER_CLASS_END() REGISTER_CLASS_BEGIN( SMapIconData ) REGISTER_MEMBER( ofs ) REGISTER_MEMBER( strTag ) REGISTER_MEMBER( strCondition ) REGISTER_MEMBER( nConditionValue ) REGISTER_MEMBER( arrFilter ) REGISTER_MEMBER( bKeepSize ) REGISTER_MEMBER( nTexX ) REGISTER_MEMBER( nTexY ) REGISTER_MEMBER( nDir ) REGISTER_CLASS_END() REGISTER_CLASS_BEGIN( SPawnHitSpawnDesc ) REGISTER_MEMBER( pHit ) REGISTER_MEMBER( strInitState ) REGISTER_MEMBER( nOfsX ) REGISTER_MEMBER( nOfsY ) REGISTER_MEMBER( nDir ) REGISTER_CLASS_END() REGISTER_CLASS_BEGIN( SPawnForm ) REGISTER_MEMBER( strName ) REGISTER_MEMBER( nWidth ) REGISTER_MEMBER( nHeight ) REGISTER_MEMBER( nDefaultState ) REGISTER_CLASS_END() REGISTER_CLASS_BEGIN( CPawnAI ) REGISTER_BASE_CLASS( CEntity ) DEFINE_LUA_REF_OBJECT() REGISTER_LUA_CFUNCTION( GetIntValue ) REGISTER_LUA_CFUNCTION( SetIntValue ) REGISTER_CLASS_END() REGISTER_CLASS_BEGIN( CPawnUsage ) REGISTER_BASE_CLASS( CEntity ) REGISTER_MEMBER( m_strUseAction ) REGISTER_CLASS_END() REGISTER_INTERFACE_BEGIN( ISignalObj ) REGISTER_INTERFACE_END() REGISTER_CLASS_BEGIN( CLevelSpawnHelper ) REGISTER_BASE_CLASS( CEntity ) REGISTER_MEMBER( m_nSpawnType ) REGISTER_MEMBER( m_nDataType ) REGISTER_MEMBER( m_bSpawnDeath ) REGISTER_MEMBER( m_nSpawnParam ) REGISTER_MEMBER_BEGIN( m_strSpawnCondition ) MEMBER_ARG( text, 1 ) REGISTER_MEMBER_END() REGISTER_MEMBER( m_strDeathKey ) REGISTER_MEMBER( m_nDeathState ) REGISTER_CLASS_END() REGISTER_CLASS_BEGIN( SInputTableItem ) REGISTER_MEMBER( strInput ) REGISTER_MEMBER( strStateName ) REGISTER_MEMBER( nStateIndex ) REGISTER_MEMBER( strCharge ) REGISTER_MEMBER( bInverse ) REGISTER_MEMBER( nActionGroup ) REGISTER_CLASS_END() REGISTER_CLASS_BEGIN( SStateInputTableItem ) REGISTER_MEMBER( arrStates ) REGISTER_MEMBER( input ) REGISTER_CLASS_END() REGISTER_CLASS_BEGIN( CPawn ) REGISTER_BASE_CLASS( CEntity ) REGISTER_BASE_CLASS( ISignalObj ) REGISTER_MEMBER( m_bIsEnemy ) REGISTER_MEMBER( m_bIsDynamic ) REGISTER_MEMBER( m_bBlockSight ) REGISTER_MEMBER( m_bIgnoreBullet ) REGISTER_MEMBER( m_bForceHit ) REGISTER_MEMBER( m_bIgnoreBlockedExit ) REGISTER_MEMBER( m_bNextStageBlock ) REGISTER_MEMBER( m_bHideInEditor ) REGISTER_MEMBER( m_nInitDir ) REGISTER_MEMBER( m_nArmorType ) REGISTER_MEMBER( m_bUseInitState ) REGISTER_MEMBER( m_bUseDefaultState ) REGISTER_MEMBER( m_nLevelDataType ) REGISTER_MEMBER( m_bIconOnly ) REGISTER_MEMBER( m_nInitState ) REGISTER_MEMBER( m_nDefaultState ) REGISTER_MEMBER( m_nWidth ) REGISTER_MEMBER( m_nHeight ) REGISTER_MEMBER( m_nHitWidth ) REGISTER_MEMBER( m_nHitHeight ) REGISTER_MEMBER( m_nMaxHp ) REGISTER_MEMBER( m_arrForms ) REGISTER_MEMBER( m_arrSubStates ) REGISTER_MEMBER( m_arrHitSpawnDesc ) REGISTER_MEMBER( m_arrCommonStateTransits ) REGISTER_MEMBER( m_origRect ) REGISTER_MEMBER( m_origTexRect ) REGISTER_MEMBER( m_nRenderOrder ) REGISTER_MEMBER_BEGIN( m_strKillScript ) MEMBER_ARG( text, 1 ) REGISTER_MEMBER_END() REGISTER_MEMBER( m_pDamageEft ) REGISTER_MEMBER_TAGGED_PTR( m_pAI, ai ) REGISTER_MEMBER_TAGGED_PTR( m_pUsage, usage ) REGISTER_MEMBER_TAGGED_PTR( m_pHpBar, hpbar ) REGISTER_MEMBER( m_nMapIconType ) REGISTER_MEMBER( m_bMapIconKeepSize ) REGISTER_MEMBER( m_nMapIconTexX ) REGISTER_MEMBER( m_nMapIconTexY ) REGISTER_MEMBER( m_strMapIconTag ) REGISTER_MEMBER( m_arrTags ) DEFINE_LUA_REF_OBJECT() REGISTER_LUA_CFUNCTION( ScriptDamage ) REGISTER_LUA_CFUNCTION( SetDamaged ) REGISTER_LUA_CFUNCTION( GetLevel ) REGISTER_LUA_CFUNCTION( GetCreator ) REGISTER_LUA_CFUNCTION( GetPosX ) REGISTER_LUA_CFUNCTION( GetPosY ) REGISTER_LUA_CFUNCTION( GetToX ) REGISTER_LUA_CFUNCTION( GetToY ) REGISTER_LUA_CFUNCTION( GetCurStateDestX ) REGISTER_LUA_CFUNCTION( GetCurStateDestY ) REGISTER_LUA_CFUNCTION( IsPosHidden ) REGISTER_LUA_CFUNCTION( IsToHidden ) REGISTER_LUA_CFUNCTION( IsEnemy ) REGISTER_LUA_CFUNCTION( HasTag ) REGISTER_LUA_CFUNCTION( GetTag ) REGISTER_LUA_CFUNCTION( GetCurDir ) REGISTER_LUA_CFUNCTION( GetCurStateIndex ) REGISTER_LUA_CFUNCTION( SetInitState ) REGISTER_LUA_CFUNCTION( SetDefaultState ) REGISTER_LUA_CFUNCTION( GetHp ) REGISTER_LUA_CFUNCTION( GetMaxHp ) REGISTER_LUA_CFUNCTION( SetHp ) REGISTER_LUA_CFUNCTION( IsKilled ) REGISTER_LUA_CFUNCTION( SetForceHide ) REGISTER_LUA_CFUNCTION( IsDamaged ) REGISTER_LUA_CFUNCTION( GetDamageType ) REGISTER_LUA_CFUNCTION( GetDamageOfsX ) REGISTER_LUA_CFUNCTION( GetDamageOfsY ) REGISTER_LUA_CFUNCTION( GetDamageOfsDir ) REGISTER_LUA_CFUNCTION( GetDamageOfsDir1 ) REGISTER_LUA_CFUNCTION( HasStateTag ) REGISTER_LUA_CFUNCTION( IsLocked ) REGISTER_LUA_CFUNCTION( SetLocked ) REGISTER_LUA_CFUNCTION( PlayState ) REGISTER_LUA_CFUNCTION( PlayStateTurnBack ) REGISTER_LUA_CFUNCTION( PlayStateSetDir ) REGISTER_LUA_CFUNCTION( PlayStateForceMove ) REGISTER_LUA_CFUNCTION( GetAI ) REGISTER_LUA_CFUNCTION( ChangeAI ) REGISTER_LUA_CFUNCTION( GetCurStateName ) REGISTER_LUA_CFUNCTION( RegisterSignalScript ) REGISTER_LUA_CFUNCTION( RegisterKilledScript ) REGISTER_LUA_CFUNCTION( SetTracerEffectDisabled ) REGISTER_CLASS_END() REGISTER_CLASS_BEGIN( CPlayerEquipment ) REGISTER_BASE_CLASS( CEntity ) REGISTER_MEMBER( m_strEquipmentName ) REGISTER_MEMBER( m_nEquipType ) REGISTER_MEMBER( m_nAmmoType ) REGISTER_MEMBER( m_nAmmo ) REGISTER_MEMBER( m_nMaxAmmo ) REGISTER_MEMBER( m_nIcon ) REGISTER_MEMBER( m_nAmmoIconWidth ) REGISTER_MEMBER( m_arrSubStates ) REGISTER_MEMBER( m_arrHitSpawnDesc ) REGISTER_MEMBER( m_arrCommonStateTransits ) REGISTER_MEMBER( m_inputTable ) REGISTER_MEMBER( m_stateInputTable ) REGISTER_MEMBER( m_origRect ) REGISTER_MEMBER( m_origTexRect ) REGISTER_MEMBER_BEGIN( m_strOnBlock ) MEMBER_ARG( text, 1 ) REGISTER_MEMBER_END() REGISTER_MEMBER_TAGGED_PTR( m_pEft[0], 0 ) REGISTER_MEMBER_TAGGED_PTR( m_pEft[1], 1 ) REGISTER_MEMBER_TAGGED_PTR( m_pSpecialRenderObject, sp ) DEFINE_LUA_REF_OBJECT() REGISTER_LUA_CFUNCTION( GetAmmo ) REGISTER_LUA_CFUNCTION( SetAmmo ) REGISTER_CLASS_END() REGISTER_CLASS_BEGIN( CPlayerMount ) REGISTER_BASE_CLASS( CEntity ) REGISTER_MEMBER( m_bDisabled ) REGISTER_MEMBER( m_bHidden ) REGISTER_MEMBER( m_bAnimPlayerOriented ) REGISTER_MEMBER( m_bUseMountRenderOrder ) REGISTER_MEMBER( m_bShowPawnOnMount ) REGISTER_MEMBER( m_bNeedLevelComplete ) REGISTER_MEMBER( m_bEnablePreview ) REGISTER_MEMBER( m_nEnterDir ) REGISTER_MEMBER( m_nCostEquipType ) REGISTER_MEMBER( m_nOfsX ) REGISTER_MEMBER( m_nOfsY ) REGISTER_MEMBER( m_nPawnOfsX ) REGISTER_MEMBER( m_nPawnOfsY ) REGISTER_MEMBER( m_strEntryState ) REGISTER_MEMBER( m_strCostEquipment ) REGISTER_MEMBER( m_nNeedStateIndex ) REGISTER_MEMBER( m_nNeedEquipCharge ) REGISTER_MEMBER_TAGGED_PTR( m_pEquipment, equipment ) DEFINE_LUA_REF_OBJECT() REGISTER_LUA_CFUNCTION( SetEnabled ) REGISTER_CLASS_END() REGISTER_CLASS_BEGIN( CPlayer ) REGISTER_BASE_CLASS( CPawn ) REGISTER_MEMBER( m_bIsRealPlayer ) REGISTER_MEMBER_BEGIN( m_strScriptDamaged ) MEMBER_ARG( text, 1 ) REGISTER_MEMBER_END() REGISTER_MEMBER_BEGIN( m_strScriptInputOverflow ) MEMBER_ARG( text, 1 ) REGISTER_MEMBER_END() REGISTER_MEMBER( m_inputTable ) REGISTER_MEMBER( m_stateInputTable ) REGISTER_MEMBER( m_actionEftOfs ) REGISTER_MEMBER( m_actionEftParam ) REGISTER_MEMBER_TAGGED_PTR( m_pEft[0], 0 ) REGISTER_MEMBER_TAGGED_PTR( m_pEft[1], 1 ) REGISTER_MEMBER_TAGGED_PTR( m_pDefaultEquipment, default_weapon ) DEFINE_LUA_REF_OBJECT() REGISTER_LUA_CFUNCTION( Reset ) REGISTER_LUA_CFUNCTION( Drop ) REGISTER_LUA_CFUNCTION( DropAll ) REGISTER_LUA_CFUNCTION( GetEquipment ) REGISTER_LUA_CFUNCTION( GetEquipmentName ) REGISTER_LUA_CFUNCTION( ForceUnMount ) REGISTER_LUA_CFUNCTION( GetCurMountingPawn ) REGISTER_LUA_CFUNCTION( IsReadyForMount ) REGISTER_LUA_CFUNCTION( EnableDefaultEquipment ) REGISTER_LUA_CFUNCTION( DisableDefaultEquipment ) REGISTER_LUA_CFUNCTION( HasEquipment ) REGISTER_LUA_CFUNCTION( RemoveEquipment ) REGISTER_LUA_CFUNCTION( RestoreAmmo ) REGISTER_LUA_CFUNCTION( BeginStealth ) REGISTER_LUA_CFUNCTION( CancelStealth ) REGISTER_LUA_CFUNCTION( GetStealthValue ) REGISTER_LUA_CFUNCTION( IsHidden ) REGISTER_CLASS_END() REGISTER_CLASS_BEGIN( SHitGridDesc ) REGISTER_MEMBER( nHitIndex ) REGISTER_MEMBER( nOfsX ) REGISTER_MEMBER( nOfsY ) REGISTER_MEMBER( nDamage ) REGISTER_MEMBER( nHitType ) REGISTER_MEMBER( nDamageType ) REGISTER_MEMBER( nFlag ) REGISTER_CLASS_END() REGISTER_CLASS_BEGIN( CPawnHit ) REGISTER_BASE_CLASS( CPawn ) REGISTER_MEMBER( m_nHitType ) REGISTER_MEMBER( m_nHitParam ) REGISTER_MEMBER( arrGridDesc ) REGISTER_MEMBER( m_pBeamPrefab ) DEFINE_LUA_REF_OBJECT() REGISTER_CLASS_END() REGISTER_CLASS_BEGIN( CPickUp ) REGISTER_BASE_CLASS( CPawnHit ) REGISTER_MEMBER_BEGIN( m_strScript ) MEMBER_ARG( text, 1 ) REGISTER_MEMBER_END() REGISTER_MEMBER( m_nLife ) REGISTER_MEMBER_TAGGED_PTR( m_pEquipment, equipment ) DEFINE_LUA_REF_OBJECT() REGISTER_LUA_CFUNCTION( GetEquipment ) REGISTER_CLASS_END() }
[ "654656040@qq.com" ]
654656040@qq.com
339f391091f3184f36f32565742a027916c79b8f
50db88216aea3e72853b3db457eb7c0bcbde3eb4
/models.cpp
91085f1e5b395e75f38ecc2b68f0a7255a8cf49f
[]
no_license
MamonaAwan/ShadersModels
383102debe6e2abe3e70bc895e9a4c12b587fb0e
2d405ab41f43810eb8da8f08d82e59dcfacd0557
refs/heads/master
2022-11-25T08:49:03.021108
2020-08-03T19:32:54
2020-08-03T19:32:54
284,787,491
1
0
null
null
null
null
UTF-8
C++
false
false
7,427
cpp
//Lamberts Model (Vertex & Fragment Shader): #version 400 in vec4 VertexPosition; in vec4 VertexNormal; out vec4 vVertexPosition; out vec4 vVertexNormal; uniform vec4 Position; uniform vec3 Ld; uniform vec3 Kd; uniform mat4 ModelViewMatrix; uniform mat4 NormalMatrix; uniform mat4 ProjectionMatrix; uniform mat4 MVP; void main() { vVertexPosition = ModelViewMatrix * VertexPosition; vVertexNormal = normalize(NormalMatrix * VertexNormal); gl_Position = MVP * VertexPosition; } #version 400 in vec4 vVertexPosition; in vec4 vVertexNormal; uniform vec4 Position; uniform vec3 Ld; uniform vec3 Kd; out vec4 FragColor; void main() { vec4 L = normalize(Position - vVertexPosition); vec4 Idiff = vec4(Ld,1.0) * max(dot(vVertexNormal,L), 0.0); Idiff = clamp(Idiff, 0.0, 1.0); FragColor = Idiff; } //Phong Model (Vertex & Fragment Shader): #version 400 in vec4 VertexPosition; in vec4 VertexNormal; out vec4 vVertexPosition; out vec4 vVertexNormal; uniform vec4 Position; uniform vec3 La; uniform vec3 Ld; uniform vec3 Ls; uniform vec3 Ka; uniform vec3 Kd; uniform vec3 Ks; uniform float Shininess; uniform mat4 ModelViewMatrix; uniform mat4 NormalMatrix; uniform mat4 ProjectionMatrix; uniform mat4 MVP; void main() { vVertexPosition = ModelViewMatrix * VertexPosition; vVertexNormal = NormalMatrix * VertexNormal; gl_Position = MVP * VertexPosition; } #version 400 in vec4 vVertexPosition; in vec4 vVertexNormal; uniform vec4 Position; uniform vec3 La; uniform vec3 Ld; uniform vec3 Ls; uniform vec3 Ka; uniform vec3 Kd; uniform vec3 Ks; uniform float Shininess; out vec4 FragColor; void main() { vec3 tnorm = normalize(vec3(vVertexNormal)); vec3 s = normalize(vec3(Position -vVertexPosition)); vec3 v = normalize(-vVertexPosition.xyz); vec3 r = reflect( -s, tnorm ); vec3 ambient = La * Ka; float sDotN = max(dot(s,tnorm), 0.0 ); vec3 diffuse = Ld * Kd * sDotN; vec3 spec = vec3(0.0); if( sDotN > 0.0 ) spec = Ls * Ks *pow( max(dot(r,v), 0.0 ), Shininess ); vec3 LightIntensity = ambient + diffuse + spec; FragColor = vec4(LightIntensity, 1.0); } //Blinn Phong Model (Vertex & Fragment Shader): #version 400 in vec4 VertexPosition; in vec4 VertexNormal; out vec4 vVertexPosition; out vec4 vVertexNormal; uniform vec4 Position; uniform vec3 La; uniform vec3 Ld; uniform vec3 Ls; uniform vec3 Ka; uniform vec3 Kd; uniform vec3 Ks; uniform float Shininess; uniform mat4 ModelViewMatrix; uniform mat4 NormalMatrix; uniform mat4 ProjectionMatrix; uniform mat4 MVP; void main() { vVertexPosition = ModelViewMatrix * VertexPosition; vVertexNormal = NormalMatrix * VertexNormal; gl_Position = MVP * VertexPosition; } #version 400 in vec4 vVertexPosition; in vec4 vVertexNormal; uniform vec4 Position; uniform vec3 La; uniform vec3 Ld; uniform vec3 Ls; uniform vec3 Ka; uniform vec3 Kd; uniform vec3 Ks; uniform float Shininess; out vec4 FragColor; void main() { vec3 tnorm = normalize(vec3(vVertexNormal)); vec3 s = normalize(vec3(Position-vVertexPosition)); vec3 v = normalize(-vVertexPosition.xyz); vec3 h = normalize(v+s); vec3 ambient = La * Ka; float hDotN = max(dot(s,tnorm), 0.0 ); vec3 diffuse = Ld * Kd * hDotN; vec3 spec = vec3(0.0); if( hDotN > 0.0 ) spec = Ls * Ks *pow( max(dot(h,tnorm), 0.0 ), Shininess ); vec3 LightIntensity = ambient + diffuse + spec; FragColor = vec4(LightIntensity, 1.0); } //Cook Torrance Model (Vertex & Fragment Shader): #version 400 in vec4 VertexPosition; in vec4 VertexNormal; out vec4 vVertexPosition; out vec4 vVertexNormal; uniform vec4 Position; uniform float Shininess; uniform mat4 ModelViewMatrix; uniform mat4 NormalMatrix; uniform mat4 ProjectionMatrix; uniform mat4 MVP; void main () { vVertexNormal = NormalMatrix*VertexNormal; vVertexPosition = ModelViewMatrix*VertexPosition; gl_Position = MVP * VertexPosition; } #version 400 in vec4 vVertexPosition; in vec4 vVertexNormal; uniform vec4 Position; uniform float Shininess; vec3 uRealRefractIdx = vec3(1.5,0.1,0.2); vec3 uImagRefractIdx = vec3(1.5,0.2,0.2); out vec4 FragColor; void main() { vec3 lightDir = normalize(vVertexPosition.xyz - Position.xyz); vec3 normal = normalize(vVertexNormal.xyz); vec3 viewDir = normalize(-vVertexPosition.xyz); vec3 halfDir = normalize(-(lightDir + viewDir) / 2.0); vec3 two = vec3(2.0, 2.0, 2.0); vec3 realRefractIdxSquared = pow(uRealRefractIdx, two); vec3 imagRefractIdxSquared = pow(uImagRefractIdx, two); vec3 refrIdxSqSum = realRefractIdxSquared + imagRefractIdxSquared; float incidentCos = clamp(dot(normal, halfDir), 0.0, 1.0); float incidentCosSq = pow(incidentCos, 2.0); vec3 twiceNormalIncidentCos = 2.0 * uRealRefractIdx * incidentCos; vec3 fresPt1 = (refrIdxSqSum * incidentCosSq - twiceNormalIncidentCos + 1.0) / (refrIdxSqSum * incidentCosSq + twiceNormalIncidentCos + 1.0); vec3 fresPt2 = (refrIdxSqSum - twiceNormalIncidentCos + incidentCosSq) / (refrIdxSqSum + twiceNormalIncidentCos + incidentCosSq); vec3 fresnel = (pow(fresPt1, two) + pow(fresPt2, two)) / 2.0; float nDotH = clamp(dot(normal, halfDir), 0.0, 1.0); float nDotV = clamp(dot(normal, -viewDir), 0.0, 1.0); float nDotL = clamp(dot(normal, -lightDir), 0.0, 1.0); float vDotH = clamp(dot(-viewDir, halfDir), 0.0, 1.0); float geoAttenTerm1 = (2.0 * nDotH * nDotV) / vDotH; float geoAttenTerm2 = (2.0 * nDotH * nDotL) / vDotH; float masking = min(1.0, min(geoAttenTerm1, geoAttenTerm2)); float distribution = pow(nDotH, Shininess); vec3 cookTorrance = ((fresnel*distribution*masking)/(2.0*nDotL*nDotV)); FragColor = vec4(cookTorrance.xyz, 1.0); } //Ward Model (Vertex & Fragment Shader): #version 400 in vec4 VertexPosition; in vec4 VertexNormal; out vec4 vVertexPosition; out vec4 vVertexNormal; uniform vec4 Position; uniform vec3 La; uniform mat4 ModelViewMatrix; uniform mat4 NormalMatrix; uniform mat4 ProjectionMatrix; uniform mat4 MVP; void main () { vVertexNormal = NormalMatrix*VertexNormal; vVertexPosition = ModelViewMatrix*VertexPosition; gl_Position = MVP * VertexPosition; } #version 400 in vec4 vVertexPosition; in vec4 vVertexNormal; uniform vec4 Position; uniform vec3 La; float alphaX=0.5, alphaY=0.13; // asinotropic roughness float pD = 0.6; float pS = 0.8; float PI = 3.14159; out vec4 FragColor; void main () { vec3 color = vec3(0.0,0.9,0.5); vec3 L = normalize(vVertexPosition.xyz - Position.xyz); vec3 normal = normalize(vVertexNormal.xyz); vec3 eyeDir = normalize(-vVertexPosition.xyz); vec3 e= vec3(1.0,1.0,0.0); vec3 tangent = normalize(cross(normal,e)); vec3 bitangent = normalize(cross(normal,tangent)); float NdotL = dot(normal, L); float diffuse = pD * max(NdotL, 0.0); vec3 halfwayVector = normalize(-(L + eyeDir)/2.0); float NdotV = dot(normal, eyeDir); float HdotN = dot(halfwayVector, normal); float VdotN = dot(eyeDir, normal); float HdotTAlphaX = dot(halfwayVector, tangent) / alphaX; float HdotBAlphaY = dot(halfwayVector, bitangent) / alphaY; float exponent = exp(-2.0*((HdotTAlphaX * HdotTAlphaX)+(HdotBAlphaY*HdotBAlphaY))/(1.0+HdotN)); float specular = pS * sqrt(max(0.0, NdotL / NdotV)) * exponent; vec3 finalValue = color*(diffuse + specular + La); FragColor = vec4(finalValue, 1.0); }
[ "noreply@github.com" ]
noreply@github.com
7fa97aab9408793173c89ae1e073977b8ad34024
39b19a3152778184dfec0a00f80c5c5dc49003d1
/PLCDriveCode/CommandFun/SON/son.cpp
5c086c04f59799e3520d160a558fee135516c0b5
[]
no_license
519984307/PLC-Drive
ed261a9f9d426ea52cd95411dc8bcbdd216ec84c
3a27427f09fa4f3a493ec2f3c821018532738ba0
refs/heads/master
2023-03-19T01:13:24.735308
2020-07-06T02:57:17
2020-07-06T02:57:17
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,800
cpp
#include "son.h" SON::SON() { m_moduleName = "SETSON"; if(InOutPutData::GetInstance()->outPutNum <= 0) return; tempOutputData = new uchar[InOutPutData::GetInstance()->outPutNum]; //获取检查励磁是否成功的参数(bit,vaule) foreach (BIT_VALUE_STRU item, MyShareconfig::GetInstance()->hwconfigstru.hwconfigSonstru.InPutVec) { QPair<int,int> pair = QPair<int,int>(item.bit,item.value); m_tempInOP.append(pair); } //获取励磁的参数(bit,vaule) foreach (BIT_VALUE_STRU item, MyShareconfig::GetInstance()->hwconfigstru.hwconfigSonstru.OutPutVec) { QPair<int,int> pair = QPair<int,int>(item.bit,item.value); m_tempOutOP.append(pair); int offValue = 0; if(item.value == 0) { offValue = 1; } QPair<int,int> pairoff = QPair<int,int>(item.bit,offValue); m_tempOFFSON.append(pairoff); } } void SON::Initialization() { //todo Initialization variable isTerminate = false; BaseCalcFun::MemCopyTempData(tempOutputData); m_InBeginBytePos = -1; m_OutBeginBytePos = -1; } void SON::SetModuleParam(cmdstru orderparam) { m_sonstru = orderparam.sonstru; } void SON::RunModule() { GetAxisBeginBytePos(); } int SON::GetExcResult(QString &strMsg) { int iresult = 0; if(m_InBeginBytePos<0 || m_OutBeginBytePos<0) { iresult = -2; strMsg = "根据传入的参数ID,不能找到对应的字节位置,请确认!"; } else{ if(SetAxisInit()) { iresult =1; strMsg = "son 成功"; } else{ iresult =-1; strMsg = "son 失败"; } } return iresult; } void SON::StopModule() { isTerminate = false; } FunModuleInterface *SON::Copy() { SON *son = new SON; return son; } void SON::GetAxisBeginBytePos() { uint8_t id = m_sonstru.dataheader.badrID; if(MyShareconfig::GetInstance()->hwconfigstru.hwconfigInputMap.contains(0))//have ec type { if(MyShareconfig::GetInstance()->hwconfigstru.hwconfigInputMap[0].contains(id))//addr { if(MyShareconfig::GetInstance()->hwconfigstru.hwconfigInputMap[0][id].hwtype == "1") { m_InBeginBytePos = MyShareconfig::GetInstance()->hwconfigstru.hwconfigInputMap[0][id].curPos; // } } } if(MyShareconfig::GetInstance()->hwconfigstru.hwconfigOutputMap.contains(0))//have ec type { if(MyShareconfig::GetInstance()->hwconfigstru.hwconfigOutputMap[0].contains(id)){// if(MyShareconfig::GetInstance()->hwconfigstru.hwconfigOutputMap[0][id].hwtype == "1") { m_OutBeginBytePos = MyShareconfig::GetInstance()->hwconfigstru.hwconfigOutputMap[0][id].curPos; // } } } } bool SON::SetAxisInit() { if(CheckAxisInit()) return true; QVector<int> tempVec; tempVec.append(m_OutBeginBytePos); BaseAxisOperate::SetAxisExciteOff(m_tempOFFSON,tempVec,tempOutputData); QThread::msleep(50);//延时时间原来50ms BaseAxisOperate::SetAxisExcite(m_tempOutOP,tempVec,tempOutputData); QThread::msleep(50);//延时时原来50ms if(CheckAxisInit()) { return true; } return false; } bool SON::CheckAxisInit() { //检查是否有故障 if(BaseAxisOperate::CheckAxisFault(3,2,m_InBeginBytePos+2)) { BaseAxisOperate::SetAxisReset(7,m_OutBeginBytePos);//設置軸復位 if(BaseAxisOperate::CheckAxisFault(3,2,m_InBeginBytePos+2)) { return false; } } //检查轴是否励磁成功 if(!BaseAxisOperate::CheckAxisExcited(m_tempInOP,2,m_InBeginBytePos+2)) return false; return true; }
[ "ying4090105335@126.com.cn" ]
ying4090105335@126.com.cn
645639d582e01284c666db5fc934c8ed6feb4f6e
5a2349399fa9d57c6e8cc6e0f7226d683391a362
/src/qt/qtwebkit/Source/WebCore/html/HTMLObjectElement.cpp
95c7953cc72baffa6372935be709857685c6a993
[ "BSD-2-Clause", "LGPL-2.1-only", "LGPL-2.0-only", "BSD-3-Clause" ]
permissive
aharthcock/phantomjs
e70f3c379dcada720ec8abde3f7c09a24808154c
7d7f2c862347fbc7215c849e790290b2e07bab7c
refs/heads/master
2023-03-18T04:58:32.428562
2023-03-14T05:52:52
2023-03-14T05:52:52
24,828,890
0
0
BSD-3-Clause
2023-03-14T05:52:53
2014-10-05T23:38:56
C++
UTF-8
C++
false
false
20,399
cpp
/* * Copyright (C) 1999 Lars Knoll (knoll@kde.org) * (C) 1999 Antti Koivisto (koivisto@kde.org) * (C) 2000 Stefan Schimanski (1Stein@gmx.de) * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011 Apple Inc. All rights reserved. * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public License * along with this library; see the file COPYING.LIB. If not, write to * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, * Boston, MA 02110-1301, USA. */ #include "config.h" #include "HTMLObjectElement.h" #include "Attribute.h" #include "CSSValueKeywords.h" #include "CachedImage.h" #include "Chrome.h" #include "ChromeClient.h" #include "EventNames.h" #include "ExceptionCode.h" #include "FormDataList.h" #include "Frame.h" #include "HTMLDocument.h" #include "HTMLFormElement.h" #include "HTMLImageLoader.h" #include "HTMLMetaElement.h" #include "HTMLNames.h" #include "HTMLParamElement.h" #include "HTMLParserIdioms.h" #include "MIMETypeRegistry.h" #include "NodeList.h" #include "NodeTraversal.h" #include "Page.h" #include "PluginViewBase.h" #include "RenderEmbeddedObject.h" #include "RenderImage.h" #include "RenderWidget.h" #include "ScriptEventListener.h" #include "Settings.h" #include "Text.h" #include "Widget.h" namespace WebCore { using namespace HTMLNames; inline HTMLObjectElement::HTMLObjectElement(const QualifiedName& tagName, Document* document, HTMLFormElement* form, bool createdByParser) : HTMLPlugInImageElement(tagName, document, createdByParser, ShouldNotPreferPlugInsForImages) , m_docNamedItem(true) , m_useFallbackContent(false) { ASSERT(hasTagName(objectTag)); setForm(form ? form : findFormAncestor()); } inline HTMLObjectElement::~HTMLObjectElement() { } PassRefPtr<HTMLObjectElement> HTMLObjectElement::create(const QualifiedName& tagName, Document* document, HTMLFormElement* form, bool createdByParser) { return adoptRef(new HTMLObjectElement(tagName, document, form, createdByParser)); } RenderWidget* HTMLObjectElement::renderWidgetForJSBindings() const { document()->updateLayoutIgnorePendingStylesheets(); return renderPart(); // This will return 0 if the renderer is not a RenderPart. } bool HTMLObjectElement::isPresentationAttribute(const QualifiedName& name) const { if (name == borderAttr) return true; return HTMLPlugInImageElement::isPresentationAttribute(name); } void HTMLObjectElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropertySet* style) { if (name == borderAttr) applyBorderAttributeToStyle(value, style); else HTMLPlugInImageElement::collectStyleForPresentationAttribute(name, value, style); } void HTMLObjectElement::parseAttribute(const QualifiedName& name, const AtomicString& value) { if (name == formAttr) formAttributeChanged(); else if (name == typeAttr) { m_serviceType = value.lower(); size_t pos = m_serviceType.find(";"); if (pos != notFound) m_serviceType = m_serviceType.left(pos); if (renderer()) setNeedsWidgetUpdate(true); } else if (name == dataAttr) { m_url = stripLeadingAndTrailingHTMLSpaces(value); if (renderer()) { setNeedsWidgetUpdate(true); if (isImageType()) { if (!m_imageLoader) m_imageLoader = adoptPtr(new HTMLImageLoader(this)); m_imageLoader->updateFromElementIgnoringPreviousError(); } } } else if (name == classidAttr) { m_classId = value; if (renderer()) setNeedsWidgetUpdate(true); } else if (name == onbeforeloadAttr) setAttributeEventListener(eventNames().beforeloadEvent, createAttributeEventListener(this, name, value)); else HTMLPlugInImageElement::parseAttribute(name, value); } static void mapDataParamToSrc(Vector<String>* paramNames, Vector<String>* paramValues) { // Some plugins don't understand the "data" attribute of the OBJECT tag (i.e. Real and WMP // require "src" attribute). int srcIndex = -1, dataIndex = -1; for (unsigned int i = 0; i < paramNames->size(); ++i) { if (equalIgnoringCase((*paramNames)[i], "src")) srcIndex = i; else if (equalIgnoringCase((*paramNames)[i], "data")) dataIndex = i; } if (srcIndex == -1 && dataIndex != -1) { paramNames->append("src"); paramValues->append((*paramValues)[dataIndex]); } } // FIXME: This function should not deal with url or serviceType! void HTMLObjectElement::parametersForPlugin(Vector<String>& paramNames, Vector<String>& paramValues, String& url, String& serviceType) { HashSet<StringImpl*, CaseFoldingHash> uniqueParamNames; String urlParameter; // Scan the PARAM children and store their name/value pairs. // Get the URL and type from the params if we don't already have them. for (Node* child = firstChild(); child; child = child->nextSibling()) { if (!child->hasTagName(paramTag)) continue; HTMLParamElement* p = static_cast<HTMLParamElement*>(child); String name = p->name(); if (name.isEmpty()) continue; uniqueParamNames.add(name.impl()); paramNames.append(p->name()); paramValues.append(p->value()); // FIXME: url adjustment does not belong in this function. if (url.isEmpty() && urlParameter.isEmpty() && (equalIgnoringCase(name, "src") || equalIgnoringCase(name, "movie") || equalIgnoringCase(name, "code") || equalIgnoringCase(name, "url"))) urlParameter = stripLeadingAndTrailingHTMLSpaces(p->value()); // FIXME: serviceType calculation does not belong in this function. if (serviceType.isEmpty() && equalIgnoringCase(name, "type")) { serviceType = p->value(); size_t pos = serviceType.find(";"); if (pos != notFound) serviceType = serviceType.left(pos); } } // When OBJECT is used for an applet via Sun's Java plugin, the CODEBASE attribute in the tag // points to the Java plugin itself (an ActiveX component) while the actual applet CODEBASE is // in a PARAM tag. See <http://java.sun.com/products/plugin/1.2/docs/tags.html>. This means // we have to explicitly suppress the tag's CODEBASE attribute if there is none in a PARAM, // else our Java plugin will misinterpret it. [4004531] String codebase; if (MIMETypeRegistry::isJavaAppletMIMEType(serviceType)) { codebase = "codebase"; uniqueParamNames.add(codebase.impl()); // pretend we found it in a PARAM already } // Turn the attributes of the <object> element into arrays, but don't override <param> values. if (hasAttributes()) { for (unsigned i = 0; i < attributeCount(); ++i) { const Attribute* attribute = attributeItem(i); const AtomicString& name = attribute->name().localName(); if (!uniqueParamNames.contains(name.impl())) { paramNames.append(name.string()); paramValues.append(attribute->value().string()); } } } mapDataParamToSrc(&paramNames, &paramValues); // HTML5 says that an object resource's URL is specified by the object's data // attribute, not by a param element. However, for compatibility, allow the // resource's URL to be given by a param named "src", "movie", "code" or "url" // if we know that resource points to a plug-in. if (url.isEmpty() && !urlParameter.isEmpty()) { SubframeLoader* loader = document()->frame()->loader()->subframeLoader(); if (loader->resourceWillUsePlugin(urlParameter, serviceType, shouldPreferPlugInsForImages())) url = urlParameter; } } bool HTMLObjectElement::hasFallbackContent() const { for (Node* child = firstChild(); child; child = child->nextSibling()) { // Ignore whitespace-only text, and <param> tags, any other content is fallback content. if (child->isTextNode()) { if (!toText(child)->containsOnlyWhitespace()) return true; } else if (!child->hasTagName(paramTag)) return true; } return false; } bool HTMLObjectElement::shouldAllowQuickTimeClassIdQuirk() { // This site-specific hack maintains compatibility with Mac OS X Wiki Server, // which embeds QuickTime movies using an object tag containing QuickTime's // ActiveX classid. Treat this classid as valid only if OS X Server's unique // 'generator' meta tag is present. Only apply this quirk if there is no // fallback content, which ensures the quirk will disable itself if Wiki // Server is updated to generate an alternate embed tag as fallback content. if (!document()->page() || !document()->page()->settings()->needsSiteSpecificQuirks() || hasFallbackContent() || !equalIgnoringCase(classId(), "clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B")) return false; RefPtr<NodeList> metaElements = document()->getElementsByTagName(HTMLNames::metaTag.localName()); unsigned length = metaElements->length(); for (unsigned i = 0; i < length; ++i) { ASSERT(metaElements->item(i)->isHTMLElement()); HTMLMetaElement* metaElement = static_cast<HTMLMetaElement*>(metaElements->item(i)); if (equalIgnoringCase(metaElement->name(), "generator") && metaElement->content().startsWith("Mac OS X Server Web Services Server", false)) return true; } return false; } bool HTMLObjectElement::hasValidClassId() { #if PLATFORM(QT) if (equalIgnoringCase(serviceType(), "application/x-qt-plugin") || equalIgnoringCase(serviceType(), "application/x-qt-styled-widget")) return true; #endif if (MIMETypeRegistry::isJavaAppletMIMEType(serviceType()) && classId().startsWith("java:", false)) return true; if (shouldAllowQuickTimeClassIdQuirk()) return true; // HTML5 says that fallback content should be rendered if a non-empty // classid is specified for which the UA can't find a suitable plug-in. return classId().isEmpty(); } // FIXME: This should be unified with HTMLEmbedElement::updateWidget and // moved down into HTMLPluginImageElement.cpp void HTMLObjectElement::updateWidget(PluginCreationOption pluginCreationOption) { ASSERT(!renderEmbeddedObject()->isPluginUnavailable()); ASSERT(needsWidgetUpdate()); setNeedsWidgetUpdate(false); // FIXME: This should ASSERT isFinishedParsingChildren() instead. if (!isFinishedParsingChildren()) return; // FIXME: I'm not sure it's ever possible to get into updateWidget during a // removal, but just in case we should avoid loading the frame to prevent // security bugs. if (!SubframeLoadingDisabler::canLoadFrame(this)) return; String url = this->url(); String serviceType = this->serviceType(); // FIXME: These should be joined into a PluginParameters class. Vector<String> paramNames; Vector<String> paramValues; parametersForPlugin(paramNames, paramValues, url, serviceType); // Note: url is modified above by parametersForPlugin. if (!allowedToLoadFrameURL(url)) return; bool fallbackContent = hasFallbackContent(); renderEmbeddedObject()->setHasFallbackContent(fallbackContent); // FIXME: It's sadness that we have this special case here. // See http://trac.webkit.org/changeset/25128 and // plugins/netscape-plugin-setwindow-size.html if (pluginCreationOption == CreateOnlyNonNetscapePlugins && wouldLoadAsNetscapePlugin(url, serviceType)) { // Ensure updateWidget() is called again during layout to create the Netscape plug-in. setNeedsWidgetUpdate(true); return; } RefPtr<HTMLObjectElement> protect(this); // beforeload and plugin loading can make arbitrary DOM mutations. bool beforeLoadAllowedLoad = guardedDispatchBeforeLoadEvent(url); if (!renderer()) // Do not load the plugin if beforeload removed this element or its renderer. return; SubframeLoader* loader = document()->frame()->loader()->subframeLoader(); bool success = beforeLoadAllowedLoad && hasValidClassId() && loader->requestObject(this, url, getNameAttribute(), serviceType, paramNames, paramValues); if (!success && fallbackContent) renderFallbackContent(); } bool HTMLObjectElement::rendererIsNeeded(const NodeRenderingContext& context) { // FIXME: This check should not be needed, detached documents never render! Frame* frame = document()->frame(); if (!frame) return false; return HTMLPlugInImageElement::rendererIsNeeded(context); } Node::InsertionNotificationRequest HTMLObjectElement::insertedInto(ContainerNode* insertionPoint) { HTMLPlugInImageElement::insertedInto(insertionPoint); FormAssociatedElement::insertedInto(insertionPoint); return InsertionDone; } void HTMLObjectElement::removedFrom(ContainerNode* insertionPoint) { HTMLPlugInImageElement::removedFrom(insertionPoint); FormAssociatedElement::removedFrom(insertionPoint); } void HTMLObjectElement::childrenChanged(bool changedByParser, Node* beforeChange, Node* afterChange, int childCountDelta) { updateDocNamedItem(); if (inDocument() && !useFallbackContent()) { setNeedsWidgetUpdate(true); setNeedsStyleRecalc(); } HTMLPlugInImageElement::childrenChanged(changedByParser, beforeChange, afterChange, childCountDelta); } bool HTMLObjectElement::isURLAttribute(const Attribute& attribute) const { return attribute.name() == dataAttr || (attribute.name() == usemapAttr && attribute.value().string()[0] != '#') || HTMLPlugInImageElement::isURLAttribute(attribute); } const AtomicString& HTMLObjectElement::imageSourceURL() const { return getAttribute(dataAttr); } void HTMLObjectElement::renderFallbackContent() { if (useFallbackContent()) return; if (!inDocument()) return; // Before we give up and use fallback content, check to see if this is a MIME type issue. if (m_imageLoader && m_imageLoader->image() && m_imageLoader->image()->status() != CachedResource::LoadError) { m_serviceType = m_imageLoader->image()->response().mimeType(); if (!isImageType()) { // If we don't think we have an image type anymore, then clear the image from the loader. m_imageLoader->setImage(0); reattach(); return; } } m_useFallbackContent = true; // FIXME: Style gets recalculated which is suboptimal. detach(); attach(); } // FIXME: This should be removed, all callers are almost certainly wrong. static bool isRecognizedTagName(const QualifiedName& tagName) { DEFINE_STATIC_LOCAL(HashSet<AtomicStringImpl*>, tagList, ()); if (tagList.isEmpty()) { QualifiedName** tags = HTMLNames::getHTMLTags(); for (size_t i = 0; i < HTMLNames::HTMLTagsCount; i++) { if (*tags[i] == bgsoundTag || *tags[i] == commandTag || *tags[i] == detailsTag || *tags[i] == figcaptionTag || *tags[i] == figureTag || *tags[i] == summaryTag || *tags[i] == trackTag) { // Even though we have atoms for these tags, we don't want to // treat them as "recognized tags" for the purpose of parsing // because that changes how we parse documents. continue; } tagList.add(tags[i]->localName().impl()); } } return tagList.contains(tagName.localName().impl()); } void HTMLObjectElement::updateDocNamedItem() { // The rule is "<object> elements with no children other than // <param> elements, unknown elements and whitespace can be // found by name in a document, and other <object> elements cannot." bool wasNamedItem = m_docNamedItem; bool isNamedItem = true; Node* child = firstChild(); while (child && isNamedItem) { if (child->isElementNode()) { Element* element = toElement(child); // FIXME: Use of isRecognizedTagName is almost certainly wrong here. if (isRecognizedTagName(element->tagQName()) && !element->hasTagName(paramTag)) isNamedItem = false; } else if (child->isTextNode()) { if (!toText(child)->containsOnlyWhitespace()) isNamedItem = false; } else isNamedItem = false; child = child->nextSibling(); } if (isNamedItem != wasNamedItem && inDocument() && document()->isHTMLDocument()) { HTMLDocument* document = toHTMLDocument(this->document()); const AtomicString& id = getIdAttribute(); if (!id.isEmpty()) { if (isNamedItem) document->documentNamedItemMap().add(id.impl(), this); else document->documentNamedItemMap().remove(id.impl(), this); } const AtomicString& name = getNameAttribute(); if (!name.isEmpty() && id != name) { if (isNamedItem) document->documentNamedItemMap().add(name.impl(), this); else document->documentNamedItemMap().remove(name.impl(), this); } } m_docNamedItem = isNamedItem; } bool HTMLObjectElement::containsJavaApplet() const { if (MIMETypeRegistry::isJavaAppletMIMEType(getAttribute(typeAttr))) return true; for (Element* child = ElementTraversal::firstWithin(this); child; child = ElementTraversal::nextSkippingChildren(child, this)) { if (child->hasTagName(paramTag) && equalIgnoringCase(child->getNameAttribute(), "type") && MIMETypeRegistry::isJavaAppletMIMEType(child->getAttribute(valueAttr).string())) return true; if (child->hasTagName(objectTag) && static_cast<HTMLObjectElement*>(child)->containsJavaApplet()) return true; if (child->hasTagName(appletTag)) return true; } return false; } void HTMLObjectElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) const { HTMLPlugInImageElement::addSubresourceAttributeURLs(urls); addSubresourceURL(urls, document()->completeURL(getAttribute(dataAttr))); // FIXME: Passing a string that starts with "#" to the completeURL function does // not seem like it would work. The image element has similar but not identical code. const AtomicString& useMap = getAttribute(usemapAttr); if (useMap.startsWith('#')) addSubresourceURL(urls, document()->completeURL(useMap)); } void HTMLObjectElement::didMoveToNewDocument(Document* oldDocument) { FormAssociatedElement::didMoveToNewDocument(oldDocument); HTMLPlugInImageElement::didMoveToNewDocument(oldDocument); } bool HTMLObjectElement::appendFormData(FormDataList& encoding, bool) { if (name().isEmpty()) return false; Widget* widget = pluginWidget(); if (!widget || !widget->isPluginViewBase()) return false; String value; if (!toPluginViewBase(widget)->getFormValue(value)) return false; encoding.appendData(name(), value); return true; } HTMLFormElement* HTMLObjectElement::virtualForm() const { return FormAssociatedElement::form(); } #if ENABLE(MICRODATA) String HTMLObjectElement::itemValueText() const { return getURLAttribute(dataAttr); } void HTMLObjectElement::setItemValueText(const String& value, ExceptionCode&) { setAttribute(dataAttr, value); } #endif }
[ "ariya.hidayat@gmail.com" ]
ariya.hidayat@gmail.com
6a6a56e2af2d456cc26cfae0309873ef31229eeb
409ce560793c070ef4211b99c5a4a5316a258c4f
/playpen/closure/TestClosure.cc
d1e9d822324ea962c7b36f714326244b95dc58f7
[ "MIT" ]
permissive
calum-chamberlain/pylith
bb718bfb4305f03b45d42348e5d4fa5ed5f4a918
8712c39ade53c1cc5ac0e671e4296cee278c1dcf
refs/heads/master
2020-12-06T17:15:08.638337
2016-05-15T20:30:28
2016-05-15T20:30:28
46,401,744
0
0
null
2016-05-15T20:30:29
2015-11-18T07:09:12
C++
UTF-8
C++
false
false
7,404
cc
// -*- C++ -*- // // ====================================================================== // // Brad T. Aagaard, U.S. Geological Survey // Charles A. Williams, GNS Science // Matthew G. Knepley, University of Chicago // // This code was developed as part of the Computational Infrastructure // for Geodynamics (http://geodynamics.org). // // Copyright (c) 2010-2015 University of California, Davis // // See COPYING for license information. // // ====================================================================== // #include <portinfo> #include "TestClosure.hh" // implementation of class methods #include "pylith/topology/Field.hh" // USES Field #include "pylith/topology/SolutionFields.hh" // USES SolutionFields #include "pylith/utils/array.hh" // USES double_array #include "pylith/utils/EventLogger.hh" // USES EventLogger #include "pylith/utils/error.h" // USES PYLITH_CHECK_ERROR #include <cassert> // USES assert() #include <stdexcept> // USES std::runtime_error #define SEPARATE_FIELDS // ---------------------------------------------------------------------- typedef pylith::topology::Mesh::SieveMesh SieveMesh; typedef pylith::topology::Mesh::RealSection RealSection; // ---------------------------------------------------------------------- const int pylith::playpen::TestClosure::_spaceDim = 3; // ---------------------------------------------------------------------- // Constructor pylith::playpen::TestClosure::TestClosure(void) : _niterations(10) { // constructor } // constructor // ---------------------------------------------------------------------- // Destructor pylith::playpen::TestClosure::~TestClosure(void) { // destructor } // destructor // ---------------------------------------------------------------------- // Set number of iterations. void pylith::playpen::TestClosure::iterations(const long value) { _niterations = value; } // ---------------------------------------------------------------------- // Test restrictClosure(). void pylith::playpen::TestClosure::testRestrictClosure(const pylith::topology::Mesh& mesh) { // testRestrictClosure const int spaceDim = _spaceDim; // Setup timing utils::EventLogger logger; logger.className("TestClosure"); logger.initialize(); const int stage = logger.registerStage("Test Closure"); const int closureEvent = logger.registerEvent("closure"); // Setup stuff for doing closure const ALE::Obj<SieveMesh>& sieveMesh = mesh.sieveMesh(); assert(!sieveMesh.isNull()); const ALE::Obj<SieveMesh::label_sequence>& cells = sieveMesh->heightStratum(0); assert(!cells.isNull()); const SieveMesh::label_sequence::iterator cellsBegin = cells->begin(); const SieveMesh::label_sequence::iterator cellsEnd = cells->end(); const ALE::Obj<SieveMesh::sieve_type>& sieve = sieveMesh->getSieve(); assert(!sieve.isNull()); typedef ALE::SieveAlg<SieveMesh> SieveAlg; ALE::ISieveVisitor::NConeRetriever<SieveMesh::sieve_type> ncV(*sieve, (size_t) pow(sieve->getMaxConeSize(), std::max(0, sieveMesh->depth()))); ncV.clear(); ALE::ISieveTraversal<SieveMesh::sieve_type>::orientedClosure(*sieve, *cellsBegin, ncV); const int coneSize = ncV.getSize(); // Setup coordinates visitor double_array coordsCell(coneSize*spaceDim); const ALE::Obj<RealSection>& coordsSection = sieveMesh->getRealSection("coordinates"); assert(!coordsSection.isNull()); topology::Mesh::RestrictVisitor coordsVisitor(*coordsSection, coordsCell.size(), &coordsCell[0]); #if defined(SEPARATE_FIELDS) // Create fields pylith::topology::SolutionFields fields(mesh); fields.add("field A", "field_A"); fields.add("field B", "field_B"); topology::Field<topology::Mesh>& fieldA = fields.get("field A"); fieldA.newSection(topology::FieldBase::VERTICES_FIELD, spaceDim); fieldA.allocate(); fieldA.zero(); fields.copyLayout("field A"); // Setup field visitors double_array fieldACell(coneSize*spaceDim); const ALE::Obj<RealSection>& fieldASection = fields.get("field A").section(); assert(!fieldASection.isNull()); topology::Mesh::RestrictVisitor fieldAVisitor(*fieldASection, fieldACell.size(), &fieldACell[0]); double_array fieldBCell(coneSize*spaceDim); const ALE::Obj<RealSection>& fieldBSection = fields.get("field B").section(); assert(!fieldBSection.isNull()); topology::Mesh::RestrictVisitor fieldBVisitor(*fieldBSection, fieldBCell.size(), &fieldBCell[0]); double_array tmpCell(coneSize*spaceDim); #else // Create fields pylith::topology::FieldsNew fields(mesh); fields.add("field A", "displacement", spaceDim, topology::FieldBase::VECTOR); fields.add("field B", "velocity", spaceDim, topology::FieldBase::VECTOR); fields.allocate(topology::FieldBase::VERTICES_FIELD, 2*spaceDim); // Create field visitors double_array fieldsCell(coneSize*2*spaceDim); const ALE::Obj<RealUniformSection>fieldsSection = fields.section(); assert(!fieldsSection.isNull()); topology::Mesh::RestrictVisitor fieldABVisitor(*fieldsSection, fieldsCell.size(), &fieldsCell[0]); double_array tmpCell(coneSize*2*spaceDim); #endif const int dataSize = coneSize * spaceDim; ALE::LogStagePush(stage); logger.eventBegin(closureEvent); long count = 0; const long niterations = _niterations; for (long iter=0; iter < niterations; ++iter) for (SieveMesh::label_sequence::iterator c_iter=cellsBegin; c_iter != cellsEnd; ++c_iter) { coordsVisitor.clear(); sieveMesh->restrictClosure(*c_iter, coordsVisitor); //sieve->orientedConeOpt(*c_iter, coordsVisitor, coneSize, spaceDim); #if defined(SEPARATE_FIELDS) fieldAVisitor.clear(); sieveMesh->restrictClosure(*c_iter, fieldAVisitor); //sieve->orientedConeOpt(*c_iter, fieldAVisitor, coneSize, spaceDim); fieldBVisitor.clear(); sieveMesh->restrictClosure(*c_iter, fieldBVisitor); //sieve->orientedConeOpt(*c_iter, fieldBVisitor, coneSize, spaceDim); // Perform trivial operation on fields //tmpCell = fieldACell + fieldBCell + coordsCell; #else fieldsVisitor.clear(); sieveMesh->restrictClosure(*c_iter, fieldsVisitor); // Perform trivial operation on fields //for (int i=0; i < dataSize; ++i) //tmpCell[i] = fieldABCell[i] + fieldABCell[dataSize+i] + coordsCell[i]; #endif ++count; } // for logger.eventEnd(closureEvent); ALE::LogStagePop(stage); // Print stats PetscErrorCode ierr = 0; StageLog stageLog = 0; EventPerfLog eventLog = 0; ierr = PetscLogGetStageLog(&stageLog); PYLITH_CHECK_ERROR(ierr); ierr = StageLogGetEventPerfLog(stageLog, stage, &eventLog); PYLITH_CHECK_ERROR(ierr); EventPerfInfo eventInfo = eventLog->eventInfo[closureEvent]; assert(1 == eventInfo.count); assert(count == cells->size() * _niterations); #if defined(SEPARATE_FIELDS) const long nclosures = (1 + 2) * cells->size() * _niterations; #else const long nclosures = (1 + 1) * cells->size() * _niterations; #endif std::cout << "Number of cells: " << cells->size() << std::endl; std::cout << "Number of loops: " << _niterations << std::endl; std::cout << "Total time: " << eventInfo.time << std::endl; std::cout << "Average time per closure (" << nclosures << ") : " << eventInfo.time/nclosures << std::endl; } // testRestrictClosure // End of file
[ "baagaard@usgs.gov" ]
baagaard@usgs.gov
2649c94bc177243c32b8a980aec1bcb9278ecf6a
f21aabd4e1c4ad8bb5747e719fbf9e7ed3533789
/rasterisation/Include/DefaultVPP.h
7a4197331cc04eb3052d911222f545ae1cef85f4
[]
no_license
AdrianKoretski/rasterisation_engine
b523253bf8b4aec2f0d9c21aa4f29cfc066f231e
f7a07075a2e49667fa9e170547a23bb9ba4f9196
refs/heads/master
2020-12-10T00:13:57.003217
2020-05-22T23:15:00
2020-05-22T23:15:00
233,454,033
0
0
null
null
null
null
UTF-8
C++
false
false
408
h
#pragma once #include "VertexPostProcessor.h" class DefaultVPP : public VertexPostProcessor { public: DefaultVPP(); void postProcessVertices( buffer<float>& output_VBO, buffer<uint>& output_VAO, buffer<float>& input_VBO, buffer<uint>& input_VAO); void setup(); void reset(); protected: void setIODataSize(); void setupUniforms(); private: uint* m_width_resolution; uint* m_height_resolution; };
[ "34486058+AdrianKoretski@users.noreply.github.com" ]
34486058+AdrianKoretski@users.noreply.github.com
ca46e02587c27ca4ddf228d85be11a8e77b41695
d8cf1e058c84e3723731af7e4b284b7c47f41124
/WinPP/WinPP/ThreadSync/ThreadSync.cpp
9a720913dec6ed4902c6034455153a7ba8d37f45
[]
no_license
cibech/cppbech
be041a47058a4cda81220126d5ebeaab6f68b217
72a76d31d6c7f9a5b1a2ea4b11fe70fa2188fb1d
refs/heads/master
2020-05-04T13:24:27.206000
2013-05-30T07:15:10
2013-05-30T07:15:10
35,931,354
0
0
null
null
null
null
WINDOWS-1252
C++
false
false
550
cpp
#include <windows.h> #include "ThreadSync.h" ShareCriticalSection* ShareCriticalSection::m_pInstance = NULL; void* _blocknew_ne_wait(size_t sz, int nWaitSec) { void* pBuffer = NULL; UINT uiAllocCount = 0; while(!pBuffer) { try { pBuffer = new BYTE[sz]; } catch(...) { uiAllocCount++; Sleep(10); } //ÔÚÁ½ÃëÄÚ·´¸´ÉêÇë if(uiAllocCount >= (nWaitSec*100)) { break; } } return pBuffer; } void* _blocknew_ne(size_t sz) { return _blocknew_ne_wait(sz, 0); }
[ "cibech@gmail.com@c26c0402-31af-11de-a996-7ff70a941223" ]
cibech@gmail.com@c26c0402-31af-11de-a996-7ff70a941223
fb93f834715c8828be79b5fc6258edff8ec8a80b
616ee933ee0a1cf875ccd4f96019f8dde9007de4
/Tengai/util.h
3ffa74147bb9af0b1433ecb738cd0be67f7aa7d5
[]
no_license
gooddaeking/Tengai
ccf4a47412f37f8d87c41b50926aa43347fedcd9
c358dc7fbfd3d22dda37c3c2dc1bed6c5ebead02
refs/heads/master
2022-11-21T04:14:05.407517
2020-07-17T06:58:17
2020-07-17T06:58:17
280,347,804
1
0
null
null
null
null
UHC
C++
false
false
711
h
#pragma once //============================================================= // ## namespace MY_UTIL ## //============================================================= #define PI 3.1415926f #define PI2 (PI * 2) //나중에 이미지 회전시 사용할 값 #define PI_2 (PI / 2) //90도 #define PI_4 (PI / 4) //45도 #define PI_8 (PI / 8) //22.5도 namespace MY_UTIL { //두점 사이의 거리 float getDistance(float startX, float startY, float endX, float endY); //두점 사이의 각도 => 유도탄 float getAngle(float startX, float startY, float endX, float endY); //유니티엔진에서는 백터의 뺄셈으로 처리한다 //누가 누구를 바라보냐? //적벡터 - 나의벡터 };
[ "gooddaeking@gmail.com" ]
gooddaeking@gmail.com
ddc0409e5647976dc05ac11f6f491c98fef37227
c9fb286b5deca791841d9d2645fede6be22e2f12
/hollow rectangle.cpp
473ba5852013917c2026689a37a9457041dceac7
[]
no_license
Sachin-Chouhan201/CPP
18f3cb0bc430acea7a8fd5a783afdf2ca2d2588a
96d126f5fb9b700c54d293a320a68b0682ccdaa8
refs/heads/main
2023-07-27T01:07:48.146183
2021-08-27T06:17:36
2021-08-27T06:17:36
318,590,062
0
0
null
null
null
null
UTF-8
C++
false
false
637
cpp
#include<iostream> using namespace std; /* *********** * * * * * * * * * * * * * * * * *********** */ int main() { system("cls"); cout<<"\n PROGRAM TO PRINT A HOLLOW RECTANGLE \n Enter The Number OF Row And Columns "; int r,c; cin>>r>>c; cout<<endl; cout<<endl; cout<<endl; for(int i=0;i<r;i++) { for(int j=0;j<c;j++) { if(i==0||i==r-1||j==0||j==c-1) cout<<"*"; else cout<<" "; } cout<<endl; } cout<<endl; cout<<endl; cout<<endl; system("pause"); return 0; }
[ "noreply@github.com" ]
noreply@github.com
91a620ee33b30c3591a9a33eb058d2a91528028a
ee08c2ba10d39963a89ab997b629277b6929f24c
/test/src/foobar.cpp
e5c01641e9664bb7fd30b380f90c2b66ed27575e
[]
no_license
andron/bob
1b015152530043b6a4f299e5dfdc83863e8ff103
480ea124d9af60f8b8880d97e397e866a462a140
refs/heads/master
2021-01-23T16:31:00.063396
2013-11-27T01:22:25
2013-11-27T01:22:25
10,132,727
1
0
null
null
null
null
UTF-8
C++
false
false
137
cpp
// -*- mode:c++; indent-tabs-mode:nil; -*- #include "foppa/foppa.hh" int main(int ac, char** av) { Foppa foppa(ac,av); return 0; }
[ "anders.ronnbrant@gmail.com" ]
anders.ronnbrant@gmail.com
fa19a1a2b150c02557b47447ae96101583caac78
3102ded71d5329cf766f17d86c2020d3cfe1bfa2
/common/symbolic_monomial_util.cc
ff2da87b25c607ea21b6655c1dbfb0a1abef2034
[ "BSD-3-Clause" ]
permissive
mposa/drake
14af4ddfbd6a791f2aea7b85ad2b60a7c84f76b8
6a9a53da41c35903c24cdf4b29e5e99f71e0a1e9
refs/heads/master
2022-05-01T17:28:07.688899
2019-08-12T14:15:16
2019-08-12T14:15:16
16,321,603
1
2
NOASSERTION
2022-03-12T18:45:55
2014-01-28T18:42:31
C++
UTF-8
C++
false
false
468
cc
// NOLINTNEXTLINE(build/include): Its header file is included in symbolic.h. #include "drake/common/drake_assert.h" #include "drake/common/symbolic.h" namespace drake { namespace symbolic { Eigen::Matrix<Monomial, Eigen::Dynamic, 1> MonomialBasis(const Variables& vars, const int degree) { return internal::ComputeMonomialBasis<Eigen::Dynamic>(vars, degree); } } // namespace symbolic } // namespace drake
[ "soonho.kong@tri.global" ]
soonho.kong@tri.global
3f9d755635205f6bd225515edc9551a7bd8015c9
879681c994f1ca9c8d2c905a4e5064997ad25a27
/root-2.3.0/run/tutorials/multiphase/twoPhaseEulerFoam/RAS/fluidisedBed/1.62/U.particles
165ddc1405c17fa18a71db23a55f175bc4ebae1c
[]
no_license
MizuhaWatanabe/OpenFOAM-2.3.0-with-Ubuntu
3828272d989d45fb020e83f8426b849e75560c62
daeb870be81275e8a81f5cbac4ca1906a9bc69c0
refs/heads/master
2020-05-17T16:36:41.848261
2015-04-18T09:29:48
2015-04-18T09:29:48
34,159,882
1
0
null
null
null
null
UTF-8
C++
false
false
143,935
particles
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.3.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class volVectorField; location "1.62"; object U.particles; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // dimensions [0 1 -1 0 0 0 0]; internalField nonuniform List<vector> 6000 ( (-0.0243769 -0.377629 0) (-0.00994395 -0.377706 0) (0.0336719 -0.387221 0) (0.0601486 -0.402954 0) (0.072991 -0.453676 0) (0.0594483 -0.483497 0) (-0.0192974 -0.418124 0) (-0.0913194 -0.361527 0) (-0.0659545 -0.330745 0) (-0.0258607 -0.327341 0) (0.0122052 -0.415465 0) (-0.00137551 -0.416576 0) (-0.176766 -0.450551 0) (-0.288803 -0.425162 0) (-0.315337 -0.366322 0) (-0.296309 -0.295549 0) (-0.245065 -0.273579 0) (-0.191454 -0.279067 0) (-0.12793 -0.271455 0) (-0.0716407 -0.279254 0) (-0.00939403 -0.280551 0) (0.0428606 -0.304926 0) (0.0777361 -0.387894 0) (0.109236 -0.44652 0) (0.11731 -0.482009 0) (0.0954723 -0.497041 0) (0.0389863 -0.44029 0) (-0.0494504 -0.357045 0) (-0.0686134 -0.323595 0) (-0.0210815 -0.232199 0) (0.0317744 -0.0591247 0) (0.0427895 -0.0631752 0) (0.0690805 -0.0420514 0) (0.0847504 -0.0108451 0) (0.0806183 0.0360224 0) (0.0663011 0.00275352 0) (0.0355684 -0.0767644 0) (-0.00812251 -0.0402261 0) (-0.00643603 0.0565833 0) (-0.0614541 0.0879937 0) (-0.129068 0.0361767 0) (-0.199127 -0.080221 0) (-0.285481 -0.0677631 0) (-0.32673 0.0257574 0) (-0.318466 0.035161 0) (-0.26178 -0.0250487 0) (-0.207109 -0.0602053 0) (-0.162489 -0.0606028 0) (-0.099123 -0.0831407 0) (-0.0537204 -0.0753232 0) (-3.94586e-05 -0.0813065 0) (0.0457101 -0.0510282 0) (0.0794967 -0.0274732 0) (0.126233 -0.0245497 0) (0.170478 0.0203833 0) (0.167444 0.0183446 0) (0.136967 0.00254324 0) (0.0920781 0.0222197 0) (0.0624981 0.111293 0) (-0.0478483 0.0631009 0) (0.0285753 -0.112555 0) (0.0561915 -0.147523 0) (0.0738878 -0.140265 0) (0.0790128 -0.128094 0) (0.0738662 -0.129236 0) (0.0700851 -0.103801 0) (0.0742633 -0.0907266 0) (0.0662775 -0.070062 0) (0.0277893 -0.0447788 0) (-0.0824133 0.0229461 0) (-0.174086 0.0603497 0) (-0.264326 0.0277693 0) (-0.28755 0.0131079 0) (-0.277686 0.0222099 0) (-0.204619 -0.0461438 0) (-0.177506 -0.0739958 0) (-0.126803 -0.114579 0) (-0.0878238 -0.112189 0) (-0.0494793 -0.118053 0) (-0.017328 -0.114473 0) (0.0165969 -0.111534 0) (0.0542292 -0.102659 0) (0.0868741 -0.106525 0) (0.142341 -0.121092 0) (0.195778 -0.0979382 0) (0.218475 -0.0121305 0) (0.209181 0.0294868 0) (0.176721 0.049509 0) (-0.0237578 0.0598395 0) (-0.0314515 0.0139718 0) (0.0516648 -0.133583 0) (0.067839 -0.143787 0) (0.0593466 -0.120431 0) (0.0548701 -0.10009 0) (0.0657587 -0.0951628 0) (0.0798144 -0.096412 0) (0.099848 -0.0926472 0) (0.116266 -0.066269 0) (0.0787154 -0.0251842 0) (-0.0886458 0.0448125 0) (-0.159934 0.113942 0) (-0.207177 0.129641 0) (-0.230447 0.107927 0) (-0.187035 0.0786997 0) (-0.130981 0.00923848 0) (-0.123849 -0.0296318 0) (-0.0902282 -0.0828576 0) (-0.0540038 -0.0820763 0) (-0.0194041 -0.0835531 0) (0.0115854 -0.0764147 0) (0.036039 -0.0657842 0) (0.0661827 -0.049359 0) (0.0941959 -0.0543775 0) (0.151477 -0.0719967 0) (0.190673 -0.0453223 0) (0.225159 0.0310027 0) (0.23239 0.0869359 0) (0.033016 0.0844624 0) (-0.03769 0.0676705 0) (-0.0159632 0.0341419 0) (0.0222816 -0.0970611 0) (0.0360289 -0.0923453 0) (0.0629499 -0.0842236 0) (0.0380428 -0.0803329 0) (0.0360334 -0.0876 0) (0.0586721 -0.103994 0) (0.0870299 -0.0985614 0) (0.121052 -0.0702004 0) (0.109131 -0.0149737 0) (-0.0574538 0.0540499 0) (-0.134615 0.135993 0) (-0.157066 0.166965 0) (-0.178145 0.117569 0) (-0.0574091 0.0251111 0) (0.000783438 -0.124204 0) (-0.0406186 -0.110747 0) (-0.037781 -0.144338 0) (-0.0180089 -0.157511 0) (0.0131435 -0.14717 0) (0.0502863 -0.131989 0) (0.0728886 -0.0963168 0) (0.096346 -0.062415 0) (0.119881 -0.061028 0) (0.166636 -0.0640865 0) (0.190674 -0.0303425 0) (0.215399 0.0633123 0) (0.246598 0.142729 0) (-0.0112239 0.130031 0) (-0.0332505 0.0851167 0) (-0.0190948 0.0365786 0) (0.0280673 -0.0626085 0) (0.042754 -0.0545898 0) (0.0458145 -0.0386667 0) (0.0610712 -0.0279736 0) (0.0218639 -0.0424187 0) (0.0213909 -0.0804931 0) (0.0409753 -0.0802747 0) (0.0784897 -0.0568605 0) (0.122153 -0.00405977 0) (0.0590243 0.0590964 0) (-0.0720944 0.139004 0) (-0.102458 0.171336 0) (-0.0871713 0.10233 0) (0.0640282 -0.0199429 0) (0.109443 -0.160428 0) (0.0947137 -0.231658 0) (0.049941 -0.225423 0) (0.02838 -0.223645 0) (0.0499252 -0.229681 0) (0.0868812 -0.209847 0) (0.112933 -0.165418 0) (0.136263 -0.101795 0) (0.158081 -0.0845315 0) (0.182242 -0.0639289 0) (0.185486 -0.0109375 0) (0.201392 0.110335 0) (0.256609 0.208224 0) (0.0150733 0.19353 0) (-0.0135062 0.112626 0) (-0.0180322 0.0440169 0) (0.0259593 -0.0284218 0) (0.0335981 -0.0107464 0) (0.031554 0.00620084 0) (0.0298295 0.0130897 0) (0.0445756 0.0148048 0) (0.00733904 -0.0291678 0) (0.0161736 -0.0680401 0) (0.0339973 -0.0516419 0) (0.114799 -0.00127892 0) (0.134108 0.0756146 0) (0.0421637 0.127853 0) (-0.0256373 0.179109 0) (0.00597972 0.0897282 0) (0.0918803 -0.0697879 0) (0.114635 -0.178253 0) (0.138183 -0.255446 0) (0.156023 -0.308634 0) (0.134232 -0.310328 0) (0.114921 -0.300108 0) (0.130796 -0.29293 0) (0.150462 -0.247638 0) (0.179761 -0.173379 0) (0.198665 -0.130481 0) (0.196139 -0.0809837 0) (0.180896 0.0137821 0) (0.190611 0.15704 0) (0.264953 0.273456 0) (0.0863406 0.277726 0) (0.0189258 0.144934 0) (-0.000399195 0.056349 0) (0.0194699 -0.00496318 0) (0.0172124 0.0184222 0) (0.0139225 0.0374766 0) (0.00717106 0.0501065 0) (0.00957664 0.048259 0) (0.0195513 0.0332264 0) (0.0062182 -0.0334631 0) (0.0166118 -0.0460387 0) (0.0655812 0.0431394 0) (0.152475 0.0885738 0) (0.105751 0.129761 0) (0.0473459 0.169583 0) (0.0621157 0.0897714 0) (0.0863155 -0.0995297 0) (0.105434 -0.179073 0) (0.149418 -0.229442 0) (0.222419 -0.293317 0) (0.262313 -0.358979 0) (0.232889 -0.356676 0) (0.191579 -0.342879 0) (0.189896 -0.310734 0) (0.219233 -0.234035 0) (0.223814 -0.157447 0) (0.199138 -0.0781364 0) (0.172888 0.0529464 0) (0.171712 0.206982 0) (0.254567 0.321887 0) (0.19647 0.358738 0) (0.0906236 0.219813 0) (0.0414034 0.0818802 0) (0.00616574 0.0093435 0) (-0.000185779 0.0331394 0) (-0.00613577 0.0540963 0) (-0.0130575 0.0711928 0) (-0.0226876 0.0796331 0) (-0.0156514 0.06581 0) (-0.00659045 0.0165068 0) (0.00117652 -0.0295834 0) (0.0145673 0.0413021 0) (0.132363 0.0943381 0) (0.124223 0.139169 0) (0.0971881 0.157057 0) (0.0926389 0.0824013 0) (0.0906267 -0.100484 0) (0.112999 -0.159892 0) (0.181759 -0.224262 0) (0.252484 -0.305666 0) (0.31954 -0.352655 0) (0.316776 -0.368064 0) (0.275134 -0.364986 0) (0.226018 -0.334718 0) (0.236481 -0.257725 0) (0.240089 -0.158843 0) (0.173542 -0.0358434 0) (0.127969 0.117068 0) (0.150384 0.24988 0) (0.208748 0.341748 0) (0.197751 0.371087 0) (0.138386 0.301925 0) (0.155379 0.140304 0) (-0.00324778 0.0173299 0) (-0.0179112 0.0443096 0) (-0.0300261 0.0665097 0) (-0.0399455 0.0838518 0) (-0.0489457 0.0933144 0) (-0.0577327 0.0910947 0) (-0.0486685 0.0502641 0) (-0.0285371 0.00194989 0) (-0.0137948 -0.000170316 0) (0.0732016 0.0852695 0) (0.12255 0.140056 0) (0.118704 0.144226 0) (0.100973 0.0504144 0) (0.0902337 -0.0886541 0) (0.146098 -0.128842 0) (0.22109 -0.214514 0) (0.285636 -0.305122 0) (0.347996 -0.355574 0) (0.353153 -0.36827 0) (0.322422 -0.373208 0) (0.235936 -0.344188 0) (0.205788 -0.220061 0) (0.161457 -0.0808537 0) (0.0878702 0.056055 0) (0.0584001 0.180623 0) (0.0915318 0.255665 0) (0.100385 0.296513 0) (0.0781949 0.291621 0) (0.0329874 0.205542 0) (0.0440473 0.115997 0) (-0.0143176 0.0257381 0) (-0.0395282 0.0568959 0) (-0.05729 0.0793385 0) (-0.070406 0.0940773 0) (-0.0793698 0.099829 0) (-0.086048 0.0957966 0) (-0.0898905 0.0758144 0) (-0.0613516 0.00821101 0) (-0.0147883 -0.0233245 0) (0.0185129 0.0461752 0) (0.0889252 0.110721 0) (0.10844 0.100941 0) (0.0867167 -0.0109242 0) (0.105952 -0.0720033 0) (0.178333 -0.10688 0) (0.250937 -0.227537 0) (0.310165 -0.337407 0) (0.35531 -0.368887 0) (0.363103 -0.372792 0) (0.331367 -0.380579 0) (0.187668 -0.325152 0) (0.0702514 -0.132293 0) (0.0105691 0.0463024 0) (-0.0312275 0.140874 0) (-0.019926 0.193511 0) (-0.0403766 0.195047 0) (-0.0704042 0.179697 0) (-0.0674375 0.143427 0) (-0.0512892 0.0787164 0) (-0.0283608 0.0260085 0) (-0.0334438 0.0416608 0) (-0.0700727 0.0752532 0) (-0.0917222 0.0932793 0) (-0.101954 0.105206 0) (-0.106761 0.102993 0) (-0.109411 0.0929951 0) (-0.113021 0.0701724 0) (-0.103751 0.0200799 0) (-0.0479426 -0.039244 0) (0.010479 0.00441194 0) (0.0381829 0.0296553 0) (0.0747048 0.0061753 0) (0.0866606 -0.0620588 0) (0.142505 -0.0617003 0) (0.205632 -0.117223 0) (0.273094 -0.283096 0) (0.320421 -0.367363 0) (0.347349 -0.380775 0) (0.360288 -0.378573 0) (0.324157 -0.384061 0) (0.0507866 -0.261096 0) (-0.114531 -0.00515378 0) (-0.132665 0.122969 0) (-0.135858 0.149925 0) (-0.159035 0.141299 0) (-0.183717 0.118778 0) (-0.164664 0.0916677 0) (-0.104203 0.0713075 0) (-0.0670182 0.0339616 0) (-0.0346563 -0.00424188 0) (-0.0893998 0.0634081 0) (-0.127072 0.101257 0) (-0.140391 0.106026 0) (-0.142697 0.111081 0) (-0.127426 0.100353 0) (-0.119739 0.0885501 0) (-0.115791 0.0621551 0) (-0.113781 0.00816097 0) (-0.0819263 -0.0619044 0) (0.017651 -0.0488567 0) (0.0429637 -0.000609227 0) (0.0654546 -0.0545159 0) (0.108196 -0.0650663 0) (0.174079 -0.0757212 0) (0.22027 -0.178871 0) (0.281054 -0.327351 0) (0.320785 -0.376076 0) (0.322269 -0.376658 0) (0.338702 -0.37472 0) (0.30074 -0.375857 0) (-0.00763173 -0.185252 0) (-0.217636 0.0577038 0) (-0.2178 0.134217 0) (-0.238389 0.137805 0) (-0.273941 0.0935378 0) (-0.258256 0.0554397 0) (-0.182886 0.0485874 0) (-0.116723 0.0192234 0) (-0.0744896 -0.00267088 0) (-0.0361966 -0.0316889 0) (0.00208238 -0.300485 0) (-0.0202509 -0.296846 0) (-0.126061 -0.033157 0) (-0.147271 0.114899 0) (-0.123461 0.0995958 0) (-0.116813 0.0844962 0) (-0.100205 0.0556602 0) (-0.0915627 -0.0115562 0) (-0.0789431 -0.0982505 0) (-0.0146687 -0.124509 0) (0.0544488 -0.0251424 0) (0.0852653 -0.0376544 0) (0.138806 -0.0648867 0) (0.175188 -0.100953 0) (0.231319 -0.230419 0) (0.286868 -0.341602 0) (0.295645 -0.366805 0) (0.29212 -0.363032 0) (0.298764 -0.354214 0) (0.269528 -0.34875 0) (-0.0228848 -0.160171 0) (-0.247078 0.0791903 0) (-0.257299 0.147314 0) (-0.298283 0.14227 0) (-0.327814 0.0953031 0) (-0.277693 0.0470525 0) (-0.190265 0.0152307 0) (-0.125612 -0.023453 0) (-0.0790846 -0.0432034 0) (-0.0354284 -0.063238 0) (0.0278412 -0.389102 0) (0.0374929 -0.424313 0) (0.0493147 -0.431903 0) (0.0300017 -0.338384 0) (-0.0661043 -0.0169207 0) (-0.0733276 0.0626981 0) (-0.0448759 0.0654491 0) (-0.0308166 -0.016247 0) (-0.031067 -0.124012 0) (-0.0347473 -0.16951 0) (0.0368099 -0.0837485 0) (0.123492 -0.0593073 0) (0.149935 -0.072883 0) (0.180582 -0.115328 0) (0.247929 -0.251035 0) (0.278422 -0.34232 0) (0.269 -0.347064 0) (0.260518 -0.337707 0) (0.266543 -0.335212 0) (0.247424 -0.328452 0) (0.0474946 -0.200214 0) (-0.231053 0.0889292 0) (-0.263286 0.171082 0) (-0.308389 0.178597 0) (-0.340758 0.139446 0) (-0.291704 0.0709656 0) (-0.198411 0.00795558 0) (-0.129485 -0.0311496 0) (-0.0779897 -0.0611968 0) (-0.0322225 -0.0780401 0) (0.0268345 -0.363438 0) (0.0373287 -0.406211 0) (0.0671706 -0.437369 0) (0.0934899 -0.448436 0) (0.10029 -0.431032 0) (0.109698 -0.388982 0) (0.118736 -0.32512 0) (0.114035 -0.189396 0) (0.0820394 -0.211844 0) (0.0144538 -0.195776 0) (0.0355145 -0.127338 0) (0.115281 -0.0924511 0) (0.147243 -0.0886861 0) (0.192806 -0.123 0) (0.25522 -0.258392 0) (0.255975 -0.319247 0) (0.234133 -0.314731 0) (0.205395 -0.294409 0) (0.208105 -0.293988 0) (0.204323 -0.290656 0) (0.137384 -0.239327 0) (-0.116727 0.0363092 0) (-0.238132 0.191389 0) (-0.268476 0.229777 0) (-0.303248 0.218978 0) (-0.294178 0.143485 0) (-0.210804 0.0387609 0) (-0.134883 -0.0166969 0) (-0.0740218 -0.0564665 0) (-0.0282892 -0.0742056 0) (0.02521 -0.330909 0) (0.0452591 -0.376316 0) (0.064229 -0.401017 0) (0.0883107 -0.397076 0) (0.0708636 -0.390914 0) (0.0706617 -0.366591 0) (0.0928384 -0.339755 0) (0.153768 -0.30753 0) (0.152625 -0.285889 0) (0.0928051 -0.241876 0) (0.0733846 -0.165281 0) (0.106846 -0.107164 0) (0.135726 -0.0981305 0) (0.191401 -0.143621 0) (0.243447 -0.262812 0) (0.221636 -0.290536 0) (0.157107 -0.270346 0) (0.142161 -0.250621 0) (0.152905 -0.254467 0) (0.16769 -0.250324 0) (0.162013 -0.232816 0) (0.0932346 -0.132023 0) (-0.103084 0.110243 0) (-0.167654 0.217985 0) (-0.219398 0.253599 0) (-0.236606 0.227042 0) (-0.204488 0.115385 0) (-0.138988 0.0255734 0) (-0.067932 -0.0326892 0) (-0.0210285 -0.0498003 0) (0.0249165 -0.290957 0) (0.0591674 -0.335762 0) (0.0658457 -0.352555 0) (0.075119 -0.344936 0) (0.055668 -0.337066 0) (0.0453003 -0.310784 0) (0.0648175 -0.277628 0) (0.112927 -0.2558 0) (0.146599 -0.239973 0) (0.133505 -0.236379 0) (0.105014 -0.185276 0) (0.100941 -0.111521 0) (0.126156 -0.102631 0) (0.189691 -0.174479 0) (0.196047 -0.253277 0) (0.154848 -0.256737 0) (0.0835721 -0.228281 0) (0.0869168 -0.207738 0) (0.108823 -0.205286 0) (0.13743 -0.214394 0) (0.149576 -0.207892 0) (0.144039 -0.175589 0) (0.0943551 -0.0796574 0) (0.0310468 0.0593124 0) (-0.0604281 0.17267 0) (-0.123153 0.231201 0) (-0.144588 0.177174 0) (-0.123742 0.0723543 0) (-0.0549966 0.00331392 0) (-0.0120965 -0.0117047 0) (0.0312573 -0.242557 0) (0.0725782 -0.282968 0) (0.0652359 -0.299088 0) (0.0714614 -0.292833 0) (0.0675025 -0.283977 0) (0.0636147 -0.267685 0) (0.0711041 -0.248043 0) (0.105924 -0.235288 0) (0.132547 -0.221258 0) (0.137024 -0.207806 0) (0.128463 -0.173753 0) (0.101902 -0.111915 0) (0.125191 -0.108756 0) (0.158017 -0.186906 0) (0.124059 -0.225182 0) (0.049203 -0.214605 0) (0.0203013 -0.177693 0) (0.0422987 -0.157038 0) (0.0738094 -0.152376 0) (0.103963 -0.158158 0) (0.127789 -0.1706 0) (0.1378 -0.161633 0) (0.129628 -0.126926 0) (0.13092 -0.049458 0) (0.0915122 0.0509335 0) (0.0318255 0.149801 0) (-0.015173 0.158099 0) (-0.0647171 0.0958983 0) (-0.0231542 0.00820415 0) (0.0028319 -0.0254986 0) (0.0537834 -0.182218 0) (0.0714736 -0.225358 0) (0.07239 -0.248373 0) (0.0920908 -0.255793 0) (0.120593 -0.23749 0) (0.120772 -0.210912 0) (0.117423 -0.182398 0) (0.133557 -0.159495 0) (0.151377 -0.150025 0) (0.148702 -0.150341 0) (0.138082 -0.140814 0) (0.108429 -0.105356 0) (0.126003 -0.115149 0) (0.104817 -0.171135 0) (0.0426891 -0.186738 0) (-0.0132463 -0.169776 0) (-0.0123264 -0.133024 0) (0.00922048 -0.106597 0) (0.036116 -0.0922594 0) (0.0716559 -0.0973871 0) (0.100171 -0.11474 0) (0.116115 -0.122133 0) (0.122742 -0.111179 0) (0.134483 -0.061741 0) (0.1358 0.0068854 0) (0.134996 0.0701211 0) (0.107765 0.0791337 0) (0.0258083 0.0663684 0) (0.026744 -0.0326162 0) (0.0013048 -0.119365 0) (0.0792628 -0.120501 0) (0.0635696 -0.179406 0) (0.103 -0.203071 0) (0.149629 -0.198033 0) (0.153004 -0.185247 0) (0.141525 -0.160742 0) (0.136628 -0.131244 0) (0.14614 -0.108319 0) (0.154884 -0.100202 0) (0.152971 -0.100407 0) (0.137462 -0.100929 0) (0.0989411 -0.0914726 0) (0.0889991 -0.115854 0) (0.0418652 -0.147476 0) (-0.0280732 -0.148551 0) (-0.0505645 -0.114545 0) (-0.0371076 -0.084368 0) (-0.017963 -0.0523173 0) (-0.0057333 -0.0285822 0) (0.0250513 -0.0281298 0) (0.0616584 -0.0522047 0) (0.0871848 -0.0759006 0) (0.102918 -0.0745283 0) (0.113991 -0.0505992 0) (0.133024 0.00937779 0) (0.154125 0.0395243 0) (0.144373 0.0330422 0) (0.0603466 0.0283401 0) (0.0274307 -0.0877394 0) (-0.0145378 -0.165196 0) (0.0614536 -0.0866874 0) (0.0946442 -0.127231 0) (0.139008 -0.146994 0) (0.165485 -0.145942 0) (0.173947 -0.130949 0) (0.164282 -0.107922 0) (0.154089 -0.0811007 0) (0.155085 -0.0592364 0) (0.158675 -0.0520786 0) (0.154955 -0.0546059 0) (0.133041 -0.0598482 0) (0.0849531 -0.0511945 0) (0.0479168 -0.0969115 0) (-0.0195846 -0.122783 0) (-0.0796418 -0.0968024 0) (-0.0766023 -0.0640175 0) (-0.0614817 -0.0356491 0) (-0.0448201 -0.00609341 0) (-0.0409024 0.0262378 0) (-0.0323249 0.0399888 0) (0.0048324 0.0221975 0) (0.0546132 -0.0251951 0) (0.0812262 -0.0445457 0) (0.10328 -0.023076 0) (0.12466 0.029252 0) (0.138015 0.0343231 0) (0.124066 0.0353913 0) (0.0506972 0.0273039 0) (0.0202783 -0.0915016 0) (-0.0212926 -0.146966 0) (0.0707225 -0.0347048 0) (0.103943 -0.0678026 0) (0.146746 -0.0919014 0) (0.173127 -0.0895963 0) (0.177817 -0.0786182 0) (0.168434 -0.0611785 0) (0.157579 -0.0395297 0) (0.152779 -0.0213286 0) (0.149202 -0.0095031 0) (0.137606 -0.00658419 0) (0.0974878 -0.00266182 0) (0.066613 -0.00884614 0) (0.029047 -0.0529479 0) (-0.0557847 -0.0794379 0) (-0.0959974 -0.0414607 0) (-0.0840342 -0.0111372 0) (-0.0742508 0.0166519 0) (-0.0667665 0.0416552 0) (-0.0686299 0.0698726 0) (-0.0846249 0.102124 0) (-0.053672 0.0941776 0) (0.00171395 0.0580682 0) (0.061925 0.0135327 0) (0.0941615 0.0390843 0) (0.095182 0.0568771 0) (0.0918594 0.0523472 0) (0.0573815 0.0901578 0) (0.0363937 0.0544975 0) (0.0126371 -0.0505245 0) (-0.0246307 -0.103705 0) (0.0677866 0.00844676 0) (0.108017 -0.0220311 0) (0.145225 -0.0416526 0) (0.160358 -0.0414497 0) (0.157263 -0.0363468 0) (0.141502 -0.0227182 0) (0.121699 -0.00655224 0) (0.107319 0.00743758 0) (0.097316 0.0195016 0) (0.088252 0.0295695 0) (0.0761723 0.0354711 0) (0.0651325 0.0332028 0) (0.0446106 0.022457 0) (-0.027563 0.00536964 0) (-0.057345 0.0220744 0) (-0.0559839 0.0463225 0) (-0.0580728 0.0727091 0) (-0.0673864 0.0939568 0) (-0.0802161 0.112177 0) (-0.111802 0.146991 0) (-0.110521 0.165875 0) (-0.0524494 0.146909 0) (0.0283282 0.115117 0) (0.0482633 0.123502 0) (0.0409995 0.130809 0) (0.0148993 0.130746 0) (0.0142332 0.163036 0) (0.0346413 0.0936288 0) (0.00125774 0.00437857 0) (-0.0323881 -0.0541555 0) (0.0515702 0.0316188 0) (0.0993567 0.00985366 0) (0.123134 -0.00634078 0) (0.124961 -0.0124601 0) (0.113272 -0.0112685 0) (0.0965571 -0.000637438 0) (0.0844887 0.0122771 0) (0.0760332 0.0242099 0) (0.0699975 0.0348895 0) (0.0651082 0.0445294 0) (0.0599631 0.052668 0) (0.0533432 0.0590286 0) (0.0422334 0.0648109 0) (0.0195191 0.0695561 0) (-0.00639542 0.0828371 0) (-0.0151327 0.102676 0) (-0.0268863 0.125264 0) (-0.0454545 0.143652 0) (-0.0675481 0.157663 0) (-0.10929 0.182691 0) (-0.147788 0.22424 0) (-0.104351 0.224307 0) (-0.0206775 0.19586 0) (-0.0145889 0.205533 0) (-0.0257569 0.231698 0) (-0.0221468 0.220256 0) (0.0178569 0.225152 0) (0.0347497 0.146694 0) (-0.0122673 0.0670537 0) (-0.0403193 -0.00537645 0) (0.0299719 0.026089 0) (0.0706276 0.0182699 0) (0.0875219 0.00635518 0) (0.0871384 0.00245457 0) (0.079036 0.00647178 0) (0.0691103 0.0156497 0) (0.0611206 0.0261967 0) (0.054863 0.0365835 0) (0.0498893 0.0464224 0) (0.0456795 0.055838 0) (0.0414938 0.0650522 0) (0.0364398 0.0745996 0) (0.0299208 0.0855078 0) (0.0204969 0.0980267 0) (0.00933242 0.113963 0) (0.000624136 0.134073 0) (-0.0100212 0.15717 0) (-0.0250505 0.179334 0) (-0.0444055 0.199012 0) (-0.0761128 0.222408 0) (-0.152616 0.275865 0) (-0.153254 0.308094 0) (-0.0718252 0.308313 0) (-0.0581489 0.304004 0) (-0.0503504 0.309311 0) (-0.0148108 0.293279 0) (0.0407945 0.290155 0) (0.0316377 0.208516 0) (-0.0228797 0.132093 0) (-0.0449658 0.0392168 0) (0.0150194 0.0122886 0) (0.0424031 0.0118994 0) (0.0575532 0.0089667 0) (0.0598766 0.0105076 0) (0.0554775 0.0171383 0) (0.0493674 0.0267735 0) (0.0435821 0.0371047 0) (0.0382676 0.0472262 0) (0.0333448 0.0569068 0) (0.0286785 0.0663416 0) (0.0239979 0.0759743 0) (0.0190232 0.0865099 0) (0.013776 0.0988705 0) (0.00838707 0.113698 0) (0.00301499 0.131495 0) (-0.00258817 0.152851 0) (-0.00972058 0.177757 0) (-0.0196893 0.205081 0) (-0.0336026 0.233663 0) (-0.0502137 0.264539 0) (-0.0977007 0.308621 0) (-0.165668 0.404112 0) (-0.109768 0.443848 0) (-0.0522283 0.430856 0) (-0.0299352 0.396425 0) (0.0108739 0.371326 0) (0.0642976 0.362147 0) (0.0256212 0.268272 0) (-0.019633 0.182303 0) (-0.0426306 0.0733025 0) (0.00810423 0.00348845 0) (0.0265968 0.00449922 0) (0.037893 0.00742864 0) (0.0402195 0.0141804 0) (0.0376454 0.0238679 0) (0.033469 0.0347898 0) (0.0287923 0.0457597 0) (0.0238394 0.05624 0) (0.01873 0.0661561 0) (0.0135653 0.0757968 0) (0.00837491 0.0857092 0) (0.00318756 0.0966412 0) (-0.00183192 0.109457 0) (-0.00647855 0.124941 0) (-0.0108702 0.143777 0) (-0.0155076 0.166559 0) (-0.0210455 0.1935 0) (-0.0281876 0.224403 0) (-0.0376746 0.258239 0) (-0.0474655 0.294576 0) (-0.0566506 0.335923 0) (-0.129242 0.436537 0) (-0.123911 0.537752 0) (-0.0359502 0.537813 0) (-0.00554513 0.505691 0) (0.0419651 0.48082 0) (0.0779417 0.431377 0) (0.0297211 0.322962 0) (0.00583518 0.210277 0) (-0.0126517 0.0832722 0) (0.00489609 -0.0019004 0) (0.0173951 -0.00088132 0) (0.0242365 0.00593054 0) (0.0251955 0.0164104 0) (0.0230745 0.0284752 0) (0.0195733 0.0408346 0) (0.0152112 0.0527195 0) (0.0101995 0.0637709 0) (0.00479464 0.0740105 0) (-0.000747732 0.0838083 0) (-0.00626221 0.0937967 0) (-0.0116352 0.104795 0) (-0.0167488 0.117748 0) (-0.0215582 0.133617 0) (-0.0263064 0.153226 0) (-0.0314955 0.177031 0) (-0.0373801 0.205217 0) (-0.0446672 0.238142 0) (-0.052817 0.273262 0) (-0.0624503 0.311942 0) (-0.0671506 0.353008 0) (-0.0842805 0.407524 0) (-0.118774 0.558437 0) (-0.0368889 0.569895 0) (-0.00827706 0.566595 0) (0.0634742 0.559128 0) (0.0868872 0.471449 0) (0.0611953 0.360566 0) (0.0459164 0.239483 0) (0.0141027 0.0979237 0) (0.00350046 -0.00437403 0) (0.0110102 -0.00242775 0) (0.0136727 0.00691828 0) (0.0127625 0.0193495 0) (0.0101656 0.0326622 0) (0.00651051 0.0459521 0) (0.00192006 0.0585358 0) (-0.00344186 0.0700292 0) (-0.00923594 0.0804626 0) (-0.0150878 0.0902221 0) (-0.0207581 0.0999981 0) (-0.026117 0.110703 0) (-0.0310824 0.123454 0) (-0.035774 0.139471 0) (-0.0408169 0.159682 0) (-0.046942 0.184096 0) (-0.0538545 0.212904 0) (-0.0630024 0.24798 0) (-0.0713657 0.281773 0) (-0.0814116 0.318197 0) (-0.087271 0.365524 0) (-0.0935048 0.395927 0) (-0.100521 0.46305 0) (-0.040808 0.490453 0) (-0.0185543 0.533501 0) (0.0617585 0.547662 0) (0.102913 0.472307 0) (0.10279 0.372868 0) (0.0843231 0.252257 0) (0.038412 0.100655 0) (0.0028825 -0.00360926 0) (0.00574862 0.000933557 0) (0.0047459 0.011796 0) (0.00163735 0.0247957 0) (-0.00224645 0.0381905 0) (-0.00668345 0.0514129 0) (-0.0117856 0.063856 0) (-0.0175243 0.0751477 0) (-0.0236428 0.0853868 0) (-0.0297625 0.0948335 0) (-0.035497 0.10409 0) (-0.0406485 0.114135 0) (-0.0450838 0.126326 0) (-0.0489851 0.142255 0) (-0.053568 0.162911 0) (-0.0599117 0.186868 0) (-0.0684006 0.214282 0) (-0.078116 0.255544 0) (-0.0892167 0.290831 0) (-0.107094 0.317912 0) (-0.111417 0.350241 0) (-0.0858686 0.234882 0) (-0.0553886 0.0669667 0) (-0.0234105 0.106866 0) (-0.00120732 0.206199 0) (0.0448042 0.273204 0) (0.0929229 0.335998 0) (0.121014 0.293154 0) (0.11028 0.188625 0) (0.0595697 0.0701571 0) (0.00198055 -0.0003769 0) (0.000525348 0.00732892 0) (-0.00377677 0.01927 0) (-0.00943855 0.0325504 0) (-0.0154461 0.0457044 0) (-0.0212278 0.0583125 0) (-0.0268068 0.0696368 0) (-0.0324828 0.0794825 0) (-0.0382678 0.0886352 0) (-0.0443101 0.0974028 0) (-0.0500428 0.105908 0) (-0.0548902 0.114995 0) (-0.0584034 0.126363 0) (-0.0606896 0.142177 0) (-0.0643697 0.16343 0) (-0.0700514 0.18548 0) (-0.0917662 0.218496 0) (-0.10921 0.268964 0) (-0.123686 0.226721 0) (-0.129234 0.091056 0) (-0.109224 -0.0925104 0) (-0.0840581 -0.209557 0) (-0.0489781 -0.221865 0) (-0.00746382 -0.195665 0) (0.0281712 -0.155292 0) (0.0565388 -0.125243 0) (0.0824197 -0.0912742 0) (0.0951679 -0.0899979 0) (0.0866125 -0.0946524 0) (0.0557406 -0.0813446 0) (0.000359897 0.00410566 0) (-0.00482038 0.0152263 0) (-0.0125248 0.0284631 0) (-0.020954 0.0422157 0) (-0.0304438 0.0549595 0) (-0.0385324 0.0667664 0) (-0.0442651 0.0763305 0) (-0.0488925 0.0836152 0) (-0.0528948 0.0905129 0) (-0.0576372 0.0980661 0) (-0.0630683 0.10573 0) (-0.0676645 0.113716 0) (-0.0700432 0.124217 0) (-0.0701106 0.139886 0) (-0.0725605 0.163196 0) (-0.0825815 0.188271 0) (-0.167835 0.111409 0) (-0.235492 -0.203704 0) (-0.212413 -0.262001 0) (-0.173936 -0.283473 0) (-0.146904 -0.283187 0) (-0.101807 -0.266 0) (-0.0559426 -0.248263 0) (-0.0136038 -0.238138 0) (0.025866 -0.233253 0) (0.05478 -0.227195 0) (0.0750917 -0.219632 0) (0.0833946 -0.201804 0) (0.0693393 -0.169448 0) (0.0203127 -0.16386 0) (-0.00137842 0.00892454 0) (-0.00998331 0.0233674 0) (-0.022643 0.0381326 0) (-0.0322954 0.0532247 0) (-0.0482085 0.0652241 0) (-0.0603392 0.0759107 0) (-0.0649823 0.0828631 0) (-0.0668901 0.0867688 0) (-0.0673528 0.0912932 0) (-0.0691011 0.0976247 0) (-0.0733914 0.104673 0) (-0.0779128 0.111615 0) (-0.079863 0.120509 0) (-0.0759097 0.133389 0) (-0.0878629 0.138123 0) (-0.31197 -0.183219 0) (-0.326461 -0.257245 0) (-0.305595 -0.27098 0) (-0.257866 -0.264072 0) (-0.213512 -0.258246 0) (-0.172044 -0.249996 0) (-0.125074 -0.234113 0) (-0.0806589 -0.218611 0) (-0.0345076 -0.202254 0) (0.00496228 -0.190583 0) (0.0385058 -0.184283 0) (0.064 -0.172732 0) (0.0677111 -0.148832 0) (0.0538248 -0.116009 0) (0.0122227 -0.113966 0) (-0.00313138 0.0128243 0) (-0.0143356 0.027944 0) (-0.0401871 0.0460564 0) (-0.045255 0.0648011 0) (-0.0699062 0.0769559 0) (-0.0864192 0.0845944 0) (-0.0861728 0.0866956 0) (-0.0827086 0.0869601 0) (-0.0790474 0.0905313 0) (-0.0779585 0.0968974 0) (-0.0809813 0.104294 0) (-0.0867196 0.110358 0) (-0.0933971 0.11566 0) (-0.0926405 0.109557 0) (-0.383959 -0.153045 0) (-0.382561 -0.206586 0) (-0.359194 -0.209652 0) (-0.333531 -0.21579 0) (-0.297586 -0.216379 0) (-0.249268 -0.207433 0) (-0.205041 -0.20387 0) (-0.158505 -0.194185 0) (-0.108047 -0.178049 0) (-0.0607862 -0.160641 0) (-0.0173397 -0.14234 0) (0.0202627 -0.129338 0) (0.048826 -0.11763 0) (0.0522581 -0.0878526 0) (0.0357392 -0.0607123 0) (-0.000185122 -0.0624935 0) (-0.00831474 0.0191029 0) (-0.0299876 0.0433956 0) (-0.0763637 0.0496508 0) (-0.113177 0.0835167 0) (-0.170412 0.100065 0) (-0.121437 0.102291 0) (-0.0968516 0.0839329 0) (-0.0883906 0.0817939 0) (-0.0838712 0.0877318 0) (-0.0822164 0.0965621 0) (-0.0846976 0.10542 0) (-0.0926889 0.109261 0) (-0.0966741 0.0992312 0) (-0.176489 0.0277123 0) (-0.420689 -0.115598 0) (-0.398553 -0.153348 0) (-0.375281 -0.163537 0) (-0.35289 -0.166199 0) (-0.325834 -0.16797 0) (-0.285419 -0.167523 0) (-0.241821 -0.161205 0) (-0.194274 -0.151667 0) (-0.146309 -0.139162 0) (-0.0976536 -0.118108 0) (-0.0522339 -0.0910283 0) (-0.00954199 -0.066229 0) (0.0252543 -0.050144 0) (0.0238876 -0.0176696 0) (0.0103544 -0.00440803 0) (-0.0120147 -0.0132112 0) (-0.015999 0.0174512 0) (-0.0636812 0.0562019 0) (-0.0750287 0.0193089 0) (-0.0811563 0.0140089 0) (-0.0886907 0.0271485 0) (-0.0802035 0.0461888 0) (-0.0816967 0.0581277 0) (-0.0831833 0.0703563 0) (-0.0825858 0.0837207 0) (-0.0829248 0.0975798 0) (-0.0860606 0.110503 0) (-0.0945147 0.118875 0) (-0.113269 0.0997978 0) (-0.382628 -0.00749972 0) (-0.419241 -0.0562143 0) (-0.406622 -0.096637 0) (-0.391855 -0.113448 0) (-0.378915 -0.119337 0) (-0.352171 -0.120144 0) (-0.318491 -0.120459 0) (-0.276143 -0.114734 0) (-0.231256 -0.104719 0) (-0.184436 -0.0895663 0) (-0.138239 -0.0689947 0) (-0.0926318 -0.0389752 0) (-0.04799 0.000135462 0) (-0.00894059 0.0276242 0) (-0.00773652 0.0435572 0) (-0.0198932 0.0462833 0) (-0.014937 0.0268023 0) (-0.0125275 0.00130676 0) (-0.0329881 0.00244488 0) (-0.0439382 -0.00137628 0) (-0.0461623 -0.00110487 0) (-0.0527924 0.00913314 0) (-0.0665403 0.0265664 0) (-0.078074 0.0450704 0) (-0.0820272 0.0636827 0) (-0.0835202 0.0826125 0) (-0.0867873 0.101732 0) (-0.0944889 0.120032 0) (-0.109007 0.135918 0) (-0.149622 0.141776 0) (-0.381674 0.0427875 0) (-0.417498 -0.00666795 0) (-0.419012 -0.0437396 0) (-0.407828 -0.0726828 0) (-0.397512 -0.0836284 0) (-0.376917 -0.0865019 0) (-0.345878 -0.0857836 0) (-0.30956 -0.077963 0) (-0.268796 -0.0636636 0) (-0.225716 -0.0427498 0) (-0.183183 -0.0143007 0) (-0.143068 0.0222475 0) (-0.095341 0.0679953 0) (-0.0555115 0.0974296 0) (-0.0432357 0.101525 0) (-0.0488005 0.0999884 0) (-0.017894 0.05777 0) (-0.00908925 -0.00527507 0) (-0.0254702 -0.00599844 0) (-0.0372742 -0.00433751 0) (-0.0459593 -2.66917e-05 0) (-0.0575732 0.0104843 0) (-0.0692332 0.0256052 0) (-0.0786549 0.044088 0) (-0.0855919 0.0654392 0) (-0.0916353 0.0875696 0) (-0.0986555 0.110116 0) (-0.109901 0.131648 0) (-0.127507 0.149541 0) (-0.15473 0.156916 0) (-0.27383 0.114564 0) (-0.424047 0.0191059 0) (-0.430722 -0.00731705 0) (-0.419775 -0.0414791 0) (-0.410792 -0.0627671 0) (-0.392304 -0.068099 0) (-0.366678 -0.0657041 0) (-0.336814 -0.0533586 0) (-0.305248 -0.0297435 0) (-0.273882 0.00547043 0) (-0.245563 0.0492572 0) (-0.206841 0.0880132 0) (-0.152928 0.12529 0) (-0.0990457 0.158067 0) (-0.0808158 0.162471 0) (-0.0717149 0.151973 0) (-0.00113287 0.0815042 0) (-0.00524795 -0.00402377 0) (-0.0169165 -0.00018384 0) (-0.0287142 0.00595988 0) (-0.0420506 0.0139137 0) (-0.0570696 0.0246896 0) (-0.0722293 0.038073 0) (-0.08654 0.0549214 0) (-0.0995425 0.0758848 0) (-0.111586 0.0975197 0) (-0.122196 0.120046 0) (-0.133088 0.14285 0) (-0.146272 0.16248 0) (-0.163748 0.174559 0) (-0.222379 0.173474 0) (-0.410795 0.0486906 0) (-0.430211 0.00823255 0) (-0.433657 -0.0245191 0) (-0.417505 -0.0520416 0) (-0.402221 -0.0620397 0) (-0.380662 -0.0565768 0) (-0.360125 -0.0368843 0) (-0.341491 -0.00144841 0) (-0.330385 0.0501002 0) (-0.318096 0.106725 0) (-0.278538 0.151224 0) (-0.204968 0.186116 0) (-0.146082 0.218467 0) (-0.114451 0.222925 0) (-0.0844725 0.198616 0) (0.00609911 0.108087 0) (-0.00140408 0.00273021 0) (-0.00967946 0.0139069 0) (-0.0201736 0.0247267 0) (-0.0336694 0.0349066 0) (-0.0500147 0.0449048 0) (-0.0719513 0.0540684 0) (-0.100552 0.0667084 0) (-0.127103 0.0894774 0) (-0.145358 0.110466 0) (-0.157587 0.130264 0) (-0.166878 0.15099 0) (-0.174964 0.171639 0) (-0.185744 0.188142 0) (-0.215256 0.191676 0) (-0.348775 0.100037 0) (-0.432266 0.0119591 0) (-0.437013 -0.0181402 0) (-0.423826 -0.0486733 0) (-0.4098 -0.0583632 0) (-0.393895 -0.0497633 0) (-0.381454 -0.0246551 0) (-0.373135 0.0163672 0) (-0.375996 0.0759881 0) (-0.373358 0.149725 0) (-0.327157 0.209693 0) (-0.271926 0.243651 0) (-0.19121 0.274805 0) (-0.141464 0.273307 0) (-0.0909101 0.237041 0) (0.0118868 0.142341 0) (0.00103912 0.0100987 0) (-0.00269693 0.02827 0) (-0.00936589 0.0431341 0) (-0.0195078 0.0540345 0) (-0.0316874 0.0602299 0) (-0.0559594 0.0650475 0) (-0.123919 0.0675403 0) (-0.178401 0.0986339 0) (-0.195112 0.119426 0) (-0.204109 0.13906 0) (-0.208985 0.156968 0) (-0.211812 0.175792 0) (-0.214652 0.194884 0) (-0.222622 0.207483 0) (-0.300856 0.167172 0) (-0.434705 0.0224157 0) (-0.431102 -0.0206515 0) (-0.425979 -0.0472356 0) (-0.415317 -0.0551186 0) (-0.404335 -0.044944 0) (-0.398583 -0.0180086 0) (-0.398852 0.0252923 0) (-0.407134 0.0910845 0) (-0.400938 0.189719 0) (-0.385701 0.265554 0) (-0.326642 0.290128 0) (-0.240286 0.325988 0) (-0.162968 0.323408 0) (-0.0921913 0.281798 0) (-0.00947398 0.188663 0) (0.00279903 0.01526 0) (0.00497233 0.0387293 0) (0.00409181 0.0549397 0) (-0.000141906 0.0643289 0) (-0.0176728 0.0633821 0) (-0.0632374 0.0710277 0) (-0.173653 0.0892312 0) (-0.230966 0.1013 0) (-0.25005 0.119582 0) (-0.255641 0.141835 0) (-0.255932 0.160485 0) (-0.253682 0.177036 0) (-0.25221 0.19425 0) (-0.253145 0.213052 0) (-0.281448 0.216572 0) (-0.424912 0.030812 0) (-0.431189 -0.0252022 0) (-0.424518 -0.0487081 0) (-0.416402 -0.0555511 0) (-0.408883 -0.0470434 0) (-0.40785 -0.0205395 0) (-0.416386 0.026853 0) (-0.421947 0.108156 0) (-0.428814 0.249714 0) (-0.423908 0.306919 0) (-0.360527 0.347205 0) (-0.277094 0.36977 0) (-0.187697 0.368968 0) (-0.110896 0.314406 0) (-0.0508972 0.196052 0) (0.00407783 0.0180329 0) (0.010231 0.0432375 0) (0.0122448 0.0603824 0) (0.00948123 0.0727771 0) (-0.0454491 0.114909 0) (-0.138374 0.195659 0) (-0.234739 0.200916 0) (-0.302053 0.173536 0) (-0.309188 0.125795 0) (-0.304563 0.141596 0) (-0.301636 0.159859 0) (-0.296188 0.175472 0) (-0.290439 0.190404 0) (-0.287938 0.206336 0) (-0.293563 0.222705 0) (-0.376352 0.0974979 0) (-0.426749 -0.0263796 0) (-0.420694 -0.054009 0) (-0.413927 -0.0625227 0) (-0.407417 -0.0579507 0) (-0.406778 -0.0332336 0) (-0.410336 0.00826036 0) (-0.424007 0.12442 0) (-0.451661 0.258773 0) (-0.423981 0.311337 0) (-0.361659 0.345762 0) (-0.282478 0.361706 0) (-0.199858 0.353854 0) (-0.127625 0.279941 0) (-0.0512385 0.167975 0) (0.00312816 0.0184884 0) (0.011635 0.0438533 0) (0.0212586 0.0647005 0) (0.0109123 0.122712 0) (-0.13397 0.260647 0) (-0.277701 0.36792 0) (-0.375213 0.303303 0) (-0.384674 0.215785 0) (-0.374018 0.167297 0) (-0.351011 0.139772 0) (-0.342334 0.157877 0) (-0.334626 0.171551 0) (-0.325955 0.184442 0) (-0.320046 0.195796 0) (-0.318919 0.212081 0) (-0.347013 0.165611 0) (-0.419856 -0.0358762 0) (-0.416477 -0.0647024 0) (-0.409588 -0.0763463 0) (-0.403772 -0.0756583 0) (-0.400137 -0.0578708 0) (-0.398525 -0.0256661 0) (-0.423125 0.120462 0) (-0.431468 0.226449 0) (-0.387069 0.272828 0) (-0.323302 0.28472 0) (-0.262369 0.28784 0) (-0.194162 0.239178 0) (-0.141266 0.146477 0) (-0.0751051 0.114064 0) (-0.000317092 0.0199649 0) (0.00945764 0.042464 0) (0.0380174 0.0721763 0) (-0.0503592 0.225219 0) (-0.304756 0.481749 0) (-0.469161 0.483624 0) (-0.542061 0.322361 0) (-0.484553 0.218882 0) (-0.449005 0.17746 0) (-0.4066 0.138872 0) (-0.378737 0.153563 0) (-0.367786 0.166948 0) (-0.35734 0.176808 0) (-0.348258 0.185926 0) (-0.344566 0.196459 0) (-0.347673 0.192997 0) (-0.40155 -0.0265257 0) (-0.40704 -0.076061 0) (-0.403977 -0.0917315 0) (-0.400564 -0.0934229 0) (-0.39982 -0.0943649 0) (-0.412954 -0.0179722 0) (-0.403233 0.0891509 0) (-0.374223 0.140507 0) (-0.33043 0.208369 0) (-0.274474 0.232573 0) (-0.207451 0.234494 0) (-0.136793 0.165109 0) (-0.0989999 0.0909044 0) (-0.061828 0.0410675 0) (-0.00356733 0.0222336 0) (0.0125627 0.0408876 0) (0.0120849 0.155193 0) (-0.208281 0.483069 0) (-0.430504 0.643871 0) (-0.590153 0.545807 0) (-0.600226 0.349789 0) (-0.545119 0.232675 0) (-0.500979 0.178366 0) (-0.447899 0.140024 0) (-0.409624 0.148565 0) (-0.394983 0.16201 0) (-0.383384 0.169817 0) (-0.372889 0.175981 0) (-0.366418 0.1792 0) (-0.363218 0.187231 0) (-0.377257 0.0148112 0) (-0.393415 -0.110585 0) (-0.40145 -0.119083 0) (-0.410924 -0.134624 0) (-0.418542 -0.132957 0) (-0.408297 -0.0134385 0) (-0.367617 0.0346192 0) (-0.310758 0.0363969 0) (-0.273846 0.0848259 0) (-0.235895 0.160987 0) (-0.151329 0.185284 0) (-0.0666081 0.110846 0) (-0.0450599 0.0629531 0) (-0.0242177 0.0219087 0) (0.00626984 0.0303591 0) (0.0233748 0.0737671 0) (-0.0801175 0.368437 0) (-0.340494 0.708673 0) (-0.480819 0.765758 0) (-0.60512 0.622213 0) (-0.588151 0.391845 0) (-0.554352 0.272002 0) (-0.52186 0.200771 0) (-0.478706 0.143223 0) (-0.435083 0.145408 0) (-0.416831 0.157371 0) (-0.40397 0.163312 0) (-0.392957 0.164771 0) (-0.384618 0.162719 0) (-0.381257 0.168042 0) (-0.37479 0.0656145 0) (-0.395711 -0.159794 0) (-0.399995 -0.186613 0) (-0.408849 -0.197944 0) (-0.401709 -0.149134 0) (-0.371395 -0.0694597 0) (-0.327223 -0.0505782 0) (-0.259949 -0.0655302 0) (-0.214507 -0.0536234 0) (-0.17386 -0.00512564 0) (-0.0655712 0.0588059 0) (-0.0166646 0.0431714 0) (-0.0107727 0.0350325 0) (-0.00515537 0.0169723 0) (0.00553453 0.0500692 0) (-0.00377241 0.157834 0) (-0.227673 0.65736 0) (-0.382866 0.848035 0) (-0.453787 0.858659 0) (-0.519921 0.73277 0) (-0.514263 0.499993 0) (-0.521962 0.338063 0) (-0.540614 0.237509 0) (-0.492506 0.163053 0) (-0.453577 0.150307 0) (-0.432962 0.155542 0) (-0.418893 0.157955 0) (-0.407739 0.154775 0) (-0.39874 0.149091 0) (-0.395843 0.144812 0) (-0.383221 0.108314 0) (-0.388511 -0.14178 0) (-0.391199 -0.205833 0) (-0.391087 -0.20914 0) (-0.370807 -0.174368 0) (-0.33039 -0.120394 0) (-0.286599 -0.118449 0) (-0.23661 -0.126875 0) (-0.175649 -0.122867 0) (-0.0993989 -0.127438 0) (-0.00654464 -0.0395413 0) (0.000368667 -0.00554209 0) (0.00617755 0.00933374 0) (0.00553482 0.0170203 0) (-0.061681 0.0644293 0) (-0.188013 0.295496 0) (-0.329344 0.805713 0) (-0.34793 0.912395 0) (-0.367023 0.923368 0) (-0.36797 0.850514 0) (-0.368466 0.660133 0) (-0.464792 0.381003 0) (-0.490934 0.268697 0) (-0.470718 0.191599 0) (-0.452348 0.164152 0) (-0.438919 0.159179 0) (-0.426802 0.155732 0) (-0.416761 0.147839 0) (-0.408551 0.13658 0) (-0.406653 0.118278 0) (-0.397926 0.110534 0) (-0.381904 -0.0862964 0) (-0.382461 -0.202912 0) (-0.381647 -0.212752 0) (-0.355545 -0.187669 0) (-0.315751 -0.152438 0) (-0.268528 -0.171402 0) (-0.209031 -0.172432 0) (-0.132318 -0.189479 0) (-0.0480879 -0.178107 0) (0.00606921 -0.109009 0) (0.00269543 -0.0443099 0) (0.0132811 -0.0105982 0) (0.0234828 0.0189736 0) (-0.185105 -0.0675064 0) (-0.343762 0.391319 0) (-0.385672 0.814264 0) (-0.300589 0.914207 0) (-0.259504 0.930579 0) (-0.223252 0.890783 0) (-0.17128 0.771852 0) (-0.317424 0.449606 0) (-0.401246 0.285006 0) (-0.428921 0.203012 0) (-0.435967 0.175377 0) (-0.434493 0.166625 0) (-0.427472 0.157702 0) (-0.419146 0.143784 0) (-0.412362 0.1244 0) (-0.409354 0.0991921 0) (-0.410537 0.0787763 0) (-0.387134 -0.0114271 0) (-0.374001 -0.195256 0) (-0.373964 -0.216469 0) (-0.343948 -0.211694 0) (-0.289536 -0.183935 0) (-0.240414 -0.21149 0) (-0.172354 -0.223183 0) (-0.097983 -0.226679 0) (-0.0387476 -0.195947 0) (-0.0217418 -0.138232 0) (-0.01586 -0.075596 0) (0.000444354 -0.0208421 0) (0.0301126 0.0308968 0) (-0.0398379 -0.663154 0) (-0.242228 0.029738 0) (-0.39726 0.722295 0) (-0.275912 0.840952 0) (-0.195368 0.850836 0) (-0.123377 0.814059 0) (-0.0427027 0.713902 0) (-0.0715029 0.463286 0) (-0.304312 0.242259 0) (-0.414657 0.194594 0) (-0.432989 0.179236 0) (-0.431954 0.175771 0) (-0.424182 0.163159 0) (-0.415639 0.142601 0) (-0.409729 0.115342 0) (-0.406424 0.0838385 0) (-0.413484 0.0415106 0) (-0.409754 0.00923412 0) (-0.369156 -0.159172 0) (-0.354904 -0.222301 0) (-0.318321 -0.234755 0) (-0.264662 -0.226017 0) (-0.20903 -0.232043 0) (-0.145118 -0.257218 0) (-0.0915994 -0.247922 0) (-0.0645064 -0.20865 0) (-0.0536982 -0.154785 0) (-0.046254 -0.100704 0) (-0.039759 -0.0353403 0) (-0.0138866 0.0615167 0) (-0.0140629 -0.74655 0) (-0.0269947 -0.506275 0) (-0.227786 0.282249 0) (-0.1916 0.478245 0) (-0.135661 0.547644 0) (-0.0641438 0.517983 0) (-0.0172802 0.423908 0) (-0.0523497 0.229512 0) (-0.198282 -0.0981586 0) (-0.427472 0.0842816 0) (-0.454136 0.162452 0) (-0.437662 0.178596 0) (-0.419131 0.170619 0) (-0.405783 0.143354 0) (-0.397968 0.111807 0) (-0.393165 0.0715205 0) (-0.393177 0.0223625 0) (-0.402122 -0.0325824 0) (-0.39529 -0.097394 0) (-0.34211 -0.219985 0) (-0.299219 -0.257123 0) (-0.239468 -0.25864 0) (-0.185241 -0.266407 0) (-0.137661 -0.276893 0) (-0.105939 -0.257484 0) (-0.0889664 -0.219354 0) (-0.0797466 -0.171824 0) (-0.0723192 -0.124732 0) (-0.0702076 -0.0739673 0) (-0.0431895 0.0569808 0) (-0.0191886 -0.732896 0) (-0.00624417 -0.608589 0) (-0.0168895 -0.25364 0) (-0.0474434 -0.0417465 0) (-0.0505686 0.0395308 0) (-0.0463418 0.0401518 0) (-0.0514243 -0.0264498 0) (-0.0704282 -0.145462 0) (-0.060896 -0.231572 0) (-0.406552 -0.0172849 0) (-0.500591 0.102249 0) (-0.446221 0.159601 0) (-0.416893 0.177574 0) (-0.389193 0.145439 0) (-0.377504 0.111853 0) (-0.370618 0.0656233 0) (-0.367409 0.0117373 0) (-0.368886 -0.051732 0) (-0.374386 -0.11574 0) (-0.359494 -0.19347 0) (-0.291487 -0.268721 0) (-0.218939 -0.284909 0) (-0.175299 -0.287354 0) (-0.141509 -0.28705 0) (-0.120675 -0.266227 0) (-0.108256 -0.231796 0) (-0.0995005 -0.190922 0) (-0.0927816 -0.141969 0) (-0.0822139 -0.107809 0) (-0.0197973 -0.0474159 0) (-0.0278879 -0.708692 0) (-0.025273 -0.548293 0) (0.000363543 -0.288771 0) (-0.0212503 -0.201775 0) (-0.0465747 -0.185501 0) (-0.0619559 -0.191931 0) (-0.0675129 -0.211273 0) (-0.0471383 -0.243185 0) (0.15509 -0.243838 0) (0.209785 -0.357725 0) (-0.216245 -0.119625 0) (-0.439184 0.14549 0) (-0.382673 0.181981 0) (-0.359473 0.149901 0) (-0.351393 0.113952 0) (-0.340254 0.0646035 0) (-0.335955 0.0041755 0) (-0.334386 -0.0604694 0) (-0.335538 -0.130587 0) (-0.335148 -0.197313 0) (-0.308469 -0.269623 0) (-0.225924 -0.318014 0) (-0.171545 -0.303116 0) (-0.146883 -0.295226 0) (-0.131378 -0.27657 0) (-0.120911 -0.24886 0) (-0.114348 -0.216606 0) (-0.110764 -0.168846 0) (-0.039689 -0.200526 0) (-0.0151406 -0.118561 0) (-0.0421063 -0.68193 0) (-0.0532848 -0.359352 0) (-0.0327419 -0.216852 0) (-0.0434447 -0.182168 0) (-0.0555511 -0.175041 0) (-0.057569 -0.175525 0) (-0.0411151 -0.188003 0) (0.0494064 -0.178887 0) (0.304416 -0.224292 0) (0.422136 -0.38655 0) (0.328572 -0.531513 0) (-0.00991324 -0.289436 0) (-0.0395598 -0.337713 0) (-0.237895 -0.082078 0) (-0.332955 0.127632 0) (-0.304271 0.0648063 0) (-0.298673 0.000788645 0) (-0.296678 -0.0682231 0) (-0.295491 -0.137271 0) (-0.29408 -0.206427 0) (-0.286481 -0.264951 0) (-0.24295 -0.328722 0) (-0.173266 -0.320652 0) (-0.150467 -0.30564 0) (-0.136202 -0.289145 0) (-0.123858 -0.270788 0) (-0.108589 -0.247525 0) (-0.0687661 -0.268144 0) (-0.0185073 -0.269612 0) (0.00417689 -0.184254 0) (-0.0627932 -0.64235 0) (-0.0815869 -0.297628 0) (-0.0576802 -0.19376 0) (-0.0477784 -0.171173 0) (-0.0342489 -0.154335 0) (-0.011588 -0.147387 0) (0.0580126 -0.144572 0) (0.214188 -0.146254 0) (0.373741 -0.244278 0) (0.414108 -0.451178 0) (0.273387 -0.622778 0) (0.210176 -0.686691 0) (0.17731 -0.738418 0) (0.116584 -0.683422 0) (-0.169653 -0.30715 0) (-0.287596 0.0508782 0) (-0.257487 -0.00560879 0) (-0.256508 -0.0737556 0) (-0.255218 -0.144272 0) (-0.252923 -0.211171 0) (-0.248572 -0.271449 0) (-0.233681 -0.324723 0) (-0.17856 -0.340329 0) (-0.152186 -0.319381 0) (-0.136976 -0.30257 0) (-0.123873 -0.291661 0) (-0.104052 -0.281196 0) (-0.0276296 -0.379996 0) (-0.0248985 -0.308428 0) (0.0215973 -0.245635 0) (-0.0810479 -0.567973 0) (-0.0942328 -0.279768 0) (-0.0521066 -0.220035 0) (-0.0201399 -0.177327 0) (0.0189444 -0.155658 0) (0.0817994 -0.158383 0) (0.172504 -0.159165 0) (0.293093 -0.215359 0) (0.372215 -0.359409 0) (0.284858 -0.542794 0) (0.187968 -0.672995 0) (0.145323 -0.730187 0) (0.153376 -0.766944 0) (0.183052 -0.785999 0) (0.166344 -0.79353 0) (0.0299892 -0.628247 0) (-0.222253 -0.102023 0) (-0.215698 -0.0859147 0) (-0.216258 -0.151991 0) (-0.215193 -0.218877 0) (-0.212338 -0.278937 0) (-0.204169 -0.325105 0) (-0.177073 -0.352175 0) (-0.150513 -0.337677 0) (-0.13239 -0.320256 0) (-0.10847 -0.319968 0) (-0.063301 -0.410669 0) (-0.0253514 -0.401718 0) (-0.0220974 -0.332637 0) (0.0214303 -0.276331 0) (-0.079267 -0.529159 0) (-0.0917129 -0.287641 0) (-0.0172786 -0.379336 0) (0.0184658 -0.290696 0) (0.0752088 -0.248049 0) (0.137067 -0.28098 0) (0.210861 -0.328177 0) (0.267168 -0.421276 0) (0.215477 -0.557421 0) (0.13902 -0.674294 0) (0.112766 -0.729131 0) (0.121697 -0.737549 0) (0.14457 -0.764472 0) (0.178359 -0.77755 0) (0.192535 -0.809539 0) (0.222523 -0.843362 0) (0.0982913 -0.73382 0) (-0.202796 -0.223797 0) (-0.178934 -0.171434 0) (-0.183347 -0.234133 0) (-0.181057 -0.287139 0) (-0.176899 -0.32703 0) (-0.163283 -0.358212 0) (-0.141727 -0.359387 0) (-0.117406 -0.355593 0) (-0.0524102 -0.393864 0) (-0.00249329 -0.488917 0) (-0.0197121 -0.408297 0) (-0.0250254 -0.342083 0) (0.0243839 -0.281749 0) (-0.0699273 -0.530551 0) (-0.0785393 -0.370087 0) (0.00746243 -0.635871 0) (0.0293727 -0.563841 0) (0.0799249 -0.526883 0) (0.109206 -0.555614 0) (0.133726 -0.598528 0) (0.119371 -0.654773 0) (0.0836896 -0.692926 0) (0.0749525 -0.716765 0) (0.0833314 -0.730143 0) (0.112075 -0.732523 0) (0.142946 -0.763133 0) (0.182741 -0.772547 0) (0.201378 -0.798311 0) (0.253892 -0.824446 0) (0.2565 -0.87884 0) (0.0632994 -0.698297 0) (-0.193937 -0.257505 0) (-0.161313 -0.260127 0) (-0.157869 -0.301942 0) (-0.154574 -0.332503 0) (-0.14416 -0.372863 0) (-0.118167 -0.43918 0) (-0.0143945 -0.492842 0) (0.0170128 -0.53732 0) (0.024162 -0.476151 0) (0.0207924 -0.408756 0) (-0.0113229 -0.343056 0) (0.0478452 -0.258734 0) (-0.0414114 -0.599305 0) (-0.0627506 -0.546164 0) (-0.017202 -0.716746 0) (-0.00474322 -0.687345 0) (0.0196117 -0.683137 0) (0.0395371 -0.692802 0) (0.0424012 -0.70728 0) (0.0303059 -0.70923 0) (0.033482 -0.709477 0) (0.0513091 -0.713844 0) (0.0773818 -0.730722 0) (0.107241 -0.741161 0) (0.148702 -0.767908 0) (0.189089 -0.776166 0) (0.211525 -0.798808 0) (0.270256 -0.823573 0) (0.287958 -0.848462 0) (0.286979 -0.877455 0) (-0.0612989 -0.575722 0) (-0.156061 -0.316229 0) (-0.144807 -0.320254 0) (-0.137023 -0.346679 0) (-0.107426 -0.474463 0) (-0.025257 -0.63677 0) (0.000559994 -0.593866 0) (0.0269344 -0.526757 0) (0.0444604 -0.453431 0) (0.0610785 -0.378539 0) (0.0176383 -0.29548 0) (0.077797 -0.180045 0) (-0.0240873 -0.652413 0) (-0.0492709 -0.698336 0) (-0.0469206 -0.725452 0) (-0.0362859 -0.706582 0) (-0.0288688 -0.703531 0) (-0.0191226 -0.703062 0) (-0.012511 -0.704185 0) (-0.00133965 -0.701362 0) (0.0206047 -0.70209 0) (0.050638 -0.718281 0) (0.0833026 -0.740872 0) (0.116445 -0.757584 0) (0.159885 -0.783475 0) (0.195669 -0.783124 0) (0.226864 -0.799591 0) (0.278849 -0.826122 0) (0.313723 -0.839937 0) (0.354626 -0.865375 0) (0.216959 -0.861491 0) (-0.164496 -0.447937 0) (-0.147181 -0.350343 0) (-0.120693 -0.438894 0) (-0.0499791 -0.665651 0) (-0.0147096 -0.625443 0) (0.0129534 -0.571095 0) (0.0314451 -0.502157 0) (0.0487828 -0.417787 0) (0.0772629 -0.331308 0) (0.0488255 -0.218254 0) (0.0909954 -0.0952969 0) (-0.0121357 -0.646074 0) (-0.038265 -0.720627 0) (-0.060999 -0.701668 0) (-0.0505167 -0.692944 0) (-0.0417324 -0.691189 0) (-0.0288889 -0.688844 0) (-0.0155609 -0.692623 0) (0.0018885 -0.690108 0) (0.0362873 -0.700196 0) (0.0692947 -0.726709 0) (0.105136 -0.742261 0) (0.136262 -0.769536 0) (0.168339 -0.788994 0) (0.210279 -0.790537 0) (0.244502 -0.81147 0) (0.287717 -0.826983 0) (0.340767 -0.839894 0) (0.364944 -0.854713 0) (0.397895 -0.910421 0) (0.188829 -0.858568 0) (-0.14771 -0.478466 0) (-0.0522605 -0.670607 0) (-0.0181037 -0.640254 0) (0.00408019 -0.615185 0) (0.0214706 -0.563689 0) (0.0386765 -0.492225 0) (0.0538071 -0.404062 0) (0.057295 -0.29612 0) (0.0364405 -0.172524 0) (0.0118218 -0.0585877 0) (0.0019262 -0.590605 0) (-0.0226341 -0.68319 0) (-0.0369039 -0.65264 0) (-0.0367909 -0.652604 0) (-0.0263026 -0.656102 0) (-0.00913106 -0.659495 0) (0.00987515 -0.666238 0) (0.0344695 -0.675616 0) (0.0611854 -0.693967 0) (0.0860383 -0.716031 0) (0.1197 -0.735071 0) (0.150146 -0.770911 0) (0.186273 -0.790917 0) (0.220453 -0.800572 0) (0.253645 -0.818879 0) (0.295623 -0.833044 0) (0.35276 -0.837636 0) (0.370965 -0.855457 0) (0.422517 -0.884952 0) (0.408082 -0.906736 0) (0.0687381 -0.768576 0) (-0.0205837 -0.660592 0) (-0.00788811 -0.623324 0) (0.00107422 -0.589725 0) (0.00249462 -0.542058 0) (0.00169906 -0.474871 0) (0.000372406 -0.389771 0) (-0.00491209 -0.288929 0) (-0.012136 -0.178159 0) (-0.0259369 -0.0682911 0) (-0.00267133 -0.54454 0) (-0.00696303 -0.612736 0) (-0.0109246 -0.620786 0) (-0.00928938 -0.623608 0) (-0.000572927 -0.629042 0) (0.0140671 -0.636334 0) (0.0314693 -0.645181 0) (0.0534125 -0.662927 0) (0.069934 -0.679543 0) (0.100639 -0.710094 0) (0.134434 -0.730119 0) (0.162235 -0.77063 0) (0.202332 -0.789038 0) (0.227773 -0.804618 0) (0.26479 -0.832374 0) (0.30695 -0.834073 0) (0.35667 -0.840398 0) (0.377455 -0.860901 0) (0.427 -0.862078 0) (0.464478 -0.916141 0) (0.275868 -0.797302 0) (0.0295736 -0.645802 0) (0.0039441 -0.606764 0) (-0.000870547 -0.579124 0) (-0.012988 -0.536784 0) (-0.0328913 -0.471939 0) (-0.0509845 -0.38933 0) (-0.0638157 -0.292 0) (-0.0735234 -0.17245 0) (-0.0574382 -0.0835331 0) (-0.0112549 -0.524066 0) (-0.0116164 -0.581583 0) (-0.00730107 -0.597779 0) (-0.00361329 -0.603346 0) (0.00459994 -0.609826 0) (0.0201461 -0.619112 0) (0.0378089 -0.627608 0) (0.0658237 -0.649087 0) (0.0866239 -0.671745 0) (0.127039 -0.700203 0) (0.149943 -0.722349 0) (0.178928 -0.764759 0) (0.215702 -0.774695 0) (0.242673 -0.808093 0) (0.271291 -0.83683 0) (0.320577 -0.835501 0) (0.35783 -0.842334 0) (0.380703 -0.858823 0) (0.42769 -0.855027 0) (0.483196 -0.903081 0) (0.463654 -0.904216 0) (0.280875 -0.768549 0) (0.0757136 -0.619303 0) (0.0244265 -0.571685 0) (-0.00922628 -0.534651 0) (-0.0459361 -0.473993 0) (-0.0860668 -0.389575 0) (-0.0929171 -0.289168 0) (-0.0731045 -0.215972 0) (0.00374307 -0.207331 0) (0.00183723 -0.498436 0) (-0.00318724 -0.554299 0) (-0.00184348 -0.558338 0) (0.00679546 -0.570342 0) (0.0200807 -0.583303 0) (0.0398589 -0.597723 0) (0.0625441 -0.611997 0) (0.0892754 -0.63196 0) (0.106696 -0.656507 0) (0.147058 -0.682573 0) (0.158106 -0.712762 0) (0.196893 -0.745328 0) (0.231956 -0.765599 0) (0.254069 -0.805317 0) (0.281184 -0.832791 0) (0.330771 -0.835277 0) (0.358197 -0.842868 0) (0.381041 -0.846359 0) (0.43515 -0.85437 0) (0.483321 -0.882066 0) (0.474172 -0.898812 0) (0.43535 -0.872292 0) (0.299733 -0.738983 0) (0.159498 -0.60977 0) (0.078139 -0.536317 0) (0.0278056 -0.46669 0) (0.0105374 -0.403189 0) (-0.00463499 -0.346918 0) (-0.027209 -0.279339 0) (0.0380548 -0.224338 0) (0.0054043 -0.469422 0) (0.0149562 -0.513349 0) (0.0135904 -0.522937 0) (0.0260091 -0.539691 0) (0.0411708 -0.55718 0) (0.0547878 -0.576431 0) (0.0735383 -0.591455 0) (0.0973213 -0.612595 0) (0.122782 -0.645556 0) (0.156433 -0.666808 0) (0.177628 -0.703031 0) (0.212077 -0.725377 0) (0.244789 -0.746882 0) (0.261933 -0.798388 0) (0.297443 -0.823976 0) (0.34157 -0.824736 0) (0.359156 -0.83518 0) (0.385478 -0.840193 0) (0.448037 -0.857393 0) (0.470793 -0.861288 0) (0.446241 -0.851519 0) (0.40374 -0.792423 0) (0.347353 -0.716788 0) (0.268294 -0.615892 0) (0.181534 -0.53764 0) (0.113186 -0.478785 0) (0.0633546 -0.418071 0) (0.0278308 -0.339862 0) (0.00873313 -0.257428 0) (0.080863 -0.136902 0) (-0.00406484 -0.453643 0) (0.00352731 -0.486312 0) (0.0175988 -0.504457 0) (0.0255724 -0.518935 0) (0.0440985 -0.537786 0) (0.0601333 -0.561672 0) (0.0829134 -0.57909 0) (0.107549 -0.603689 0) (0.147133 -0.633017 0) (0.170256 -0.651444 0) (0.194445 -0.688838 0) (0.231551 -0.704029 0) (0.252977 -0.728616 0) (0.275245 -0.784735 0) (0.318692 -0.805133 0) (0.351198 -0.811949 0) (0.365537 -0.825928 0) (0.399594 -0.834846 0) (0.455682 -0.844297 0) (0.448338 -0.836567 0) (0.379642 -0.798717 0) (0.277434 -0.648469 0) (0.224287 -0.498304 0) (0.183588 -0.436031 0) (0.133588 -0.403728 0) (0.0971155 -0.370813 0) (0.0745788 -0.321484 0) (0.0519051 -0.22363 0) (0.0235305 -0.142515 0) (0.0546552 -0.0525707 0) (0.00626244 -0.436464 0) (0.0145336 -0.466014 0) (0.0230528 -0.4771 0) (0.0375051 -0.496398 0) (0.055921 -0.517501 0) (0.0818305 -0.546465 0) (0.100054 -0.558223 0) (0.120992 -0.584121 0) (0.164352 -0.613401 0) (0.182557 -0.639416 0) (0.210268 -0.664084 0) (0.247662 -0.677543 0) (0.268136 -0.714329 0) (0.293927 -0.755146 0) (0.336998 -0.78801 0) (0.367012 -0.793311 0) (0.379228 -0.809915 0) (0.421659 -0.828818 0) (0.444829 -0.820664 0) (0.407928 -0.790201 0) (0.27848 -0.676968 0) (0.158769 -0.49977 0) (0.125744 -0.414748 0) (0.105851 -0.37041 0) (0.0769074 -0.329817 0) (0.0583218 -0.276424 0) (0.0577601 -0.226719 0) (0.0501065 -0.146625 0) (0.0234668 -0.0828198 0) (0.0143278 -0.0331467 0) (0.00419991 -0.415629 0) (0.0189313 -0.435292 0) (0.0313148 -0.44907 0) (0.0487723 -0.472446 0) (0.059637 -0.495238 0) (0.0884878 -0.526013 0) (0.102761 -0.540669 0) (0.130479 -0.572707 0) (0.171364 -0.603154 0) (0.194713 -0.627837 0) (0.231758 -0.646601 0) (0.257806 -0.65763 0) (0.282534 -0.693077 0) (0.316332 -0.72757 0) (0.357759 -0.763152 0) (0.387144 -0.767792 0) (0.398015 -0.797749 0) (0.445482 -0.809726 0) (0.4302 -0.798086 0) (0.316818 -0.707208 0) (0.145613 -0.494946 0) (0.0974079 -0.411479 0) (0.0851539 -0.368607 0) (0.083898 -0.324768 0) (0.0809488 -0.271001 0) (0.0663053 -0.218756 0) (0.043451 -0.167196 0) (0.0280604 -0.11792 0) (0.0160048 -0.0719575 0) (0.00525242 -0.0267252 0) (0.00343959 -0.40307 0) (0.0137308 -0.419262 0) (0.0303228 -0.433352 0) (0.051175 -0.456483 0) (0.0650509 -0.480266 0) (0.0964116 -0.513119 0) (0.115997 -0.53068 0) (0.14379 -0.558718 0) (0.18171 -0.590821 0) (0.214298 -0.617757 0) (0.24387 -0.626089 0) (0.267246 -0.639155 0) (0.297742 -0.671443 0) (0.337602 -0.692913 0) (0.383936 -0.732283 0) (0.407408 -0.746694 0) (0.421965 -0.778783 0) (0.461411 -0.787824 0) (0.383651 -0.752824 0) (0.159425 -0.54196 0) (0.0843999 -0.412839 0) (0.0754197 -0.361867 0) (0.0690257 -0.324768 0) (0.0589149 -0.286137 0) (0.0468514 -0.243595 0) (0.0347345 -0.198652 0) (0.0223795 -0.15402 0) (0.0126816 -0.110591 0) (0.00371054 -0.0667285 0) (-0.00301956 -0.0220966 0) (0.00662332 -0.380441 0) (0.0238176 -0.400151 0) (0.0411052 -0.411827 0) (0.0604527 -0.435043 0) (0.0768665 -0.457819 0) (0.105605 -0.488674 0) (0.12272 -0.509453 0) (0.155267 -0.54179 0) (0.190096 -0.582789 0) (0.226921 -0.602841 0) (0.251015 -0.60927 0) (0.279259 -0.626631 0) (0.317103 -0.649559 0) (0.357375 -0.66705 0) (0.408543 -0.702846 0) (0.427351 -0.721387 0) (0.451951 -0.756985 0) (0.47735 -0.76795 0) (0.258035 -0.644174 0) (0.0740217 -0.428979 0) (0.0577442 -0.372516 0) (0.0524863 -0.340836 0) (0.0456614 -0.308332 0) (0.0354238 -0.27138 0) (0.0237275 -0.231039 0) (0.0126111 -0.189111 0) (0.00218674 -0.146455 0) (-0.00623457 -0.1043 0) (-0.0111397 -0.0630353 0) (-0.0124159 -0.0207771 0) (0.00744818 -0.368169 0) (0.0167286 -0.384838 0) (0.0380333 -0.397194 0) (0.0610892 -0.422587 0) (0.0773557 -0.444 0) (0.111885 -0.475832 0) (0.129823 -0.497452 0) (0.168539 -0.53492 0) (0.203162 -0.566748 0) (0.236722 -0.588581 0) (0.264549 -0.601701 0) (0.292934 -0.615214 0) (0.331613 -0.628846 0) (0.368698 -0.644022 0) (0.427097 -0.678877 0) (0.444772 -0.698763 0) (0.492455 -0.731466 0) (0.488939 -0.738345 0) (0.111137 -0.503842 0) (0.0532838 -0.38291 0) (0.0496662 -0.353907 0) (0.0420252 -0.328776 0) (0.0306 -0.298583 0) (0.0169869 -0.26247 0) (0.00341155 -0.222668 0) (-0.00880144 -0.181318 0) (-0.0186315 -0.139404 0) (-0.0252845 -0.098569 0) (-0.0276555 -0.0579599 0) (-0.0129124 -0.0202171 0) (0.00911283 -0.347664 0) (0.0262489 -0.367511 0) (0.044384 -0.376363 0) (0.0678603 -0.399299 0) (0.0836926 -0.420822 0) (0.119346 -0.453352 0) (0.136831 -0.481904 0) (0.171027 -0.517002 0) (0.218573 -0.554508 0) (0.248435 -0.574278 0) (0.27357 -0.58869 0) (0.307758 -0.597958 0) (0.346135 -0.609683 0) (0.381429 -0.6265 0) (0.441133 -0.655163 0) (0.463269 -0.677139 0) (0.522458 -0.706694 0) (0.509721 -0.70897 0) (0.0874864 -0.435963 0) (0.0600788 -0.364954 0) (0.0579877 -0.344733 0) (0.0459635 -0.323848 0) (0.0253466 -0.293749 0) (0.00293255 -0.255135 0) (-0.0148717 -0.215226 0) (-0.0285864 -0.174178 0) (-0.0381734 -0.132086 0) (-0.0385421 -0.0924441 0) (-0.0198068 -0.0557689 0) (0.00429646 -0.024714 0) (0.0122654 -0.33065 0) (0.0230033 -0.353682 0) (0.0442673 -0.365121 0) (0.0694134 -0.38428 0) (0.0873837 -0.408973 0) (0.121877 -0.433747 0) (0.145864 -0.47057 0) (0.184657 -0.513152 0) (0.223603 -0.544963 0) (0.257099 -0.55887 0) (0.28562 -0.570347 0) (0.327583 -0.579287 0) (0.364063 -0.593222 0) (0.394321 -0.615507 0) (0.449193 -0.634316 0) (0.481826 -0.651405 0) (0.547687 -0.686966 0) (0.554041 -0.67714 0) (0.224722 -0.422061 0) (0.109852 -0.373987 0) (0.0929644 -0.349443 0) (0.0745858 -0.32761 0) (0.0415371 -0.276412 0) (0.00960069 -0.236766 0) (-0.011617 -0.199213 0) (-0.0193981 -0.161644 0) (-0.0174776 -0.124059 0) (-0.00522099 -0.0842861 0) (1.09552e-05 -0.0464333 0) (0.00649071 -0.0207888 0) (0.0148144 -0.310864 0) (0.0256057 -0.336469 0) (0.047289 -0.341934 0) (0.0745013 -0.364911 0) (0.0899223 -0.389733 0) (0.126825 -0.413388 0) (0.151337 -0.45307 0) (0.197582 -0.506887 0) (0.228063 -0.533088 0) (0.263515 -0.545438 0) (0.298844 -0.556106 0) (0.339978 -0.559198 0) (0.378373 -0.572562 0) (0.416595 -0.597357 0) (0.45611 -0.612032 0) (0.505625 -0.640832 0) (0.566094 -0.664082 0) (0.600106 -0.655471 0) (0.55459 -0.601721 0) (0.263849 -0.431882 0) (0.183192 -0.326073 0) (0.203461 -0.289665 0) (0.172096 -0.231559 0) (0.115563 -0.196228 0) (0.0641554 -0.163648 0) (0.030385 -0.124702 0) (0.0120054 -0.0921243 0) (0.00461003 -0.064108 0) (0.00231178 -0.0398251 0) (0.00337755 -0.0172125 0) (0.0165581 -0.293511 0) (0.0272911 -0.319216 0) (0.0463793 -0.326822 0) (0.0765409 -0.349109 0) (0.0929984 -0.371086 0) (0.130109 -0.38828 0) (0.167342 -0.4438 0) (0.201389 -0.494821 0) (0.240066 -0.523938 0) (0.272991 -0.533419 0) (0.308484 -0.531045 0) (0.355974 -0.54279 0) (0.397038 -0.559718 0) (0.436167 -0.570185 0) (0.466854 -0.589358 0) (0.528605 -0.636165 0) (0.599173 -0.624558 0) (0.595739 -0.611915 0) (0.567694 -0.544507 0) (0.40622 -0.42132 0) (0.295194 -0.26179 0) (0.174228 -0.156799 0) (0.0994976 -0.130679 0) (0.0589947 -0.113542 0) (0.0316512 -0.0973416 0) (0.0157525 -0.0823046 0) (0.00752267 -0.0681805 0) (0.00335864 -0.0528921 0) (0.00154625 -0.0353351 0) (0.00114062 -0.01466 0) (0.0172549 -0.278141 0) (0.0287791 -0.303426 0) (0.0485827 -0.3088 0) (0.0771535 -0.328404 0) (0.0978496 -0.350552 0) (0.128494 -0.369423 0) (0.177337 -0.422668 0) (0.21261 -0.485808 0) (0.247195 -0.511381 0) (0.281697 -0.516011 0) (0.325234 -0.518412 0) (0.372115 -0.52484 0) (0.414248 -0.534609 0) (0.444659 -0.547163 0) (0.487111 -0.586306 0) (0.578176 -0.601072 0) (0.589177 -0.584013 0) (0.542904 -0.541939 0) (0.375067 -0.357398 0) (0.206581 -0.142407 0) (0.118875 -0.0964364 0) (0.0778225 -0.0858912 0) (0.052003 -0.0788631 0) (0.0349587 -0.0740151 0) (0.0235121 -0.0694277 0) (0.0151373 -0.0641678 0) (0.00874955 -0.0567731 0) (0.00419004 -0.0461795 0) (0.00127912 -0.0319489 0) (4.49006e-05 -0.0130207 0) (0.0191338 -0.256324 0) (0.0294677 -0.281159 0) (0.0499827 -0.286221 0) (0.07787 -0.312003 0) (0.10245 -0.329817 0) (0.131974 -0.351796 0) (0.186374 -0.412583 0) (0.220863 -0.464938 0) (0.25567 -0.491621 0) (0.29414 -0.496761 0) (0.344587 -0.501518 0) (0.392505 -0.507446 0) (0.431862 -0.503914 0) (0.456113 -0.54045 0) (0.541212 -0.566366 0) (0.58392 -0.547624 0) (0.561919 -0.528053 0) (0.415631 -0.394183 0) (0.172268 -0.131222 0) (0.0990031 -0.0630528 0) (0.0710246 -0.0524161 0) (0.0548194 -0.0526208 0) (0.0438798 -0.054976 0) (0.0352859 -0.0567379 0) (0.0277491 -0.0565256 0) (0.0203847 -0.054025 0) (0.0131959 -0.0487548 0) (0.00705573 -0.0403201 0) (0.00239862 -0.0280165 0) (-0.000162017 -0.0112423 0) (0.0208218 -0.227917 0) (0.030717 -0.25802 0) (0.0510643 -0.263987 0) (0.0774909 -0.293701 0) (0.102136 -0.300012 0) (0.142957 -0.332521 0) (0.189414 -0.396212 0) (0.236416 -0.444739 0) (0.266538 -0.471943 0) (0.307941 -0.481662 0) (0.36719 -0.485448 0) (0.41355 -0.476305 0) (0.441672 -0.484836 0) (0.490024 -0.528696 0) (0.5767 -0.517688 0) (0.581363 -0.500268 0) (0.490435 -0.434826 0) (0.197715 -0.14834 0) (0.0984003 -0.0336184 0) (0.0780448 -0.0239732 0) (0.0675043 -0.0289471 0) (0.0593808 -0.0362611 0) (0.0524576 -0.042442 0) (0.0451142 -0.0464257 0) (0.0373993 -0.0473266 0) (0.0292159 -0.0451517 0) (0.0204297 -0.040064 0) (0.0116285 -0.0322761 0) (0.0044947 -0.0216755 0) (0.000103024 -0.00846481 0) (0.021975 -0.20706 0) (0.0314941 -0.233411 0) (0.0518873 -0.241629 0) (0.0754185 -0.270716 0) (0.109544 -0.278032 0) (0.144475 -0.31881 0) (0.205336 -0.3708 0) (0.241365 -0.420527 0) (0.285753 -0.456732 0) (0.333068 -0.462653 0) (0.380282 -0.465925 0) (0.430227 -0.444759 0) (0.459605 -0.476674 0) (0.544457 -0.490404 0) (0.586981 -0.465563 0) (0.552381 -0.431621 0) (0.284801 -0.20325 0) (0.112776 -0.00176483 0) (0.0950676 0.00452095 0) (0.0884113 -0.00476633 0) (0.0822404 -0.0158767 0) (0.07529 -0.0259813 0) (0.0683015 -0.0334021 0) (0.0604414 -0.0369203 0) (0.050865 -0.0367132 0) (0.0400308 -0.0335443 0) (0.0285567 -0.0280883 0) (0.0171766 -0.0211001 0) (0.00738371 -0.0131375 0) (0.000681273 -0.00464168 0) (0.0221515 -0.183191 0) (0.0316397 -0.206293 0) (0.0510684 -0.216576 0) (0.0765902 -0.244506 0) (0.108813 -0.255086 0) (0.165405 -0.302073 0) (0.208484 -0.347509 0) (0.260016 -0.397896 0) (0.312685 -0.428661 0) (0.346732 -0.449732 0) (0.401812 -0.435441 0) (0.438387 -0.433172 0) (0.496342 -0.466842 0) (0.57754 -0.449817 0) (0.588134 -0.407217 0) (0.448023 -0.286941 0) (0.144507 0.0129046 0) (0.121685 0.0322295 0) (0.117564 0.0195886 0) (0.112162 0.0057529 0) (0.105924 -0.00710131 0) (0.0986058 -0.0167919 0) (0.0893538 -0.022664 0) (0.0785209 -0.0243283 0) (0.06577 -0.0223161 0) (0.0516309 -0.0181707 0) (0.0370018 -0.0129926 0) (0.0228528 -0.00731067 0) (0.010531 -0.00246442 0) (0.00146402 -4.13009e-05 0) (0.0226685 -0.1535 0) (0.0299645 -0.17755 0) (0.04924 -0.188531 0) (0.079546 -0.215799 0) (0.114129 -0.236042 0) (0.173268 -0.285984 0) (0.225385 -0.319263 0) (0.283343 -0.368322 0) (0.337947 -0.404789 0) (0.373206 -0.423727 0) (0.418127 -0.41423 0) (0.457547 -0.43902 0) (0.531754 -0.44435 0) (0.587345 -0.389216 0) (0.545636 -0.3152 0) (0.222406 -0.0185499 0) (0.155356 0.0584041 0) (0.152375 0.0431234 0) (0.148907 0.0274612 0) (0.143378 0.0136852 0) (0.135691 0.00235137 0) (0.12641 -0.00523114 0) (0.114387 -0.00932028 0) (0.0994371 -0.010415 0) (0.0817082 -0.00638774 0) (0.0627807 -0.000929739 0) (0.0441502 0.00362861 0) (0.0268597 0.00786593 0) (0.0121262 0.00984152 0) (0.00186081 0.00596268 0) (0.0217395 -0.123702 0) (0.029778 -0.144919 0) (0.0471233 -0.156212 0) (0.0848471 -0.190789 0) (0.124189 -0.224933 0) (0.188212 -0.270377 0) (0.23519 -0.300211 0) (0.312009 -0.334617 0) (0.360695 -0.37583 0) (0.406652 -0.384833 0) (0.439583 -0.406343 0) (0.494294 -0.425222 0) (0.566253 -0.390287 0) (0.571725 -0.307164 0) (0.356228 -0.082711 0) (0.19598 0.0805781 0) (0.192015 0.0648837 0) (0.189843 0.0482787 0) (0.186126 0.0340333 0) (0.179144 0.022842 0) (0.170305 0.0137057 0) (0.158815 0.00686287 0) (0.14228 0.00398916 0) (0.122027 0.00121405 0) (0.0985068 0.00694642 0) (0.0746768 0.0143106 0) (0.0490208 0.01898 0) (0.0262702 0.021152 0) (0.011008 0.0206179 0) (0.00290684 0.0116289 0) (0.0208504 -0.0902721 0) (0.0293531 -0.108801 0) (0.0499602 -0.121786 0) (0.0882223 -0.166053 0) (0.143715 -0.215924 0) (0.199743 -0.262793 0) (0.258084 -0.280309 0) (0.329827 -0.312954 0) (0.386816 -0.33095 0) (0.432076 -0.363299 0) (0.484563 -0.389709 0) (0.538804 -0.369904 0) (0.561527 -0.294873 0) (0.454309 -0.133045 0) (0.246152 0.0884552 0) (0.239648 0.0799184 0) (0.234874 0.066311 0) (0.232041 0.0527697 0) (0.226921 0.0419153 0) (0.219103 0.032541 0) (0.209457 0.0242829 0) (0.196859 0.0151504 0) (0.180346 0.0118149 0) (0.153921 0.00260937 0) (0.104123 0.00621004 0) (0.0717976 0.0152993 0) (0.0460265 0.0214605 0) (0.0227659 0.0238415 0) (0.00833067 0.0255366 0) (0.00635784 0.0149316 0) (0.0193508 -0.0563293 0) (0.034295 -0.0692754 0) (0.0531951 -0.0933581 0) (0.0967885 -0.145197 0) (0.164098 -0.203453 0) (0.216021 -0.249184 0) (0.286884 -0.270437 0) (0.344667 -0.274855 0) (0.404401 -0.313918 0) (0.472674 -0.347512 0) (0.53146 -0.329166 0) (0.547211 -0.269641 0) (0.485842 -0.14406 0) (0.303335 0.077077 0) (0.290439 0.0832945 0) (0.281857 0.0763663 0) (0.278731 0.0673383 0) (0.275149 0.0581936 0) (0.269872 0.0488296 0) (0.262793 0.0390768 0) (0.254696 0.0279115 0) (0.238456 0.0125989 0) (0.202422 0.0155568 0) (0.18789 0.0171504 0) (0.217448 0.0175464 0) (0.195569 0.0130054 0) (0.133437 0.0542504 0) (0.0511183 0.0391222 0) (0.00488668 0.042743 0) (0.0154089 0.0216196 0) (0.0226155 -0.0189315 0) (0.0363462 -0.0369779 0) (0.0567701 -0.0701021 0) (0.111996 -0.126099 0) (0.181767 -0.176967 0) (0.247409 -0.244336 0) (0.301832 -0.222803 0) (0.365443 -0.259229 0) (0.446811 -0.292415 0) (0.509275 -0.277414 0) (0.521943 -0.235052 0) (0.482023 -0.134294 0) (0.35053 0.0527141 0) (0.33421 0.0737232 0) (0.324627 0.0752856 0) (0.321411 0.0742503 0) (0.319411 0.0697266 0) (0.317078 0.0626877 0) (0.313146 0.0521415 0) (0.307613 0.0393326 0) (0.295279 0.0254742 0) (0.283687 0.0212101 0) (0.333386 0.023703 0) (0.336362 0.0321649 0) (0.196179 0.138749 0) (0.0544751 0.155412 0) (0.0346396 0.124567 0) (0.0260269 0.0680619 0) (0.00320654 0.0197414 0) (0.0508703 0.0326671 0) (0.00849167 0.00651133 0) (0.0515022 0.00795228 0) (0.0731011 -0.0261314 0) (0.129092 -0.0913197 0) (0.212927 -0.171374 0) (0.273618 -0.194371 0) (0.313565 -0.205635 0) (0.408351 -0.224644 0) (0.478002 -0.217586 0) (0.493615 -0.193985 0) (0.472665 -0.125361 0) (0.380148 0.0284205 0) (0.364956 0.0568977 0) (0.357574 0.0648131 0) (0.355803 0.0719431 0) (0.355982 0.0741746 0) (0.356563 0.0722028 0) (0.356124 0.0648701 0) (0.354042 0.0525629 0) (0.348991 0.039017 0) (0.362972 0.0365798 0) (0.398169 0.0468703 0) (0.375903 0.0905241 0) (0.0606155 0.228789 0) (-0.0293202 0.228831 0) (-0.0695963 0.196661 0) (-0.0776183 0.142256 0) (-0.072162 0.0893068 0) (-0.0579888 0.0363527 0) (-0.0285557 -0.00892228 0) (0.00675768 0.0591404 0) (0.0471271 0.0538554 0) (0.0800362 -0.00351849 0) (0.146309 -0.0715033 0) (0.246289 -0.155846 0) (0.283342 -0.150557 0) (0.350475 -0.175562 0) (0.435839 -0.182706 0) (0.474274 -0.160688 0) (0.467051 -0.110916 0) (0.398846 0.00740608 0) (0.384689 0.0404848 0) (0.37993 0.050313 0) (0.380009 0.062488 0) (0.38296 0.0708564 0) (0.386118 0.0746883 0) (0.388567 0.073175 0) (0.390053 0.0657078 0) (0.392698 0.0551146 0) (0.410778 0.0538464 0) (0.445215 0.0733632 0) (0.405824 0.100909 0) (0.0801461 0.26401 0) (-0.00391136 0.268446 0) (-0.0319802 0.240572 0) (-0.0466597 0.198185 0) (-0.0562794 0.150373 0) (-0.0651265 0.0997976 0) (-0.0673676 0.0492802 0) (-0.0485566 0.00999856 0) (0.0248479 0.108162 0) (0.0524118 0.0946892 0) (0.0998489 0.0376973 0) (0.17476 -0.0307907 0) (0.269643 -0.105453 0) (0.304167 -0.115822 0) (0.385784 -0.132912 0) (0.445544 -0.119523 0) (0.45248 -0.0910496 0) (0.40983 -0.0120398 0) (0.399575 0.0218357 0) (0.396673 0.0350749 0) (0.396982 0.0489765 0) (0.401111 0.0609955 0) (0.405982 0.0695106 0) (0.410558 0.0736678 0) (0.414945 0.0728724 0) (0.422536 0.0680377 0) (0.443046 0.0665004 0) (0.48274 0.0938445 0) (0.488124 0.119772 0) (0.138464 0.280458 0) (0.0305675 0.321026 0) (0.00241617 0.294333 0) (-0.0114049 0.250938 0) (-0.0179802 0.203245 0) (-0.0231 0.154364 0) (-0.0283624 0.1066 0) (-0.0336456 0.0621562 0) (-0.0336249 0.0134101 0) (0.0643124 0.152168 0) (0.0797069 0.133992 0) (0.128326 0.0942526 0) (0.207931 0.013447 0) (0.293313 -0.0510127 0) (0.339433 -0.0719316 0) (0.423002 -0.0881332 0) (0.440261 -0.074665 0) (0.414627 -0.0272988 0) (0.407255 0.00271942 0) (0.406593 0.0185647 0) (0.408192 0.0329103 0) (0.412481 0.0462157 0) (0.418442 0.0573741 0) (0.424483 0.0657284 0) (0.430914 0.0707042 0) (0.440586 0.0718122 0) (0.459959 0.0721967 0) (0.503059 0.0873879 0) (0.516309 0.124267 0) (0.410655 0.203208 0) (0.112437 0.388507 0) (0.0591097 0.365168 0) (0.0413989 0.317475 0) (0.0304937 0.263756 0) (0.0216052 0.211133 0) (0.0114386 0.160322 0) (0.00134998 0.112164 0) (-0.00608664 0.0671282 0) (-0.0159515 0.0221614 0) (0.0876602 0.188388 0) (0.116226 0.179655 0) (0.163928 0.14706 0) (0.255903 0.0715173 0) (0.331679 0.0214907 0) (0.400375 -0.0271878 0) (0.428072 -0.0528684 0) (0.415571 -0.0379225 0) (0.409699 -0.0146456 0) (0.410232 0.00171846 0) (0.4129 0.0158772 0) (0.417837 0.0290456 0) (0.424709 0.0408712 0) (0.432115 0.051427 0) (0.44012 0.0601278 0) (0.450428 0.066113 0) (0.466916 0.069979 0) (0.499244 0.0779828 0) (0.532056 0.116481 0) (0.541234 0.157478 0) (0.231305 0.411662 0) (0.13467 0.439868 0) (0.11722 0.390296 0) (0.103356 0.331736 0) (0.0882897 0.273211 0) (0.069558 0.217416 0) (0.0483527 0.164937 0) (0.028359 0.115969 0) (0.0118379 0.0684796 0) (-0.00142161 0.0208241 0) (0.0785457 0.195598 0) (0.138388 0.226962 0) (0.214212 0.19715 0) (0.308537 0.139003 0) (0.388647 0.0735707 0) (0.419382 0.00116626 0) (0.41103 -0.0325112 0) (0.408133 -0.0274482 0) (0.409269 -0.0144642 0) (0.412486 -0.00138092 0) (0.417882 0.0108855 0) (0.425255 0.0226401 0) (0.433849 0.0336008 0) (0.443118 0.0441565 0) (0.453848 0.0534048 0) (0.468094 0.0610075 0) (0.491236 0.0696578 0) (0.532784 0.0905183 0) (0.541784 0.130561 0) (0.51448 0.224853 0) (0.246004 0.503327 0) (0.212873 0.456222 0) (0.197344 0.399527 0) (0.178946 0.339642 0) (0.153099 0.278784 0) (0.120294 0.219646 0) (0.0834947 0.165803 0) (0.0508806 0.117322 0) (0.0276426 0.0706691 0) (0.00751809 0.023996 0) (0.0594776 0.190186 0) (0.157977 0.255646 0) (0.255614 0.245441 0) (0.359453 0.198906 0) (0.418534 0.105691 0) (0.407363 0.0157391 0) (0.400511 -0.0207846 0) (0.403908 -0.0248276 0) (0.407835 -0.0176151 0) (0.413402 -0.00740756 0) (0.420887 0.00335937 0) (0.429934 0.0144458 0) (0.440091 0.0252509 0) (0.45128 0.0360712 0) (0.464309 0.0463862 0) (0.481995 0.0567108 0) (0.510598 0.07243 0) (0.540818 0.101371 0) (0.568531 0.14597 0) (0.375755 0.486293 0) (0.320396 0.490593 0) (0.29687 0.452655 0) (0.283874 0.402071 0) (0.269833 0.343701 0) (0.237008 0.282306 0) (0.172945 0.223076 0) (0.0954684 0.161066 0) (0.0607505 0.113006 0) (0.0373428 0.0701731 0) (0.0113425 0.0240289 0) (0.0554622 0.180477 0) (0.169152 0.276114 0) (0.285606 0.284668 0) (0.391247 0.239826 0) (0.420721 0.125364 0) (0.399032 0.0291487 0) (0.396637 -0.0120636 0) (0.399945 -0.0243971 0) (0.405136 -0.0228438 0) (0.412236 -0.0153177 0) (0.421186 -0.00558465 0) (0.431581 0.00498934 0) (0.443069 0.0160366 0) (0.455726 0.0275751 0) (0.470474 0.0395295 0) (0.490754 0.0534522 0) (0.522579 0.0762888 0) (0.556708 0.107981 0) (0.518513 0.297585 0) (0.420406 0.468518 0) (0.383372 0.468308 0) (0.370763 0.446112 0) (0.366864 0.405899 0) (0.360149 0.355806 0) (0.338296 0.342087 0) (0.312945 0.288096 0) (0.177527 0.205626 0) (0.0728872 0.112635 0) (0.0332759 0.0739682 0) (0.00815319 0.0229943 0) (0.0588705 0.117642 0) (0.174525 0.253682 0) (0.291934 0.291044 0) (0.392461 0.24837 0) (0.420505 0.13977 0) (0.406086 0.0384958 0) (0.398507 -0.00638652 0) (0.397348 -0.0243521 0) (0.401356 -0.0278748 0) (0.40876 -0.0235929 0) (0.418636 -0.0152508 0) (0.430012 -0.00525741 0) (0.442477 0.00618878 0) (0.456093 0.0188565 0) (0.471959 0.0328871 0) (0.494596 0.0505982 0) (0.526937 0.0759296 0) (0.565656 0.127684 0) (0.486218 0.391673 0) (0.444153 0.432892 0) (0.426646 0.452834 0) (0.42502 0.449156 0) (0.430461 0.428096 0) (0.400289 0.353485 0) (0.353052 0.307907 0) (0.332981 0.257951 0) (0.279746 0.25688 0) (0.0368579 -0.18744 0) (0.0223462 0.063405 0) (0.00305625 0.0424982 0) (0.0383635 0.0196373 0) (0.126857 0.11114 0) (0.250395 0.249675 0) (0.338622 0.218122 0) (0.395443 0.135369 0) (0.411048 0.0442722 0) (0.400717 -0.00479971 0) (0.394859 -0.0257246 0) (0.396523 -0.0321845 0) (0.403122 -0.0312724 0) (0.413356 -0.0250137 0) (0.425318 -0.0158085 0) (0.438382 -0.00399094 0) (0.45247 0.0100089 0) (0.469078 0.0260243 0) (0.494819 0.0461743 0) (0.535861 0.0735334 0) (0.569822 0.219176 0) (0.497956 0.319562 0) (0.453526 0.405246 0) (0.445399 0.445077 0) (0.461784 0.43956 0) (0.470003 0.300831 0) (0.364727 0.267789 0) (0.241406 0.19874 0) (0.19004 0.11644 0) (0.192221 0.212982 0) (-0.0379024 -0.838781 0) (-0.0545289 -0.928744 0) (0.0353562 0.0097386 0) (0.0158485 0.000196789 0) (0.0609148 0.0365138 0) (0.137252 0.137124 0) (0.244007 0.0818969 0) (0.283426 -0.0141397 0) (0.347216 -0.0543213 0) (0.394448 -0.0250683 0) (0.389055 -0.0327403 0) (0.390075 -0.0370966 0) (0.395376 -0.0383646 0) (0.405536 -0.0345456 0) (0.417836 -0.0261423 0) (0.43106 -0.0141156 0) (0.445187 0.00117145 0) (0.462416 0.0185471 0) (0.491596 0.0374198 0) (0.551194 0.0716281 0) (0.619785 0.0854629 0) (0.535684 0.193169 0) (0.431913 0.381178 0) (0.488599 0.236475 0) (0.486155 0.159524 0) (0.387248 0.173602 0) (0.165607 0.060308 0) (0.00523444 -0.185433 0) (-0.0291778 -0.32524 0) (-0.00458041 -0.251496 0) (-0.0199627 -0.902113 0) (-0.0150512 -0.998537 0) (-0.0592467 -0.95929 0) (0.00480523 -0.00510348 0) (0.0200156 -0.00441326 0) (0.0665253 0.034499 0) (0.152527 -0.0592754 0) (0.217246 -0.114057 0) (0.251269 -0.178002 0) (0.32318 -0.17798 0) (0.375121 -0.0542098 0) (0.381679 -0.0450053 0) (0.385907 -0.0460293 0) (0.395063 -0.0445704 0) (0.407436 -0.0361248 0) (0.420743 -0.0237623 0) (0.434499 -0.00740714 0) (0.452371 0.0106094 0) (0.489557 0.0295197 0) (0.557486 0.0351936 0) (0.565386 0.00763155 0) (0.564827 -0.0799158 0) (0.583038 -0.0817444 0) (0.618559 -0.046141 0) (0.542534 0.140807 0) (0.258556 0.0845063 0) (-0.0241039 -0.226675 0) (-0.0693383 -0.409206 0) (-0.0397444 -0.481575 0) (-0.0108907 -0.493672 0) (0.0172464 -0.818558 0) (-0.0015089 -0.9835 0) (-0.0509073 -0.951742 0) (0.0031754 -0.00947349 0) (0.0102057 -0.0310074 0) (0.0198963 -0.052514 0) (0.0889261 -0.112924 0) (0.157557 -0.157098 0) (0.219527 -0.194192 0) (0.268065 -0.266046 0) (0.3131 -0.182117 0) (0.370445 -0.0631219 0) (0.374555 -0.0582696 0) (0.381513 -0.0571149 0) (0.393395 -0.0462544 0) (0.406703 -0.0323213 0) (0.419902 -0.0149272 0) (0.438 0.00301905 0) (0.48596 0.0168135 0) (0.52981 -0.00883013 0) (0.485766 -0.114774 0) (0.464606 -0.261051 0) (0.516488 -0.271016 0) (0.550488 -0.0945683 0) (0.30904 0.158015 0) (-0.00229957 -0.0940941 0) (-0.0934181 -0.341244 0) (-0.0605589 -0.461445 0) (-0.0328077 -0.504098 0) (-0.0167959 -0.521228 0) (0.0234529 -0.712052 0) (0.00408902 -0.96653 0) (-0.050072 -0.932211 0) (0.00738783 -0.0133761 0) (0.0133898 -0.0507544 0) (0.0188272 -0.0935355 0) (0.0452922 -0.130273 0) (0.114252 -0.168627 0) (0.176223 -0.213237 0) (0.215639 -0.275854 0) (0.278689 -0.286464 0) (0.343436 -0.122676 0) (0.358917 -0.0831969 0) (0.363084 -0.0729828 0) (0.374593 -0.0570963 0) (0.387834 -0.0396828 0) (0.400545 -0.0207348 0) (0.418036 -0.00265664 0) (0.469149 -0.00584909 0) (0.487526 -0.0888525 0) (0.380644 -0.250042 0) (0.227625 -0.27144 0) (0.238396 -0.305867 0) (0.197367 -0.132161 0) (0.0407207 0.000779817 0) (-0.135592 -0.20424 0) (-0.0863045 -0.384291 0) (-0.0513249 -0.47198 0) (-0.0323352 -0.50952 0) (-0.0157574 -0.523584 0) (0.0313933 -0.618809 0) (0.00662938 -0.947515 0) (-0.0484437 -0.912142 0) (0.0177083 -0.0219271 0) (0.0237478 -0.0715669 0) (0.0311815 -0.109725 0) (0.0416238 -0.146189 0) (0.0783844 -0.180212 0) (0.137045 -0.214785 0) (0.188854 -0.278915 0) (0.236295 -0.280291 0) (0.310336 -0.17186 0) (0.332274 -0.115314 0) (0.337801 -0.0885112 0) (0.350426 -0.0680529 0) (0.364075 -0.0472558 0) (0.37641 -0.0265208 0) (0.392867 -0.00816812 0) (0.433967 -0.0380147 0) (0.373832 -0.196954 0) (0.399287 -0.325788 0) (0.274582 -0.310543 0) (0.0240366 -0.304122 0) (0.00135209 -0.201768 0) (-0.0428842 -0.150587 0) (-0.121013 -0.251659 0) (-0.0717244 -0.389958 0) (-0.0484386 -0.474714 0) (-0.0337096 -0.51193 0) (-0.0160105 -0.523055 0) (0.0307564 -0.59886 0) (0.0133488 -0.925146 0) (-0.0460648 -0.890872 0) (0.0279523 -0.0566985 0) (0.0328912 -0.0924988 0) (0.0437144 -0.121129 0) (0.053358 -0.154786 0) (0.070032 -0.18675 0) (0.109186 -0.217997 0) (0.154432 -0.269814 0) (0.216673 -0.269598 0) (0.280335 -0.183168 0) (0.30214 -0.133685 0) (0.309917 -0.100621 0) (0.32337 -0.0783064 0) (0.337229 -0.0561029 0) (0.349162 -0.0341556 0) (0.365373 -0.016974 0) (0.388663 -0.0953294 0) (0.281496 -0.314685 0) (0.0952547 -0.37591 0) (-0.0367949 -0.381205 0) (-0.0646998 -0.293436 0) (-0.085488 -0.218645 0) (-0.094673 -0.202444 0) (-0.103842 -0.243967 0) (-0.0676652 -0.392641 0) (-0.0486759 -0.475784 0) (-0.0375635 -0.510872 0) (-0.0188943 -0.516546 0) (0.0319007 -0.588895 0) (0.0161496 -0.905829 0) (-0.044362 -0.869796 0) (0.025706 -0.0939505 0) (0.0392187 -0.10879 0) (0.0529349 -0.132685 0) (0.0645583 -0.160485 0) (0.0771662 -0.190747 0) (0.0975234 -0.222608 0) (0.135403 -0.258962 0) (0.199187 -0.262647 0) (0.254452 -0.191203 0) (0.273786 -0.14436 0) (0.283092 -0.111224 0) (0.296433 -0.0880591 0) (0.30992 -0.0653932 0) (0.321459 -0.0430165 0) (0.340156 -0.0319541 0) (0.302636 -0.218545 0) (0.105426 -0.446195 0) (-0.045922 -0.390116 0) (-0.0842023 -0.350949 0) (-0.0766781 -0.266699 0) (-0.105019 -0.206814 0) (-0.112089 -0.200671 0) (-0.0967204 -0.243486 0) (-0.0667993 -0.393563 0) (-0.0501289 -0.471766 0) (-0.0410944 -0.50275 0) (-0.0224206 -0.509445 0) (0.0337816 -0.580796 0) (0.0193872 -0.885637 0) (-0.0420964 -0.850233 0) (0.0323635 -0.104038 0) (0.047058 -0.11921 0) (0.0614192 -0.143133 0) (0.0738479 -0.1669 0) (0.0854823 -0.195149 0) (0.0998269 -0.226412 0) (0.125176 -0.257522 0) (0.178097 -0.262131 0) (0.226311 -0.202493 0) (0.247166 -0.154086 0) (0.257907 -0.121791 0) (0.270795 -0.0974541 0) (0.284061 -0.0746801 0) (0.295981 -0.0544198 0) (0.318978 -0.0650048 0) (0.126023 -0.436953 0) (-0.0473416 -0.556071 0) (-0.103087 -0.346298 0) (-0.101773 -0.290552 0) (-0.0808892 -0.244934 0) (-0.108649 -0.184431 0) (-0.114337 -0.185682 0) (-0.08899 -0.24611 0) (-0.0658194 -0.385119 0) (-0.0522829 -0.45858 0) (-0.0405675 -0.491462 0) (-0.0218715 -0.505045 0) (0.0378818 -0.574871 0) (0.0224142 -0.862712 0) (-0.0402825 -0.831042 0) (0.0369249 -0.11687 0) (0.0558096 -0.134137 0) (0.0690648 -0.152834 0) (0.0809286 -0.17381 0) (0.0917112 -0.201309 0) (0.103458 -0.230731 0) (0.12168 -0.256291 0) (0.156863 -0.260833 0) (0.197618 -0.214551 0) (0.221982 -0.165758 0) (0.234065 -0.1335 0) (0.24676 -0.107395 0) (0.260407 -0.085005 0) (0.274678 -0.0723904 0) (0.29223 -0.145808 0) (-0.00503428 -0.568508 0) (-0.131728 -0.565715 0) (-0.102159 -0.321471 0) (-0.110541 -0.235984 0) (-0.0832984 -0.218722 0) (-0.108933 -0.162175 0) (-0.113139 -0.161446 0) (-0.0810343 -0.243662 0) (-0.0637928 -0.360715 0) (-0.0516967 -0.438593 0) (-0.0346888 -0.480615 0) (-0.018951 -0.503401 0) (0.0431208 -0.570221 0) (0.025208 -0.839468 0) (-0.0387477 -0.813033 0) (0.0282282 -0.134923 0) (0.0586676 -0.154007 0) (0.0732872 -0.162466 0) (0.0849681 -0.182566 0) (0.0945713 -0.210421 0) (0.104053 -0.237144 0) (0.116686 -0.257994 0) (0.138312 -0.262534 0) (0.17036 -0.227905 0) (0.197976 -0.181388 0) (0.210748 -0.148166 0) (0.223414 -0.119144 0) (0.237888 -0.0968631 0) (0.255239 -0.0927259 0) (0.264537 -0.209156 0) (-0.0575122 -0.608329 0) (-0.163542 -0.550456 0) (-0.104481 -0.308854 0) (-0.111023 -0.189032 0) (-0.0858252 -0.177942 0) (-0.106791 -0.132258 0) (-0.111892 -0.144689 0) (-0.0741479 -0.231583 0) (-0.0592462 -0.32636 0) (-0.0465092 -0.413998 0) (-0.0253016 -0.469957 0) (-0.0140446 -0.501583 0) (0.0491251 -0.564523 0) (0.0276275 -0.815801 0) (-0.0375913 -0.794888 0) (0.0273822 -0.134649 0) (0.0547824 -0.18858 0) (0.0694089 -0.176922 0) (0.0848054 -0.195967 0) (0.0934334 -0.223755 0) (0.0997229 -0.246153 0) (0.107095 -0.2621 0) (0.118425 -0.264846 0) (0.143488 -0.240421 0) (0.17359 -0.20005 0) (0.186005 -0.165903 0) (0.198785 -0.132582 0) (0.213967 -0.10989 0) (0.230932 -0.11161 0) (0.255355 -0.214451 0) (-0.0355354 -0.559215 0) (-0.188205 -0.530547 0) (-0.10762 -0.273252 0) (-0.104114 -0.153573 0) (-0.093663 -0.130676 0) (-0.109026 -0.102159 0) (-0.108199 -0.121609 0) (-0.0665499 -0.218136 0) (-0.0537223 -0.285582 0) (-0.0378088 -0.385797 0) (-0.0162247 -0.456967 0) (-0.00705752 -0.494615 0) (0.0560925 -0.555186 0) (0.0303648 -0.788659 0) (-0.0367401 -0.775918 0) (0.0375483 -0.298387 0) (-0.00100533 -0.38823 0) (0.0330829 -0.229416 0) (0.0731381 -0.239603 0) (0.081116 -0.252125 0) (0.0806405 -0.266488 0) (0.0794402 -0.286944 0) (0.081917 -0.303925 0) (0.112802 -0.262754 0) (0.146935 -0.217674 0) (0.158217 -0.183937 0) (0.171122 -0.146076 0) (0.1878 -0.122212 0) (0.204757 -0.129541 0) (0.235232 -0.240174 0) (-0.00514705 -0.521616 0) (-0.21861 -0.498179 0) (-0.11151 -0.234423 0) (-0.103074 -0.122257 0) (-0.103231 -0.0901608 0) (-0.11028 -0.0693243 0) (-0.103575 -0.0993806 0) (-0.0600718 -0.192398 0) (-0.0488425 -0.244645 0) (-0.0299173 -0.356433 0) (-0.00848066 -0.441495 0) (0.000974048 -0.482831 0) (0.0632365 -0.542261 0) (0.0335463 -0.758609 0) (-0.0351917 -0.755236 0) (-0.0181858 -0.365872 0) (-0.0116286 -0.435684 0) (-0.0370407 -0.45847 0) (-0.026726 -0.451395 0) (-0.00518679 -0.412555 0) (0.00104272 -0.428406 0) (0.000764844 -0.47236 0) (0.00492475 -0.494484 0) (0.050773 -0.368616 0) (0.117172 -0.245495 0) (0.124936 -0.202941 0) (0.138162 -0.158039 0) (0.159027 -0.132206 0) (0.180982 -0.147167 0) (0.212194 -0.259837 0) (-0.0218083 -0.4936 0) (-0.2485 -0.459866 0) (-0.127627 -0.204747 0) (-0.104889 -0.0941711 0) (-0.1096 -0.0544987 0) (-0.109487 -0.0459357 0) (-0.104194 -0.0711795 0) (-0.0571243 -0.169041 0) (-0.0397333 -0.204348 0) (-0.0242509 -0.325 0) (0.000929318 -0.424818 0) (0.0082965 -0.471068 0) (0.0699105 -0.529484 0) (0.0365982 -0.728751 0) (-0.0339139 -0.733743 0) (-0.0169481 -0.346525 0) (-0.016471 -0.411334 0) (-0.0488968 -0.448554 0) (-0.0548426 -0.477786 0) (-0.056069 -0.489675 0) (-0.0523833 -0.496766 0) (-0.0456279 -0.504991 0) (-0.0370611 -0.508697 0) (-0.00394784 -0.494747 0) (0.0708832 -0.295604 0) (0.0790722 -0.22623 0) (0.0944679 -0.168586 0) (0.125116 -0.140794 0) (0.158124 -0.165988 0) (0.179555 -0.254371 0) (-0.0827457 -0.463443 0) (-0.249848 -0.421807 0) (-0.155723 -0.176334 0) (-0.101076 -0.0698154 0) (-0.110574 -0.026515 0) (-0.110901 -0.0248213 0) (-0.10435 -0.056462 0) (-0.0522921 -0.136804 0) (-0.0336069 -0.162315 0) (-0.0174437 -0.2908 0) (0.0114538 -0.406307 0) (0.0146484 -0.458286 0) (0.0762848 -0.513604 0) (0.0432091 -0.69309 0) (-0.031363 -0.712012 0) (-0.0168986 -0.324334 0) (-0.0228631 -0.377519 0) (-0.0555219 -0.419128 0) (-0.062834 -0.443586 0) (-0.0681434 -0.451538 0) (-0.0719666 -0.462027 0) (-0.0713001 -0.475643 0) (-0.0678221 -0.48464 0) (-0.067108 -0.484882 0) (0.000268733 -0.370783 0) (0.00966208 -0.25503 0) (0.0311938 -0.179666 0) (0.0808358 -0.150273 0) (0.125139 -0.190991 0) (0.0315497 -0.323316 0) (-0.250605 -0.539248 0) (-0.236872 -0.387198 0) (-0.178293 -0.174795 0) (-0.0958086 -0.0472919 0) (-0.112201 0.00194146 0) (-0.110467 0.00193073 0) (-0.0985865 -0.0394989 0) (-0.0508676 -0.0998665 0) (-0.0288423 -0.128728 0) (-0.013951 -0.260146 0) (0.0170009 -0.388545 0) (0.0205547 -0.44156 0) (0.0819778 -0.495864 0) (0.0490396 -0.660941 0) (-0.027162 -0.691568 0) (-0.0147856 -0.293725 0) (-0.0235719 -0.334235 0) (-0.0475274 -0.379427 0) (-0.0625508 -0.402858 0) (-0.0778634 -0.415496 0) (-0.0890127 -0.437904 0) (-0.0990244 -0.457331 0) (-0.105868 -0.469211 0) (-0.108747 -0.474042 0) (-0.095109 -0.438333 0) (-0.0915936 -0.28716 0) (-0.0749257 -0.209797 0) (0.00975604 -0.210445 0) (-0.0342222 -0.368259 0) (-0.266549 -0.561004 0) (-0.294949 -0.483923 0) (-0.257663 -0.36216 0) (-0.195853 -0.152722 0) (-0.111081 -0.0180829 0) (-0.108982 0.0293917 0) (-0.105925 0.0341293 0) (-0.086667 -0.0212315 0) (-0.0494645 -0.0646828 0) (-0.0244924 -0.0905538 0) (-0.00957615 -0.22754 0) (0.0232096 -0.372265 0) (0.0256764 -0.427023 0) (0.0873949 -0.479037 0) (0.0577771 -0.624955 0) (-0.0214197 -0.669767 0) (-0.0120913 -0.2659 0) (-0.0119783 -0.29484 0) (-0.0366002 -0.343385 0) (-0.0641362 -0.370241 0) (-0.0772584 -0.398474 0) (-0.0926127 -0.424182 0) (-0.11173 -0.444891 0) (-0.131892 -0.457668 0) (-0.150705 -0.459364 0) (-0.171156 -0.444769 0) (-0.223717 -0.373577 0) (-0.291234 -0.489507 0) (-0.318673 -0.55934 0) (-0.311553 -0.561927 0) (-0.312217 -0.532094 0) (-0.296895 -0.462943 0) (-0.27754 -0.309877 0) (-0.216002 -0.14494 0) (-0.1264 0.0123244 0) (-0.104813 0.0541811 0) (-0.101533 0.062363 0) (-0.0705229 0.0089854 0) (-0.03925 -0.0255427 0) (-0.0169419 -0.0511011 0) (-0.00749607 -0.199344 0) (0.0286543 -0.357401 0) (0.0306976 -0.411276 0) (0.0914835 -0.460864 0) (0.0649662 -0.589035 0) (-0.0154053 -0.64548 0) (-0.00995178 -0.245141 0) (0.00830617 -0.267172 0) (-0.0201399 -0.320086 0) (-0.0437833 -0.353891 0) (-0.0620412 -0.382481 0) (-0.0917603 -0.407873 0) (-0.126042 -0.429405 0) (-0.157835 -0.444121 0) (-0.184525 -0.449224 0) (-0.238595 -0.463139 0) (-0.354823 -0.520496 0) (-0.366564 -0.559581 0) (-0.345043 -0.575324 0) (-0.319922 -0.557142 0) (-0.309038 -0.51339 0) (-0.314654 -0.419833 0) (-0.286931 -0.289891 0) (-0.226511 -0.113408 0) (-0.136531 0.0327254 0) (-0.10355 0.0829596 0) (-0.0987748 0.0945517 0) (-0.0587489 0.054118 0) (-0.0300747 0.0308087 0) (-0.0249177 -0.0292558 0) (-0.00502243 -0.179091 0) (0.0319156 -0.344598 0) (0.034518 -0.395865 0) (0.0945052 -0.4429 0) (0.0704397 -0.552489 0) (-0.0108164 -0.617247 0) (-0.00734512 -0.232723 0) (0.0206091 -0.259589 0) (0.0138652 -0.316969 0) (-0.013689 -0.344393 0) (-0.0527106 -0.370473 0) (-0.0975285 -0.388833 0) (-0.139515 -0.410525 0) (-0.174403 -0.429099 0) (-0.211455 -0.443197 0) (-0.311524 -0.482603 0) (-0.371672 -0.530294 0) (-0.359083 -0.555565 0) (-0.331102 -0.560864 0) (-0.315464 -0.550751 0) (-0.311218 -0.51099 0) (-0.326582 -0.379208 0) (-0.276221 -0.245508 0) (-0.252026 -0.106409 0) (-0.15286 0.0629834 0) (-0.105757 0.117006 0) (-0.100331 0.137295 0) (-0.0552776 0.112385 0) (-0.0270786 0.0841068 0) (-0.0283928 -0.0108669 0) (-0.00206712 -0.165097 0) (0.0360333 -0.331265 0) (0.0393776 -0.37822 0) (0.0966209 -0.423463 0) (0.0716294 -0.519247 0) (-0.00913368 -0.585673 0) (-0.00682578 -0.227151 0) (0.0233726 -0.259736 0) (0.0243084 -0.320878 0) (0.00642296 -0.345628 0) (-0.0445371 -0.35624 0) (-0.0987899 -0.365335 0) (-0.138003 -0.391998 0) (-0.167667 -0.4115 0) (-0.235001 -0.441935 0) (-0.325657 -0.470733 0) (-0.321923 -0.482583 0) (-0.295359 -0.508904 0) (-0.288002 -0.53467 0) (-0.28995 -0.542565 0) (-0.293329 -0.516021 0) (-0.346548 -0.363764 0) (-0.29185 -0.173597 0) (-0.264448 -0.0847359 0) (-0.168437 0.0893134 0) (-0.115094 0.152695 0) (-0.0966955 0.175772 0) (-0.0716511 0.169064 0) (-0.0295158 0.118571 0) (-0.0254603 -0.00861791 0) (0.000968578 -0.159624 0) (0.0415511 -0.315089 0) (0.0449011 -0.357493 0) (0.0982402 -0.402267 0) (0.0701372 -0.492616 0) (-0.00730418 -0.554815 0) (-0.00904895 -0.222065 0) (0.0160488 -0.260267 0) (0.00992104 -0.316766 0) (-0.00379157 -0.34524 0) (-0.0208874 -0.34984 0) (-0.0498342 -0.343002 0) (-0.103091 -0.355516 0) (-0.155803 -0.377841 0) (-0.208113 -0.381644 0) (-0.20851 -0.380027 0) (-0.198743 -0.403878 0) (-0.200106 -0.442087 0) (-0.215692 -0.491002 0) (-0.231858 -0.5182 0) (-0.25695 -0.514426 0) (-0.368733 -0.36902 0) (-0.329308 -0.132041 0) (-0.254239 -0.0676184 0) (-0.194425 0.114256 0) (-0.128823 0.178597 0) (-0.106458 0.203781 0) (-0.0834926 0.197286 0) (-0.0478282 0.134041 0) (-0.0263148 -0.00499518 0) (0.00828335 -0.155537 0) (0.044535 -0.296757 0) (0.0490317 -0.333851 0) (0.0987593 -0.379053 0) (0.0661853 -0.469679 0) (-0.00401959 -0.526385 0) (-0.0125247 -0.211372 0) (0.00515646 -0.251916 0) (-0.00642047 -0.300524 0) (-0.0203524 -0.319289 0) (-0.0287652 -0.321889 0) (-0.0316378 -0.323159 0) (-0.0461792 -0.330966 0) (-0.0808623 -0.33377 0) (-0.11544 -0.332666 0) (-0.132353 -0.346604 0) (-0.138935 -0.372378 0) (-0.146708 -0.401767 0) (-0.160422 -0.436534 0) (-0.179749 -0.48491 0) (-0.226413 -0.491926 0) (-0.376663 -0.379582 0) (-0.376004 -0.105365 0) (-0.226135 -0.011915 0) (-0.243266 0.128845 0) (-0.139231 0.185761 0) (-0.126023 0.216007 0) (-0.0942875 0.204784 0) (-0.0589992 0.127966 0) (-0.0322515 0.000768255 0) (0.0165896 -0.160167 0) (0.0449372 -0.282759 0) (0.0529123 -0.310617 0) (0.0967401 -0.353179 0) (0.062262 -0.442649 0) (8.16555e-05 -0.497189 0) (-0.0158587 -0.192991 0) (-0.00190383 -0.233697 0) (-0.00950018 -0.275294 0) (-0.0166667 -0.295257 0) (-0.0246258 -0.303091 0) (-0.0341439 -0.306916 0) (-0.0450932 -0.310634 0) (-0.0668602 -0.316332 0) (-0.0960602 -0.319459 0) (-0.114101 -0.324084 0) (-0.126353 -0.345211 0) (-0.139544 -0.372266 0) (-0.15798 -0.400117 0) (-0.181591 -0.435666 0) (-0.23936 -0.445006 0) (-0.377292 -0.358669 0) (-0.405372 -0.0951278 0) (-0.23296 0.017397 0) (-0.241168 0.115687 0) (-0.170348 0.198613 0) (-0.13231 0.211764 0) (-0.106072 0.19724 0) (-0.0641614 0.116914 0) (-0.0316507 -7.46921e-05 0) (0.0249852 -0.165846 0) (0.047514 -0.266819 0) (0.0560001 -0.287303 0) (0.0938738 -0.32546 0) (0.0595134 -0.416583 0) (0.00329131 -0.46809 0) (-0.0179469 -0.167595 0) (-0.0068415 -0.209574 0) (-0.0164198 -0.248005 0) (-0.0263223 -0.263367 0) (-0.0376601 -0.263933 0) (-0.050162 -0.259154 0) (-0.0649525 -0.255632 0) (-0.0807451 -0.259476 0) (-0.105188 -0.268705 0) (-0.128211 -0.28577 0) (-0.144861 -0.306254 0) (-0.163138 -0.327928 0) (-0.18449 -0.36345 0) (-0.229146 -0.383674 0) (-0.327689 -0.355309 0) (-0.429381 -0.286513 0) (-0.420606 -0.0637016 0) (-0.256512 0.0590443 0) (-0.228812 0.116269 0) (-0.213739 0.200285 0) (-0.135374 0.211356 0) (-0.106227 0.17884 0) (-0.0671156 0.103271 0) (-0.0255229 -0.00647236 0) (0.0364302 -0.164587 0) (0.0540558 -0.240732 0) (0.0575038 -0.260178 0) (0.0922635 -0.296308 0) (0.0590532 -0.391485 0) (0.00558701 -0.438025 0) (-0.0181742 -0.13828 0) (-0.00797718 -0.182153 0) (-0.0177657 -0.218249 0) (-0.0274158 -0.232295 0) (-0.0384741 -0.232492 0) (-0.0504408 -0.227957 0) (-0.0684811 -0.227478 0) (-0.0926912 -0.238126 0) (-0.112693 -0.252147 0) (-0.131409 -0.270429 0) (-0.152757 -0.286972 0) (-0.174366 -0.295806 0) (-0.209743 -0.311718 0) (-0.308686 -0.321889 0) (-0.418137 -0.310327 0) (-0.444253 -0.22976 0) (-0.368493 -0.0257249 0) (-0.27298 0.0825351 0) (-0.22997 0.118382 0) (-0.230657 0.196534 0) (-0.147686 0.216806 0) (-0.0902756 0.158798 0) (-0.063742 0.0796749 0) (-0.00603131 -0.0274522 0) (0.0466991 -0.150223 0) (0.0547764 -0.206106 0) (0.0566949 -0.225583 0) (0.094684 -0.26428 0) (0.063802 -0.358944 0) (0.0076025 -0.404888 0) (-0.0164918 -0.108756 0) (-0.0069519 -0.156043 0) (-0.0162194 -0.191221 0) (-0.0273554 -0.203614 0) (-0.0403995 -0.202919 0) (-0.0525795 -0.203583 0) (-0.0647243 -0.207733 0) (-0.0817343 -0.217666 0) (-0.101758 -0.233746 0) (-0.128323 -0.251252 0) (-0.166761 -0.265016 0) (-0.204333 -0.265063 0) (-0.28721 -0.250741 0) (-0.395455 -0.254951 0) (-0.408976 -0.266697 0) (-0.383218 -0.20917 0) (-0.341919 -0.024242 0) (-0.280653 0.099317 0) (-0.226411 0.128584 0) (-0.220208 0.184454 0) (-0.170063 0.20498 0) (-0.0803479 0.148639 0) (-0.0421991 0.0615164 0) (0.00542346 -0.040306 0) (0.0527331 -0.118897 0) (0.0558946 -0.164319 0) (0.053599 -0.188646 0) (0.0986741 -0.232812 0) (0.0687141 -0.323514 0) (0.01001 -0.367159 0) (-0.0113793 -0.0827621 0) (-0.00471259 -0.133881 0) (-0.0134368 -0.169768 0) (-0.0245901 -0.183499 0) (-0.0337761 -0.187353 0) (-0.042608 -0.190617 0) (-0.0523147 -0.195562 0) (-0.0648406 -0.203225 0) (-0.0864522 -0.213767 0) (-0.124063 -0.222482 0) (-0.178291 -0.225784 0) (-0.257078 -0.220206 0) (-0.364445 -0.204052 0) (-0.38786 -0.19366 0) (-0.359603 -0.203241 0) (-0.332528 -0.197621 0) (-0.309676 -0.0789233 0) (-0.295849 0.116445 0) (-0.224513 0.143931 0) (-0.205594 0.167935 0) (-0.17146 0.181169 0) (-0.0838343 0.134304 0) (-0.00840895 0.0440692 0) (0.00691397 -0.041101 0) (0.054934 -0.0822687 0) (0.0492248 -0.119379 0) (0.0464479 -0.151388 0) (0.103992 -0.206559 0) (0.0707076 -0.291397 0) (0.0119236 -0.327126 0) (-0.00525238 -0.0656216 0) (-0.00147741 -0.117455 0) (-0.00803812 -0.153667 0) (-0.0168129 -0.170164 0) (-0.0249655 -0.176516 0) (-0.0331634 -0.180044 0) (-0.0426343 -0.183611 0) (-0.0558647 -0.186893 0) (-0.0807926 -0.187045 0) (-0.127166 -0.179342 0) (-0.193882 -0.158877 0) (-0.268726 -0.122019 0) (-0.292148 -0.10246 0) (-0.297553 -0.132699 0) (-0.2765 -0.180526 0) (-0.257192 -0.180811 0) (-0.27399 -0.0920447 0) (-0.33094 0.123728 0) (-0.211369 0.18417 0) (-0.175364 0.163073 0) (-0.142775 0.148122 0) (-0.0727363 0.0964573 0) (-0.00331423 0.0176948 0) (0.00562259 -0.0330658 0) (0.0439496 -0.0482445 0) (0.0353353 -0.0783434 0) (0.0414518 -0.116133 0) (0.107076 -0.181337 0) (0.0711172 -0.256039 0) (0.0139943 -0.28208 0) (-0.00134129 -0.0560384 0) (0.0020963 -0.105814 0) (-0.00200684 -0.141459 0) (-0.00913 -0.159356 0) (-0.0171657 -0.166416 0) (-0.0258097 -0.169296 0) (-0.0374916 -0.170199 0) (-0.0572085 -0.167051 0) (-0.0854687 -0.155133 0) (-0.118179 -0.134066 0) (-0.154011 -0.110815 0) (-0.199179 -0.0824247 0) (-0.228139 -0.0695136 0) (-0.239869 -0.0912084 0) (-0.217652 -0.133976 0) (-0.204467 -0.143401 0) (-0.238028 -0.096779 0) (-0.331813 0.115791 0) (-0.21311 0.226311 0) (-0.143601 0.18999 0) (-0.116208 0.126379 0) (-0.0715271 0.0508433 0) (-0.0216266 0.00791155 0) (-0.00597138 -0.0161626 0) (0.0248767 -0.0192736 0) (0.0177155 -0.0544886 0) (0.0422338 -0.0882237 0) (0.101547 -0.155307 0) (0.067034 -0.221579 0) (0.0150441 -0.228948 0) (-0.000266799 -0.0493903 0) (0.0044956 -0.0961251 0) (0.00206753 -0.130818 0) (-0.00383821 -0.148905 0) (-0.0122487 -0.15564 0) (-0.0234697 -0.156266 0) (-0.0390505 -0.151524 0) (-0.0591083 -0.139386 0) (-0.080989 -0.119518 0) (-0.105804 -0.0956141 0) (-0.143871 -0.0637526 0) (-0.183436 -0.0431978 0) (-0.199352 -0.0541472 0) (-0.202569 -0.0744769 0) (-0.204653 -0.0946849 0) (-0.208586 -0.0944281 0) (-0.257261 -0.0400953 0) (-0.33133 0.127379 0) (-0.223392 0.248405 0) (-0.136681 0.213431 0) (-0.103432 0.11699 0) (-0.081103 0.0497409 0) (-0.0471524 0.0248369 0) (-0.025153 0.0250353 0) (-0.000958474 0.0225109 0) (0.00310224 -0.0356801 0) (0.0444538 -0.077074 0) (0.0826551 -0.140764 0) (0.0640535 -0.18388 0) (0.0101385 -0.187947 0) (-0.000587707 -0.0430216 0) (0.00541154 -0.086303 0) (0.00397953 -0.119794 0) (-0.00176659 -0.136779 0) (-0.0113402 -0.141308 0) (-0.0247529 -0.137512 0) (-0.0414305 -0.126218 0) (-0.0594904 -0.10817 0) (-0.078868 -0.0838534 0) (-0.106318 -0.0542098 0) (-0.140669 -0.0302334 0) (-0.163102 -0.0302523 0) (-0.177931 -0.0402188 0) (-0.193417 -0.0490881 0) (-0.221581 -0.0544736 0) (-0.260506 -0.0400385 0) (-0.30282 0.0139585 0) (-0.320528 0.130784 0) (-0.232091 0.247192 0) (-0.136616 0.212703 0) (-0.108181 0.112744 0) (-0.102242 0.0707226 0) (-0.0934183 0.0655035 0) (-0.0530432 0.0733581 0) (-0.0303881 0.0507644 0) (-0.0112993 -0.0318324 0) (0.0396395 -0.0765958 0) (0.0598244 -0.125319 0) (0.0819565 -0.152569 0) (0.0299177 -0.186887 0) (-0.000806159 -0.0363478 0) (0.00575123 -0.075544 0) (0.00529467 -0.107068 0) (-0.000242837 -0.121751 0) (-0.00969955 -0.12254 0) (-0.022255 -0.114181 0) (-0.036642 -0.0990895 0) (-0.0515432 -0.0779743 0) (-0.0684973 -0.0515242 0) (-0.0920215 -0.0248657 0) (-0.1186 -0.0132471 0) (-0.145248 -0.0152053 0) (-0.179166 -0.0185128 0) (-0.232619 -0.018895 0) (-0.278313 -0.0188974 0) (-0.297614 0.00014832 0) (-0.301815 0.0435245 0) (-0.326178 0.140111 0) (-0.235475 0.232634 0) (-0.15136 0.198152 0) (-0.139394 0.122389 0) (-0.149481 0.102867 0) (-0.131904 0.102351 0) (-0.0843294 0.0988416 0) (-0.0648939 0.0398568 0) (-0.0318738 -0.0411002 0) (0.0137833 -0.0807668 0) (0.0312166 -0.109145 0) (0.0519537 -0.126886 0) (0.0217551 -0.153463 0) (-0.000588745 -0.0299022 0) (0.00599795 -0.0643107 0) (0.00695326 -0.0925201 0) (0.00304373 -0.104328 0) (-0.00344454 -0.101713 0) (-0.0114997 -0.0904936 0) (-0.020308 -0.0738049 0) (-0.0295511 -0.0523451 0) (-0.0412729 -0.0267681 0) (-0.0596368 -0.00349835 0) (-0.0878299 0.0117015 0) (-0.129651 0.0281358 0) (-0.1914 0.0569041 0) (-0.266066 0.0786178 0) (-0.322772 0.0820282 0) (-0.336233 0.0743504 0) (-0.325947 0.082879 0) (-0.306789 0.149344 0) (-0.257121 0.221776 0) (-0.189393 0.195327 0) (-0.183159 0.143447 0) (-0.186703 0.133154 0) (-0.158597 0.133505 0) (-0.106072 0.115056 0) (-0.0832556 0.0417329 0) (-0.0406279 -0.0303661 0) (-0.00880545 -0.0749249 0) (0.00629008 -0.0978743 0) (0.0197099 -0.116157 0) (0.00228109 -0.13584 0) (-9.9998e-05 -0.0242869 0) (0.00611052 -0.0535902 0) (0.00843332 -0.077027 0) (0.0070177 -0.0857726 0) (0.00459454 -0.0811775 0) (0.00206333 -0.0691295 0) (-0.000473671 -0.0526356 0) (-0.00291816 -0.0320889 0) (-0.00615087 -0.00802779 0) (-0.0133248 0.0180255 0) (-0.025748 0.0472038 0) (-0.0434851 0.0832357 0) (-0.0702168 0.121543 0) (-0.105756 0.159624 0) (-0.164763 0.174215 0) (-0.289151 0.1492 0) (-0.319189 0.142471 0) (-0.313043 0.179454 0) (-0.256675 0.229454 0) (-0.215779 0.218858 0) (-0.20471 0.173545 0) (-0.204505 0.164834 0) (-0.165716 0.164985 0) (-0.112615 0.135292 0) (-0.0817936 0.0539678 0) (-0.0359896 -0.00784173 0) (-0.0124547 -0.0563177 0) (-0.00217176 -0.0845481 0) (0.00327786 -0.109524 0) (-0.0104044 -0.124924 0) (0.000472695 -0.019692 0) (0.00597782 -0.0440078 0) (0.00891813 -0.0618678 0) (0.00935595 -0.0673358 0) (0.00962449 -0.0617172 0) (0.0106143 -0.0496507 0) (0.0125461 -0.0333338 0) (0.0156546 -0.0125338 0) (0.0197629 0.0136761 0) (0.023086 0.045512 0) (0.0229597 0.081552 0) (0.0169243 0.121749 0) (-0.00169319 0.164873 0) (-0.0332198 0.194711 0) (-0.0633803 0.197164 0) (-0.0959581 0.181354 0) (-0.222093 0.165361 0) (-0.305686 0.213567 0) (-0.26374 0.257036 0) (-0.222701 0.247775 0) (-0.21118 0.22164 0) (-0.203121 0.205509 0) (-0.163901 0.199974 0) (-0.104173 0.171492 0) (-0.0714977 0.0887671 0) (-0.0229984 0.028579 0) (-0.00414093 -0.0283812 0) (0.00163965 -0.0646617 0) (-0.000301862 -0.092812 0) (-0.0158464 -0.113109 0) (0.000995697 -0.0159262 0) (0.00551966 -0.0355401 0) (0.00808068 -0.0480394 0) (0.00888527 -0.0502743 0) (0.00974387 -0.0437274 0) (0.0114422 -0.0314144 0) (0.0142412 -0.0144491 0) (0.0177393 0.00792985 0) (0.0201902 0.0363205 0) (0.0187055 0.0684369 0) (0.0137248 0.101843 0) (0.00634378 0.137456 0) (-0.0034113 0.173287 0) (-0.0146597 0.202494 0) (-0.0258069 0.220603 0) (-0.0432144 0.23702 0) (-0.129152 0.240902 0) (-0.290667 0.255563 0) (-0.284945 0.296145 0) (-0.220524 0.292746 0) (-0.210578 0.268458 0) (-0.195333 0.25213 0) (-0.15322 0.240081 0) (-0.0897536 0.216249 0) (-0.0528985 0.139578 0) (-0.00768866 0.0712228 0) (0.00828342 0.00493453 0) (0.00989182 -0.0367058 0) (-0.00177493 -0.0694596 0) (-0.0174403 -0.0949607 0) (0.00136097 -0.0126516 0) (0.00463525 -0.0278241 0) (0.0059708 -0.0357704 0) (0.00576104 -0.0352861 0) (0.00548875 -0.0278549 0) (0.00583268 -0.015314 0) (0.00700764 0.00192671 0) (0.00817416 0.0246186 0) (0.00725387 0.0524718 0) (0.00245613 0.0826553 0) (-0.00430274 0.113875 0) (-0.011295 0.14766 0) (-0.0177923 0.183609 0) (-0.0238035 0.219712 0) (-0.0327472 0.257315 0) (-0.0553543 0.300013 0) (-0.117674 0.327774 0) (-0.271239 0.310692 0) (-0.309565 0.337799 0) (-0.225257 0.344093 0) (-0.203927 0.31325 0) (-0.188318 0.289216 0) (-0.137554 0.285501 0) (-0.0747646 0.261309 0) (-0.0351732 0.190967 0) (0.0107151 0.115967 0) (0.0218237 0.0420477 0) (0.0184818 -0.000868893 0) (-0.00377948 -0.0371727 0) (-0.0205806 -0.06967 0) (0.00150911 -0.00958046 0) (0.00334533 -0.0205141 0) (0.00301344 -0.0247686 0) (0.00108988 -0.0221886 0) (-0.00110811 -0.0140464 0) (-0.00276608 -0.00146589 0) (-0.00332807 0.0155403 0) (-0.00317542 0.037858 0) (-0.00414635 0.0653272 0) (-0.0101217 0.0949743 0) (-0.0214762 0.125075 0) (-0.035798 0.158945 0) (-0.0490753 0.198168 0) (-0.0635227 0.244007 0) (-0.0837904 0.301461 0) (-0.11219 0.370855 0) (-0.151453 0.418756 0) (-0.251784 0.401241 0) (-0.308924 0.391211 0) (-0.248536 0.379848 0) (-0.197932 0.350851 0) (-0.18266 0.323578 0) (-0.12424 0.331054 0) (-0.0592076 0.308368 0) (-0.0130957 0.247309 0) (0.0349744 0.161862 0) (0.0372278 0.0841267 0) (0.0229217 0.0407312 0) (-0.00786286 0.00343503 0) (-0.0239692 -0.0385261 0) (0.0014576 -0.00655884 0) (0.0018991 -0.0134349 0) (-9.06842e-05 -0.0146687 0) (-0.00384346 -0.0104675 0) (-0.00818716 -0.00179812 0) (-0.0120654 0.0106063 0) (-0.0145325 0.0269656 0) (-0.0152056 0.0488066 0) (-0.0143672 0.0774627 0) (-0.0181103 0.109909 0) (-0.0350916 0.141071 0) (-0.0689031 0.174428 0) (-0.103134 0.215954 0) (-0.143607 0.268708 0) (-0.194146 0.334303 0) (-0.243648 0.427673 0) (-0.257729 0.4771 0) (-0.281655 0.471257 0) (-0.31611 0.455897 0) (-0.261008 0.440522 0) (-0.196972 0.402011 0) (-0.185067 0.371404 0) (-0.105629 0.379646 0) (-0.0374539 0.360643 0) (0.0157301 0.309933 0) (0.0614134 0.212891 0) (0.046301 0.129665 0) (0.0208909 0.0837072 0) (-0.00864377 0.0463331 0) (-0.0240642 -0.0054757 0) (0.0012837 -0.00361728 0) (0.000710565 -0.0066799 0) (-0.00250385 -0.00536889 0) (-0.00779139 0.00015476 0) (-0.0143611 0.00924937 0) (-0.0210277 0.0212926 0) (-0.0271303 0.036606 0) (-0.0331564 0.0580706 0) (-0.03843 0.092558 0) (-0.0415476 0.145566 0) (-0.0607471 0.216951 0) (-0.139559 0.263379 0) (-0.255199 0.292316 0) (-0.33253 0.354021 0) (-0.387426 0.411549 0) (-0.41146 0.473288 0) (-0.41215 0.501595 0) (-0.382765 0.507595 0) (-0.333933 0.502867 0) (-0.252126 0.508546 0) (-0.165745 0.475929 0) (-0.150283 0.422057 0) (-0.0744975 0.431903 0) (-0.00453573 0.41633 0) (0.0580068 0.367438 0) (0.0839734 0.263314 0) (0.0462082 0.174093 0) (0.019932 0.121239 0) (-0.00128723 0.0779444 0) (-0.0206947 0.0225597 0) (0.00111446 -0.000979862 0) (0.000255207 -0.000660736 0) (-0.0032931 0.00279022 0) (-0.00928016 0.00944267 0) (-0.0176491 0.0190446 0) (-0.0272763 0.0307985 0) (-0.0382903 0.0439166 0) (-0.056165 0.0614643 0) (-0.091754 0.0994993 0) (-0.134344 0.179741 0) (-0.17467 0.290786 0) (-0.257693 0.389134 0) (-0.41989 0.422547 0) (-0.493438 0.440629 0) (-0.507879 0.477276 0) (-0.513176 0.495412 0) (-0.503528 0.503677 0) (-0.461041 0.492943 0) (-0.370271 0.509232 0) (-0.254679 0.534289 0) (-0.140309 0.546846 0) (-0.0888244 0.478315 0) (-0.0371171 0.47711 0) (0.0351752 0.45748 0) (0.0868267 0.414736 0) (0.0682642 0.286802 0) (0.0518462 0.20554 0) (0.0315579 0.150292 0) (0.0134829 0.0966413 0) (-0.00486791 0.0343557 0) (0.00109482 0.00104166 0) (0.000870743 0.00397524 0) (-0.00172558 0.00897607 0) (-0.0067926 0.0162718 0) (-0.0149641 0.0261264 0) (-0.0252815 0.0376008 0) (-0.0348022 0.0481533 0) (-0.0598873 0.0619352 0) (-0.188303 0.090011 0) (-0.292728 0.190406 0) (-0.336401 0.313796 0) (-0.395489 0.420385 0) (-0.494286 0.46157 0) (-0.526831 0.479976 0) (-0.526095 0.503944 0) (-0.525122 0.509487 0) (-0.512059 0.499388 0) (-0.479134 0.471811 0) (-0.406714 0.467573 0) (-0.274356 0.521792 0) (-0.144628 0.573509 0) (-0.0591115 0.533886 0) (-0.007675 0.501964 0) (0.0477104 0.474209 0) (0.07577 0.410095 0) (0.0648568 0.292927 0) (0.0648991 0.226567 0) (0.0530904 0.173054 0) (0.0354427 0.116342 0) (0.00830907 0.046708 0) (0.0012814 0.0022383 0) (0.00222353 0.00660862 0) (0.00165383 0.0122349 0) (-0.000925438 0.0192401 0) (-0.00640427 0.0280943 0) (-0.012082 0.0359765 0) (-0.0128537 0.0421643 0) (-0.00560537 0.0233321 0) (-0.334126 0.0545469 0) (-0.461263 0.231857 0) (-0.480093 0.335167 0) (-0.485696 0.419181 0) (-0.501118 0.458404 0) (-0.509841 0.485037 0) (-0.504805 0.50909 0) (-0.497275 0.514081 0) (-0.479408 0.494691 0) (-0.454088 0.460259 0) (-0.398164 0.430264 0) (-0.306005 0.452346 0) (-0.165887 0.55421 0) (-0.0581884 0.550625 0) (-0.0030916 0.490521 0) (0.0402084 0.448854 0) (0.0630983 0.378508 0) (0.0733163 0.295518 0) (0.0791658 0.236009 0) (0.0744523 0.187912 0) (0.0586335 0.135527 0) (0.0221499 0.0604172 0) (0.00108505 0.00334474 0) (0.00232663 0.00778917 0) (0.00390943 0.0127893 0) (0.00496216 0.0181487 0) (0.00587906 0.0228572 0) (0.0116586 0.0202492 0) (0.0462333 0.00216733 0) (-0.153548 -0.0933311 0) (-0.232626 -0.0608161 0) (-0.372919 0.129848 0) (-0.48895 0.33628 0) (-0.473098 0.416119 0) (-0.457186 0.447721 0) (-0.442206 0.470698 0) (-0.430557 0.493509 0) (-0.420939 0.498968 0) (-0.404502 0.48163 0) (-0.384315 0.446062 0) (-0.348766 0.40617 0) (-0.291373 0.392778 0) (-0.195023 0.455261 0) (-0.0620379 0.508424 0) (-0.00828829 0.44288 0) (0.0209917 0.40925 0) (0.0549011 0.360551 0) (0.0779877 0.285458 0) (0.085818 0.229288 0) (0.0860105 0.189691 0) (0.0813866 0.149285 0) (0.0464403 0.0754267 0) (-0.00178687 0.00612245 0) (-0.00317879 0.00989971 0) (-0.00118233 0.0132627 0) (0.00294878 0.0154247 0) (0.0102444 0.00725148 0) (0.0363588 -0.00878903 0) (0.0122001 -0.0331379 0) (-0.201686 -0.0997699 0) (-0.172749 -0.110913 0) (-0.189295 -0.0818536 0) (-0.306991 0.107555 0) (-0.398746 0.337328 0) (-0.393609 0.428527 0) (-0.387979 0.459662 0) (-0.371639 0.47415 0) (-0.356486 0.479867 0) (-0.339881 0.467603 0) (-0.316995 0.434103 0) (-0.287324 0.389501 0) (-0.249583 0.354794 0) (-0.190743 0.364759 0) (-0.0764666 0.407188 0) (-0.0233846 0.407087 0) (0.00587958 0.383651 0) (0.0415179 0.328383 0) (0.0717124 0.251079 0) (0.0767886 0.207325 0) (0.0774052 0.184677 0) (0.0864149 0.155542 0) (0.0713329 0.0559978 0) (-0.012976 0.0117815 0) (-0.0198228 0.0126215 0) (-0.0188832 0.0146913 0) (-0.0150241 0.0166835 0) (-0.00992975 0.0127626 0) (-0.00575579 -0.0156508 0) (-0.20504 -0.0571286 0) (-0.194851 -0.0807721 0) (-0.16126 -0.104167 0) (-0.149611 -0.108575 0) (-0.137469 -0.0836788 0) (-0.180687 0.031534 0) (-0.271997 0.225218 0) (-0.318051 0.400422 0) (-0.3117 0.461541 0) (-0.305266 0.469502 0) (-0.281401 0.453492 0) (-0.253828 0.418415 0) (-0.228798 0.374498 0) (-0.202123 0.328229 0) (-0.162267 0.300266 0) (-0.0901843 0.298 0) (-0.0470668 0.336394 0) (-0.0163925 0.307493 0) (0.00169054 0.218467 0) (0.0167391 0.136182 0) (0.0221107 0.114451 0) (0.0198178 0.0878566 0) (-0.0196147 -0.0513969 0) (-0.0363828 -0.113869 0) (-0.0503815 0.0137304 0) (-0.0512331 0.00943288 0) (-0.0483944 0.01154 0) (-0.0454912 0.0154579 0) (-0.0351614 0.0205048 0) (-0.0501916 0.000661626 0) (-0.239498 -0.0322416 0) (-0.180982 -0.0325868 0) (-0.153815 -0.0658038 0) (-0.132712 -0.0701681 0) (-0.110546 -0.0740415 0) (-0.0837392 -0.0619382 0) (-0.0874079 -0.0176776 0) (-0.126891 0.0886223 0) (-0.203559 0.269235 0) (-0.231032 0.406662 0) (-0.2093 0.438126 0) (-0.193798 0.407946 0) (-0.170072 0.360064 0) (-0.147477 0.304315 0) (-0.115694 0.248396 0) (-0.0792095 0.21143 0) (-0.0553862 0.216411 0) (-0.0409505 0.185223 0) (-0.033212 0.125577 0) (-0.0403198 0.0568727 0) (-0.0632561 0.00456457 0) (-0.0719096 -0.0440931 0) (-0.0617873 -0.102165 0) (-0.0561097 -0.127147 0) (0.0114767 -0.276597 0) (-0.110655 -0.015936 0) (-0.0891617 0.000522932 0) (-0.0843648 0.00734805 0) (-0.0796479 0.0153409 0) (-0.177326 -0.0125794 0) (-0.24403 -0.00549901 0) (-0.186307 -0.00553637 0) (-0.15297 -0.0190771 0) (-0.118803 -0.0148585 0) (-0.0892252 -0.0244475 0) (-0.0632064 -0.0250753 0) (-0.0461661 -0.0165521 0) (-0.0294916 0.000331456 0) (-0.0290593 0.0374845 0) (-0.0537985 0.107291 0) (-0.101444 0.236136 0) (-0.118508 0.346312 0) (-0.0989256 0.339857 0) (-0.0822416 0.281269 0) (-0.0740312 0.187466 0) (-0.0645376 0.186837 0) (-0.0452673 0.190242 0) (-0.0344684 0.170729 0) (-0.0341731 0.132276 0) (-0.052696 0.088622 0) (-0.0793734 0.0489486 0) (-0.0806557 0.00222469 0) (-0.0647289 -0.0557288 0) (-0.0612804 -0.091638 0) (0.0240648 -0.265803 0) (0.00802504 -0.203743 0) (-0.138907 -0.0288952 0) (-0.122139 -0.00426536 0) (-0.167483 -0.0247853 0) (-0.258769 -0.0101919 0) (-0.235558 0.0220681 0) (-0.193045 0.0178884 0) (-0.155475 0.0144651 0) (-0.107985 0.0253293 0) (-0.0728551 0.0203405 0) (-0.0456385 0.0241159 0) (-0.0232252 0.0305373 0) (-0.00338984 0.0373051 0) (0.0119663 0.0458665 0) (0.0226489 0.0542003 0) (0.0213601 0.0706264 0) (0.0123035 0.106072 0) (-0.00884815 0.181312 0) (-0.0069344 0.201665 0) (-0.030332 0.154068 0) (-0.036849 0.1893 0) (-0.0228324 0.205136 0) (-0.015497 0.201415 0) (-0.0175057 0.184837 0) (-0.0375069 0.16074 0) (-0.0653428 0.125754 0) (-0.0730703 0.0762769 0) (-0.0674494 0.01039 0) (-0.0675547 -0.0410888 0) (0.00828884 -0.206443 0) (0.0207812 -0.126643 0) (-0.00428082 -0.0890184 0) (-0.132992 -0.0322166 0) (-0.214097 0.00318588 0) (-0.235742 0.0397166 0) (-0.220435 0.0565583 0) (-0.180196 0.0618498 0) (-0.134982 0.0636738 0) (-0.0905143 0.0711655 0) (-0.0541882 0.0712482 0) (-0.0285538 0.078159 0) (-0.00478667 0.0860151 0) (0.0155225 0.0952679 0) (0.0315539 0.101342 0) (0.0419998 0.102228 0) (0.050743 0.10592 0) (0.057824 0.107477 0) (0.0631641 0.119964 0) (0.049455 0.137933 0) (0.020618 0.165693 0) (-0.000609842 0.209661 0) (0.00105199 0.237586 0) (0.0109296 0.24817 0) (0.0126021 0.244748 0) (-0.00171022 0.232483 0) (-0.0301183 0.20573 0) (-0.0504954 0.161357 0) (-0.0624266 0.0935037 0) (-0.0749699 0.0111253 0) (-0.00670615 -0.135266 0) (-0.0149456 -0.00572612 0) (-0.0151222 0.00540164 0) (-0.0696725 -0.000162499 0) (-0.153283 0.0556363 0) (-0.184763 0.108946 0) (-0.177446 0.129251 0) (-0.141083 0.140024 0) (-0.104846 0.139287 0) (-0.065597 0.148076 0) (-0.0357007 0.15892 0) (-0.0115988 0.16559 0) (0.0127368 0.174782 0) (0.0340039 0.183355 0) (0.0513753 0.185861 0) (0.0625746 0.183218 0) (0.0714898 0.183412 0) (0.0760372 0.18138 0) (0.0799245 0.1763 0) (0.0738253 0.180674 0) (0.0563131 0.20013 0) (0.0375698 0.234274 0) (0.0396147 0.267723 0) (0.049264 0.286899 0) (0.0498252 0.291545 0) (0.0406849 0.286377 0) (0.016856 0.267735 0) (-0.00966939 0.228365 0) (-0.0348892 0.165738 0) (-0.0736761 0.0608401 0) (-0.0252805 -0.0582844 0) (-0.0344095 0.0662513 0) (-0.0406439 0.0781534 0) (-0.0476889 0.0653552 0) (-0.0904707 0.0957969 0) (-0.113656 0.159564 0) (-0.113541 0.182258 0) (-0.0938564 0.193663 0) (-0.0742827 0.209083 0) (-0.0493452 0.232248 0) (-0.0220526 0.248137 0) (0.00355324 0.250538 0) (0.0299122 0.257287 0) (0.0531235 0.262903 0) (0.0719543 0.261446 0) (0.0813858 0.252122 0) (0.0877566 0.244202 0) (0.0852533 0.239315 0) (0.0796504 0.232866 0) (0.0757125 0.230815 0) (0.0695123 0.237601 0) (0.0660223 0.258073 0) (0.0712937 0.283875 0) (0.07958 0.304305 0) (0.0824693 0.316399 0) (0.0778433 0.316839 0) (0.0645695 0.304821 0) (0.0459249 0.265421 0) (0.0164768 0.195376 0) (-0.019931 0.0840421 0) (-0.0425524 -0.0198086 0) (-0.0455539 0.0668097 0) (-0.0535607 0.0720428 0) (-0.0454864 0.0524466 0) (-0.0646389 0.0747496 0) (-0.0728321 0.138975 0) (-0.083876 0.170331 0) (-0.0825767 0.197173 0) (-0.0697785 0.228322 0) (-0.0470753 0.257793 0) (-0.0185219 0.273482 0) (0.0106159 0.270497 0) (0.0383237 0.274677 0) (0.0630922 0.277653 0) (0.0813166 0.271973 0) (0.0886069 0.254929 0) (0.0904313 0.239834 0) (0.0846739 0.231534 0) (0.0746414 0.225426 0) (0.0703702 0.224115 0) (0.0706528 0.231157 0) (0.0756807 0.251967 0) (0.0833947 0.279461 0) (0.0935015 0.301483 0) (0.104642 0.31639 0) (0.11576 0.320816 0) (0.123055 0.314049 0) (0.126782 0.286267 0) (0.0878054 0.229696 0) (0.0342337 0.0960969 0) (-0.0812812 -0.107005 0) (-0.0714753 -0.0796634 0) (-0.0710297 -0.0930463 0) (-0.0548491 -0.114034 0) (-0.0572104 -0.0972148 0) (-0.0504555 -0.0318015 0) (-0.0600182 0.0170252 0) (-0.067859 0.0769145 0) (-0.0670867 0.150968 0) (-0.0476478 0.201192 0) (-0.0198181 0.220433 0) (0.0103612 0.2055 0) (0.0364377 0.207128 0) (0.060537 0.17885 0) (0.076443 0.183413 0) (0.0856935 0.147076 0) (0.0805614 0.107809 0) (0.0718646 0.0936798 0) (0.0626665 0.0834814 0) (0.0593762 0.0907891 0) (0.0659079 0.105129 0) (0.0783575 0.131301 0) (0.0890167 0.183595 0) (0.10044 0.231844 0) (0.11624 0.261802 0) (0.136792 0.26675 0) (0.149053 0.253219 0) (0.178883 0.216452 0) (0.147341 0.163112 0) (0.160151 0.0895559 0) (-0.0727185 -0.189893 0) (-0.0761118 -0.253793 0) (-0.0752103 -0.244421 0) (-0.0618632 -0.251552 0) (-0.0616902 -0.25653 0) (-0.0444488 -0.230219 0) (-0.0442671 -0.180008 0) (-0.0492965 -0.0966548 0) (-0.0553726 -0.0308814 0) (-0.0464286 0.0133981 0) (-0.0202273 0.0300293 0) (0.00260458 0.0247823 0) (0.0210581 0.00764779 0) (0.045877 0.0524153 0) (0.0549839 -0.00337806 0) (0.0781752 -0.0503689 0) (0.0725327 -0.0624698 0) (0.0605964 -0.0699516 0) (0.0468361 -0.0964638 0) (0.0471616 -0.0937068 0) (0.0651135 -0.0855017 0) (0.0911043 -0.047227 0) (0.10974 0.0258857 0) (0.117403 0.0636452 0) (0.127695 0.0833315 0) (0.149273 0.0852243 0) (0.156135 0.0659591 0) (0.185384 0.0338056 0) (0.166821 -0.0186409 0) (0.16369 0.036164 0) (-0.015623 -0.205821 0) (-0.016343 -0.333054 0) (-0.047994 -0.28045 0) (-0.0616603 -0.273553 0) (-0.0790893 -0.318658 0) (-0.0568297 -0.320569 0) (-0.0414769 -0.275289 0) (-0.0388088 -0.161512 0) (-0.0481528 -0.111832 0) (-0.0463171 -0.109115 0) (-0.0200771 -0.103668 0) (-0.000590322 -0.0782283 0) (0.0113341 0.0168479 0) (0.0348838 0.0640525 0) (0.0482354 0.0375587 0) (0.070188 -0.0658681 0) (0.0784953 -0.10795 0) (0.0724131 -0.08825 0) (0.0571109 -0.122932 0) (0.0552851 -0.164052 0) (0.0755585 -0.16517 0) (0.112394 -0.130271 0) (0.129523 0.00212903 0) (0.121431 0.0348106 0) (0.123849 0.0196474 0) (0.147925 -0.0101053 0) (0.155252 -0.0293577 0) (0.163292 -0.0523693 0) (0.145498 -0.0561162 0) (0.133863 0.191299 0) (0.065382 -0.217066 0) (0.0884898 -0.234911 0) (0.0802406 -0.142496 0) (0.0892578 -0.109189 0) (0.200019 0.136202 0) (0.0581997 0.573596 0) (-0.187608 1.0077 0) (-0.0968273 1.25162 0) (0.138925 1.12821 0) (-0.0225282 0.873439 0) (-0.0556043 0.58428 0) (-0.177876 0.524067 0) (0.0974841 0.214309 0) (0.1378 0.295161 0) (-0.0147786 0.446353 0) (-0.00312772 0.184164 0) (0.176769 0.0775398 0) (0.544499 0.410844 0) (0.728861 0.955451 0) (0.652604 0.952183 0) (0.589086 1.07165 0) (0.243472 0.144767 0) (0.174812 0.118257 0) (0.120212 0.151627 0) (0.10308 0.0776385 0) (0.149277 -0.0238374 0) (0.156078 -0.032472 0) (0.105289 -0.00195204 0) (-0.0424812 0.354238 0) (-0.0770214 0.524407 0) (-0.00532095 -0.173445 0) (0.0509697 -0.188559 0) (0.0414927 -0.18711 0) (0.000362658 -0.152046 0) (-0.102257 0.047609 0) (-0.4149 0.404629 0) (-0.828141 0.871952 0) (-1.05905 1.53269 0) (-1.07826 2.23021 0) (-1.15982 2.29418 0) (-1.31082 1.77903 0) (-0.730072 1.30285 0) (-0.212061 0.877286 0) (0.271933 0.826848 0) (0.184714 1.08786 0) (0.243325 1.09155 0) (0.898108 0.983695 0) (0.864695 1.07451 0) (0.777508 1.05829 0) (0.672821 1.0625 0) (0.560759 1.09622 0) (0.39154 1.15562 0) (0.254016 0.345722 0) (0.125101 0.338475 0) (0.0680716 0.239908 0) (0.142539 0.0390814 0) (0.111391 0.0999225 0) (-0.118557 0.370776 0) (-0.155029 0.419286 0) (-0.132814 0.39263 0) (0.00273269 -0.143374 0) (0.0279338 -0.200961 0) (-0.0185006 -0.22456 0) (-0.133191 -0.193435 0) (-0.312054 -0.0473087 0) (-0.685824 0.261465 0) (-1.14829 0.724657 0) (-1.3823 1.33965 0) (-1.48926 1.90797 0) (-1.48538 2.11938 0) (-1.53672 1.92356 0) (-1.60491 1.61732 0) (-1.17487 1.22553 0) (-0.263828 1.44419 0) (0.279984 1.59641 0) (0.990402 1.18654 0) (1.00952 1.06271 0) (0.918588 1.05275 0) (0.803176 1.04835 0) (0.665933 1.05525 0) (0.485305 1.05378 0) (0.27205 1.06925 0) (0.105653 1.08723 0) (0.125506 0.486709 0) (0.0541012 0.385372 0) (0.0977576 0.230012 0) (-0.0785608 0.387297 0) (-0.110337 0.399801 0) (-0.121046 0.345351 0) (-0.0502381 0.176538 0) (0.00633621 -0.185346 0) (0.0396392 -0.156742 0) (-0.0620095 -0.223761 0) (-0.230784 -0.213614 0) (-0.452867 -0.114036 0) (-0.818232 0.148959 0) (-1.25062 0.588001 0) (-1.52246 1.14427 0) (-1.60527 1.57783 0) (-1.53315 1.81205 0) (-1.47593 1.70662 0) (-1.45498 1.4333 0) (-1.4169 1.12773 0) (-1.1284 1.31802 0) (0.356904 1.63502 0) (1.06517 0.969754 0) (0.98993 1.02555 0) (0.904562 1.04544 0) (0.789161 1.05698 0) (0.656891 1.06347 0) (0.492524 1.05669 0) (0.306637 1.01521 0) (0.195806 0.966884 0) (0.111031 0.682315 0) (0.0596274 0.542973 0) (0.0355742 0.508927 0) (-0.0532545 0.481021 0) (-0.050432 0.397121 0) (-0.0480056 0.286158 0) (-0.0189596 0.114478 0) (-0.0251923 -0.15305 0) (-0.0134769 -0.133813 0) (-0.0996967 -0.17536 0) (-0.289443 -0.21774 0) (-0.531005 -0.146432 0) (-0.857751 0.0712321 0) (-1.20644 0.438267 0) (-1.44827 0.913467 0) (-1.49288 1.2816 0) (-1.44126 1.4691 0) (-1.3511 1.41848 0) (-1.20903 1.23619 0) (-1.14626 0.953836 0) (-1.22448 0.811513 0) (0.274982 1.35494 0) (0.873072 0.81353 0) (0.845543 0.98193 0) (0.793244 1.05912 0) (0.722322 1.07088 0) (0.621115 1.08246 0) (0.503006 1.08762 0) (0.37134 1.07958 0) (0.306549 0.99999 0) (0.15303 0.784548 0) (0.0857074 0.75949 0) (-0.0386049 0.728349 0) (-0.0727863 0.609657 0) (-0.0460172 0.433649 0) (0.0397914 0.221713 0) (0.0177212 0.0504542 0) (-0.00164017 -0.121264 0) (-0.00617562 -0.138379 0) (-0.0431909 -0.103202 0) (-0.259399 -0.17782 0) (-0.520313 -0.139796 0) (-0.801933 0.0304668 0) (-1.112 0.328487 0) (-1.28918 0.729875 0) (-1.28515 1.02766 0) (-1.22333 1.14884 0) (-1.12211 1.10731 0) (-0.917836 0.977858 0) (-0.906822 0.808565 0) (-0.994064 0.650554 0) (0.0399999 0.858232 0) (0.290519 0.71461 0) (0.697138 0.920977 0) (0.664043 1.02098 0) (0.620387 1.06898 0) (0.551435 1.09538 0) (0.445228 1.11797 0) (0.332491 1.13793 0) (0.238242 1.11495 0) (0.156117 0.86319 0) (0.0775638 0.860806 0) (-0.0152293 0.833689 0) (-0.0879499 0.702572 0) (-0.0761313 0.537807 0) (0.0113824 0.23338 0) (0.0776397 0.00328559 0) (0.0211225 -0.179539 0) (0.0754953 -0.147929 0) (0.0300684 -0.0694888 0) (-0.122627 -0.0633091 0) (-0.433958 -0.0861181 0) (-0.670434 0.0163899 0) (-0.937923 0.267087 0) (-1.01583 0.624684 0) (-0.997442 0.803588 0) (-0.979095 0.848055 0) (-0.923758 0.811862 0) (-0.803763 0.729662 0) (-0.787575 0.64415 0) (-0.873772 0.569175 0) (-0.0609889 0.577509 0) (0.0320502 0.662948 0) (0.145565 0.841724 0) (0.530816 0.992367 0) (0.536718 1.01348 0) (0.480827 1.06916 0) (0.407054 1.10837 0) (0.312934 1.11775 0) (0.229384 1.09411 0) (0.177412 0.977267 0) (0.0532619 0.93274 0) (-0.0924768 0.929714 0) (-0.0691278 0.744663 0) (-0.0382683 0.581902 0) (-0.10264 0.414663 0) (-0.0459288 0.0768924 0) (0.000818654 -0.188044 0) (0.014764 -0.180022 0) (0.0049794 -0.0733018 0) (0.023249 0.0946602 0) (-0.232299 0.0420979 0) (-0.501207 0.00987595 0) (-0.662839 0.336132 0) (-0.638885 0.577067 0) (-0.695987 0.611706 0) (-0.74343 0.607964 0) (-0.754939 0.581232 0) (-0.732269 0.536646 0) (-0.734301 0.486001 0) (-0.776355 0.414014 0) (-0.162958 0.485713 0) (-0.133977 0.654348 0) (-0.117238 0.846152 0) (-0.0607353 1.03376 0) (0.189848 1.07669 0) (0.418434 1.00971 0) (0.36805 1.06847 0) (0.324272 1.11018 0) (0.251372 1.06474 0) (0.15448 1.02767 0) (-0.00398348 1.19812 0) (-0.0422033 1.00595 0) (-0.0462405 0.835624 0) (0.00826423 0.663 0) (-0.119925 0.621666 0) (-0.0566583 0.140866 0) (-0.0129976 -0.177045 0) (-0.00699911 -0.206639 0) (0.0534867 -0.0675163 0) (0.0568028 0.118041 0) (0.0312057 0.214896 0) (-0.233236 0.172626 0) (-0.226667 0.536183 0) (-0.278608 0.467546 0) (-0.416682 0.44382 0) (-0.534813 0.428819 0) (-0.604337 0.415784 0) (-0.639015 0.395355 0) (-0.661441 0.364297 0) (-0.649647 0.279433 0) (-0.293404 0.477998 0) (-0.302385 0.65045 0) (-0.31586 0.83172 0) (-0.172244 1.00084 0) (0.0821574 0.882496 0) (0.150515 0.981434 0) (0.240201 1.07724 0) (0.121444 1.34883 0) (0.215611 1.21174 0) (0.0127041 1.18846 0) (-0.0324018 1.19894 0) (-0.0664348 1.16394 0) (0.0796271 1.00649 0) (0.0320499 0.818167 0) (-0.0848281 0.744926 0) (-0.0360116 0.169276 0) (-0.0140911 -0.187196 0) (-0.00107523 -0.216834 0) (-0.00467572 -0.0880124 0) (0.000938034 0.0787808 0) (0.106129 0.259343 0) (0.0931225 0.289944 0) (0.231095 0.402825 0) (0.0177811 0.340618 0) (-0.194131 0.313562 0) (-0.374546 0.309584 0) (-0.491547 0.304359 0) (-0.559934 0.291147 0) (-0.58873 0.278264 0) (-0.535093 0.259414 0) (-0.447771 0.463942 0) (-0.468474 0.634086 0) (-0.284708 0.874998 0) (-0.0144289 0.820966 0) (0.0066173 0.851431 0) (0.00551756 0.961733 0) (-0.0108699 1.09549 0) (0.00567982 1.50012 0) (0.0686282 1.41255 0) (-0.0100561 1.26197 0) (-0.0314452 1.17753 0) (-0.0681465 1.13106 0) (-0.0866903 1.13544 0) (0.0966909 0.958267 0) (-0.00988976 0.767329 0) (0.00804113 0.169509 0) (-0.0101063 -0.19014 0) (-0.0144124 -0.244319 0) (-0.0482995 -0.14942 0) (0.118057 0.0876303 0) (0.115116 0.223632 0) (0.103258 0.29932 0) (0.122861 0.309937 0) (0.0336194 0.211191 0) (-0.15528 0.205903 0) (-0.318569 0.227647 0) (-0.439008 0.233477 0) (-0.52245 0.224606 0) (-0.573987 0.224246 0) (-0.578563 0.253398 0) (-0.573618 0.45495 0) (-0.417395 0.714096 0) (-0.273759 0.873064 0) (-0.0545823 0.74293 0) (-0.0734731 0.822412 0) (-0.103674 0.935857 0) (-0.119632 1.26306 0) (0.0396794 1.41495 0) (0.0234374 1.27757 0) (0.00452323 1.45264 0) (-0.0133543 1.17895 0) (-0.0545624 1.10048 0) (-0.0971861 1.11597 0) (0.14857 1.01095 0) (0.0483321 0.737712 0) (0.0246932 0.144359 0) (0.00274141 -0.205612 0) (0.00349979 -0.305689 0) (0.106269 -0.111665 0) (0.0973923 0.0521753 0) (0.0741318 0.183796 0) (0.0741594 0.287821 0) (0.0860289 0.356217 0) (0.0426757 0.286986 0) (-0.167934 0.106501 0) (-0.325629 0.145232 0) (-0.390147 0.19558 0) (-0.497488 0.174944 0) (-0.611055 0.176685 0) (-0.660877 0.305075 0) (-0.499628 0.564821 0) (-0.38063 0.720331 0) (-0.258695 0.832246 0) (-0.125264 0.832454 0) (-0.167635 0.783139 0) (-0.145916 1.11223 0) (-0.108419 1.39687 0) (-0.0114034 1.24373 0) (-0.0532221 1.11087 0) (-0.0758539 1.32264 0) (0.0328286 1.3698 0) (-0.00431363 1.06978 0) (-0.0206714 1.21212 0) (0.146606 1.01121 0) (0.0802748 0.65313 0) (0.0371412 0.0898477 0) (-0.00615411 -0.231254 0) (0.0248929 -0.319791 0) (0.0529925 -0.137843 0) (0.0187189 0.0271867 0) (0.00573188 0.153735 0) (0.0440421 0.281894 0) (0.0719966 0.368128 0) (0.0904415 0.445785 0) (0.0753133 0.408484 0) (-0.0688122 0.435328 0) (-0.108184 0.267012 0) (-0.184628 0.320854 0) (-0.2938 0.403172 0) (-0.394051 0.467954 0) (-0.386861 0.586794 0) (-0.348181 0.682383 0) (-0.322518 0.771418 0) (-0.298015 0.837266 0) (-0.261334 0.929073 0) (-0.303737 1.22891 0) (-0.0821593 1.39498 0) (-0.00524834 1.39315 0) (-0.0268384 1.05809 0) (0.0982742 1.54905 0) (0.122433 1.46547 0) (0.0797514 1.22263 0) (0.0767937 1.21491 0) (0.116467 0.982538 0) (0.0569935 0.527518 0) (0.0217371 -0.0186373 0) (-0.0224284 -0.222434 0) (-0.0275668 -0.303707 0) (-0.0403186 -0.151515 0) (-0.0700604 0.00109032 0) (0.00180594 0.15577 0) (0.052577 0.279141 0) (0.0721124 0.372844 0) (0.0840252 0.458087 0) (0.0789762 0.513148 0) (0.165492 0.370582 0) (0.0278038 0.202458 0) (-0.123024 0.289551 0) (-0.256079 0.37139 0) (-0.327255 0.455577 0) (-0.371562 0.552825 0) (-0.386171 0.647785 0) (-0.40804 0.726632 0) (-0.428985 0.806863 0) (-0.439681 0.985113 0) (-0.308372 1.19489 0) (-0.114476 1.32264 0) (-0.0155854 1.32217 0) (0.0439791 1.35908 0) (0.12758 1.49314 0) (0.143393 1.43201 0) (0.0962787 1.27725 0) (0.0767084 1.19332 0) (0.074036 0.88018 0) (-0.00517696 0.370615 0) (-0.0448563 -0.151503 0) (-0.0155903 -0.215363 0) (-0.0517873 -0.294003 0) (-0.115996 -0.176873 0) (-0.030978 0.0198314 0) (0.0210811 0.15999 0) (0.0511398 0.277421 0) (0.0600927 0.373547 0) (0.0573316 0.45602 0) (0.0429191 0.519728 0) (0.0122154 0.534584 0) (0.0120095 0.156989 0) (-0.183192 0.367396 0) (-0.280913 0.401594 0) (-0.3458 0.499536 0) (-0.381761 0.567389 0) (-0.421342 0.631838 0) (-0.473226 0.688903 0) (-0.530004 0.752729 0) (-0.529682 0.860984 0) (-0.306052 1.01242 0) (-0.18217 1.08928 0) (-0.0963481 1.13463 0) (-0.0245625 1.2317 0) (0.0450973 1.3359 0) (0.0900873 1.34275 0) (0.0558654 1.23413 0) (0.0268426 1.10282 0) (0.017451 0.763966 0) (-0.0178684 0.251054 0) (-0.0246506 -0.2238 0) (-0.00477543 -0.211527 0) (-0.0581933 -0.298462 0) (-0.0410267 -0.106248 0) (-0.0247835 0.0341282 0) (0.0127113 0.172899 0) (0.0140562 0.280911 0) (0.00625952 0.368373 0) (-0.00411015 0.448087 0) (-0.00187206 0.523208 0) (-0.00944298 0.56435 0) (-0.0624166 0.509966 0) (-0.164701 0.52022 0) (-0.234542 0.545369 0) (-0.30245 0.54567 0) (-0.358855 0.56911 0) (-0.415614 0.608791 0) (-0.479943 0.639483 0) (-0.526614 0.680393 0) (-0.434551 0.758952 0) (-0.350483 0.821472 0) (-0.295778 0.887863 0) (-0.253385 0.943346 0) (-0.209076 1.02105 0) (-0.145975 1.10733 0) (-0.0740405 1.12879 0) (-0.0344262 1.05856 0) (-0.020831 0.919718 0) (-0.0320885 0.648168 0) (-0.00333673 0.130604 0) (0.00564611 -0.239693 0) (-0.0181429 -0.194799 0) (-0.0594201 -0.241525 0) (-0.0557217 -0.101919 0) (0.00331423 0.0756666 0) (-0.0184381 0.187801 0) (-0.0340634 0.277973 0) (-0.0534306 0.352875 0) (-0.0358842 0.457771 0) (-0.0156457 0.531281 0) (-0.00914335 0.58201 0) (0.0121866 0.632578 0) (-0.0808431 0.62674 0) (-0.160714 0.602774 0) (-0.228489 0.578043 0) (-0.307239 0.563299 0) (-0.372278 0.579332 0) (-0.423011 0.604093 0) (-0.417627 0.641118 0) (-0.405777 0.673833 0) (-0.402889 0.715273 0) (-0.401529 0.75336 0) (-0.387835 0.789646 0) (-0.353623 0.839663 0) (-0.271724 0.903329 0) (-0.190349 0.912545 0) (-0.112145 0.843842 0) (-0.0313042 0.719584 0) (-0.036001 0.495624 0) (-0.0152278 0.000521976 0) (0.0189716 -0.256697 0) (-0.0333179 -0.165446 0) (-0.0695744 -0.22431 0) (-0.0132729 -0.0785766 0) (-0.0299774 0.0771402 0) (-0.0605903 0.177343 0) (-0.0768385 0.269215 0) (-0.0854928 0.355005 0) (-0.0379027 0.483603 0) (-0.0232802 0.564925 0) (-0.0142826 0.631696 0) (0.0265666 0.722886 0) (-0.0502919 0.755754 0) (-0.11087 0.642848 0) (-0.177738 0.620958 0) (-0.240945 0.601909 0) (-0.309096 0.596039 0) (-0.340811 0.604722 0) (-0.365069 0.612302 0) (-0.389419 0.62889 0) (-0.408472 0.647226 0) (-0.411417 0.657974 0) (-0.387715 0.663399 0) (-0.317676 0.679768 0) (-0.257564 0.708027 0) (-0.208786 0.699059 0) (-0.159823 0.630671 0) (-0.091256 0.511468 0) (0.0203513 0.337561 0) (0.0305886 -0.104064 0) (0.0163446 -0.28291 0) (-0.0337685 -0.149876 0) (-0.0735458 -0.207167 0) (-0.0749167 -0.0980095 0) (-0.0959533 0.0625122 0) (-0.129278 0.160607 0) (-0.146952 0.285393 0) (-0.120372 0.44346 0) (-0.070701 0.629362 0) (-0.0958457 0.713136 0) (-0.105852 0.745573 0) (-0.0725321 0.761602 0) (-0.110367 0.785569 0) (-0.135803 0.734149 0) (-0.170603 0.646388 0) (-0.227642 0.632932 0) (-0.266368 0.613202 0) (-0.298832 0.592909 0) (-0.327028 0.580769 0) (-0.349757 0.576314 0) (-0.358715 0.570164 0) (-0.346687 0.552019 0) (-0.308298 0.525809 0) (-0.278049 0.515393 0) (-0.261876 0.518631 0) (-0.223854 0.497348 0) (-0.163098 0.426423 0) (-0.125202 0.326841 0) (-0.0600862 0.223536 0) (0.0153787 -0.151062 0) (0.0208256 -0.297832 0) (-0.0282282 -0.147355 0) (-0.0812819 -0.208378 0) (-0.145972 -0.112131 0) (-0.186638 0.076438 0) (-0.140429 0.265844 0) (-0.151436 0.418881 0) (-0.0777308 0.667232 0) (-0.110522 0.715106 0) (-0.132187 0.734465 0) (-0.147143 0.755413 0) (-0.162081 0.776723 0) (-0.172175 0.786572 0) (-0.202319 0.773627 0) (-0.200542 0.690006 0) (-0.226713 0.63198 0) (-0.249142 0.599611 0) (-0.267731 0.562367 0) (-0.284461 0.531165 0) (-0.293552 0.503586 0) (-0.290685 0.47159 0) (-0.274983 0.4304 0) (-0.256281 0.388103 0) (-0.250834 0.361079 0) (-0.247622 0.33812 0) (-0.205677 0.312224 0) (-0.14564 0.284098 0) (-0.134077 0.225443 0) (-0.114 0.147874 0) (0.0276334 -0.175485 0) (0.0381642 -0.259839 0) (-0.0017687 -0.145495 0) (-0.0851949 -0.206471 0) (-0.199194 -0.0311119 0) (-0.0974469 0.215534 0) (-0.106831 0.375785 0) (-0.0694687 0.627013 0) (-0.0938971 0.670698 0) (-0.121343 0.703895 0) (-0.148637 0.727822 0) (-0.172361 0.750654 0) (-0.192854 0.771663 0) (-0.20506 0.775279 0) (-0.2259 0.753603 0) (-0.239788 0.695897 0) (-0.218417 0.619727 0) (-0.225521 0.564329 0) (-0.230998 0.51326 0) (-0.234813 0.464637 0) (-0.232942 0.4165 0) (-0.223695 0.365504 0) (-0.211026 0.311395 0) (-0.20362 0.260734 0) (-0.208707 0.220361 0) (-0.213558 0.192361 0) (-0.182567 0.176402 0) (-0.142854 0.177577 0) (-0.129074 0.132142 0) (-0.0934041 0.0282977 0) (0.0489437 -0.23016 0) (0.0412297 -0.2175 0) (0.038496 -0.184469 0) (-0.0415809 -0.0163206 0) (-0.15145 0.120497 0) (-0.0546312 0.298406 0) (-0.0495226 0.541845 0) (-0.0768816 0.607717 0) (-0.107731 0.653638 0) (-0.13701 0.693126 0) (-0.16394 0.72421 0) (-0.185668 0.749335 0) (-0.200772 0.765447 0) (-0.209337 0.763607 0) (-0.219926 0.730482 0) (-0.240595 0.669414 0) (-0.206442 0.591207 0) (-0.188063 0.517601 0) (-0.181794 0.452942 0) (-0.174934 0.390218 0) (-0.165603 0.327632 0) (-0.15363 0.265024 0) (-0.143943 0.204853 0) (-0.143253 0.151488 0) (-0.154981 0.10858 0) (-0.165574 0.0785896 0) (-0.153507 0.065657 0) (-0.126006 0.0641221 0) (-0.0891458 0.0156717 0) (-0.0082557 -0.110069 0) (0.0585861 -0.254508 0) (0.0382964 -0.195774 0) (-0.0197505 -0.065734 0) (-0.0558096 0.0399678 0) (-0.0961496 0.177049 0) (-0.0668431 0.388622 0) (-0.0764684 0.516588 0) (-0.107733 0.591168 0) (-0.13563 0.647488 0) (-0.162609 0.703761 0) (-0.177277 0.736597 0) (-0.187394 0.751995 0) (-0.195924 0.760014 0) (-0.194394 0.754718 0) (-0.190752 0.702764 0) (-0.212682 0.630705 0) (-0.205744 0.546587 0) (-0.136772 0.460734 0) (-0.119555 0.387888 0) (-0.105226 0.316487 0) (-0.0919474 0.246193 0) (-0.0802046 0.1787 0) (-0.0740833 0.117672 0) (-0.0777838 0.0658281 0) (-0.0913142 0.0237886 0) (-0.104287 -0.00856218 0) (-0.102479 -0.0305233 0) (-0.0827906 -0.0548413 0) (-0.0289681 -0.119351 0) (0.0555868 -0.219247 0) (0.0655856 -0.259088 0) (0.0314999 -0.175493 0) (-0.0263582 -0.0520465 0) (-0.0747427 0.042474 0) (-0.0998465 0.211826 0) (-0.106526 0.376076 0) (-0.137368 0.497265 0) (-0.157301 0.603646 0) (-0.136447 0.698672 0) (-0.153006 0.742603 0) (-0.166295 0.746741 0) (-0.17564 0.750028 0) (-0.182798 0.750142 0) (-0.175554 0.73994 0) (-0.136549 0.67832 0) (-0.153305 0.588345 0) (-0.157824 0.486362 0) (-0.0838676 0.398104 0) (-0.0511581 0.322892 0) (-0.0322608 0.248573 0) (-0.018211 0.176248 0) (-0.00843692 0.108568 0) (-0.00568999 0.0495825 0) (-0.0114998 0.000346301 0) (-0.0234692 -0.0408729 0) (-0.0338799 -0.0765085 0) (-0.0348079 -0.110597 0) (-0.0180431 -0.154745 0) (0.0317162 -0.221971 0) (0.069985 -0.269721 0) (0.0616649 -0.258827 0) (0.0233232 -0.156873 0) (-0.0385997 -0.0413069 0) (-0.106111 0.0607035 0) (-0.142278 0.224159 0) (-0.184333 0.374277 0) (-0.224627 0.510948 0) (-0.161663 0.666272 0) (-0.116895 0.748385 0) (-0.137036 0.748646 0) (-0.147416 0.745209 0) (-0.157497 0.743799 0) (-0.162513 0.741489 0) (-0.148716 0.739792 0) (-0.0750612 0.645659 0) (-0.0663937 0.540143 0) (-0.0607482 0.432421 0) (-0.0164548 0.339943 0) (0.0187274 0.263565 0) (0.0371501 0.189713 0) (0.0486724 0.118722 0) (0.0552772 0.0532623 0) (0.0553045 -0.00302509 0) (0.049334 -0.0504124 0) (0.0404888 -0.0917797 0) (0.0337055 -0.130935 0) (0.0329127 -0.172017 0) (0.044321 -0.222012 0) (0.0670246 -0.270368 0) (0.0723532 -0.281471 0) (0.0545318 -0.250493 0) (0.0181179 -0.140844 0) (-0.0475947 -0.0309254 0) (-0.130142 0.0660104 0) (-0.190294 0.224432 0) (-0.261658 0.41836 0) (-0.23882 0.674155 0) (-0.189851 0.823531 0) (-0.121512 0.820303 0) (-0.120536 0.749386 0) (-0.134144 0.743656 0) (-0.14261 0.741799 0) (-0.146841 0.756271 0) (-0.0702392 0.730379 0) (0.0257596 0.603026 0) (0.0231554 0.489708 0) (0.0287933 0.384114 0) (0.0604212 0.292542 0) (0.0854899 0.21592 0) (0.0974066 0.143217 0) (0.103405 0.074171 0) (0.105984 0.0109387 0) (0.104015 -0.0438674 0) (0.0988673 -0.0911079 0) (0.0930416 -0.133476 0) (0.0887821 -0.174518 0) (0.0876214 -0.216387 0) (0.0906432 -0.259065 0) (0.0913391 -0.286825 0) (0.0809804 -0.279816 0) (0.0549187 -0.237322 0) (0.0200545 -0.123719 0) (-0.0517464 -0.0304739 0) (-0.141609 0.0597495 0) (-0.213267 0.240546 0) (-0.240774 0.528481 0) (-0.217491 0.776117 0) (-0.222402 0.872673 0) (-0.208988 0.904559 0) (-0.112744 0.78943 0) (-0.127082 0.747575 0) (-0.156357 0.754061 0) (-0.150255 0.75641 0) (-0.0943493 0.677596 0) (0.0760525 0.560419 0) (0.106078 0.449286 0) (0.10084 0.340302 0) (0.114454 0.255974 0) (0.132362 0.181227 0) (0.140091 0.10905 0) (0.141332 0.0413298 0) (0.141369 -0.0205841 0) (0.139124 -0.0755073 0) (0.13548 -0.123825 0) (0.132105 -0.167257 0) (0.128878 -0.208597 0) (0.125458 -0.247553 0) (0.120655 -0.279393 0) (0.109294 -0.290261 0) (0.0905896 -0.273541 0) (0.0599431 -0.21889 0) (0.0235475 -0.102521 0) (-0.051546 -0.0319978 0) (-0.143175 0.0547548 0) (-0.200643 0.265653 0) (-0.214282 0.551861 0) (-0.234556 0.755549 0) (-0.259507 0.860072 0) (-0.264585 0.919856 0) (-0.214655 0.894761 0) (-0.148927 0.802655 0) (-0.15984 0.818837 0) (-0.120696 0.725495 0) (-0.0756798 0.613852 0) (-0.0125232 0.505981 0) (0.148957 0.388271 0) (0.144355 0.29439 0) (0.135567 0.224239 0) (0.145724 0.15605 0) (0.157679 0.0836836 0) (0.160554 0.0161158 0) (0.162649 -0.0443841 0) (0.163138 -0.100658 0) (0.161667 -0.150024 0) (0.160386 -0.193637 0) (0.15659 -0.233936 0) (0.148164 -0.268013 0) (0.135608 -0.290005 0) (0.117303 -0.290641 0) (0.0938267 -0.263859 0) (0.0618255 -0.196788 0) (0.0228725 -0.0860277 0) (-0.0507232 -0.0298773 0) (-0.140405 0.0523995 0) (-0.18658 0.26157 0) (-0.217427 0.515708 0) (-0.252654 0.700657 0) (-0.275346 0.821998 0) (-0.28276 0.893285 0) (-0.281125 0.915397 0) (-0.23939 0.901248 0) (-0.138486 0.838281 0) (-0.0874756 0.691698 0) (-0.00909241 0.557387 0) (0.0220213 0.435431 0) (0.0867829 0.316662 0) (0.162048 0.237665 0) (0.149497 0.181324 0) (0.137943 0.129651 0) (0.147958 0.0631056 0) (0.159528 -0.0067381 0) (0.171565 -0.0657296 0) (0.182803 -0.122069 0) (0.181165 -0.170846 0) (0.178629 -0.210427 0) (0.172832 -0.248724 0) (0.157115 -0.278245 0) (0.138953 -0.293585 0) (0.117161 -0.288047 0) (0.0898573 -0.252876 0) (0.057563 -0.182844 0) (0.0195518 -0.0786382 0) (-0.0504801 -0.0220231 0) (-0.137627 0.0392181 0) (-0.184623 0.218841 0) (-0.218365 0.431077 0) (-0.250485 0.604248 0) (-0.273065 0.732916 0) (-0.288219 0.825972 0) (-0.296712 0.879268 0) (-0.251351 0.892756 0) (-0.104829 0.80222 0) (-0.0100385 0.620418 0) (0.0512097 0.493272 0) (0.087013 0.381191 0) (0.115246 0.266942 0) (0.160664 0.182776 0) (0.163534 0.138287 0) (0.145907 0.0950371 0) (0.133257 0.0410537 0) (0.144437 -0.0258251 0) (0.149766 -0.0826294 0) (0.191391 -0.14591 0) (0.193515 -0.188041 0) (0.183962 -0.211735 0) (0.176068 -0.251926 0) (0.155503 -0.2838 0) (0.131097 -0.293717 0) (0.107628 -0.283972 0) (0.0798017 -0.245347 0) (0.0489616 -0.177286 0) (0.0146235 -0.0768118 0) (-0.0484685 -0.016362 0) (-0.129789 0.0199327 0) (-0.17833 0.153972 0) (-0.208057 0.33161 0) (-0.234371 0.488248 0) (-0.261474 0.617017 0) (-0.291383 0.726339 0) (-0.286724 0.786139 0) (-0.186742 0.808293 0) (-0.012364 0.668951 0) (0.0621485 0.540731 0) (0.114044 0.429917 0) (0.143787 0.326106 0) (0.158213 0.228029 0) (0.174327 0.147121 0) (0.179494 0.0975809 0) (0.163392 0.0594905 0) (0.141373 0.0157068 0) (0.134328 -0.0446418 0) (0.13511 -0.0972566 0) (0.131135 -0.127105 0) (0.180507 -0.205522 0) (0.167477 -0.21764 0) (0.149012 -0.206483 0) (0.136143 -0.275219 0) (0.110689 -0.295301 0) (0.0881939 -0.281342 0) (0.0637835 -0.242043 0) (0.0359343 -0.177258 0) (0.00703825 -0.0787964 0) (-0.0418437 -0.0170835 0) (-0.112117 0.00478675 0) (-0.158211 0.0922357 0) (-0.185026 0.232651 0) (-0.210177 0.363892 0) (-0.247946 0.485096 0) (-0.249646 0.57514 0) (-0.121825 0.68101 0) (-0.0381602 0.650037 0) (0.0457886 0.544922 0) (0.109746 0.450643 0) (0.155318 0.356501 0) (0.180221 0.268465 0) (0.188168 0.18699 0) (0.190087 0.115465 0) (0.188622 0.0632846 0) (0.175601 0.0262131 0) (0.153 -0.0102075 0) (0.134189 -0.0583612 0) (0.125799 -0.106923 0) (0.113978 -0.13023 0) (0.0967409 -0.142063 0) (0.127304 -0.235551 0) (0.109483 -0.219166 0) (0.0862109 -0.205349 0) (0.0805826 -0.287891 0) (0.0614735 -0.28207 0) (0.0431741 -0.243992 0) (0.0201494 -0.182252 0) (0.00272801 -0.0836148 0) (-0.0337391 -0.0197555 0) (-0.0911878 -0.0112753 0) (-0.131598 0.0496209 0) (-0.154278 0.136602 0) (-0.17104 0.235583 0) (-0.178597 0.324714 0) (0.0279462 0.500907 0) (0.0577169 0.569049 0) (0.04307 0.536285 0) (0.0641324 0.443276 0) (0.115651 0.353247 0) (0.16287 0.274433 0) (0.188664 0.204493 0) (0.196845 0.140788 0) (0.194886 0.0822921 0) (0.188184 0.0345682 0) (0.175002 -0.00157061 0) (0.155067 -0.0344162 0) (0.131539 -0.0736682 0) (0.114859 -0.115718 0) (0.0996055 -0.141149 0) (0.0835443 -0.154133 0) (0.061534 -0.169474 0) (0.0724744 -0.235652 0) (0.0544649 -0.227258 0) (0.0376484 -0.227078 0) (0.0400228 -0.283495 0) (0.0260482 -0.248796 0) (0.0168546 -0.179132 0) (0.0167807 -0.0734682 0) (-0.0267492 -0.0247112 0) (-0.0716658 -0.029873 0) (-0.108509 0.00570033 0) (-0.129824 0.0412808 0) (-0.122096 0.0835125 0) (0.105592 0.207797 0) (0.149022 0.387219 0) (0.104719 0.459446 0) (0.071013 0.438848 0) (0.0608042 0.35365 0) (0.0917458 0.259969 0) (0.140681 0.18875 0) (0.172934 0.135679 0) (0.186048 0.0897321 0) (0.186515 0.0456386 0) (0.178785 0.0070529 0) (0.16415 -0.0237928 0) (0.145093 -0.0531661 0) (0.122272 -0.0868607 0) (0.102099 -0.124914 0) (0.0859805 -0.152371 0) (0.0720111 -0.169754 0) (0.0558203 -0.187502 0) (0.0401895 -0.21437 0) (0.0378797 -0.238909 0) (0.0264434 -0.245549 0) (0.0188005 -0.255224 0) (0.0199385 -0.234171 0) (0.0189436 -0.159027 0) (-0.00143696 -0.0658373 0) (-0.0197147 -0.0331414 0) (-0.0497776 -0.0565011 0) (-0.0708576 -0.0490441 0) (-0.0748087 -0.0486754 0) (-0.00594098 -0.0559898 0) (0.119505 0.10862 0) (0.101035 0.280489 0) (0.0751977 0.349529 0) (0.0552253 0.333871 0) (0.0452661 0.260666 0) (0.0613057 0.172056 0) (0.10415 0.104758 0) (0.142858 0.0651404 0) (0.163665 0.0357777 0) (0.169701 0.00575555 0) (0.164059 -0.021563 0) (0.149839 -0.04489 0) (0.130897 -0.0697365 0) (0.111029 -0.100325 0) (0.091327 -0.134545 0) (0.075954 -0.163845 0) (0.0634175 -0.18393 0) (0.0523181 -0.202342 0) (0.0387822 -0.22577 0) (0.0315701 -0.246461 0) (0.0223917 -0.254645 0) (0.0117342 -0.255323 0) (0.00446248 -0.228489 0) (-0.0128158 -0.180489 0) (-0.0407111 -0.118445 0) (-0.0133333 -0.0421959 0) (-0.0351661 -0.0824387 0) (-0.0489576 -0.0991119 0) (-0.0468002 -0.120745 0) (0.0266773 -0.122033 0) (0.0565749 0.0446306 0) (0.0396011 0.178008 0) (0.0290145 0.236091 0) (0.0228976 0.22366 0) (0.0222661 0.163416 0) (0.0324155 0.0865123 0) (0.0646335 0.0251482 0) (0.104499 -0.00400095 0) (0.134322 -0.0182064 0) (0.148906 -0.0358451 0) (0.14643 -0.052247 0) (0.134114 -0.0681107 0) (0.117375 -0.0885605 0) (0.100586 -0.115648 0) (0.0843313 -0.146857 0) (0.0704347 -0.175683 0) (0.0592883 -0.197541 0) (0.0494811 -0.215401 0) (0.0396891 -0.235478 0) (0.0300177 -0.254871 0) (0.0195875 -0.263161 0) (0.00644656 -0.259528 0) (-0.00791555 -0.241889 0) (-0.0331447 -0.206497 0) (0.0620429 -0.0551526 0) (-0.00946568 -0.0507648 0) (-0.0249604 -0.101976 0) (-0.0356606 -0.134575 0) (-0.0356364 -0.171796 0) (0.0023639 -0.156774 0) (0.00300768 -0.0114142 0) (-0.00667348 0.0894873 0) (-0.0115743 0.133652 0) (-0.0108592 0.120819 0) (-0.0050147 0.0702634 0) (0.00466475 0.00504054 0) (0.02812 -0.0483456 0) (0.0620959 -0.0694801 0) (0.0993165 -0.0699282 0) (0.126805 -0.077191 0) (0.126397 -0.0840627 0) (0.115947 -0.093641 0) (0.103346 -0.11062 0) (0.091001 -0.134402 0) (0.0791744 -0.161639 0) (0.0677716 -0.187866 0) (0.0582637 -0.209815 0) (0.0496217 -0.227065 0) (0.0409276 -0.244325 0) (0.032329 -0.262019 0) (0.0221648 -0.271123 0) (0.00944472 -0.269921 0) (-0.00940322 -0.258935 0) (0.0443633 -0.105574 0) (0.0216647 -0.0393059 0) (0.00139693 -0.05395 0) (-0.0143977 -0.110657 0) (-0.0253555 -0.15218 0) (-0.0317687 -0.194338 0) (-0.0238083 -0.168265 0) (-0.0351146 -0.0544548 0) (-0.0421964 0.0195131 0) (-0.0454611 0.048769 0) (-0.0418406 0.0324074 0) (-0.0321584 -0.0134041 0) (-0.0204492 -0.0697355 0) (-0.00207772 -0.114078 0) (0.0205512 -0.129138 0) (0.0569991 -0.119534 0) (0.1062 -0.116068 0) (0.105769 -0.115341 0) (0.0956448 -0.120077 0) (0.0879235 -0.134573 0) (0.0819207 -0.155963 0) (0.0750337 -0.178931 0) (0.0663935 -0.200655 0) (0.0584922 -0.220529 0) (0.0514539 -0.236547 0) (0.0442308 -0.251445 0) (0.0370345 -0.26852 0) (0.0287142 -0.279351 0) (0.014562 -0.280056 0) (0.034684 -0.167199 0) (0.0201726 -0.110936 0) (0.000453439 -0.0453072 0) (0.0197953 -0.0848972 0) (0.00206929 -0.124017 0) (-0.016177 -0.153835 0) (-0.0304028 -0.191478 0) (-0.0421949 -0.157867 0) (-0.0621063 -0.0822553 0) (-0.0696863 -0.0323175 0) (-0.0723187 -0.0176699 0) (-0.0669056 -0.0401059 0) (-0.0547234 -0.0852849 0) (-0.0409008 -0.135801 0) (-0.0240583 -0.170948 0) (-0.0121924 -0.176997 0) (0.00258454 -0.166576 0) (0.0901398 -0.157718 0) (0.0867959 -0.145407 0) (0.075623 -0.146314 0) (0.0722906 -0.159283 0) (0.0732731 -0.178638 0) (0.0716588 -0.197394 0) (0.0657791 -0.21381 0) (0.058932 -0.22974 0) (0.0528377 -0.242959 0) (0.0470261 -0.253879 0) (0.0414518 -0.268488 0) (0.0327152 -0.286043 0) (0.0191679 -0.217387 0) (0.00871377 -0.172992 0) (-0.00941022 -0.12902 0) (-0.0324524 -0.0780139 0) (-0.0162765 -0.0789579 0) (0.0108772 -0.146028 0) (-0.0104288 -0.164066 0) (-0.0353469 -0.1829 0) (-0.0627659 -0.155222 0) (-0.0823852 -0.104701 0) (-0.0883254 -0.0697001 0) (-0.0886079 -0.0679189 0) (-0.0813285 -0.097213 0) (-0.0680994 -0.142907 0) (-0.0545712 -0.188445 0) (-0.0401645 -0.215375 0) (-0.0341294 -0.214082 0) (-0.0356345 -0.215764 0) (0.0736076 -0.200212 0) (0.0672545 -0.172823 0) (0.0582267 -0.171552 0) (0.0588925 -0.184124 0) (0.0653563 -0.201219 0) (0.0683847 -0.215542 0) (0.065371 -0.226299 0) (0.0592893 -0.237322 0) (0.05242 -0.245822 0) (0.0446193 -0.250094 0) (0.0357745 -0.252061 0) (0.0172377 -0.240972 0) (0.00557093 -0.212856 0) (-0.0088255 -0.184986 0) (-0.030087 -0.151822 0) (0.0481762 -0.0470749 0) (-0.000452074 -0.0489623 0) (-0.00268801 -0.0890857 0) (0.0067352 -0.175414 0) (-0.0368629 -0.172403 0) (-0.0852694 -0.171218 0) (-0.101675 -0.113721 0) (-0.0948751 -0.0916313 0) (-0.0908507 -0.10336 0) (-0.0842548 -0.138164 0) (-0.0742855 -0.184875 0) (-0.0630772 -0.22847 0) (-0.0509472 -0.249058 0) (-0.0451227 -0.241394 0) (-0.0405662 -0.253949 0) (0.0580955 -0.22209 0) (0.0502693 -0.194326 0) (0.0457131 -0.194314 0) (0.0498991 -0.207712 0) (0.0586295 -0.22241 0) (0.0642585 -0.232174 0) (0.0640228 -0.237235 0) (0.0596708 -0.243543 0) (0.0518725 -0.249318 0) (0.0407283 -0.251725 0) (0.0261209 -0.248529 0) (0.0116233 -0.23372 0) (-0.00162304 -0.219601 0) (-0.0193984 -0.201205 0) (0.0110426 -0.0903234 0) (0.00408263 -0.0366004 0) (0.013702 -0.0828321 0) (0.00241212 -0.0912844 0) (-0.00192077 -0.0929835 0) (-0.0191535 -0.085514 0) (-0.0392389 -0.0769846 0) (-0.0655363 -0.0808214 0) (-0.0826839 -0.0977652 0) (-0.0814321 -0.125683 0) (-0.0729737 -0.165002 0) (-0.0675866 -0.207212 0) (-0.0650997 -0.245565 0) (-0.0639264 -0.264362 0) (-0.0590497 -0.264802 0) (0.0302704 -0.276697 0) (0.0408243 -0.233675 0) (0.0391485 -0.209894 0) (0.0401727 -0.214262 0) (0.0462679 -0.22816 0) (0.053809 -0.239877 0) (0.0591373 -0.245262 0) (0.0606358 -0.244778 0) (0.0603498 -0.244752 0) (0.055042 -0.251467 0) (0.0420475 -0.254564 0) (0.0110398 -0.249394 0) (0.00286011 -0.236642 0) (-0.00646935 -0.227058 0) (-0.00872272 -0.118927 0) (-0.0132371 -0.0954688 0) (-0.0296645 -0.0622435 0) (-0.0317971 -0.0234556 0) (-0.00302429 -0.0991742 0) (-0.013641 -0.0915618 0) (-0.022145 -0.0843648 0) (-0.0344307 -0.0826509 0) (-0.0488896 -0.0894883 0) (-0.0605274 -0.106963 0) (-0.0657144 -0.135826 0) (-0.0667793 -0.173013 0) (-0.0603293 -0.220653 0) (-0.0567141 -0.255523 0) (-0.0629244 -0.269523 0) (-0.0613023 -0.317155 0) (0.0255169 -0.294316 0) (0.0246254 -0.239297 0) (0.035696 -0.219408 0) (0.0434806 -0.229324 0) (0.0462 -0.242169 0) (0.0496385 -0.250951 0) (0.0530063 -0.25418 0) (0.0548712 -0.249502 0) (0.0605432 -0.197277 0) (0.0467244 -0.193306 0) (0.0420071 -0.182396 0) (0.0391356 -0.159793 0) (-0.0029803 -0.237831 0) (-0.00742161 -0.123536 0) (-0.0153424 -0.119558 0) (-0.0275602 -0.107558 0) (0.0434356 -0.0232411 0) (-0.0056818 -0.0187837 0) (-0.0128668 -0.049766 0) (-0.0185375 -0.093308 0) (-0.0222224 -0.0910962 0) (-0.0279771 -0.0936963 0) (-0.0340137 -0.101465 0) (-0.0367051 -0.117904 0) (-0.0362624 -0.147001 0) (-0.0362188 -0.184682 0) (-0.0364022 -0.225569 0) (-0.0374696 -0.256082 0) (-0.0400171 -0.275901 0) (-0.0433479 -0.308102 0) (-0.0153674 -0.288044 0) (0.000664152 -0.238992 0) (0.0312018 -0.227082 0) (0.051268 -0.241337 0) (0.050744 -0.249938 0) (0.0494071 -0.255206 0) (0.0480063 -0.254355 0) (0.050629 -0.225669 0) (0.0448332 -0.205087 0) (0.0362253 -0.196318 0) (0.0262073 -0.185539 0) (0.0176765 -0.16548 0) (0.00307895 -0.141617 0) (-0.0109863 -0.13028 0) (-0.016506 -0.125794 0) (0.00870131 -0.0693016 0) (0.00292005 -0.0239103 0) (0.00853335 -0.0247367 0) (0.00577755 -0.054222 0) (-0.00354839 -0.083071 0) (-0.0135668 -0.0953331 0) (-0.0181325 -0.101992 0) (-0.0204241 -0.110331 0) (-0.0158904 -0.126309 0) (-0.00597406 -0.15419 0) (-0.000654327 -0.190092 0) (-0.00350479 -0.232734 0) (-0.0155495 -0.267756 0) (-0.0152911 -0.28368 0) (-0.0353405 -0.328911 0) (-0.0505301 -0.262695 0) (-0.0107837 -0.223198 0) (0.0201449 -0.222653 0) (0.0387573 -0.243721 0) (0.053027 -0.251955 0) (0.0479083 -0.255878 0) (0.0382877 -0.25429 0) (0.032181 -0.248091 0) (0.0298013 -0.209464 0) (0.0256469 -0.203053 0) (0.0100769 -0.191571 0) (-0.00408899 -0.172014 0) (-0.0168826 -0.155214 0) (-0.0186159 -0.135503 0) (-0.0260875 -0.118425 0) (-0.0295806 -0.0752012 0) (-0.0346953 -0.0324022 0) (0.0296649 -0.0375279 0) (0.031333 -0.0574231 0) (0.00244157 -0.0747818 0) (-0.000580089 -0.0996438 0) (-0.00847782 -0.0999619 0) (-0.00600824 -0.107611 0) (0.000257102 -0.112925 0) (-0.0119745 -0.118841 0) (-0.0127393 -0.13066 0) (-0.0111955 -0.139965 0) (-0.00977487 -0.144605 0) (-0.00788515 -0.148943 0) (-0.00374234 -0.151673 0) (0.000745358 -0.136146 0) (0.0012008 -0.125331 0) (-0.00155515 -0.125442 0) (0.0010171 -0.131346 0) (0.00596316 -0.134008 0) (0.0105492 -0.132944 0) (0.012859 -0.131168 0) (0.0147345 -0.129209 0) (0.0154719 -0.12085 0) (0.013768 -0.118101 0) (0.0118817 -0.116643 0) (0.00804225 -0.107619 0) (-0.00781763 -0.109702 0) (-0.0252624 -0.122045 0) (-0.00439474 -0.0915973 0) (-0.0670736 -0.0762051 0) (-0.014414 -0.0716668 0) ) ; boundaryField { inlet { type fixedValue; value uniform (0 0 0); } outlet { type fixedValue; value uniform (0 0 0); } walls { type fixedValue; value uniform (0 0 0); } frontAndBackPlanes { type empty; } } // ************************************************************************* //
[ "mizuha.watanabe@gmail.com" ]
mizuha.watanabe@gmail.com
1326172bfd664fd9a93c48241efce8b5158f0993
b1ddb54ebeb417874137a4fb66aa9a6e432df6d9
/src/gfx-obj/gfx.obj.types.cpp
21383ea652a803d5e056758906c616b3f2ec0cf3
[ "Zlib" ]
permissive
YanYuHongChen/mud
e21058d9bf8a065d7124aff8bd9bf56b21c8fd67
4a7c246653564b3c2a3ab411288af922e7e074b7
refs/heads/master
2020-05-15T03:10:01.111916
2019-04-16T17:39:00
2019-04-16T17:39:00
null
0
0
null
null
null
null
UTF-8
C++
false
false
482
cpp
#include <infra/Cpp20.h> #ifdef MUD_MODULES module mud.gfx-obj; #else #include <gfx-obj/Types.h> #include <gfx-obj/Api.h> #include <type/Vector.h> #endif namespace mud { // Exported types template <> MUD_GFX_OBJ_EXPORT Type& type<mud::ImporterOBJ>() { static Type ty("ImporterOBJ", sizeof(mud::ImporterOBJ)); return ty; } template <> MUD_GFX_OBJ_EXPORT Type& type<mud::ImporterPLY>() { static Type ty("ImporterPLY", sizeof(mud::ImporterPLY)); return ty; } }
[ "hugo.amiard@laposte.net" ]
hugo.amiard@laposte.net
ec625b32b4537f9adc47368862cae1e1db9e7e49
4931cc524c60e134a100a6226a2864463209244b
/SDK/Inc/FETime.h
7259d1a84ce8d981ad61726a9c0c2796f576beab
[]
no_license
Frojer/FrojerEngine
65856564d1ac32eb1addbdbb4ad77f11999b45b3
64d3bd7d20efc7fe44dbbf38be19d4a867587776
refs/heads/master
2021-06-03T10:06:47.912552
2020-05-27T16:26:56
2020-05-27T16:26:56
135,670,150
0
0
null
null
null
null
UTF-8
C++
false
false
434
h
#pragma once #ifndef _FE_TIME #define _FE_TIME #include <FEDefine.h> class FETime { private: DWORD _curTime; DWORD _oldTime; float _timeScale; float _deltaTime; static FETime* _pInstance; private: FETime(); ~FETime(); void TimeUpdate(); public: static float GetPureDeltaTime(); static float GetDeltaTime(); static float GetTimeScale(); static void SetTimeScale(float timeScale); friend class FESystem; }; #endif
[ "choicoco1995@naver.com" ]
choicoco1995@naver.com
26bd58c7eab246d1b9a2f37bddfeac59a6c92144
04b1803adb6653ecb7cb827c4f4aa616afacf629
/services/preferences/public/cpp/scoped_pref_update.cc
c04940ec9a1f58f9a7afac96d039ce99bfb4a7f8
[ "BSD-3-Clause" ]
permissive
Samsung/Castanets
240d9338e097b75b3f669604315b06f7cf129d64
4896f732fc747dfdcfcbac3d442f2d2d42df264a
refs/heads/castanets_76_dev
2023-08-31T09:01:04.744346
2021-07-30T04:56:25
2021-08-11T05:45:21
125,484,161
58
49
BSD-3-Clause
2022-10-16T19:31:26
2018-03-16T08:07:37
null
UTF-8
C++
false
false
1,423
cc
// Copyright 2017 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. #include "services/preferences/public/cpp/scoped_pref_update.h" #include <utility> #include "base/bind.h" #include "components/prefs/pref_service.h" #include "services/preferences/public/cpp/dictionary_value_update.h" namespace prefs { ScopedDictionaryPrefUpdate::ScopedDictionaryPrefUpdate(PrefService* service, base::StringPiece path) : service_(service), path_(path.as_string()) {} ScopedDictionaryPrefUpdate::~ScopedDictionaryPrefUpdate() { if (!updated_paths_.empty()) service_->ReportUserPrefChanged(path_, std::move(updated_paths_)); } std::unique_ptr<DictionaryValueUpdate> ScopedDictionaryPrefUpdate::Get() { return std::make_unique<DictionaryValueUpdate>( base::Bind(&ScopedDictionaryPrefUpdate::RecordPath, base::Unretained(this)), static_cast<base::DictionaryValue*>( service_->GetMutableUserPref(path_, base::Value::Type::DICTIONARY)), std::vector<std::string>()); } std::unique_ptr<DictionaryValueUpdate> ScopedDictionaryPrefUpdate:: operator->() { return Get(); } void ScopedDictionaryPrefUpdate::RecordPath( const std::vector<std::string>& path) { updated_paths_.insert(std::move(path)); } } // namespace prefs
[ "sunny.nam@samsung.com" ]
sunny.nam@samsung.com
84ec3c8cc8831de8d15d6be3f4a5c169eeb309d8
c4e3d06048f6601d56dd38cd48a66de0aeea3e3a
/src/heated_plate_pthreads.cpp
d8eaad3f33742c02244644c12d4dd185c0c09b16
[]
no_license
PCA2017/UB-5
6a4215d5cac71c9a5468461b6a55327eace9a1e4
b45b0ed9deab5c615dbdf49bc3877e5e6d133454
refs/heads/master
2021-08-23T19:38:57.761135
2017-12-06T08:00:34
2017-12-06T08:00:34
113,013,963
0
0
null
null
null
null
UTF-8
C++
false
false
6,368
cpp
//============================================================================ // Name : heated_plate_pthreads.cpp // Author : pra01 // Description : Calculates the heat distribution on a plate iteratively. // Boundary has the const value 0.0. // The initial Matrix can have a circle of a specified Temperature // between 0.0 and 127.0 in the middle. // The calculation for each timestep is done in parallel with a specified // number of Pthreads. // Arguments : n - Dimension of the quadratic discrete heated plate // r - Radius of an inital circle with specified Temperature // H - Temperature of the initial circle between 0.0 and 127.0 // num_threads - Number of pthreads // filename - Name of the file whitch will contain the simulation results // Example : ./heated_plate 10 4 10.0 5 file_1 // Creates a 10x10 plate with a initial circle of radius 4 with // Temperature 10.0 with 5 PThreads calculating each step // and saves the results in an File with name file_1 //============================================================================ #include <iostream> #include <fstream> #include <new> #include <sys/time.h> #include <pthread.h> using namespace std; void init_matrix(double ** matrix, int n, double a, double b, int r, double H); // Initiale Matrix erzeugen void* calculate_slice(void* inf); // Updatet den Wert in matrix anhand Wärmeleitungsgleichung und der alten Matrix void ergebniszeile_eintragen(double ** matrix, int n, ofstream &); // Ergebnis der Matrix im aktuellen Zeitrschitt in Datei eintragen struct Info { int n; const double phi; double ** matrix; double ** matrix_old; int num_threads; int t_id; }; int main(int argc, char **argv) { unsigned int i, n, r, t, num_threads; // Nur Werte > 0 möglich double H, a, b; const double phi = 6.0/25.0; double ** m1; double ** m1old; // Matrix aus dem Zeitschritt davor struct timeval start, stop; // Zeitmessung mit gettimeofday long seconds, useconds; double duration; string filename; ofstream ergebnisdatei; n = atoi(argv[1]); r = atoi(argv[2]); H = atoi(argv[3]); num_threads = atoi(argv[4]); filename = argv[5]; ergebnisdatei.open(filename.c_str(),ios::out); // H auf Bereich 0.0 bis 127.0 begrenzen. (Werte in der Matrixen können dann Aufgrund der Berechnungsvorschrift den Wertebereich auch nicht verlassen.) if (H > 127.0) H = 127.0; else if (H < 0.0) H = 0.0; // Radius des erhitzten Kreises darf nicht den Rand der Matrix berühren if (r > ((n/2) -2)) r = ((n/2) -2); a = (n-1)/2.0; // Mittelpunkt Kreis in x-Richtung b = (n-1)/2.0; // Mittelpunkt Kreis in y-Richtung // Matrix mit (nxn) Einträgen m1 = new double *[n]; m1[0] = new double [n*n]; for(i = 1; i<n; i++) m1[i] = m1[0] + i*n; // Matrix aus dem letzten Zeitschritt mit (nxn) Einträgen m1old = new double *[n]; m1old[0] = new double [n*n]; for(i = 1; i<n; i++) m1old[i] = m1old[0] + i*n; if (m1 == nullptr || m1old == nullptr) cout << "Error: memory could not be allocated"; else { // Matrix initialisieren init_matrix(m1, n, a, b, r, H); //ergebniszeile_eintragen(m1, n, ergebnisdatei); // Initiale Matrix in Datei schreiben // Threads erzeugen pthread_t pThreads [num_threads]; // Zeit stoppen gettimeofday(&start, NULL); // Innere Werte der Matrix (ohne Randwerte) iterativ updaten for (t = 0; t<100; t++) // 100 Zeitschritte { // Werte aus dem letzten Zeitschritt in m1old zwischenspeichern for (int i=0; i<n; i++) { for (int j=0; j<n; j++) m1old[i][j] = m1[i][j]; } // Parallel Werte berechnen for(int i = 0; i < num_threads; ++i) { //cout << "Arbeitszuweisung an Threads" << endl; Info* info = new Info{n, phi, m1, m1old, num_threads, i+1}; pthread_create(&pThreads[i], NULL, &calculate_slice, (void*) info); } // Wait for threads to finish for(int i = 0; i < num_threads; ++i) { pthread_join(pThreads[i], NULL); } //ergebniszeile_eintragen(m1, n, ergebnisdatei); } // Zeit stoppen gettimeofday(&stop, NULL); // Dauer berechnen seconds = stop.tv_sec - start.tv_sec; useconds = stop.tv_usec - start.tv_usec; duration = seconds + useconds/1000000.0; // Dauer in Sekunden cout << "Dauer: " << duration << " Sekunden" << endl; delete[] m1old[0]; delete[] m1old; delete[] m1[0]; delete[] m1; } return 0; } void init_matrix(double ** matrix, int n, double a, double b, int r, double H){ // Initialisiert eine (nxn) Matrix mit 0en bis auf einen Kreis mit den Werten H mit Radius r und Mittelpunkt bei (a,b) unsigned int r2 = r*r; // r^2 for (int i=0; i<n; i++) { for (int j=0; j<n; j++) { // Punkte im Kreis zu H setzten if (((i-a)*(i-a)+(j-b)*(j-b)) < r2) matrix[i][j] = H; // Rest zu =0.0 setzten else matrix[i][j] = 0.0; // Achtung: Wenn Kreisradius zu groß übergeben wurden, Randwerte !=0 gesetzt die sich nicht verändern! -> Bei Eingabe geprüft } } } void* calculate_slice(void* inf){ // Updatet den Wert in matrix anhand Wärmeleitungsgleichung mit phi und der alten Matrix matrix_old // Soll von parallel arbeitenden Threads ausgeführt werden. Info* info = (Info*) inf; int n = info->n; const double phi = info->phi; double ** matrix = info->matrix; double ** matrix_old = info->matrix_old; int num_threads = info->num_threads; int thread_id = info->t_id; int intervall = n/num_threads; int i_end = thread_id * intervall; int i_start = i_end - intervall; if (i_start < 1) i_start = 1; // Randwert bei i=1 nicht ändern if (i_end >= n) i_end = n-1; // Randwert bei i=n nicht ändern //cout << "Thread ID: " << thread_id << endl; // Werte des aktuellen Zeitschritts berechnen for (int i=i_start; i<i_end; i++) { for (int j=1; j<(n-1); j++) matrix[i][j] = matrix_old[i][j] + phi*((-4)*matrix_old[i][j] + matrix_old[i+1][j] + matrix_old[i-1][j] + matrix_old[i][j+1] + matrix_old[i][j-1]); } } void ergebniszeile_eintragen(double ** matrix, int n, ofstream &OUT){ // Ergebniss eines Zeitschritts in OUT schreiben. for (int i=0; i<n; i++) { for (int j=0; j<n; j++) OUT << matrix[i][j] << ","; OUT << endl; } OUT << "#" << endl; }
[ "-" ]
-
375c9097f44c2f19496b02e8675342f04d93c938
4d4e2ca90b824db7a65393c155160fbe63de6327
/TorreA.cpp
034c29f845147703080ee4b3bb91d887d14499e3
[]
no_license
ytuza/juegotower
effcd770cb36af9b7b15a3c80df675735143d807
f92ad90bacd70beccd702b574a32f545f697e57e
refs/heads/master
2020-06-13T05:58:00.671175
2016-12-02T19:13:08
2016-12-02T19:13:08
75,423,347
0
0
null
null
null
null
UTF-8
C++
false
false
297
cpp
#include "TorreA.h" #include <QTimer> #include "Bullet.h" #include "Game.h" extern Game * game; TorreA::TorreA(){ // conecta el timer para que busq objetivos costo = 50; timerobj->start(800); } //hereda el obtener objetivo void TorreA::obt_objetivo(){ Tower::obt_objetivo(); }
[ "noreply@github.com" ]
noreply@github.com
5551fc041bfed4dc76b6c343463e91b1c830cdaf
ba1483a46b56ba7a324a3311beb6a16192051ecd
/Library/Il2cppBuildCache/UWP/ARMv7/il2cppOutput/System.Numerics.cpp
ad74bc18600af7afb73b3a1ae8835c604bfd3a1f
[]
no_license
jbeutel/NASA-SUITS-AR-Displays
b35471ef4977e5b6745a836f71704be289ec32c0
0ccbdf27e93267fa105eec457945455331aefeae
refs/heads/main
2023-04-06T03:56:03.482847
2021-05-03T04:07:26
2021-05-03T04:07:26
367,192,912
2
0
null
2021-05-13T22:51:58
2021-05-13T22:51:57
null
UTF-8
C++
false
false
222,603
cpp
#include "pch-cpp.hpp" #ifndef _MSC_VER # include <alloca.h> #else # include <malloc.h> #endif #include <limits> #include <stdint.h> template <typename R> struct VirtFuncInvoker0 { typedef R (*Func)(void*, const RuntimeMethod*); static inline R Invoke (Il2CppMethodSlot slot, RuntimeObject* obj) { const VirtualInvokeData& invokeData = il2cpp_codegen_get_virtual_invoke_data(slot, obj); return ((Func)invokeData.methodPtr)(obj, invokeData.method); } }; // System.Collections.Generic.Dictionary`2<System.Int32,System.Globalization.CultureInfo> struct Dictionary_2_t5B8303F2C9869A39ED3E03C0FBB09F817E479402; // System.Collections.Generic.Dictionary`2<System.String,System.Globalization.CultureInfo> struct Dictionary_2_t0015CBF964B0687CBB5ECFDDE06671A8F3DDE4BC; // System.Byte[] struct ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726; // System.Char[] struct CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34; // System.Int32[] struct Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32; // System.Object[] struct ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE; // System.String[] struct StringU5BU5D_tACEBFEDE350025B554CD507C9AE8FFE49359549A; // System.Attribute struct Attribute_t037CA9D9F3B742C063DB364D2EEBBF9FC5772C71; // System.Globalization.Calendar struct Calendar_t3D638AEAB45F029DF47138EDA4CF9A7CBBB1C32A; // System.Globalization.CompareInfo struct CompareInfo_t4AB62EC32E8AF1E469E315620C7E3FB8B0CAE0C9; // System.Globalization.CultureData struct CultureData_t53CDF1C5F789A28897415891667799420D3C5529; // System.Globalization.CultureInfo struct CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98; // System.Globalization.DateTimeFormatInfo struct DateTimeFormatInfo_t0B9F6CA631A51CFC98A3C6031CF8069843137C90; // System.IFormatProvider struct IFormatProvider_tF2AECC4B14F41D36718920D67F930CED940412DF; // System.Numerics.JitIntrinsicAttribute struct JitIntrinsicAttribute_t82AB712B80239488D2D564F30338DE9F2962F488; // System.Globalization.NumberFormatInfo struct NumberFormatInfo_t58780B43B6A840C38FD10C50CDFE2128884CAD1D; // System.Security.Cryptography.RandomNumberGenerator struct RandomNumberGenerator_t2CB5440F189986116A2FA9F907AE52644047AC50; // System.String struct String_t; // System.Text.StringBuilder struct StringBuilder_t; // System.Globalization.TextInfo struct TextInfo_tE823D0684BFE8B203501C9B2B38585E8F06E872C; // System.Numerics.Vector3 struct Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4; // System.Void struct Void_t700C6383A2A510C2CF4DD86DABD5CA9FF70ADAC5; IL2CPP_EXTERN_C RuntimeClass* CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* Guid_t_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* HashHelpers_t9CEAA5EB2CF719D22684A23A40FD24BA498775E4_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* Math_tA269614262430118C9FC5C4D9EF4F61C812568F0_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* StringBuilder_t_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C RuntimeClass* Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4_il2cpp_TypeInfo_var; IL2CPP_EXTERN_C String_t* _stringLiteral3DCC6243286938BE75C3FA773B9BA71160A2E869; IL2CPP_EXTERN_C String_t* _stringLiteral4DC02E9DBA2BBA6B0B90CAE0980D70CE6132DCD1; IL2CPP_EXTERN_C String_t* _stringLiteralD26F25683308CEE6235E8DD6C4C233601EB6FF0D; struct CultureData_t53CDF1C5F789A28897415891667799420D3C5529_marshaled_com; struct CultureData_t53CDF1C5F789A28897415891667799420D3C5529_marshaled_pinvoke; struct CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98_marshaled_com; struct CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98_marshaled_pinvoke; struct ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE; IL2CPP_EXTERN_C_BEGIN IL2CPP_EXTERN_C_END #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // <Module> struct U3CModuleU3E_t33412D684D8F0E62BD8F4EA5AF89E7B1B028EC60 { public: public: }; // System.Object struct Il2CppArrayBounds; // System.Array // System.Attribute struct Attribute_t037CA9D9F3B742C063DB364D2EEBBF9FC5772C71 : public RuntimeObject { public: public: }; // System.Globalization.CultureInfo struct CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 : public RuntimeObject { public: // System.Boolean System.Globalization.CultureInfo::m_isReadOnly bool ___m_isReadOnly_3; // System.Int32 System.Globalization.CultureInfo::cultureID int32_t ___cultureID_4; // System.Int32 System.Globalization.CultureInfo::parent_lcid int32_t ___parent_lcid_5; // System.Int32 System.Globalization.CultureInfo::datetime_index int32_t ___datetime_index_6; // System.Int32 System.Globalization.CultureInfo::number_index int32_t ___number_index_7; // System.Int32 System.Globalization.CultureInfo::default_calendar_type int32_t ___default_calendar_type_8; // System.Boolean System.Globalization.CultureInfo::m_useUserOverride bool ___m_useUserOverride_9; // System.Globalization.NumberFormatInfo modreq(System.Runtime.CompilerServices.IsVolatile) System.Globalization.CultureInfo::numInfo NumberFormatInfo_t58780B43B6A840C38FD10C50CDFE2128884CAD1D * ___numInfo_10; // System.Globalization.DateTimeFormatInfo modreq(System.Runtime.CompilerServices.IsVolatile) System.Globalization.CultureInfo::dateTimeInfo DateTimeFormatInfo_t0B9F6CA631A51CFC98A3C6031CF8069843137C90 * ___dateTimeInfo_11; // System.Globalization.TextInfo modreq(System.Runtime.CompilerServices.IsVolatile) System.Globalization.CultureInfo::textInfo TextInfo_tE823D0684BFE8B203501C9B2B38585E8F06E872C * ___textInfo_12; // System.String System.Globalization.CultureInfo::m_name String_t* ___m_name_13; // System.String System.Globalization.CultureInfo::englishname String_t* ___englishname_14; // System.String System.Globalization.CultureInfo::nativename String_t* ___nativename_15; // System.String System.Globalization.CultureInfo::iso3lang String_t* ___iso3lang_16; // System.String System.Globalization.CultureInfo::iso2lang String_t* ___iso2lang_17; // System.String System.Globalization.CultureInfo::win3lang String_t* ___win3lang_18; // System.String System.Globalization.CultureInfo::territory String_t* ___territory_19; // System.String[] System.Globalization.CultureInfo::native_calendar_names StringU5BU5D_tACEBFEDE350025B554CD507C9AE8FFE49359549A* ___native_calendar_names_20; // System.Globalization.CompareInfo modreq(System.Runtime.CompilerServices.IsVolatile) System.Globalization.CultureInfo::compareInfo CompareInfo_t4AB62EC32E8AF1E469E315620C7E3FB8B0CAE0C9 * ___compareInfo_21; // System.Void* System.Globalization.CultureInfo::textinfo_data void* ___textinfo_data_22; // System.Int32 System.Globalization.CultureInfo::m_dataItem int32_t ___m_dataItem_23; // System.Globalization.Calendar System.Globalization.CultureInfo::calendar Calendar_t3D638AEAB45F029DF47138EDA4CF9A7CBBB1C32A * ___calendar_24; // System.Globalization.CultureInfo System.Globalization.CultureInfo::parent_culture CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 * ___parent_culture_25; // System.Boolean System.Globalization.CultureInfo::constructed bool ___constructed_26; // System.Byte[] System.Globalization.CultureInfo::cached_serialized_form ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* ___cached_serialized_form_27; // System.Globalization.CultureData System.Globalization.CultureInfo::m_cultureData CultureData_t53CDF1C5F789A28897415891667799420D3C5529 * ___m_cultureData_28; // System.Boolean System.Globalization.CultureInfo::m_isInherited bool ___m_isInherited_29; public: inline static int32_t get_offset_of_m_isReadOnly_3() { return static_cast<int32_t>(offsetof(CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98, ___m_isReadOnly_3)); } inline bool get_m_isReadOnly_3() const { return ___m_isReadOnly_3; } inline bool* get_address_of_m_isReadOnly_3() { return &___m_isReadOnly_3; } inline void set_m_isReadOnly_3(bool value) { ___m_isReadOnly_3 = value; } inline static int32_t get_offset_of_cultureID_4() { return static_cast<int32_t>(offsetof(CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98, ___cultureID_4)); } inline int32_t get_cultureID_4() const { return ___cultureID_4; } inline int32_t* get_address_of_cultureID_4() { return &___cultureID_4; } inline void set_cultureID_4(int32_t value) { ___cultureID_4 = value; } inline static int32_t get_offset_of_parent_lcid_5() { return static_cast<int32_t>(offsetof(CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98, ___parent_lcid_5)); } inline int32_t get_parent_lcid_5() const { return ___parent_lcid_5; } inline int32_t* get_address_of_parent_lcid_5() { return &___parent_lcid_5; } inline void set_parent_lcid_5(int32_t value) { ___parent_lcid_5 = value; } inline static int32_t get_offset_of_datetime_index_6() { return static_cast<int32_t>(offsetof(CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98, ___datetime_index_6)); } inline int32_t get_datetime_index_6() const { return ___datetime_index_6; } inline int32_t* get_address_of_datetime_index_6() { return &___datetime_index_6; } inline void set_datetime_index_6(int32_t value) { ___datetime_index_6 = value; } inline static int32_t get_offset_of_number_index_7() { return static_cast<int32_t>(offsetof(CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98, ___number_index_7)); } inline int32_t get_number_index_7() const { return ___number_index_7; } inline int32_t* get_address_of_number_index_7() { return &___number_index_7; } inline void set_number_index_7(int32_t value) { ___number_index_7 = value; } inline static int32_t get_offset_of_default_calendar_type_8() { return static_cast<int32_t>(offsetof(CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98, ___default_calendar_type_8)); } inline int32_t get_default_calendar_type_8() const { return ___default_calendar_type_8; } inline int32_t* get_address_of_default_calendar_type_8() { return &___default_calendar_type_8; } inline void set_default_calendar_type_8(int32_t value) { ___default_calendar_type_8 = value; } inline static int32_t get_offset_of_m_useUserOverride_9() { return static_cast<int32_t>(offsetof(CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98, ___m_useUserOverride_9)); } inline bool get_m_useUserOverride_9() const { return ___m_useUserOverride_9; } inline bool* get_address_of_m_useUserOverride_9() { return &___m_useUserOverride_9; } inline void set_m_useUserOverride_9(bool value) { ___m_useUserOverride_9 = value; } inline static int32_t get_offset_of_numInfo_10() { return static_cast<int32_t>(offsetof(CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98, ___numInfo_10)); } inline NumberFormatInfo_t58780B43B6A840C38FD10C50CDFE2128884CAD1D * get_numInfo_10() const { return ___numInfo_10; } inline NumberFormatInfo_t58780B43B6A840C38FD10C50CDFE2128884CAD1D ** get_address_of_numInfo_10() { return &___numInfo_10; } inline void set_numInfo_10(NumberFormatInfo_t58780B43B6A840C38FD10C50CDFE2128884CAD1D * value) { ___numInfo_10 = value; Il2CppCodeGenWriteBarrier((void**)(&___numInfo_10), (void*)value); } inline static int32_t get_offset_of_dateTimeInfo_11() { return static_cast<int32_t>(offsetof(CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98, ___dateTimeInfo_11)); } inline DateTimeFormatInfo_t0B9F6CA631A51CFC98A3C6031CF8069843137C90 * get_dateTimeInfo_11() const { return ___dateTimeInfo_11; } inline DateTimeFormatInfo_t0B9F6CA631A51CFC98A3C6031CF8069843137C90 ** get_address_of_dateTimeInfo_11() { return &___dateTimeInfo_11; } inline void set_dateTimeInfo_11(DateTimeFormatInfo_t0B9F6CA631A51CFC98A3C6031CF8069843137C90 * value) { ___dateTimeInfo_11 = value; Il2CppCodeGenWriteBarrier((void**)(&___dateTimeInfo_11), (void*)value); } inline static int32_t get_offset_of_textInfo_12() { return static_cast<int32_t>(offsetof(CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98, ___textInfo_12)); } inline TextInfo_tE823D0684BFE8B203501C9B2B38585E8F06E872C * get_textInfo_12() const { return ___textInfo_12; } inline TextInfo_tE823D0684BFE8B203501C9B2B38585E8F06E872C ** get_address_of_textInfo_12() { return &___textInfo_12; } inline void set_textInfo_12(TextInfo_tE823D0684BFE8B203501C9B2B38585E8F06E872C * value) { ___textInfo_12 = value; Il2CppCodeGenWriteBarrier((void**)(&___textInfo_12), (void*)value); } inline static int32_t get_offset_of_m_name_13() { return static_cast<int32_t>(offsetof(CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98, ___m_name_13)); } inline String_t* get_m_name_13() const { return ___m_name_13; } inline String_t** get_address_of_m_name_13() { return &___m_name_13; } inline void set_m_name_13(String_t* value) { ___m_name_13 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_name_13), (void*)value); } inline static int32_t get_offset_of_englishname_14() { return static_cast<int32_t>(offsetof(CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98, ___englishname_14)); } inline String_t* get_englishname_14() const { return ___englishname_14; } inline String_t** get_address_of_englishname_14() { return &___englishname_14; } inline void set_englishname_14(String_t* value) { ___englishname_14 = value; Il2CppCodeGenWriteBarrier((void**)(&___englishname_14), (void*)value); } inline static int32_t get_offset_of_nativename_15() { return static_cast<int32_t>(offsetof(CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98, ___nativename_15)); } inline String_t* get_nativename_15() const { return ___nativename_15; } inline String_t** get_address_of_nativename_15() { return &___nativename_15; } inline void set_nativename_15(String_t* value) { ___nativename_15 = value; Il2CppCodeGenWriteBarrier((void**)(&___nativename_15), (void*)value); } inline static int32_t get_offset_of_iso3lang_16() { return static_cast<int32_t>(offsetof(CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98, ___iso3lang_16)); } inline String_t* get_iso3lang_16() const { return ___iso3lang_16; } inline String_t** get_address_of_iso3lang_16() { return &___iso3lang_16; } inline void set_iso3lang_16(String_t* value) { ___iso3lang_16 = value; Il2CppCodeGenWriteBarrier((void**)(&___iso3lang_16), (void*)value); } inline static int32_t get_offset_of_iso2lang_17() { return static_cast<int32_t>(offsetof(CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98, ___iso2lang_17)); } inline String_t* get_iso2lang_17() const { return ___iso2lang_17; } inline String_t** get_address_of_iso2lang_17() { return &___iso2lang_17; } inline void set_iso2lang_17(String_t* value) { ___iso2lang_17 = value; Il2CppCodeGenWriteBarrier((void**)(&___iso2lang_17), (void*)value); } inline static int32_t get_offset_of_win3lang_18() { return static_cast<int32_t>(offsetof(CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98, ___win3lang_18)); } inline String_t* get_win3lang_18() const { return ___win3lang_18; } inline String_t** get_address_of_win3lang_18() { return &___win3lang_18; } inline void set_win3lang_18(String_t* value) { ___win3lang_18 = value; Il2CppCodeGenWriteBarrier((void**)(&___win3lang_18), (void*)value); } inline static int32_t get_offset_of_territory_19() { return static_cast<int32_t>(offsetof(CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98, ___territory_19)); } inline String_t* get_territory_19() const { return ___territory_19; } inline String_t** get_address_of_territory_19() { return &___territory_19; } inline void set_territory_19(String_t* value) { ___territory_19 = value; Il2CppCodeGenWriteBarrier((void**)(&___territory_19), (void*)value); } inline static int32_t get_offset_of_native_calendar_names_20() { return static_cast<int32_t>(offsetof(CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98, ___native_calendar_names_20)); } inline StringU5BU5D_tACEBFEDE350025B554CD507C9AE8FFE49359549A* get_native_calendar_names_20() const { return ___native_calendar_names_20; } inline StringU5BU5D_tACEBFEDE350025B554CD507C9AE8FFE49359549A** get_address_of_native_calendar_names_20() { return &___native_calendar_names_20; } inline void set_native_calendar_names_20(StringU5BU5D_tACEBFEDE350025B554CD507C9AE8FFE49359549A* value) { ___native_calendar_names_20 = value; Il2CppCodeGenWriteBarrier((void**)(&___native_calendar_names_20), (void*)value); } inline static int32_t get_offset_of_compareInfo_21() { return static_cast<int32_t>(offsetof(CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98, ___compareInfo_21)); } inline CompareInfo_t4AB62EC32E8AF1E469E315620C7E3FB8B0CAE0C9 * get_compareInfo_21() const { return ___compareInfo_21; } inline CompareInfo_t4AB62EC32E8AF1E469E315620C7E3FB8B0CAE0C9 ** get_address_of_compareInfo_21() { return &___compareInfo_21; } inline void set_compareInfo_21(CompareInfo_t4AB62EC32E8AF1E469E315620C7E3FB8B0CAE0C9 * value) { ___compareInfo_21 = value; Il2CppCodeGenWriteBarrier((void**)(&___compareInfo_21), (void*)value); } inline static int32_t get_offset_of_textinfo_data_22() { return static_cast<int32_t>(offsetof(CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98, ___textinfo_data_22)); } inline void* get_textinfo_data_22() const { return ___textinfo_data_22; } inline void** get_address_of_textinfo_data_22() { return &___textinfo_data_22; } inline void set_textinfo_data_22(void* value) { ___textinfo_data_22 = value; } inline static int32_t get_offset_of_m_dataItem_23() { return static_cast<int32_t>(offsetof(CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98, ___m_dataItem_23)); } inline int32_t get_m_dataItem_23() const { return ___m_dataItem_23; } inline int32_t* get_address_of_m_dataItem_23() { return &___m_dataItem_23; } inline void set_m_dataItem_23(int32_t value) { ___m_dataItem_23 = value; } inline static int32_t get_offset_of_calendar_24() { return static_cast<int32_t>(offsetof(CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98, ___calendar_24)); } inline Calendar_t3D638AEAB45F029DF47138EDA4CF9A7CBBB1C32A * get_calendar_24() const { return ___calendar_24; } inline Calendar_t3D638AEAB45F029DF47138EDA4CF9A7CBBB1C32A ** get_address_of_calendar_24() { return &___calendar_24; } inline void set_calendar_24(Calendar_t3D638AEAB45F029DF47138EDA4CF9A7CBBB1C32A * value) { ___calendar_24 = value; Il2CppCodeGenWriteBarrier((void**)(&___calendar_24), (void*)value); } inline static int32_t get_offset_of_parent_culture_25() { return static_cast<int32_t>(offsetof(CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98, ___parent_culture_25)); } inline CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 * get_parent_culture_25() const { return ___parent_culture_25; } inline CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 ** get_address_of_parent_culture_25() { return &___parent_culture_25; } inline void set_parent_culture_25(CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 * value) { ___parent_culture_25 = value; Il2CppCodeGenWriteBarrier((void**)(&___parent_culture_25), (void*)value); } inline static int32_t get_offset_of_constructed_26() { return static_cast<int32_t>(offsetof(CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98, ___constructed_26)); } inline bool get_constructed_26() const { return ___constructed_26; } inline bool* get_address_of_constructed_26() { return &___constructed_26; } inline void set_constructed_26(bool value) { ___constructed_26 = value; } inline static int32_t get_offset_of_cached_serialized_form_27() { return static_cast<int32_t>(offsetof(CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98, ___cached_serialized_form_27)); } inline ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* get_cached_serialized_form_27() const { return ___cached_serialized_form_27; } inline ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726** get_address_of_cached_serialized_form_27() { return &___cached_serialized_form_27; } inline void set_cached_serialized_form_27(ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* value) { ___cached_serialized_form_27 = value; Il2CppCodeGenWriteBarrier((void**)(&___cached_serialized_form_27), (void*)value); } inline static int32_t get_offset_of_m_cultureData_28() { return static_cast<int32_t>(offsetof(CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98, ___m_cultureData_28)); } inline CultureData_t53CDF1C5F789A28897415891667799420D3C5529 * get_m_cultureData_28() const { return ___m_cultureData_28; } inline CultureData_t53CDF1C5F789A28897415891667799420D3C5529 ** get_address_of_m_cultureData_28() { return &___m_cultureData_28; } inline void set_m_cultureData_28(CultureData_t53CDF1C5F789A28897415891667799420D3C5529 * value) { ___m_cultureData_28 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_cultureData_28), (void*)value); } inline static int32_t get_offset_of_m_isInherited_29() { return static_cast<int32_t>(offsetof(CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98, ___m_isInherited_29)); } inline bool get_m_isInherited_29() const { return ___m_isInherited_29; } inline bool* get_address_of_m_isInherited_29() { return &___m_isInherited_29; } inline void set_m_isInherited_29(bool value) { ___m_isInherited_29 = value; } }; struct CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98_StaticFields { public: // System.Globalization.CultureInfo modreq(System.Runtime.CompilerServices.IsVolatile) System.Globalization.CultureInfo::invariant_culture_info CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 * ___invariant_culture_info_0; // System.Object System.Globalization.CultureInfo::shared_table_lock RuntimeObject * ___shared_table_lock_1; // System.Globalization.CultureInfo System.Globalization.CultureInfo::default_current_culture CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 * ___default_current_culture_2; // System.Globalization.CultureInfo modreq(System.Runtime.CompilerServices.IsVolatile) System.Globalization.CultureInfo::s_DefaultThreadCurrentUICulture CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 * ___s_DefaultThreadCurrentUICulture_33; // System.Globalization.CultureInfo modreq(System.Runtime.CompilerServices.IsVolatile) System.Globalization.CultureInfo::s_DefaultThreadCurrentCulture CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 * ___s_DefaultThreadCurrentCulture_34; // System.Collections.Generic.Dictionary`2<System.Int32,System.Globalization.CultureInfo> System.Globalization.CultureInfo::shared_by_number Dictionary_2_t5B8303F2C9869A39ED3E03C0FBB09F817E479402 * ___shared_by_number_35; // System.Collections.Generic.Dictionary`2<System.String,System.Globalization.CultureInfo> System.Globalization.CultureInfo::shared_by_name Dictionary_2_t0015CBF964B0687CBB5ECFDDE06671A8F3DDE4BC * ___shared_by_name_36; // System.Boolean System.Globalization.CultureInfo::IsTaiwanSku bool ___IsTaiwanSku_37; public: inline static int32_t get_offset_of_invariant_culture_info_0() { return static_cast<int32_t>(offsetof(CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98_StaticFields, ___invariant_culture_info_0)); } inline CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 * get_invariant_culture_info_0() const { return ___invariant_culture_info_0; } inline CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 ** get_address_of_invariant_culture_info_0() { return &___invariant_culture_info_0; } inline void set_invariant_culture_info_0(CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 * value) { ___invariant_culture_info_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___invariant_culture_info_0), (void*)value); } inline static int32_t get_offset_of_shared_table_lock_1() { return static_cast<int32_t>(offsetof(CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98_StaticFields, ___shared_table_lock_1)); } inline RuntimeObject * get_shared_table_lock_1() const { return ___shared_table_lock_1; } inline RuntimeObject ** get_address_of_shared_table_lock_1() { return &___shared_table_lock_1; } inline void set_shared_table_lock_1(RuntimeObject * value) { ___shared_table_lock_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___shared_table_lock_1), (void*)value); } inline static int32_t get_offset_of_default_current_culture_2() { return static_cast<int32_t>(offsetof(CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98_StaticFields, ___default_current_culture_2)); } inline CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 * get_default_current_culture_2() const { return ___default_current_culture_2; } inline CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 ** get_address_of_default_current_culture_2() { return &___default_current_culture_2; } inline void set_default_current_culture_2(CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 * value) { ___default_current_culture_2 = value; Il2CppCodeGenWriteBarrier((void**)(&___default_current_culture_2), (void*)value); } inline static int32_t get_offset_of_s_DefaultThreadCurrentUICulture_33() { return static_cast<int32_t>(offsetof(CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98_StaticFields, ___s_DefaultThreadCurrentUICulture_33)); } inline CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 * get_s_DefaultThreadCurrentUICulture_33() const { return ___s_DefaultThreadCurrentUICulture_33; } inline CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 ** get_address_of_s_DefaultThreadCurrentUICulture_33() { return &___s_DefaultThreadCurrentUICulture_33; } inline void set_s_DefaultThreadCurrentUICulture_33(CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 * value) { ___s_DefaultThreadCurrentUICulture_33 = value; Il2CppCodeGenWriteBarrier((void**)(&___s_DefaultThreadCurrentUICulture_33), (void*)value); } inline static int32_t get_offset_of_s_DefaultThreadCurrentCulture_34() { return static_cast<int32_t>(offsetof(CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98_StaticFields, ___s_DefaultThreadCurrentCulture_34)); } inline CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 * get_s_DefaultThreadCurrentCulture_34() const { return ___s_DefaultThreadCurrentCulture_34; } inline CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 ** get_address_of_s_DefaultThreadCurrentCulture_34() { return &___s_DefaultThreadCurrentCulture_34; } inline void set_s_DefaultThreadCurrentCulture_34(CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 * value) { ___s_DefaultThreadCurrentCulture_34 = value; Il2CppCodeGenWriteBarrier((void**)(&___s_DefaultThreadCurrentCulture_34), (void*)value); } inline static int32_t get_offset_of_shared_by_number_35() { return static_cast<int32_t>(offsetof(CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98_StaticFields, ___shared_by_number_35)); } inline Dictionary_2_t5B8303F2C9869A39ED3E03C0FBB09F817E479402 * get_shared_by_number_35() const { return ___shared_by_number_35; } inline Dictionary_2_t5B8303F2C9869A39ED3E03C0FBB09F817E479402 ** get_address_of_shared_by_number_35() { return &___shared_by_number_35; } inline void set_shared_by_number_35(Dictionary_2_t5B8303F2C9869A39ED3E03C0FBB09F817E479402 * value) { ___shared_by_number_35 = value; Il2CppCodeGenWriteBarrier((void**)(&___shared_by_number_35), (void*)value); } inline static int32_t get_offset_of_shared_by_name_36() { return static_cast<int32_t>(offsetof(CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98_StaticFields, ___shared_by_name_36)); } inline Dictionary_2_t0015CBF964B0687CBB5ECFDDE06671A8F3DDE4BC * get_shared_by_name_36() const { return ___shared_by_name_36; } inline Dictionary_2_t0015CBF964B0687CBB5ECFDDE06671A8F3DDE4BC ** get_address_of_shared_by_name_36() { return &___shared_by_name_36; } inline void set_shared_by_name_36(Dictionary_2_t0015CBF964B0687CBB5ECFDDE06671A8F3DDE4BC * value) { ___shared_by_name_36 = value; Il2CppCodeGenWriteBarrier((void**)(&___shared_by_name_36), (void*)value); } inline static int32_t get_offset_of_IsTaiwanSku_37() { return static_cast<int32_t>(offsetof(CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98_StaticFields, ___IsTaiwanSku_37)); } inline bool get_IsTaiwanSku_37() const { return ___IsTaiwanSku_37; } inline bool* get_address_of_IsTaiwanSku_37() { return &___IsTaiwanSku_37; } inline void set_IsTaiwanSku_37(bool value) { ___IsTaiwanSku_37 = value; } }; // Native definition for P/Invoke marshalling of System.Globalization.CultureInfo struct CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98_marshaled_pinvoke { int32_t ___m_isReadOnly_3; int32_t ___cultureID_4; int32_t ___parent_lcid_5; int32_t ___datetime_index_6; int32_t ___number_index_7; int32_t ___default_calendar_type_8; int32_t ___m_useUserOverride_9; NumberFormatInfo_t58780B43B6A840C38FD10C50CDFE2128884CAD1D * ___numInfo_10; DateTimeFormatInfo_t0B9F6CA631A51CFC98A3C6031CF8069843137C90 * ___dateTimeInfo_11; TextInfo_tE823D0684BFE8B203501C9B2B38585E8F06E872C * ___textInfo_12; char* ___m_name_13; char* ___englishname_14; char* ___nativename_15; char* ___iso3lang_16; char* ___iso2lang_17; char* ___win3lang_18; char* ___territory_19; char** ___native_calendar_names_20; CompareInfo_t4AB62EC32E8AF1E469E315620C7E3FB8B0CAE0C9 * ___compareInfo_21; void* ___textinfo_data_22; int32_t ___m_dataItem_23; Calendar_t3D638AEAB45F029DF47138EDA4CF9A7CBBB1C32A * ___calendar_24; CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98_marshaled_pinvoke* ___parent_culture_25; int32_t ___constructed_26; Il2CppSafeArray/*NONE*/* ___cached_serialized_form_27; CultureData_t53CDF1C5F789A28897415891667799420D3C5529_marshaled_pinvoke* ___m_cultureData_28; int32_t ___m_isInherited_29; }; // Native definition for COM marshalling of System.Globalization.CultureInfo struct CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98_marshaled_com { int32_t ___m_isReadOnly_3; int32_t ___cultureID_4; int32_t ___parent_lcid_5; int32_t ___datetime_index_6; int32_t ___number_index_7; int32_t ___default_calendar_type_8; int32_t ___m_useUserOverride_9; NumberFormatInfo_t58780B43B6A840C38FD10C50CDFE2128884CAD1D * ___numInfo_10; DateTimeFormatInfo_t0B9F6CA631A51CFC98A3C6031CF8069843137C90 * ___dateTimeInfo_11; TextInfo_tE823D0684BFE8B203501C9B2B38585E8F06E872C * ___textInfo_12; Il2CppChar* ___m_name_13; Il2CppChar* ___englishname_14; Il2CppChar* ___nativename_15; Il2CppChar* ___iso3lang_16; Il2CppChar* ___iso2lang_17; Il2CppChar* ___win3lang_18; Il2CppChar* ___territory_19; Il2CppChar** ___native_calendar_names_20; CompareInfo_t4AB62EC32E8AF1E469E315620C7E3FB8B0CAE0C9 * ___compareInfo_21; void* ___textinfo_data_22; int32_t ___m_dataItem_23; Calendar_t3D638AEAB45F029DF47138EDA4CF9A7CBBB1C32A * ___calendar_24; CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98_marshaled_com* ___parent_culture_25; int32_t ___constructed_26; Il2CppSafeArray/*NONE*/* ___cached_serialized_form_27; CultureData_t53CDF1C5F789A28897415891667799420D3C5529_marshaled_com* ___m_cultureData_28; int32_t ___m_isInherited_29; }; // System.Numerics.Hashing.HashHelpers struct HashHelpers_t9CEAA5EB2CF719D22684A23A40FD24BA498775E4 : public RuntimeObject { public: public: }; struct HashHelpers_t9CEAA5EB2CF719D22684A23A40FD24BA498775E4_StaticFields { public: // System.Int32 System.Numerics.Hashing.HashHelpers::RandomSeed int32_t ___RandomSeed_0; public: inline static int32_t get_offset_of_RandomSeed_0() { return static_cast<int32_t>(offsetof(HashHelpers_t9CEAA5EB2CF719D22684A23A40FD24BA498775E4_StaticFields, ___RandomSeed_0)); } inline int32_t get_RandomSeed_0() const { return ___RandomSeed_0; } inline int32_t* get_address_of_RandomSeed_0() { return &___RandomSeed_0; } inline void set_RandomSeed_0(int32_t value) { ___RandomSeed_0 = value; } }; // System.MathF struct MathF_t1FE55B90677D0CA1E4FD7CBDA053D7FFA0F3C43C : public RuntimeObject { public: public: }; // System.String struct String_t : public RuntimeObject { public: // System.Int32 System.String::m_stringLength int32_t ___m_stringLength_0; // System.Char System.String::m_firstChar Il2CppChar ___m_firstChar_1; public: inline static int32_t get_offset_of_m_stringLength_0() { return static_cast<int32_t>(offsetof(String_t, ___m_stringLength_0)); } inline int32_t get_m_stringLength_0() const { return ___m_stringLength_0; } inline int32_t* get_address_of_m_stringLength_0() { return &___m_stringLength_0; } inline void set_m_stringLength_0(int32_t value) { ___m_stringLength_0 = value; } inline static int32_t get_offset_of_m_firstChar_1() { return static_cast<int32_t>(offsetof(String_t, ___m_firstChar_1)); } inline Il2CppChar get_m_firstChar_1() const { return ___m_firstChar_1; } inline Il2CppChar* get_address_of_m_firstChar_1() { return &___m_firstChar_1; } inline void set_m_firstChar_1(Il2CppChar value) { ___m_firstChar_1 = value; } }; struct String_t_StaticFields { public: // System.String System.String::Empty String_t* ___Empty_5; public: inline static int32_t get_offset_of_Empty_5() { return static_cast<int32_t>(offsetof(String_t_StaticFields, ___Empty_5)); } inline String_t* get_Empty_5() const { return ___Empty_5; } inline String_t** get_address_of_Empty_5() { return &___Empty_5; } inline void set_Empty_5(String_t* value) { ___Empty_5 = value; Il2CppCodeGenWriteBarrier((void**)(&___Empty_5), (void*)value); } }; // System.Text.StringBuilder struct StringBuilder_t : public RuntimeObject { public: // System.Char[] System.Text.StringBuilder::m_ChunkChars CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* ___m_ChunkChars_0; // System.Text.StringBuilder System.Text.StringBuilder::m_ChunkPrevious StringBuilder_t * ___m_ChunkPrevious_1; // System.Int32 System.Text.StringBuilder::m_ChunkLength int32_t ___m_ChunkLength_2; // System.Int32 System.Text.StringBuilder::m_ChunkOffset int32_t ___m_ChunkOffset_3; // System.Int32 System.Text.StringBuilder::m_MaxCapacity int32_t ___m_MaxCapacity_4; public: inline static int32_t get_offset_of_m_ChunkChars_0() { return static_cast<int32_t>(offsetof(StringBuilder_t, ___m_ChunkChars_0)); } inline CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* get_m_ChunkChars_0() const { return ___m_ChunkChars_0; } inline CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34** get_address_of_m_ChunkChars_0() { return &___m_ChunkChars_0; } inline void set_m_ChunkChars_0(CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* value) { ___m_ChunkChars_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_ChunkChars_0), (void*)value); } inline static int32_t get_offset_of_m_ChunkPrevious_1() { return static_cast<int32_t>(offsetof(StringBuilder_t, ___m_ChunkPrevious_1)); } inline StringBuilder_t * get_m_ChunkPrevious_1() const { return ___m_ChunkPrevious_1; } inline StringBuilder_t ** get_address_of_m_ChunkPrevious_1() { return &___m_ChunkPrevious_1; } inline void set_m_ChunkPrevious_1(StringBuilder_t * value) { ___m_ChunkPrevious_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___m_ChunkPrevious_1), (void*)value); } inline static int32_t get_offset_of_m_ChunkLength_2() { return static_cast<int32_t>(offsetof(StringBuilder_t, ___m_ChunkLength_2)); } inline int32_t get_m_ChunkLength_2() const { return ___m_ChunkLength_2; } inline int32_t* get_address_of_m_ChunkLength_2() { return &___m_ChunkLength_2; } inline void set_m_ChunkLength_2(int32_t value) { ___m_ChunkLength_2 = value; } inline static int32_t get_offset_of_m_ChunkOffset_3() { return static_cast<int32_t>(offsetof(StringBuilder_t, ___m_ChunkOffset_3)); } inline int32_t get_m_ChunkOffset_3() const { return ___m_ChunkOffset_3; } inline int32_t* get_address_of_m_ChunkOffset_3() { return &___m_ChunkOffset_3; } inline void set_m_ChunkOffset_3(int32_t value) { ___m_ChunkOffset_3 = value; } inline static int32_t get_offset_of_m_MaxCapacity_4() { return static_cast<int32_t>(offsetof(StringBuilder_t, ___m_MaxCapacity_4)); } inline int32_t get_m_MaxCapacity_4() const { return ___m_MaxCapacity_4; } inline int32_t* get_address_of_m_MaxCapacity_4() { return &___m_MaxCapacity_4; } inline void set_m_MaxCapacity_4(int32_t value) { ___m_MaxCapacity_4 = value; } }; // System.ValueType struct ValueType_tDBF999C1B75C48C68621878250DBF6CDBCF51E52 : public RuntimeObject { public: public: }; // Native definition for P/Invoke marshalling of System.ValueType struct ValueType_tDBF999C1B75C48C68621878250DBF6CDBCF51E52_marshaled_pinvoke { }; // Native definition for COM marshalling of System.ValueType struct ValueType_tDBF999C1B75C48C68621878250DBF6CDBCF51E52_marshaled_com { }; // System.Numerics.Vector struct Vector_t9019EFF6534BACF8E708259D4CA88C037A521A32 : public RuntimeObject { public: public: }; // System.Boolean struct Boolean_t07D1E3F34E4813023D64F584DFF7B34C9D922F37 { public: // System.Boolean System.Boolean::m_value bool ___m_value_0; public: inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Boolean_t07D1E3F34E4813023D64F584DFF7B34C9D922F37, ___m_value_0)); } inline bool get_m_value_0() const { return ___m_value_0; } inline bool* get_address_of_m_value_0() { return &___m_value_0; } inline void set_m_value_0(bool value) { ___m_value_0 = value; } }; struct Boolean_t07D1E3F34E4813023D64F584DFF7B34C9D922F37_StaticFields { public: // System.String System.Boolean::TrueString String_t* ___TrueString_5; // System.String System.Boolean::FalseString String_t* ___FalseString_6; public: inline static int32_t get_offset_of_TrueString_5() { return static_cast<int32_t>(offsetof(Boolean_t07D1E3F34E4813023D64F584DFF7B34C9D922F37_StaticFields, ___TrueString_5)); } inline String_t* get_TrueString_5() const { return ___TrueString_5; } inline String_t** get_address_of_TrueString_5() { return &___TrueString_5; } inline void set_TrueString_5(String_t* value) { ___TrueString_5 = value; Il2CppCodeGenWriteBarrier((void**)(&___TrueString_5), (void*)value); } inline static int32_t get_offset_of_FalseString_6() { return static_cast<int32_t>(offsetof(Boolean_t07D1E3F34E4813023D64F584DFF7B34C9D922F37_StaticFields, ___FalseString_6)); } inline String_t* get_FalseString_6() const { return ___FalseString_6; } inline String_t** get_address_of_FalseString_6() { return &___FalseString_6; } inline void set_FalseString_6(String_t* value) { ___FalseString_6 = value; Il2CppCodeGenWriteBarrier((void**)(&___FalseString_6), (void*)value); } }; // System.Char struct Char_tFF60D8E7E89A20BE2294A003734341BD1DF43E14 { public: // System.Char System.Char::m_value Il2CppChar ___m_value_0; public: inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Char_tFF60D8E7E89A20BE2294A003734341BD1DF43E14, ___m_value_0)); } inline Il2CppChar get_m_value_0() const { return ___m_value_0; } inline Il2CppChar* get_address_of_m_value_0() { return &___m_value_0; } inline void set_m_value_0(Il2CppChar value) { ___m_value_0 = value; } }; struct Char_tFF60D8E7E89A20BE2294A003734341BD1DF43E14_StaticFields { public: // System.Byte[] System.Char::categoryForLatin1 ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* ___categoryForLatin1_3; public: inline static int32_t get_offset_of_categoryForLatin1_3() { return static_cast<int32_t>(offsetof(Char_tFF60D8E7E89A20BE2294A003734341BD1DF43E14_StaticFields, ___categoryForLatin1_3)); } inline ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* get_categoryForLatin1_3() const { return ___categoryForLatin1_3; } inline ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726** get_address_of_categoryForLatin1_3() { return &___categoryForLatin1_3; } inline void set_categoryForLatin1_3(ByteU5BU5D_tDBBEB0E8362242FA7223000D978B0DD19D4B0726* value) { ___categoryForLatin1_3 = value; Il2CppCodeGenWriteBarrier((void**)(&___categoryForLatin1_3), (void*)value); } }; // System.Double struct Double_t42821932CB52DE2057E685D0E1AF3DE5033D2181 { public: // System.Double System.Double::m_value double ___m_value_0; public: inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Double_t42821932CB52DE2057E685D0E1AF3DE5033D2181, ___m_value_0)); } inline double get_m_value_0() const { return ___m_value_0; } inline double* get_address_of_m_value_0() { return &___m_value_0; } inline void set_m_value_0(double value) { ___m_value_0 = value; } }; struct Double_t42821932CB52DE2057E685D0E1AF3DE5033D2181_StaticFields { public: // System.Double System.Double::NegativeZero double ___NegativeZero_7; public: inline static int32_t get_offset_of_NegativeZero_7() { return static_cast<int32_t>(offsetof(Double_t42821932CB52DE2057E685D0E1AF3DE5033D2181_StaticFields, ___NegativeZero_7)); } inline double get_NegativeZero_7() const { return ___NegativeZero_7; } inline double* get_address_of_NegativeZero_7() { return &___NegativeZero_7; } inline void set_NegativeZero_7(double value) { ___NegativeZero_7 = value; } }; // System.Enum struct Enum_t23B90B40F60E677A8025267341651C94AE079CDA : public ValueType_tDBF999C1B75C48C68621878250DBF6CDBCF51E52 { public: public: }; struct Enum_t23B90B40F60E677A8025267341651C94AE079CDA_StaticFields { public: // System.Char[] System.Enum::enumSeperatorCharArray CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* ___enumSeperatorCharArray_0; public: inline static int32_t get_offset_of_enumSeperatorCharArray_0() { return static_cast<int32_t>(offsetof(Enum_t23B90B40F60E677A8025267341651C94AE079CDA_StaticFields, ___enumSeperatorCharArray_0)); } inline CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* get_enumSeperatorCharArray_0() const { return ___enumSeperatorCharArray_0; } inline CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34** get_address_of_enumSeperatorCharArray_0() { return &___enumSeperatorCharArray_0; } inline void set_enumSeperatorCharArray_0(CharU5BU5D_t7B7FC5BC8091AA3B9CB0B29CDD80B5EE9254AA34* value) { ___enumSeperatorCharArray_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___enumSeperatorCharArray_0), (void*)value); } }; // Native definition for P/Invoke marshalling of System.Enum struct Enum_t23B90B40F60E677A8025267341651C94AE079CDA_marshaled_pinvoke { }; // Native definition for COM marshalling of System.Enum struct Enum_t23B90B40F60E677A8025267341651C94AE079CDA_marshaled_com { }; // System.Guid struct Guid_t { public: // System.Int32 System.Guid::_a int32_t ____a_1; // System.Int16 System.Guid::_b int16_t ____b_2; // System.Int16 System.Guid::_c int16_t ____c_3; // System.Byte System.Guid::_d uint8_t ____d_4; // System.Byte System.Guid::_e uint8_t ____e_5; // System.Byte System.Guid::_f uint8_t ____f_6; // System.Byte System.Guid::_g uint8_t ____g_7; // System.Byte System.Guid::_h uint8_t ____h_8; // System.Byte System.Guid::_i uint8_t ____i_9; // System.Byte System.Guid::_j uint8_t ____j_10; // System.Byte System.Guid::_k uint8_t ____k_11; public: inline static int32_t get_offset_of__a_1() { return static_cast<int32_t>(offsetof(Guid_t, ____a_1)); } inline int32_t get__a_1() const { return ____a_1; } inline int32_t* get_address_of__a_1() { return &____a_1; } inline void set__a_1(int32_t value) { ____a_1 = value; } inline static int32_t get_offset_of__b_2() { return static_cast<int32_t>(offsetof(Guid_t, ____b_2)); } inline int16_t get__b_2() const { return ____b_2; } inline int16_t* get_address_of__b_2() { return &____b_2; } inline void set__b_2(int16_t value) { ____b_2 = value; } inline static int32_t get_offset_of__c_3() { return static_cast<int32_t>(offsetof(Guid_t, ____c_3)); } inline int16_t get__c_3() const { return ____c_3; } inline int16_t* get_address_of__c_3() { return &____c_3; } inline void set__c_3(int16_t value) { ____c_3 = value; } inline static int32_t get_offset_of__d_4() { return static_cast<int32_t>(offsetof(Guid_t, ____d_4)); } inline uint8_t get__d_4() const { return ____d_4; } inline uint8_t* get_address_of__d_4() { return &____d_4; } inline void set__d_4(uint8_t value) { ____d_4 = value; } inline static int32_t get_offset_of__e_5() { return static_cast<int32_t>(offsetof(Guid_t, ____e_5)); } inline uint8_t get__e_5() const { return ____e_5; } inline uint8_t* get_address_of__e_5() { return &____e_5; } inline void set__e_5(uint8_t value) { ____e_5 = value; } inline static int32_t get_offset_of__f_6() { return static_cast<int32_t>(offsetof(Guid_t, ____f_6)); } inline uint8_t get__f_6() const { return ____f_6; } inline uint8_t* get_address_of__f_6() { return &____f_6; } inline void set__f_6(uint8_t value) { ____f_6 = value; } inline static int32_t get_offset_of__g_7() { return static_cast<int32_t>(offsetof(Guid_t, ____g_7)); } inline uint8_t get__g_7() const { return ____g_7; } inline uint8_t* get_address_of__g_7() { return &____g_7; } inline void set__g_7(uint8_t value) { ____g_7 = value; } inline static int32_t get_offset_of__h_8() { return static_cast<int32_t>(offsetof(Guid_t, ____h_8)); } inline uint8_t get__h_8() const { return ____h_8; } inline uint8_t* get_address_of__h_8() { return &____h_8; } inline void set__h_8(uint8_t value) { ____h_8 = value; } inline static int32_t get_offset_of__i_9() { return static_cast<int32_t>(offsetof(Guid_t, ____i_9)); } inline uint8_t get__i_9() const { return ____i_9; } inline uint8_t* get_address_of__i_9() { return &____i_9; } inline void set__i_9(uint8_t value) { ____i_9 = value; } inline static int32_t get_offset_of__j_10() { return static_cast<int32_t>(offsetof(Guid_t, ____j_10)); } inline uint8_t get__j_10() const { return ____j_10; } inline uint8_t* get_address_of__j_10() { return &____j_10; } inline void set__j_10(uint8_t value) { ____j_10 = value; } inline static int32_t get_offset_of__k_11() { return static_cast<int32_t>(offsetof(Guid_t, ____k_11)); } inline uint8_t get__k_11() const { return ____k_11; } inline uint8_t* get_address_of__k_11() { return &____k_11; } inline void set__k_11(uint8_t value) { ____k_11 = value; } }; struct Guid_t_StaticFields { public: // System.Guid System.Guid::Empty Guid_t ___Empty_0; // System.Object System.Guid::_rngAccess RuntimeObject * ____rngAccess_12; // System.Security.Cryptography.RandomNumberGenerator System.Guid::_rng RandomNumberGenerator_t2CB5440F189986116A2FA9F907AE52644047AC50 * ____rng_13; // System.Security.Cryptography.RandomNumberGenerator System.Guid::_fastRng RandomNumberGenerator_t2CB5440F189986116A2FA9F907AE52644047AC50 * ____fastRng_14; public: inline static int32_t get_offset_of_Empty_0() { return static_cast<int32_t>(offsetof(Guid_t_StaticFields, ___Empty_0)); } inline Guid_t get_Empty_0() const { return ___Empty_0; } inline Guid_t * get_address_of_Empty_0() { return &___Empty_0; } inline void set_Empty_0(Guid_t value) { ___Empty_0 = value; } inline static int32_t get_offset_of__rngAccess_12() { return static_cast<int32_t>(offsetof(Guid_t_StaticFields, ____rngAccess_12)); } inline RuntimeObject * get__rngAccess_12() const { return ____rngAccess_12; } inline RuntimeObject ** get_address_of__rngAccess_12() { return &____rngAccess_12; } inline void set__rngAccess_12(RuntimeObject * value) { ____rngAccess_12 = value; Il2CppCodeGenWriteBarrier((void**)(&____rngAccess_12), (void*)value); } inline static int32_t get_offset_of__rng_13() { return static_cast<int32_t>(offsetof(Guid_t_StaticFields, ____rng_13)); } inline RandomNumberGenerator_t2CB5440F189986116A2FA9F907AE52644047AC50 * get__rng_13() const { return ____rng_13; } inline RandomNumberGenerator_t2CB5440F189986116A2FA9F907AE52644047AC50 ** get_address_of__rng_13() { return &____rng_13; } inline void set__rng_13(RandomNumberGenerator_t2CB5440F189986116A2FA9F907AE52644047AC50 * value) { ____rng_13 = value; Il2CppCodeGenWriteBarrier((void**)(&____rng_13), (void*)value); } inline static int32_t get_offset_of__fastRng_14() { return static_cast<int32_t>(offsetof(Guid_t_StaticFields, ____fastRng_14)); } inline RandomNumberGenerator_t2CB5440F189986116A2FA9F907AE52644047AC50 * get__fastRng_14() const { return ____fastRng_14; } inline RandomNumberGenerator_t2CB5440F189986116A2FA9F907AE52644047AC50 ** get_address_of__fastRng_14() { return &____fastRng_14; } inline void set__fastRng_14(RandomNumberGenerator_t2CB5440F189986116A2FA9F907AE52644047AC50 * value) { ____fastRng_14 = value; Il2CppCodeGenWriteBarrier((void**)(&____fastRng_14), (void*)value); } }; // System.Int32 struct Int32_tFDE5F8CD43D10453F6A2E0C77FE48C6CC7009046 { public: // System.Int32 System.Int32::m_value int32_t ___m_value_0; public: inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Int32_tFDE5F8CD43D10453F6A2E0C77FE48C6CC7009046, ___m_value_0)); } inline int32_t get_m_value_0() const { return ___m_value_0; } inline int32_t* get_address_of_m_value_0() { return &___m_value_0; } inline void set_m_value_0(int32_t value) { ___m_value_0 = value; } }; // System.Numerics.JitIntrinsicAttribute struct JitIntrinsicAttribute_t82AB712B80239488D2D564F30338DE9F2962F488 : public Attribute_t037CA9D9F3B742C063DB364D2EEBBF9FC5772C71 { public: public: }; // System.Numerics.Matrix4x4 struct Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 { public: // System.Single System.Numerics.Matrix4x4::M11 float ___M11_0; // System.Single System.Numerics.Matrix4x4::M12 float ___M12_1; // System.Single System.Numerics.Matrix4x4::M13 float ___M13_2; // System.Single System.Numerics.Matrix4x4::M14 float ___M14_3; // System.Single System.Numerics.Matrix4x4::M21 float ___M21_4; // System.Single System.Numerics.Matrix4x4::M22 float ___M22_5; // System.Single System.Numerics.Matrix4x4::M23 float ___M23_6; // System.Single System.Numerics.Matrix4x4::M24 float ___M24_7; // System.Single System.Numerics.Matrix4x4::M31 float ___M31_8; // System.Single System.Numerics.Matrix4x4::M32 float ___M32_9; // System.Single System.Numerics.Matrix4x4::M33 float ___M33_10; // System.Single System.Numerics.Matrix4x4::M34 float ___M34_11; // System.Single System.Numerics.Matrix4x4::M41 float ___M41_12; // System.Single System.Numerics.Matrix4x4::M42 float ___M42_13; // System.Single System.Numerics.Matrix4x4::M43 float ___M43_14; // System.Single System.Numerics.Matrix4x4::M44 float ___M44_15; public: inline static int32_t get_offset_of_M11_0() { return static_cast<int32_t>(offsetof(Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504, ___M11_0)); } inline float get_M11_0() const { return ___M11_0; } inline float* get_address_of_M11_0() { return &___M11_0; } inline void set_M11_0(float value) { ___M11_0 = value; } inline static int32_t get_offset_of_M12_1() { return static_cast<int32_t>(offsetof(Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504, ___M12_1)); } inline float get_M12_1() const { return ___M12_1; } inline float* get_address_of_M12_1() { return &___M12_1; } inline void set_M12_1(float value) { ___M12_1 = value; } inline static int32_t get_offset_of_M13_2() { return static_cast<int32_t>(offsetof(Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504, ___M13_2)); } inline float get_M13_2() const { return ___M13_2; } inline float* get_address_of_M13_2() { return &___M13_2; } inline void set_M13_2(float value) { ___M13_2 = value; } inline static int32_t get_offset_of_M14_3() { return static_cast<int32_t>(offsetof(Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504, ___M14_3)); } inline float get_M14_3() const { return ___M14_3; } inline float* get_address_of_M14_3() { return &___M14_3; } inline void set_M14_3(float value) { ___M14_3 = value; } inline static int32_t get_offset_of_M21_4() { return static_cast<int32_t>(offsetof(Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504, ___M21_4)); } inline float get_M21_4() const { return ___M21_4; } inline float* get_address_of_M21_4() { return &___M21_4; } inline void set_M21_4(float value) { ___M21_4 = value; } inline static int32_t get_offset_of_M22_5() { return static_cast<int32_t>(offsetof(Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504, ___M22_5)); } inline float get_M22_5() const { return ___M22_5; } inline float* get_address_of_M22_5() { return &___M22_5; } inline void set_M22_5(float value) { ___M22_5 = value; } inline static int32_t get_offset_of_M23_6() { return static_cast<int32_t>(offsetof(Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504, ___M23_6)); } inline float get_M23_6() const { return ___M23_6; } inline float* get_address_of_M23_6() { return &___M23_6; } inline void set_M23_6(float value) { ___M23_6 = value; } inline static int32_t get_offset_of_M24_7() { return static_cast<int32_t>(offsetof(Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504, ___M24_7)); } inline float get_M24_7() const { return ___M24_7; } inline float* get_address_of_M24_7() { return &___M24_7; } inline void set_M24_7(float value) { ___M24_7 = value; } inline static int32_t get_offset_of_M31_8() { return static_cast<int32_t>(offsetof(Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504, ___M31_8)); } inline float get_M31_8() const { return ___M31_8; } inline float* get_address_of_M31_8() { return &___M31_8; } inline void set_M31_8(float value) { ___M31_8 = value; } inline static int32_t get_offset_of_M32_9() { return static_cast<int32_t>(offsetof(Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504, ___M32_9)); } inline float get_M32_9() const { return ___M32_9; } inline float* get_address_of_M32_9() { return &___M32_9; } inline void set_M32_9(float value) { ___M32_9 = value; } inline static int32_t get_offset_of_M33_10() { return static_cast<int32_t>(offsetof(Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504, ___M33_10)); } inline float get_M33_10() const { return ___M33_10; } inline float* get_address_of_M33_10() { return &___M33_10; } inline void set_M33_10(float value) { ___M33_10 = value; } inline static int32_t get_offset_of_M34_11() { return static_cast<int32_t>(offsetof(Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504, ___M34_11)); } inline float get_M34_11() const { return ___M34_11; } inline float* get_address_of_M34_11() { return &___M34_11; } inline void set_M34_11(float value) { ___M34_11 = value; } inline static int32_t get_offset_of_M41_12() { return static_cast<int32_t>(offsetof(Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504, ___M41_12)); } inline float get_M41_12() const { return ___M41_12; } inline float* get_address_of_M41_12() { return &___M41_12; } inline void set_M41_12(float value) { ___M41_12 = value; } inline static int32_t get_offset_of_M42_13() { return static_cast<int32_t>(offsetof(Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504, ___M42_13)); } inline float get_M42_13() const { return ___M42_13; } inline float* get_address_of_M42_13() { return &___M42_13; } inline void set_M42_13(float value) { ___M42_13 = value; } inline static int32_t get_offset_of_M43_14() { return static_cast<int32_t>(offsetof(Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504, ___M43_14)); } inline float get_M43_14() const { return ___M43_14; } inline float* get_address_of_M43_14() { return &___M43_14; } inline void set_M43_14(float value) { ___M43_14 = value; } inline static int32_t get_offset_of_M44_15() { return static_cast<int32_t>(offsetof(Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504, ___M44_15)); } inline float get_M44_15() const { return ___M44_15; } inline float* get_address_of_M44_15() { return &___M44_15; } inline void set_M44_15(float value) { ___M44_15 = value; } }; struct Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504_StaticFields { public: // System.Numerics.Matrix4x4 System.Numerics.Matrix4x4::_identity Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 ____identity_16; public: inline static int32_t get_offset_of__identity_16() { return static_cast<int32_t>(offsetof(Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504_StaticFields, ____identity_16)); } inline Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 get__identity_16() const { return ____identity_16; } inline Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 * get_address_of__identity_16() { return &____identity_16; } inline void set__identity_16(Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 value) { ____identity_16 = value; } }; // System.Numerics.Quaternion struct Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C { public: // System.Single System.Numerics.Quaternion::X float ___X_0; // System.Single System.Numerics.Quaternion::Y float ___Y_1; // System.Single System.Numerics.Quaternion::Z float ___Z_2; // System.Single System.Numerics.Quaternion::W float ___W_3; public: inline static int32_t get_offset_of_X_0() { return static_cast<int32_t>(offsetof(Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C, ___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_tE38335092171ED778CFD631B55A5C81347A93E8C, ___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_tE38335092171ED778CFD631B55A5C81347A93E8C, ___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_tE38335092171ED778CFD631B55A5C81347A93E8C, ___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; } }; // System.Single struct Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E { public: // System.Single System.Single::m_value float ___m_value_0; public: inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E, ___m_value_0)); } inline float get_m_value_0() const { return ___m_value_0; } inline float* get_address_of_m_value_0() { return &___m_value_0; } inline void set_m_value_0(float value) { ___m_value_0 = value; } }; // System.UInt32 struct UInt32_tE60352A06233E4E69DD198BCC67142159F686B15 { public: // System.UInt32 System.UInt32::m_value uint32_t ___m_value_0; public: inline static int32_t get_offset_of_m_value_0() { return static_cast<int32_t>(offsetof(UInt32_tE60352A06233E4E69DD198BCC67142159F686B15, ___m_value_0)); } inline uint32_t get_m_value_0() const { return ___m_value_0; } inline uint32_t* get_address_of_m_value_0() { return &___m_value_0; } inline void set_m_value_0(uint32_t value) { ___m_value_0 = value; } }; // System.Numerics.Vector3 struct Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 { public: // System.Single System.Numerics.Vector3::X float ___X_0; // System.Single System.Numerics.Vector3::Y float ___Y_1; // System.Single System.Numerics.Vector3::Z float ___Z_2; public: inline static int32_t get_offset_of_X_0() { return static_cast<int32_t>(offsetof(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4, ___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(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4, ___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(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4, ___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; } }; // System.Void struct Void_t700C6383A2A510C2CF4DD86DABD5CA9FF70ADAC5 { public: union { struct { }; uint8_t Void_t700C6383A2A510C2CF4DD86DABD5CA9FF70ADAC5__padding[1]; }; public: }; // System.Numerics.Matrix4x4/VectorBasis struct VectorBasis_tAA95F3190BC3156CE4B65B59049D19DF30D38CDE { public: // System.Numerics.Vector3* System.Numerics.Matrix4x4/VectorBasis::Element0 Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 * ___Element0_0; // System.Numerics.Vector3* System.Numerics.Matrix4x4/VectorBasis::Element1 Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 * ___Element1_1; // System.Numerics.Vector3* System.Numerics.Matrix4x4/VectorBasis::Element2 Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 * ___Element2_2; public: inline static int32_t get_offset_of_Element0_0() { return static_cast<int32_t>(offsetof(VectorBasis_tAA95F3190BC3156CE4B65B59049D19DF30D38CDE, ___Element0_0)); } inline Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 * get_Element0_0() const { return ___Element0_0; } inline Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ** get_address_of_Element0_0() { return &___Element0_0; } inline void set_Element0_0(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 * value) { ___Element0_0 = value; } inline static int32_t get_offset_of_Element1_1() { return static_cast<int32_t>(offsetof(VectorBasis_tAA95F3190BC3156CE4B65B59049D19DF30D38CDE, ___Element1_1)); } inline Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 * get_Element1_1() const { return ___Element1_1; } inline Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ** get_address_of_Element1_1() { return &___Element1_1; } inline void set_Element1_1(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 * value) { ___Element1_1 = value; } inline static int32_t get_offset_of_Element2_2() { return static_cast<int32_t>(offsetof(VectorBasis_tAA95F3190BC3156CE4B65B59049D19DF30D38CDE, ___Element2_2)); } inline Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 * get_Element2_2() const { return ___Element2_2; } inline Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ** get_address_of_Element2_2() { return &___Element2_2; } inline void set_Element2_2(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 * value) { ___Element2_2 = value; } }; // System.Globalization.NumberStyles struct NumberStyles_t379EFBF2535E1C950DEC8042704BB663BF636594 { public: // System.Int32 System.Globalization.NumberStyles::value__ int32_t ___value___2; public: inline static int32_t get_offset_of_value___2() { return static_cast<int32_t>(offsetof(NumberStyles_t379EFBF2535E1C950DEC8042704BB663BF636594, ___value___2)); } inline int32_t get_value___2() const { return ___value___2; } inline int32_t* get_address_of_value___2() { return &___value___2; } inline void set_value___2(int32_t value) { ___value___2 = value; } }; // System.Numerics.Matrix4x4/CanonicalBasis struct CanonicalBasis_t26FE040B66523D4A8490BC430B49CAC7FC4DF832 { public: // System.Numerics.Vector3 System.Numerics.Matrix4x4/CanonicalBasis::Row0 Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ___Row0_0; // System.Numerics.Vector3 System.Numerics.Matrix4x4/CanonicalBasis::Row1 Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ___Row1_1; // System.Numerics.Vector3 System.Numerics.Matrix4x4/CanonicalBasis::Row2 Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ___Row2_2; public: inline static int32_t get_offset_of_Row0_0() { return static_cast<int32_t>(offsetof(CanonicalBasis_t26FE040B66523D4A8490BC430B49CAC7FC4DF832, ___Row0_0)); } inline Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 get_Row0_0() const { return ___Row0_0; } inline Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 * get_address_of_Row0_0() { return &___Row0_0; } inline void set_Row0_0(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 value) { ___Row0_0 = value; } inline static int32_t get_offset_of_Row1_1() { return static_cast<int32_t>(offsetof(CanonicalBasis_t26FE040B66523D4A8490BC430B49CAC7FC4DF832, ___Row1_1)); } inline Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 get_Row1_1() const { return ___Row1_1; } inline Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 * get_address_of_Row1_1() { return &___Row1_1; } inline void set_Row1_1(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 value) { ___Row1_1 = value; } inline static int32_t get_offset_of_Row2_2() { return static_cast<int32_t>(offsetof(CanonicalBasis_t26FE040B66523D4A8490BC430B49CAC7FC4DF832, ___Row2_2)); } inline Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 get_Row2_2() const { return ___Row2_2; } inline Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 * get_address_of_Row2_2() { return &___Row2_2; } inline void set_Row2_2(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 value) { ___Row2_2 = value; } }; // System.Globalization.NumberFormatInfo struct NumberFormatInfo_t58780B43B6A840C38FD10C50CDFE2128884CAD1D : public RuntimeObject { public: // System.Int32[] System.Globalization.NumberFormatInfo::numberGroupSizes Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* ___numberGroupSizes_1; // System.Int32[] System.Globalization.NumberFormatInfo::currencyGroupSizes Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* ___currencyGroupSizes_2; // System.Int32[] System.Globalization.NumberFormatInfo::percentGroupSizes Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* ___percentGroupSizes_3; // System.String System.Globalization.NumberFormatInfo::positiveSign String_t* ___positiveSign_4; // System.String System.Globalization.NumberFormatInfo::negativeSign String_t* ___negativeSign_5; // System.String System.Globalization.NumberFormatInfo::numberDecimalSeparator String_t* ___numberDecimalSeparator_6; // System.String System.Globalization.NumberFormatInfo::numberGroupSeparator String_t* ___numberGroupSeparator_7; // System.String System.Globalization.NumberFormatInfo::currencyGroupSeparator String_t* ___currencyGroupSeparator_8; // System.String System.Globalization.NumberFormatInfo::currencyDecimalSeparator String_t* ___currencyDecimalSeparator_9; // System.String System.Globalization.NumberFormatInfo::currencySymbol String_t* ___currencySymbol_10; // System.String System.Globalization.NumberFormatInfo::ansiCurrencySymbol String_t* ___ansiCurrencySymbol_11; // System.String System.Globalization.NumberFormatInfo::nanSymbol String_t* ___nanSymbol_12; // System.String System.Globalization.NumberFormatInfo::positiveInfinitySymbol String_t* ___positiveInfinitySymbol_13; // System.String System.Globalization.NumberFormatInfo::negativeInfinitySymbol String_t* ___negativeInfinitySymbol_14; // System.String System.Globalization.NumberFormatInfo::percentDecimalSeparator String_t* ___percentDecimalSeparator_15; // System.String System.Globalization.NumberFormatInfo::percentGroupSeparator String_t* ___percentGroupSeparator_16; // System.String System.Globalization.NumberFormatInfo::percentSymbol String_t* ___percentSymbol_17; // System.String System.Globalization.NumberFormatInfo::perMilleSymbol String_t* ___perMilleSymbol_18; // System.String[] System.Globalization.NumberFormatInfo::nativeDigits StringU5BU5D_tACEBFEDE350025B554CD507C9AE8FFE49359549A* ___nativeDigits_19; // System.Int32 System.Globalization.NumberFormatInfo::m_dataItem int32_t ___m_dataItem_20; // System.Int32 System.Globalization.NumberFormatInfo::numberDecimalDigits int32_t ___numberDecimalDigits_21; // System.Int32 System.Globalization.NumberFormatInfo::currencyDecimalDigits int32_t ___currencyDecimalDigits_22; // System.Int32 System.Globalization.NumberFormatInfo::currencyPositivePattern int32_t ___currencyPositivePattern_23; // System.Int32 System.Globalization.NumberFormatInfo::currencyNegativePattern int32_t ___currencyNegativePattern_24; // System.Int32 System.Globalization.NumberFormatInfo::numberNegativePattern int32_t ___numberNegativePattern_25; // System.Int32 System.Globalization.NumberFormatInfo::percentPositivePattern int32_t ___percentPositivePattern_26; // System.Int32 System.Globalization.NumberFormatInfo::percentNegativePattern int32_t ___percentNegativePattern_27; // System.Int32 System.Globalization.NumberFormatInfo::percentDecimalDigits int32_t ___percentDecimalDigits_28; // System.Int32 System.Globalization.NumberFormatInfo::digitSubstitution int32_t ___digitSubstitution_29; // System.Boolean System.Globalization.NumberFormatInfo::isReadOnly bool ___isReadOnly_30; // System.Boolean System.Globalization.NumberFormatInfo::m_useUserOverride bool ___m_useUserOverride_31; // System.Boolean System.Globalization.NumberFormatInfo::m_isInvariant bool ___m_isInvariant_32; // System.Boolean System.Globalization.NumberFormatInfo::validForParseAsNumber bool ___validForParseAsNumber_33; // System.Boolean System.Globalization.NumberFormatInfo::validForParseAsCurrency bool ___validForParseAsCurrency_34; public: inline static int32_t get_offset_of_numberGroupSizes_1() { return static_cast<int32_t>(offsetof(NumberFormatInfo_t58780B43B6A840C38FD10C50CDFE2128884CAD1D, ___numberGroupSizes_1)); } inline Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* get_numberGroupSizes_1() const { return ___numberGroupSizes_1; } inline Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32** get_address_of_numberGroupSizes_1() { return &___numberGroupSizes_1; } inline void set_numberGroupSizes_1(Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* value) { ___numberGroupSizes_1 = value; Il2CppCodeGenWriteBarrier((void**)(&___numberGroupSizes_1), (void*)value); } inline static int32_t get_offset_of_currencyGroupSizes_2() { return static_cast<int32_t>(offsetof(NumberFormatInfo_t58780B43B6A840C38FD10C50CDFE2128884CAD1D, ___currencyGroupSizes_2)); } inline Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* get_currencyGroupSizes_2() const { return ___currencyGroupSizes_2; } inline Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32** get_address_of_currencyGroupSizes_2() { return &___currencyGroupSizes_2; } inline void set_currencyGroupSizes_2(Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* value) { ___currencyGroupSizes_2 = value; Il2CppCodeGenWriteBarrier((void**)(&___currencyGroupSizes_2), (void*)value); } inline static int32_t get_offset_of_percentGroupSizes_3() { return static_cast<int32_t>(offsetof(NumberFormatInfo_t58780B43B6A840C38FD10C50CDFE2128884CAD1D, ___percentGroupSizes_3)); } inline Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* get_percentGroupSizes_3() const { return ___percentGroupSizes_3; } inline Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32** get_address_of_percentGroupSizes_3() { return &___percentGroupSizes_3; } inline void set_percentGroupSizes_3(Int32U5BU5D_t70F1BDC14B1786481B176D6139A5E3B87DC54C32* value) { ___percentGroupSizes_3 = value; Il2CppCodeGenWriteBarrier((void**)(&___percentGroupSizes_3), (void*)value); } inline static int32_t get_offset_of_positiveSign_4() { return static_cast<int32_t>(offsetof(NumberFormatInfo_t58780B43B6A840C38FD10C50CDFE2128884CAD1D, ___positiveSign_4)); } inline String_t* get_positiveSign_4() const { return ___positiveSign_4; } inline String_t** get_address_of_positiveSign_4() { return &___positiveSign_4; } inline void set_positiveSign_4(String_t* value) { ___positiveSign_4 = value; Il2CppCodeGenWriteBarrier((void**)(&___positiveSign_4), (void*)value); } inline static int32_t get_offset_of_negativeSign_5() { return static_cast<int32_t>(offsetof(NumberFormatInfo_t58780B43B6A840C38FD10C50CDFE2128884CAD1D, ___negativeSign_5)); } inline String_t* get_negativeSign_5() const { return ___negativeSign_5; } inline String_t** get_address_of_negativeSign_5() { return &___negativeSign_5; } inline void set_negativeSign_5(String_t* value) { ___negativeSign_5 = value; Il2CppCodeGenWriteBarrier((void**)(&___negativeSign_5), (void*)value); } inline static int32_t get_offset_of_numberDecimalSeparator_6() { return static_cast<int32_t>(offsetof(NumberFormatInfo_t58780B43B6A840C38FD10C50CDFE2128884CAD1D, ___numberDecimalSeparator_6)); } inline String_t* get_numberDecimalSeparator_6() const { return ___numberDecimalSeparator_6; } inline String_t** get_address_of_numberDecimalSeparator_6() { return &___numberDecimalSeparator_6; } inline void set_numberDecimalSeparator_6(String_t* value) { ___numberDecimalSeparator_6 = value; Il2CppCodeGenWriteBarrier((void**)(&___numberDecimalSeparator_6), (void*)value); } inline static int32_t get_offset_of_numberGroupSeparator_7() { return static_cast<int32_t>(offsetof(NumberFormatInfo_t58780B43B6A840C38FD10C50CDFE2128884CAD1D, ___numberGroupSeparator_7)); } inline String_t* get_numberGroupSeparator_7() const { return ___numberGroupSeparator_7; } inline String_t** get_address_of_numberGroupSeparator_7() { return &___numberGroupSeparator_7; } inline void set_numberGroupSeparator_7(String_t* value) { ___numberGroupSeparator_7 = value; Il2CppCodeGenWriteBarrier((void**)(&___numberGroupSeparator_7), (void*)value); } inline static int32_t get_offset_of_currencyGroupSeparator_8() { return static_cast<int32_t>(offsetof(NumberFormatInfo_t58780B43B6A840C38FD10C50CDFE2128884CAD1D, ___currencyGroupSeparator_8)); } inline String_t* get_currencyGroupSeparator_8() const { return ___currencyGroupSeparator_8; } inline String_t** get_address_of_currencyGroupSeparator_8() { return &___currencyGroupSeparator_8; } inline void set_currencyGroupSeparator_8(String_t* value) { ___currencyGroupSeparator_8 = value; Il2CppCodeGenWriteBarrier((void**)(&___currencyGroupSeparator_8), (void*)value); } inline static int32_t get_offset_of_currencyDecimalSeparator_9() { return static_cast<int32_t>(offsetof(NumberFormatInfo_t58780B43B6A840C38FD10C50CDFE2128884CAD1D, ___currencyDecimalSeparator_9)); } inline String_t* get_currencyDecimalSeparator_9() const { return ___currencyDecimalSeparator_9; } inline String_t** get_address_of_currencyDecimalSeparator_9() { return &___currencyDecimalSeparator_9; } inline void set_currencyDecimalSeparator_9(String_t* value) { ___currencyDecimalSeparator_9 = value; Il2CppCodeGenWriteBarrier((void**)(&___currencyDecimalSeparator_9), (void*)value); } inline static int32_t get_offset_of_currencySymbol_10() { return static_cast<int32_t>(offsetof(NumberFormatInfo_t58780B43B6A840C38FD10C50CDFE2128884CAD1D, ___currencySymbol_10)); } inline String_t* get_currencySymbol_10() const { return ___currencySymbol_10; } inline String_t** get_address_of_currencySymbol_10() { return &___currencySymbol_10; } inline void set_currencySymbol_10(String_t* value) { ___currencySymbol_10 = value; Il2CppCodeGenWriteBarrier((void**)(&___currencySymbol_10), (void*)value); } inline static int32_t get_offset_of_ansiCurrencySymbol_11() { return static_cast<int32_t>(offsetof(NumberFormatInfo_t58780B43B6A840C38FD10C50CDFE2128884CAD1D, ___ansiCurrencySymbol_11)); } inline String_t* get_ansiCurrencySymbol_11() const { return ___ansiCurrencySymbol_11; } inline String_t** get_address_of_ansiCurrencySymbol_11() { return &___ansiCurrencySymbol_11; } inline void set_ansiCurrencySymbol_11(String_t* value) { ___ansiCurrencySymbol_11 = value; Il2CppCodeGenWriteBarrier((void**)(&___ansiCurrencySymbol_11), (void*)value); } inline static int32_t get_offset_of_nanSymbol_12() { return static_cast<int32_t>(offsetof(NumberFormatInfo_t58780B43B6A840C38FD10C50CDFE2128884CAD1D, ___nanSymbol_12)); } inline String_t* get_nanSymbol_12() const { return ___nanSymbol_12; } inline String_t** get_address_of_nanSymbol_12() { return &___nanSymbol_12; } inline void set_nanSymbol_12(String_t* value) { ___nanSymbol_12 = value; Il2CppCodeGenWriteBarrier((void**)(&___nanSymbol_12), (void*)value); } inline static int32_t get_offset_of_positiveInfinitySymbol_13() { return static_cast<int32_t>(offsetof(NumberFormatInfo_t58780B43B6A840C38FD10C50CDFE2128884CAD1D, ___positiveInfinitySymbol_13)); } inline String_t* get_positiveInfinitySymbol_13() const { return ___positiveInfinitySymbol_13; } inline String_t** get_address_of_positiveInfinitySymbol_13() { return &___positiveInfinitySymbol_13; } inline void set_positiveInfinitySymbol_13(String_t* value) { ___positiveInfinitySymbol_13 = value; Il2CppCodeGenWriteBarrier((void**)(&___positiveInfinitySymbol_13), (void*)value); } inline static int32_t get_offset_of_negativeInfinitySymbol_14() { return static_cast<int32_t>(offsetof(NumberFormatInfo_t58780B43B6A840C38FD10C50CDFE2128884CAD1D, ___negativeInfinitySymbol_14)); } inline String_t* get_negativeInfinitySymbol_14() const { return ___negativeInfinitySymbol_14; } inline String_t** get_address_of_negativeInfinitySymbol_14() { return &___negativeInfinitySymbol_14; } inline void set_negativeInfinitySymbol_14(String_t* value) { ___negativeInfinitySymbol_14 = value; Il2CppCodeGenWriteBarrier((void**)(&___negativeInfinitySymbol_14), (void*)value); } inline static int32_t get_offset_of_percentDecimalSeparator_15() { return static_cast<int32_t>(offsetof(NumberFormatInfo_t58780B43B6A840C38FD10C50CDFE2128884CAD1D, ___percentDecimalSeparator_15)); } inline String_t* get_percentDecimalSeparator_15() const { return ___percentDecimalSeparator_15; } inline String_t** get_address_of_percentDecimalSeparator_15() { return &___percentDecimalSeparator_15; } inline void set_percentDecimalSeparator_15(String_t* value) { ___percentDecimalSeparator_15 = value; Il2CppCodeGenWriteBarrier((void**)(&___percentDecimalSeparator_15), (void*)value); } inline static int32_t get_offset_of_percentGroupSeparator_16() { return static_cast<int32_t>(offsetof(NumberFormatInfo_t58780B43B6A840C38FD10C50CDFE2128884CAD1D, ___percentGroupSeparator_16)); } inline String_t* get_percentGroupSeparator_16() const { return ___percentGroupSeparator_16; } inline String_t** get_address_of_percentGroupSeparator_16() { return &___percentGroupSeparator_16; } inline void set_percentGroupSeparator_16(String_t* value) { ___percentGroupSeparator_16 = value; Il2CppCodeGenWriteBarrier((void**)(&___percentGroupSeparator_16), (void*)value); } inline static int32_t get_offset_of_percentSymbol_17() { return static_cast<int32_t>(offsetof(NumberFormatInfo_t58780B43B6A840C38FD10C50CDFE2128884CAD1D, ___percentSymbol_17)); } inline String_t* get_percentSymbol_17() const { return ___percentSymbol_17; } inline String_t** get_address_of_percentSymbol_17() { return &___percentSymbol_17; } inline void set_percentSymbol_17(String_t* value) { ___percentSymbol_17 = value; Il2CppCodeGenWriteBarrier((void**)(&___percentSymbol_17), (void*)value); } inline static int32_t get_offset_of_perMilleSymbol_18() { return static_cast<int32_t>(offsetof(NumberFormatInfo_t58780B43B6A840C38FD10C50CDFE2128884CAD1D, ___perMilleSymbol_18)); } inline String_t* get_perMilleSymbol_18() const { return ___perMilleSymbol_18; } inline String_t** get_address_of_perMilleSymbol_18() { return &___perMilleSymbol_18; } inline void set_perMilleSymbol_18(String_t* value) { ___perMilleSymbol_18 = value; Il2CppCodeGenWriteBarrier((void**)(&___perMilleSymbol_18), (void*)value); } inline static int32_t get_offset_of_nativeDigits_19() { return static_cast<int32_t>(offsetof(NumberFormatInfo_t58780B43B6A840C38FD10C50CDFE2128884CAD1D, ___nativeDigits_19)); } inline StringU5BU5D_tACEBFEDE350025B554CD507C9AE8FFE49359549A* get_nativeDigits_19() const { return ___nativeDigits_19; } inline StringU5BU5D_tACEBFEDE350025B554CD507C9AE8FFE49359549A** get_address_of_nativeDigits_19() { return &___nativeDigits_19; } inline void set_nativeDigits_19(StringU5BU5D_tACEBFEDE350025B554CD507C9AE8FFE49359549A* value) { ___nativeDigits_19 = value; Il2CppCodeGenWriteBarrier((void**)(&___nativeDigits_19), (void*)value); } inline static int32_t get_offset_of_m_dataItem_20() { return static_cast<int32_t>(offsetof(NumberFormatInfo_t58780B43B6A840C38FD10C50CDFE2128884CAD1D, ___m_dataItem_20)); } inline int32_t get_m_dataItem_20() const { return ___m_dataItem_20; } inline int32_t* get_address_of_m_dataItem_20() { return &___m_dataItem_20; } inline void set_m_dataItem_20(int32_t value) { ___m_dataItem_20 = value; } inline static int32_t get_offset_of_numberDecimalDigits_21() { return static_cast<int32_t>(offsetof(NumberFormatInfo_t58780B43B6A840C38FD10C50CDFE2128884CAD1D, ___numberDecimalDigits_21)); } inline int32_t get_numberDecimalDigits_21() const { return ___numberDecimalDigits_21; } inline int32_t* get_address_of_numberDecimalDigits_21() { return &___numberDecimalDigits_21; } inline void set_numberDecimalDigits_21(int32_t value) { ___numberDecimalDigits_21 = value; } inline static int32_t get_offset_of_currencyDecimalDigits_22() { return static_cast<int32_t>(offsetof(NumberFormatInfo_t58780B43B6A840C38FD10C50CDFE2128884CAD1D, ___currencyDecimalDigits_22)); } inline int32_t get_currencyDecimalDigits_22() const { return ___currencyDecimalDigits_22; } inline int32_t* get_address_of_currencyDecimalDigits_22() { return &___currencyDecimalDigits_22; } inline void set_currencyDecimalDigits_22(int32_t value) { ___currencyDecimalDigits_22 = value; } inline static int32_t get_offset_of_currencyPositivePattern_23() { return static_cast<int32_t>(offsetof(NumberFormatInfo_t58780B43B6A840C38FD10C50CDFE2128884CAD1D, ___currencyPositivePattern_23)); } inline int32_t get_currencyPositivePattern_23() const { return ___currencyPositivePattern_23; } inline int32_t* get_address_of_currencyPositivePattern_23() { return &___currencyPositivePattern_23; } inline void set_currencyPositivePattern_23(int32_t value) { ___currencyPositivePattern_23 = value; } inline static int32_t get_offset_of_currencyNegativePattern_24() { return static_cast<int32_t>(offsetof(NumberFormatInfo_t58780B43B6A840C38FD10C50CDFE2128884CAD1D, ___currencyNegativePattern_24)); } inline int32_t get_currencyNegativePattern_24() const { return ___currencyNegativePattern_24; } inline int32_t* get_address_of_currencyNegativePattern_24() { return &___currencyNegativePattern_24; } inline void set_currencyNegativePattern_24(int32_t value) { ___currencyNegativePattern_24 = value; } inline static int32_t get_offset_of_numberNegativePattern_25() { return static_cast<int32_t>(offsetof(NumberFormatInfo_t58780B43B6A840C38FD10C50CDFE2128884CAD1D, ___numberNegativePattern_25)); } inline int32_t get_numberNegativePattern_25() const { return ___numberNegativePattern_25; } inline int32_t* get_address_of_numberNegativePattern_25() { return &___numberNegativePattern_25; } inline void set_numberNegativePattern_25(int32_t value) { ___numberNegativePattern_25 = value; } inline static int32_t get_offset_of_percentPositivePattern_26() { return static_cast<int32_t>(offsetof(NumberFormatInfo_t58780B43B6A840C38FD10C50CDFE2128884CAD1D, ___percentPositivePattern_26)); } inline int32_t get_percentPositivePattern_26() const { return ___percentPositivePattern_26; } inline int32_t* get_address_of_percentPositivePattern_26() { return &___percentPositivePattern_26; } inline void set_percentPositivePattern_26(int32_t value) { ___percentPositivePattern_26 = value; } inline static int32_t get_offset_of_percentNegativePattern_27() { return static_cast<int32_t>(offsetof(NumberFormatInfo_t58780B43B6A840C38FD10C50CDFE2128884CAD1D, ___percentNegativePattern_27)); } inline int32_t get_percentNegativePattern_27() const { return ___percentNegativePattern_27; } inline int32_t* get_address_of_percentNegativePattern_27() { return &___percentNegativePattern_27; } inline void set_percentNegativePattern_27(int32_t value) { ___percentNegativePattern_27 = value; } inline static int32_t get_offset_of_percentDecimalDigits_28() { return static_cast<int32_t>(offsetof(NumberFormatInfo_t58780B43B6A840C38FD10C50CDFE2128884CAD1D, ___percentDecimalDigits_28)); } inline int32_t get_percentDecimalDigits_28() const { return ___percentDecimalDigits_28; } inline int32_t* get_address_of_percentDecimalDigits_28() { return &___percentDecimalDigits_28; } inline void set_percentDecimalDigits_28(int32_t value) { ___percentDecimalDigits_28 = value; } inline static int32_t get_offset_of_digitSubstitution_29() { return static_cast<int32_t>(offsetof(NumberFormatInfo_t58780B43B6A840C38FD10C50CDFE2128884CAD1D, ___digitSubstitution_29)); } inline int32_t get_digitSubstitution_29() const { return ___digitSubstitution_29; } inline int32_t* get_address_of_digitSubstitution_29() { return &___digitSubstitution_29; } inline void set_digitSubstitution_29(int32_t value) { ___digitSubstitution_29 = value; } inline static int32_t get_offset_of_isReadOnly_30() { return static_cast<int32_t>(offsetof(NumberFormatInfo_t58780B43B6A840C38FD10C50CDFE2128884CAD1D, ___isReadOnly_30)); } inline bool get_isReadOnly_30() const { return ___isReadOnly_30; } inline bool* get_address_of_isReadOnly_30() { return &___isReadOnly_30; } inline void set_isReadOnly_30(bool value) { ___isReadOnly_30 = value; } inline static int32_t get_offset_of_m_useUserOverride_31() { return static_cast<int32_t>(offsetof(NumberFormatInfo_t58780B43B6A840C38FD10C50CDFE2128884CAD1D, ___m_useUserOverride_31)); } inline bool get_m_useUserOverride_31() const { return ___m_useUserOverride_31; } inline bool* get_address_of_m_useUserOverride_31() { return &___m_useUserOverride_31; } inline void set_m_useUserOverride_31(bool value) { ___m_useUserOverride_31 = value; } inline static int32_t get_offset_of_m_isInvariant_32() { return static_cast<int32_t>(offsetof(NumberFormatInfo_t58780B43B6A840C38FD10C50CDFE2128884CAD1D, ___m_isInvariant_32)); } inline bool get_m_isInvariant_32() const { return ___m_isInvariant_32; } inline bool* get_address_of_m_isInvariant_32() { return &___m_isInvariant_32; } inline void set_m_isInvariant_32(bool value) { ___m_isInvariant_32 = value; } inline static int32_t get_offset_of_validForParseAsNumber_33() { return static_cast<int32_t>(offsetof(NumberFormatInfo_t58780B43B6A840C38FD10C50CDFE2128884CAD1D, ___validForParseAsNumber_33)); } inline bool get_validForParseAsNumber_33() const { return ___validForParseAsNumber_33; } inline bool* get_address_of_validForParseAsNumber_33() { return &___validForParseAsNumber_33; } inline void set_validForParseAsNumber_33(bool value) { ___validForParseAsNumber_33 = value; } inline static int32_t get_offset_of_validForParseAsCurrency_34() { return static_cast<int32_t>(offsetof(NumberFormatInfo_t58780B43B6A840C38FD10C50CDFE2128884CAD1D, ___validForParseAsCurrency_34)); } inline bool get_validForParseAsCurrency_34() const { return ___validForParseAsCurrency_34; } inline bool* get_address_of_validForParseAsCurrency_34() { return &___validForParseAsCurrency_34; } inline void set_validForParseAsCurrency_34(bool value) { ___validForParseAsCurrency_34 = value; } }; struct NumberFormatInfo_t58780B43B6A840C38FD10C50CDFE2128884CAD1D_StaticFields { public: // System.Globalization.NumberFormatInfo modreq(System.Runtime.CompilerServices.IsVolatile) System.Globalization.NumberFormatInfo::invariantInfo NumberFormatInfo_t58780B43B6A840C38FD10C50CDFE2128884CAD1D * ___invariantInfo_0; public: inline static int32_t get_offset_of_invariantInfo_0() { return static_cast<int32_t>(offsetof(NumberFormatInfo_t58780B43B6A840C38FD10C50CDFE2128884CAD1D_StaticFields, ___invariantInfo_0)); } inline NumberFormatInfo_t58780B43B6A840C38FD10C50CDFE2128884CAD1D * get_invariantInfo_0() const { return ___invariantInfo_0; } inline NumberFormatInfo_t58780B43B6A840C38FD10C50CDFE2128884CAD1D ** get_address_of_invariantInfo_0() { return &___invariantInfo_0; } inline void set_invariantInfo_0(NumberFormatInfo_t58780B43B6A840C38FD10C50CDFE2128884CAD1D * value) { ___invariantInfo_0 = value; Il2CppCodeGenWriteBarrier((void**)(&___invariantInfo_0), (void*)value); } }; #ifdef __clang__ #pragma clang diagnostic pop #endif // System.Object[] struct ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE : public RuntimeArray { public: ALIGN_FIELD (8) RuntimeObject * m_Items[1]; public: inline RuntimeObject * GetAt(il2cpp_array_size_t index) const { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items[index]; } inline RuntimeObject ** GetAddressAt(il2cpp_array_size_t index) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); return m_Items + index; } inline void SetAt(il2cpp_array_size_t index, RuntimeObject * value) { IL2CPP_ARRAY_BOUNDS_CHECK(index, (uint32_t)(this)->max_length); m_Items[index] = value; Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value); } inline RuntimeObject * GetAtUnchecked(il2cpp_array_size_t index) const { return m_Items[index]; } inline RuntimeObject ** GetAddressAtUnchecked(il2cpp_array_size_t index) { return m_Items + index; } inline void SetAtUnchecked(il2cpp_array_size_t index, RuntimeObject * value) { m_Items[index] = value; Il2CppCodeGenWriteBarrier((void**)m_Items + index, (void*)value); } }; // System.Guid System.Guid::NewGuid() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Guid_t Guid_NewGuid_m5BD19325820690ED6ECA31D67BC2CD474DC4FDB0 (const RuntimeMethod* method); // System.Int32 System.Guid::GetHashCode() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Guid_GetHashCode_mD32F5054E937C98B3D082594B3849808F1E92AE7 (Guid_t * __this, const RuntimeMethod* method); // System.Void System.Attribute::.ctor() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Attribute__ctor_m5C1862A7DFC2C25A4797A8C5F681FBB5CB53ECE1 (Attribute_t037CA9D9F3B742C063DB364D2EEBBF9FC5772C71 * __this, const RuntimeMethod* method); // System.Void System.Numerics.Matrix4x4::.ctor(System.Single,System.Single,System.Single,System.Single,System.Single,System.Single,System.Single,System.Single,System.Single,System.Single,System.Single,System.Single,System.Single,System.Single,System.Single,System.Single) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Matrix4x4__ctor_mBC052C64AB9F02208DA7EFE3BD75EB9BEE747222 (Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 * __this, float ___m110, float ___m121, float ___m132, float ___m143, float ___m214, float ___m225, float ___m236, float ___m247, float ___m318, float ___m329, float ___m3310, float ___m3411, float ___m4112, float ___m4213, float ___m4314, float ___m4415, const RuntimeMethod* method); // System.Single System.Numerics.Matrix4x4::GetDeterminant() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float Matrix4x4_GetDeterminant_m47CD87D3ED2E5F46B85514D721F966DCE9A50520 (Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 * __this, const RuntimeMethod* method); // System.Numerics.Matrix4x4 System.Numerics.Matrix4x4::get_Identity() IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 Matrix4x4_get_Identity_mCB71019837846B0A040FE9A74F6DDD0DA2FE8E4D_inline (const RuntimeMethod* method); // System.Void System.Numerics.Vector3::.ctor(System.Single,System.Single,System.Single) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Vector3__ctor_m7B558F4C62FE430FB22DC54F4BB1865025B04B84 (Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 * __this, float ___x0, float ___y1, float ___z2, const RuntimeMethod* method); // System.Single System.Numerics.Vector3::Length() IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR float Vector3_Length_mFF8BCD98596F2A4DB1549D89DF257A97FD671DEF_inline (Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 * __this, const RuntimeMethod* method); // System.Numerics.Vector3 System.Numerics.Vector3::Normalize(System.Numerics.Vector3) IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 Vector3_Normalize_m283C15DA0D64B3599A28611DFB37802E459AF9D5_inline (Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ___value0, const RuntimeMethod* method); // System.Single System.MathF::Abs(System.Single) IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR float MathF_Abs_m39EE850E0173823EBD1862FC41C047087C77D411_inline (float ___x0, const RuntimeMethod* method); // System.Numerics.Vector3 System.Numerics.Vector3::Cross(System.Numerics.Vector3,System.Numerics.Vector3) IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 Vector3_Cross_mEBF753748F2B7FE0FBB987135D753502193773D8_inline (Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ___vector10, Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ___vector21, const RuntimeMethod* method); // System.Numerics.Vector3 System.Numerics.Vector3::op_UnaryNegation(System.Numerics.Vector3) IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 Vector3_op_UnaryNegation_m9E58D89BFF6907FA80A522CF563B1E893C71D9D9_inline (Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ___value0, const RuntimeMethod* method); // System.Numerics.Quaternion System.Numerics.Quaternion::get_Identity() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C Quaternion_get_Identity_mE482B0FDD07020157F9B6040589201033F432DEA (const RuntimeMethod* method); // System.Numerics.Quaternion System.Numerics.Quaternion::CreateFromRotationMatrix(System.Numerics.Matrix4x4) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C Quaternion_CreateFromRotationMatrix_m6D75AB933960CD5810A6F41FAA5443C2286ECBF7 (Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 ___matrix0, const RuntimeMethod* method); // System.Boolean System.Numerics.Matrix4x4::Equals(System.Numerics.Matrix4x4) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Matrix4x4_Equals_m45EE9FA141FCCE1614882A49F0F1C748EC43481C (Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 * __this, Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 ___other0, const RuntimeMethod* method); // System.Boolean System.Numerics.Matrix4x4::Equals(System.Object) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Matrix4x4_Equals_mFEE640706AC48F5168BEA868A6BF9E43D7A4DA30 (Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 * __this, RuntimeObject * ___obj0, const RuntimeMethod* method); // System.Globalization.CultureInfo System.Globalization.CultureInfo::get_CurrentCulture() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 * CultureInfo_get_CurrentCulture_m99E5F5BD20445F2A73F7EA0014A4E783DF3840BB (const RuntimeMethod* method); // System.String System.Single::ToString(System.IFormatProvider) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* Single_ToString_mF554E46C641C609768519378FB0486DFD7F82985 (float* __this, RuntimeObject* ___provider0, const RuntimeMethod* method); // System.String System.String::Format(System.IFormatProvider,System.String,System.Object[]) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* String_Format_mF96F0621DC567D09C07F1EAC66B31AD261A9DC21 (RuntimeObject* ___provider0, String_t* ___format1, ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE* ___args2, const RuntimeMethod* method); // System.String System.Numerics.Matrix4x4::ToString() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* Matrix4x4_ToString_m02E3732C819E63C7121AFA8C6016FE96CA2E9DD5 (Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 * __this, const RuntimeMethod* method); // System.Int32 System.Single::GetHashCode() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Single_GetHashCode_m7662E1812DDDBC85D464398740CFFC3588DFB2C9 (float* __this, const RuntimeMethod* method); // System.Int32 System.Numerics.Matrix4x4::GetHashCode() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Matrix4x4_GetHashCode_m069B4006A635CC8B593758FFCCEEEF25BC906CC3 (Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 * __this, const RuntimeMethod* method); // System.Void System.Numerics.Quaternion::.ctor(System.Single,System.Single,System.Single,System.Single) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Quaternion__ctor_m5F4248FE191AF699AFDC210DCFE25B1D7298DFA0 (Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C * __this, float ___x0, float ___y1, float ___z2, float ___w3, const RuntimeMethod* method); // System.Single System.MathF::Sqrt(System.Single) IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR float MathF_Sqrt_m904217E240C5181543997D0466D6D9A0675C2435_inline (float ___x0, const RuntimeMethod* method); // System.Boolean System.Numerics.Quaternion::Equals(System.Numerics.Quaternion) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Quaternion_Equals_mFB70C52814F0C67B1A4A719C916A8EF0D8DB5ED5 (Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C * __this, Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C ___other0, const RuntimeMethod* method); // System.Boolean System.Numerics.Quaternion::Equals(System.Object) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Quaternion_Equals_m981AE209DDA0F4A09C797E0651325A5AF4C9B7D9 (Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C * __this, RuntimeObject * ___obj0, const RuntimeMethod* method); // System.String System.Numerics.Quaternion::ToString() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* Quaternion_ToString_mA741B70C582F99AF851DB20A0C9CD7569D930783 (Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C * __this, const RuntimeMethod* method); // System.Int32 System.Numerics.Quaternion::GetHashCode() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Quaternion_GetHashCode_m2AEEE9647E9B6BF1554BA67FF3C369409FD0B83A (Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C * __this, const RuntimeMethod* method); // System.Int32 System.Numerics.Hashing.HashHelpers::Combine(System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t HashHelpers_Combine_mFCC110506B1B6EA51DBCAC0F7F1E58EED742A3A5 (int32_t ___h10, int32_t ___h21, const RuntimeMethod* method); // System.Int32 System.Numerics.Vector3::GetHashCode() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Vector3_GetHashCode_m5007ED59E489EFDEFCB1D868FC948EDC49B6339D (Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 * __this, const RuntimeMethod* method); // System.Boolean System.Numerics.Vector3::Equals(System.Numerics.Vector3) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Vector3_Equals_m32203E71072E2FF76E14F073E2207BCED63F1E82 (Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 * __this, Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ___other0, const RuntimeMethod* method); // System.Boolean System.Numerics.Vector3::Equals(System.Object) IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR bool Vector3_Equals_m54F58C09083B02681DAE2727B020EAC20AEFD2AB_inline (Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 * __this, RuntimeObject * ___obj0, const RuntimeMethod* method); // System.String System.Numerics.Vector3::ToString(System.String,System.IFormatProvider) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* Vector3_ToString_m9B642FAC459C548A376365637E82DFB5001E2DAD (Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 * __this, String_t* ___format0, RuntimeObject* ___formatProvider1, const RuntimeMethod* method); // System.String System.Numerics.Vector3::ToString() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* Vector3_ToString_m5D8C52853AAC8AC53276607BB9105CFB307B157E (Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 * __this, const RuntimeMethod* method); // System.Void System.Text.StringBuilder::.ctor() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void StringBuilder__ctor_m5A81DE19E748F748E19FF13FB6FFD2547F9212D9 (StringBuilder_t * __this, const RuntimeMethod* method); // System.Globalization.NumberFormatInfo System.Globalization.NumberFormatInfo::GetInstance(System.IFormatProvider) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR NumberFormatInfo_t58780B43B6A840C38FD10C50CDFE2128884CAD1D * NumberFormatInfo_GetInstance_mE5108A48B8BFDB2158C05951FACC08AFB09FDDBB (RuntimeObject* ___formatProvider0, const RuntimeMethod* method); // System.String System.Globalization.NumberFormatInfo::get_NumberGroupSeparator() IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR String_t* NumberFormatInfo_get_NumberGroupSeparator_m1D17A9A056016A546F4C5255FA2DBEC532FC1BF1_inline (NumberFormatInfo_t58780B43B6A840C38FD10C50CDFE2128884CAD1D * __this, const RuntimeMethod* method); // System.Text.StringBuilder System.Text.StringBuilder::Append(System.Char) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR StringBuilder_t * StringBuilder_Append_m1ADA3C16E40BF253BCDB5F9579B4DBA9C3E5B22E (StringBuilder_t * __this, Il2CppChar ___value0, const RuntimeMethod* method); // System.String System.Single::ToString(System.String,System.IFormatProvider) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* Single_ToString_m7631D332703B4197EAA7DC0BA067CE7E16334D8B (float* __this, String_t* ___format0, RuntimeObject* ___provider1, const RuntimeMethod* method); // System.Text.StringBuilder System.Text.StringBuilder::Append(System.String) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR StringBuilder_t * StringBuilder_Append_mD02AB0C74C6F55E3E330818C77EC147E22096FB1 (StringBuilder_t * __this, String_t* ___value0, const RuntimeMethod* method); // System.Boolean System.Numerics.Vector::get_IsHardwareAccelerated() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Vector_get_IsHardwareAccelerated_m3BD40AD300CA3DBE95EEEF5D3A09AA2C276525B0 (const RuntimeMethod* method); // System.Single System.Numerics.Vector3::Dot(System.Numerics.Vector3,System.Numerics.Vector3) IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR float Vector3_Dot_m61A00E6400E6F54634C0DCD262E1B756951F0728_inline (Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ___vector10, Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ___vector21, const RuntimeMethod* method); // System.Numerics.Vector3 System.Numerics.Vector3::op_Division(System.Numerics.Vector3,System.Single) IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 Vector3_op_Division_m70FF5AF01AFA0EA9744F5677C333EE85E91DF56A_inline (Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ___value10, float ___value21, const RuntimeMethod* method); // System.Numerics.Vector3 System.Numerics.Vector3::get_Zero() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 Vector3_get_Zero_mDDD8591FBCC5C4DDCE318AE5AA2CA1358E2485E3 (const RuntimeMethod* method); // System.Numerics.Vector3 System.Numerics.Vector3::op_Subtraction(System.Numerics.Vector3,System.Numerics.Vector3) IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 Vector3_op_Subtraction_m3E0D889641F5863AA583B87BA0D025338276A985_inline (Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ___left0, Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ___right1, const RuntimeMethod* method); #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Int32 System.Numerics.Hashing.HashHelpers::Combine(System.Int32,System.Int32) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t HashHelpers_Combine_mFCC110506B1B6EA51DBCAC0F7F1E58EED742A3A5 (int32_t ___h10, int32_t ___h21, const RuntimeMethod* method) { { int32_t L_0 = ___h10; int32_t L_1 = ___h10; int32_t L_2 = ___h10; int32_t L_3 = ___h21; return ((int32_t)((int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)((int32_t)((int32_t)((int32_t)L_0<<(int32_t)5))|(int32_t)((int32_t)((uint32_t)L_1>>((int32_t)27))))), (int32_t)L_2))^(int32_t)L_3)); } } // System.Void System.Numerics.Hashing.HashHelpers::.cctor() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void HashHelpers__cctor_m1477BC6C7AF72EB91F14874B0A27481761106EF4 (const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Guid_t_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&HashHelpers_t9CEAA5EB2CF719D22684A23A40FD24BA498775E4_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } Guid_t V_0; memset((&V_0), 0, sizeof(V_0)); { IL2CPP_RUNTIME_CLASS_INIT(Guid_t_il2cpp_TypeInfo_var); Guid_t L_0; L_0 = Guid_NewGuid_m5BD19325820690ED6ECA31D67BC2CD474DC4FDB0(/*hidden argument*/NULL); V_0 = L_0; int32_t L_1; L_1 = Guid_GetHashCode_mD32F5054E937C98B3D082594B3849808F1E92AE7((Guid_t *)(&V_0), /*hidden argument*/NULL); ((HashHelpers_t9CEAA5EB2CF719D22684A23A40FD24BA498775E4_StaticFields*)il2cpp_codegen_static_fields_for(HashHelpers_t9CEAA5EB2CF719D22684A23A40FD24BA498775E4_il2cpp_TypeInfo_var))->set_RandomSeed_0(L_1); return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Void System.Numerics.JitIntrinsicAttribute::.ctor() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void JitIntrinsicAttribute__ctor_m4DE4A897A37F3A1DB65E3571625884D6A1CE7195 (JitIntrinsicAttribute_t82AB712B80239488D2D564F30338DE9F2962F488 * __this, const RuntimeMethod* method) { { Attribute__ctor_m5C1862A7DFC2C25A4797A8C5F681FBB5CB53ECE1(__this, /*hidden argument*/NULL); return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Single System.MathF::Abs(System.Single) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float MathF_Abs_m39EE850E0173823EBD1862FC41C047087C77D411 (float ___x0, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Math_tA269614262430118C9FC5C4D9EF4F61C812568F0_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } { float L_0 = ___x0; IL2CPP_RUNTIME_CLASS_INIT(Math_tA269614262430118C9FC5C4D9EF4F61C812568F0_il2cpp_TypeInfo_var); float L_1; L_1 = fabsf(L_0); return L_1; } } // System.Single System.MathF::Sqrt(System.Single) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float MathF_Sqrt_m904217E240C5181543997D0466D6D9A0675C2435 (float ___x0, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Math_tA269614262430118C9FC5C4D9EF4F61C812568F0_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } { float L_0 = ___x0; IL2CPP_RUNTIME_CLASS_INIT(Math_tA269614262430118C9FC5C4D9EF4F61C812568F0_il2cpp_TypeInfo_var); double L_1; L_1 = sqrt(((double)((double)L_0))); return ((float)((float)L_1)); } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Numerics.Matrix4x4 System.Numerics.Matrix4x4::get_Identity() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 Matrix4x4_get_Identity_mCB71019837846B0A040FE9A74F6DDD0DA2FE8E4D (const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } { IL2CPP_RUNTIME_CLASS_INIT(Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504_il2cpp_TypeInfo_var); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_0 = ((Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504_StaticFields*)il2cpp_codegen_static_fields_for(Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504_il2cpp_TypeInfo_var))->get__identity_16(); return L_0; } } // System.Void System.Numerics.Matrix4x4::.ctor(System.Single,System.Single,System.Single,System.Single,System.Single,System.Single,System.Single,System.Single,System.Single,System.Single,System.Single,System.Single,System.Single,System.Single,System.Single,System.Single) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Matrix4x4__ctor_mBC052C64AB9F02208DA7EFE3BD75EB9BEE747222 (Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 * __this, float ___m110, float ___m121, float ___m132, float ___m143, float ___m214, float ___m225, float ___m236, float ___m247, float ___m318, float ___m329, float ___m3310, float ___m3411, float ___m4112, float ___m4213, float ___m4314, float ___m4415, const RuntimeMethod* method) { { float L_0 = ___m110; __this->set_M11_0(L_0); float L_1 = ___m121; __this->set_M12_1(L_1); float L_2 = ___m132; __this->set_M13_2(L_2); float L_3 = ___m143; __this->set_M14_3(L_3); float L_4 = ___m214; __this->set_M21_4(L_4); float L_5 = ___m225; __this->set_M22_5(L_5); float L_6 = ___m236; __this->set_M23_6(L_6); float L_7 = ___m247; __this->set_M24_7(L_7); float L_8 = ___m318; __this->set_M31_8(L_8); float L_9 = ___m329; __this->set_M32_9(L_9); float L_10 = ___m3310; __this->set_M33_10(L_10); float L_11 = ___m3411; __this->set_M34_11(L_11); float L_12 = ___m4112; __this->set_M41_12(L_12); float L_13 = ___m4213; __this->set_M42_13(L_13); float L_14 = ___m4314; __this->set_M43_14(L_14); float L_15 = ___m4415; __this->set_M44_15(L_15); return; } } IL2CPP_EXTERN_C void Matrix4x4__ctor_mBC052C64AB9F02208DA7EFE3BD75EB9BEE747222_AdjustorThunk (RuntimeObject * __this, float ___m110, float ___m121, float ___m132, float ___m143, float ___m214, float ___m225, float ___m236, float ___m247, float ___m318, float ___m329, float ___m3310, float ___m3411, float ___m4112, float ___m4213, float ___m4314, float ___m4415, const RuntimeMethod* method) { int32_t _offset = 1; Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 * _thisAdjusted = reinterpret_cast<Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 *>(__this + _offset); Matrix4x4__ctor_mBC052C64AB9F02208DA7EFE3BD75EB9BEE747222(_thisAdjusted, ___m110, ___m121, ___m132, ___m143, ___m214, ___m225, ___m236, ___m247, ___m318, ___m329, ___m3310, ___m3411, ___m4112, ___m4213, ___m4314, ___m4415, method); } // System.Single System.Numerics.Matrix4x4::GetDeterminant() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float Matrix4x4_GetDeterminant_m47CD87D3ED2E5F46B85514D721F966DCE9A50520 (Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 * __this, const RuntimeMethod* method) { float V_0 = 0.0f; float V_1 = 0.0f; float V_2 = 0.0f; float V_3 = 0.0f; float V_4 = 0.0f; float V_5 = 0.0f; float V_6 = 0.0f; float V_7 = 0.0f; float V_8 = 0.0f; float V_9 = 0.0f; float V_10 = 0.0f; float V_11 = 0.0f; float V_12 = 0.0f; float V_13 = 0.0f; float V_14 = 0.0f; float V_15 = 0.0f; float V_16 = 0.0f; float V_17 = 0.0f; float V_18 = 0.0f; float V_19 = 0.0f; { float L_0 = __this->get_M11_0(); float L_1 = __this->get_M12_1(); V_0 = L_1; float L_2 = __this->get_M13_2(); V_1 = L_2; float L_3 = __this->get_M14_3(); V_2 = L_3; float L_4 = __this->get_M21_4(); V_3 = L_4; float L_5 = __this->get_M22_5(); V_4 = L_5; float L_6 = __this->get_M23_6(); V_5 = L_6; float L_7 = __this->get_M24_7(); V_6 = L_7; float L_8 = __this->get_M31_8(); float L_9 = __this->get_M32_9(); V_7 = L_9; float L_10 = __this->get_M33_10(); V_8 = L_10; float L_11 = __this->get_M34_11(); V_9 = L_11; float L_12 = __this->get_M41_12(); V_10 = L_12; float L_13 = __this->get_M42_13(); V_11 = L_13; float L_14 = __this->get_M43_14(); V_12 = L_14; float L_15 = __this->get_M44_15(); V_13 = L_15; float L_16 = V_8; float L_17 = V_13; float L_18 = V_9; float L_19 = V_12; V_14 = ((float)il2cpp_codegen_subtract((float)((float)il2cpp_codegen_multiply((float)L_16, (float)L_17)), (float)((float)il2cpp_codegen_multiply((float)L_18, (float)L_19)))); float L_20 = V_7; float L_21 = V_13; float L_22 = V_9; float L_23 = V_11; V_15 = ((float)il2cpp_codegen_subtract((float)((float)il2cpp_codegen_multiply((float)L_20, (float)L_21)), (float)((float)il2cpp_codegen_multiply((float)L_22, (float)L_23)))); float L_24 = V_7; float L_25 = V_12; float L_26 = V_8; float L_27 = V_11; V_16 = ((float)il2cpp_codegen_subtract((float)((float)il2cpp_codegen_multiply((float)L_24, (float)L_25)), (float)((float)il2cpp_codegen_multiply((float)L_26, (float)L_27)))); float L_28 = L_8; float L_29 = V_13; float L_30 = V_9; float L_31 = V_10; V_17 = ((float)il2cpp_codegen_subtract((float)((float)il2cpp_codegen_multiply((float)L_28, (float)L_29)), (float)((float)il2cpp_codegen_multiply((float)L_30, (float)L_31)))); float L_32 = L_28; float L_33 = V_12; float L_34 = V_8; float L_35 = V_10; V_18 = ((float)il2cpp_codegen_subtract((float)((float)il2cpp_codegen_multiply((float)L_32, (float)L_33)), (float)((float)il2cpp_codegen_multiply((float)L_34, (float)L_35)))); float L_36 = V_11; float L_37 = V_7; float L_38 = V_10; V_19 = ((float)il2cpp_codegen_subtract((float)((float)il2cpp_codegen_multiply((float)L_32, (float)L_36)), (float)((float)il2cpp_codegen_multiply((float)L_37, (float)L_38)))); float L_39 = V_4; float L_40 = V_14; float L_41 = V_5; float L_42 = V_15; float L_43 = V_6; float L_44 = V_16; float L_45 = V_0; float L_46 = V_3; float L_47 = V_14; float L_48 = V_5; float L_49 = V_17; float L_50 = V_6; float L_51 = V_18; float L_52 = V_1; float L_53 = V_3; float L_54 = V_15; float L_55 = V_4; float L_56 = V_17; float L_57 = V_6; float L_58 = V_19; float L_59 = V_2; float L_60 = V_3; float L_61 = V_16; float L_62 = V_4; float L_63 = V_18; float L_64 = V_5; float L_65 = V_19; return ((float)il2cpp_codegen_subtract((float)((float)il2cpp_codegen_add((float)((float)il2cpp_codegen_subtract((float)((float)il2cpp_codegen_multiply((float)L_0, (float)((float)il2cpp_codegen_add((float)((float)il2cpp_codegen_subtract((float)((float)il2cpp_codegen_multiply((float)L_39, (float)L_40)), (float)((float)il2cpp_codegen_multiply((float)L_41, (float)L_42)))), (float)((float)il2cpp_codegen_multiply((float)L_43, (float)L_44)))))), (float)((float)il2cpp_codegen_multiply((float)L_45, (float)((float)il2cpp_codegen_add((float)((float)il2cpp_codegen_subtract((float)((float)il2cpp_codegen_multiply((float)L_46, (float)L_47)), (float)((float)il2cpp_codegen_multiply((float)L_48, (float)L_49)))), (float)((float)il2cpp_codegen_multiply((float)L_50, (float)L_51)))))))), (float)((float)il2cpp_codegen_multiply((float)L_52, (float)((float)il2cpp_codegen_add((float)((float)il2cpp_codegen_subtract((float)((float)il2cpp_codegen_multiply((float)L_53, (float)L_54)), (float)((float)il2cpp_codegen_multiply((float)L_55, (float)L_56)))), (float)((float)il2cpp_codegen_multiply((float)L_57, (float)L_58)))))))), (float)((float)il2cpp_codegen_multiply((float)L_59, (float)((float)il2cpp_codegen_add((float)((float)il2cpp_codegen_subtract((float)((float)il2cpp_codegen_multiply((float)L_60, (float)L_61)), (float)((float)il2cpp_codegen_multiply((float)L_62, (float)L_63)))), (float)((float)il2cpp_codegen_multiply((float)L_64, (float)L_65)))))))); } } IL2CPP_EXTERN_C float Matrix4x4_GetDeterminant_m47CD87D3ED2E5F46B85514D721F966DCE9A50520_AdjustorThunk (RuntimeObject * __this, const RuntimeMethod* method) { int32_t _offset = 1; Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 * _thisAdjusted = reinterpret_cast<Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 *>(__this + _offset); float _returnValue; _returnValue = Matrix4x4_GetDeterminant_m47CD87D3ED2E5F46B85514D721F966DCE9A50520(_thisAdjusted, method); return _returnValue; } // System.Boolean System.Numerics.Matrix4x4::Decompose(System.Numerics.Matrix4x4,System.Numerics.Vector3&,System.Numerics.Quaternion&,System.Numerics.Vector3&) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Matrix4x4_Decompose_mAEEBB02601928ECC39E5459CC1015C8FEE7D4754 (Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 ___matrix0, Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 * ___scale1, Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C * ___rotation2, Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 * ___translation3, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } bool V_0 = false; Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 * V_1 = NULL; float* V_2 = NULL; float V_3 = 0.0f; VectorBasis_tAA95F3190BC3156CE4B65B59049D19DF30D38CDE V_4; memset((&V_4), 0, sizeof(V_4)); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ** V_5 = NULL; Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 V_6; memset((&V_6), 0, sizeof(V_6)); CanonicalBasis_t26FE040B66523D4A8490BC430B49CAC7FC4DF832 V_7; memset((&V_7), 0, sizeof(V_7)); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 * V_8 = NULL; uint32_t V_9 = 0; uint32_t V_10 = 0; uint32_t V_11 = 0; float V_12 = 0.0f; float V_13 = 0.0f; float V_14 = 0.0f; uint32_t V_15 = 0; float V_16 = 0.0f; float V_17 = 0.0f; float V_18 = 0.0f; { V_0 = (bool)1; Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 * L_0 = ___scale1; V_1 = (Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *)L_0; Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 * L_1 = V_1; V_2 = (float*)((uintptr_t)L_1); V_5 = (Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 **)((uintptr_t)(&V_4)); IL2CPP_RUNTIME_CLASS_INIT(Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504_il2cpp_TypeInfo_var); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_2; L_2 = Matrix4x4_get_Identity_mCB71019837846B0A040FE9A74F6DDD0DA2FE8E4D_inline(/*hidden argument*/NULL); V_6 = L_2; il2cpp_codegen_initobj((&V_7), sizeof(CanonicalBasis_t26FE040B66523D4A8490BC430B49CAC7FC4DF832 )); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 * L_3 = (&V_7)->get_address_of_Row0_0(); V_8 = (Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *)((uintptr_t)L_3); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_4; memset((&L_4), 0, sizeof(L_4)); Vector3__ctor_m7B558F4C62FE430FB22DC54F4BB1865025B04B84((&L_4), (1.0f), (0.0f), (0.0f), /*hidden argument*/NULL); (&V_7)->set_Row0_0(L_4); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_5; memset((&L_5), 0, sizeof(L_5)); Vector3__ctor_m7B558F4C62FE430FB22DC54F4BB1865025B04B84((&L_5), (0.0f), (1.0f), (0.0f), /*hidden argument*/NULL); (&V_7)->set_Row1_1(L_5); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_6; memset((&L_6), 0, sizeof(L_6)); Vector3__ctor_m7B558F4C62FE430FB22DC54F4BB1865025B04B84((&L_6), (0.0f), (0.0f), (1.0f), /*hidden argument*/NULL); (&V_7)->set_Row2_2(L_6); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 * L_7 = ___translation3; Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_8 = ___matrix0; float L_9 = L_8.get_M41_12(); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_10 = ___matrix0; float L_11 = L_10.get_M42_13(); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_12 = ___matrix0; float L_13 = L_12.get_M43_14(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_14; memset((&L_14), 0, sizeof(L_14)); Vector3__ctor_m7B558F4C62FE430FB22DC54F4BB1865025B04B84((&L_14), L_9, L_11, L_13, /*hidden argument*/NULL); *(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *)L_7 = L_14; Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ** L_15 = V_5; float* L_16 = (&V_6)->get_address_of_M11_0(); *((intptr_t*)L_15) = (intptr_t)((uintptr_t)L_16); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ** L_17 = V_5; uint32_t L_18 = sizeof(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *); float* L_19 = (&V_6)->get_address_of_M21_4(); *((intptr_t*)((Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 **)il2cpp_codegen_add((intptr_t)L_17, (int32_t)L_18))) = (intptr_t)((uintptr_t)L_19); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ** L_20 = V_5; uint32_t L_21 = sizeof(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *); float* L_22 = (&V_6)->get_address_of_M31_8(); *((intptr_t*)((Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 **)il2cpp_codegen_add((intptr_t)L_20, (intptr_t)((intptr_t)il2cpp_codegen_multiply((intptr_t)((intptr_t)2), (int32_t)L_21))))) = (intptr_t)((uintptr_t)L_22); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ** L_23 = V_5; Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_24 = ___matrix0; float L_25 = L_24.get_M11_0(); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_26 = ___matrix0; float L_27 = L_26.get_M12_1(); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_28 = ___matrix0; float L_29 = L_28.get_M13_2(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_30; memset((&L_30), 0, sizeof(L_30)); Vector3__ctor_m7B558F4C62FE430FB22DC54F4BB1865025B04B84((&L_30), L_25, L_27, L_29, /*hidden argument*/NULL); *(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *)(*((intptr_t*)L_23)) = L_30; Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ** L_31 = V_5; uint32_t L_32 = sizeof(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_33 = ___matrix0; float L_34 = L_33.get_M21_4(); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_35 = ___matrix0; float L_36 = L_35.get_M22_5(); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_37 = ___matrix0; float L_38 = L_37.get_M23_6(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_39; memset((&L_39), 0, sizeof(L_39)); Vector3__ctor_m7B558F4C62FE430FB22DC54F4BB1865025B04B84((&L_39), L_34, L_36, L_38, /*hidden argument*/NULL); *(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *)(*((intptr_t*)((Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 **)il2cpp_codegen_add((intptr_t)L_31, (int32_t)L_32)))) = L_39; Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ** L_40 = V_5; uint32_t L_41 = sizeof(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_42 = ___matrix0; float L_43 = L_42.get_M31_8(); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_44 = ___matrix0; float L_45 = L_44.get_M32_9(); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_46 = ___matrix0; float L_47 = L_46.get_M33_10(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_48; memset((&L_48), 0, sizeof(L_48)); Vector3__ctor_m7B558F4C62FE430FB22DC54F4BB1865025B04B84((&L_48), L_43, L_45, L_47, /*hidden argument*/NULL); *(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *)(*((intptr_t*)((Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 **)il2cpp_codegen_add((intptr_t)L_40, (intptr_t)((intptr_t)il2cpp_codegen_multiply((intptr_t)((intptr_t)2), (int32_t)L_41)))))) = L_48; Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 * L_49 = ___scale1; Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ** L_50 = V_5; float L_51; L_51 = Vector3_Length_mFF8BCD98596F2A4DB1549D89DF257A97FD671DEF_inline((Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *)(*((intptr_t*)L_50)), /*hidden argument*/NULL); L_49->set_X_0(L_51); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 * L_52 = ___scale1; Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ** L_53 = V_5; uint32_t L_54 = sizeof(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *); float L_55; L_55 = Vector3_Length_mFF8BCD98596F2A4DB1549D89DF257A97FD671DEF_inline((Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *)(*((intptr_t*)((Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 **)il2cpp_codegen_add((intptr_t)L_53, (int32_t)L_54)))), /*hidden argument*/NULL); L_52->set_Y_1(L_55); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 * L_56 = ___scale1; Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ** L_57 = V_5; uint32_t L_58 = sizeof(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *); float L_59; L_59 = Vector3_Length_mFF8BCD98596F2A4DB1549D89DF257A97FD671DEF_inline((Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *)(*((intptr_t*)((Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 **)il2cpp_codegen_add((intptr_t)L_57, (intptr_t)((intptr_t)il2cpp_codegen_multiply((intptr_t)((intptr_t)2), (int32_t)L_58)))))), /*hidden argument*/NULL); L_56->set_Z_2(L_59); float* L_60 = V_2; float L_61 = *((float*)L_60); V_12 = L_61; float* L_62 = V_2; float L_63 = *((float*)((float*)il2cpp_codegen_add((intptr_t)L_62, (int32_t)4))); V_13 = L_63; float* L_64 = V_2; float L_65 = *((float*)((float*)il2cpp_codegen_add((intptr_t)L_64, (intptr_t)((intptr_t)il2cpp_codegen_multiply((intptr_t)((intptr_t)2), (int32_t)4))))); V_14 = L_65; float L_66 = V_12; float L_67 = V_13; if ((!(((float)L_66) < ((float)L_67)))) { goto IL_01b1; } } { float L_68 = V_13; float L_69 = V_14; if ((!(((float)L_68) < ((float)L_69)))) { goto IL_0198; } } { V_9 = 2; V_10 = 1; V_11 = 0; goto IL_01d9; } IL_0198: { V_9 = 1; float L_70 = V_12; float L_71 = V_14; if ((!(((float)L_70) < ((float)L_71)))) { goto IL_01a9; } } { V_10 = 2; V_11 = 0; goto IL_01d9; } IL_01a9: { V_10 = 0; V_11 = 2; goto IL_01d9; } IL_01b1: { float L_72 = V_12; float L_73 = V_14; if ((!(((float)L_72) < ((float)L_73)))) { goto IL_01c2; } } { V_9 = 2; V_10 = 0; V_11 = 1; goto IL_01d9; } IL_01c2: { V_9 = 0; float L_74 = V_13; float L_75 = V_14; if ((!(((float)L_74) < ((float)L_75)))) { goto IL_01d3; } } { V_10 = 2; V_11 = 1; goto IL_01d9; } IL_01d3: { V_10 = 1; V_11 = 2; } IL_01d9: { float* L_76 = V_2; uint32_t L_77 = V_9; float L_78 = *((float*)((float*)il2cpp_codegen_add((intptr_t)L_76, (intptr_t)((intptr_t)((int64_t)il2cpp_codegen_multiply((int64_t)((int64_t)((uint64_t)L_77)), (int64_t)((int64_t)((int64_t)4)))))))); if ((!(((float)L_78) < ((float)(9.99999975E-05f))))) { goto IL_0213; } } { Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ** L_79 = V_5; uint32_t L_80 = V_9; uint32_t L_81 = sizeof(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 * L_82 = V_8; uint32_t L_83 = V_9; uint32_t L_84 = sizeof(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_85 = (*(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *)((Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *)il2cpp_codegen_add((intptr_t)L_82, (intptr_t)((intptr_t)((int64_t)il2cpp_codegen_multiply((int64_t)((int64_t)((uint64_t)L_83)), (int64_t)((int64_t)((int64_t)((int32_t)((int32_t)L_84)))))))))); *(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *)(*((intptr_t*)((Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 **)il2cpp_codegen_add((intptr_t)L_79, (intptr_t)((intptr_t)((int64_t)il2cpp_codegen_multiply((int64_t)((int64_t)((uint64_t)L_80)), (int64_t)((int64_t)((int64_t)((int32_t)((int32_t)L_81))))))))))) = L_85; } IL_0213: { Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ** L_86 = V_5; uint32_t L_87 = V_9; uint32_t L_88 = sizeof(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ** L_89 = V_5; uint32_t L_90 = V_9; uint32_t L_91 = sizeof(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_92 = (*(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *)(*((intptr_t*)((Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 **)il2cpp_codegen_add((intptr_t)L_89, (intptr_t)((intptr_t)((int64_t)il2cpp_codegen_multiply((int64_t)((int64_t)((uint64_t)L_90)), (int64_t)((int64_t)((int64_t)((int32_t)((int32_t)L_91)))))))))))); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_93; L_93 = Vector3_Normalize_m283C15DA0D64B3599A28611DFB37802E459AF9D5_inline(L_92, /*hidden argument*/NULL); *(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *)(*((intptr_t*)((Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 **)il2cpp_codegen_add((intptr_t)L_86, (intptr_t)((intptr_t)((int64_t)il2cpp_codegen_multiply((int64_t)((int64_t)((uint64_t)L_87)), (int64_t)((int64_t)((int64_t)((int32_t)((int32_t)L_88))))))))))) = L_93; float* L_94 = V_2; uint32_t L_95 = V_10; float L_96 = *((float*)((float*)il2cpp_codegen_add((intptr_t)L_94, (intptr_t)((intptr_t)((int64_t)il2cpp_codegen_multiply((int64_t)((int64_t)((uint64_t)L_95)), (int64_t)((int64_t)((int64_t)4)))))))); if ((!(((float)L_96) < ((float)(9.99999975E-05f))))) { goto IL_0327; } } { Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ** L_97 = V_5; uint32_t L_98 = V_9; uint32_t L_99 = sizeof(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *); float L_100 = ((Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *)(*((intptr_t*)((Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 **)il2cpp_codegen_add((intptr_t)L_97, (intptr_t)((intptr_t)((int64_t)il2cpp_codegen_multiply((int64_t)((int64_t)((uint64_t)L_98)), (int64_t)((int64_t)((int64_t)((int32_t)((int32_t)L_99))))))))))))->get_X_0(); float L_101; L_101 = MathF_Abs_m39EE850E0173823EBD1862FC41C047087C77D411_inline(L_100, /*hidden argument*/NULL); V_16 = L_101; Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ** L_102 = V_5; uint32_t L_103 = V_9; uint32_t L_104 = sizeof(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *); float L_105 = ((Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *)(*((intptr_t*)((Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 **)il2cpp_codegen_add((intptr_t)L_102, (intptr_t)((intptr_t)((int64_t)il2cpp_codegen_multiply((int64_t)((int64_t)((uint64_t)L_103)), (int64_t)((int64_t)((int64_t)((int32_t)((int32_t)L_104))))))))))))->get_Y_1(); float L_106; L_106 = MathF_Abs_m39EE850E0173823EBD1862FC41C047087C77D411_inline(L_105, /*hidden argument*/NULL); V_17 = L_106; Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ** L_107 = V_5; uint32_t L_108 = V_9; uint32_t L_109 = sizeof(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *); float L_110 = ((Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *)(*((intptr_t*)((Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 **)il2cpp_codegen_add((intptr_t)L_107, (intptr_t)((intptr_t)((int64_t)il2cpp_codegen_multiply((int64_t)((int64_t)((uint64_t)L_108)), (int64_t)((int64_t)((int64_t)((int32_t)((int32_t)L_109))))))))))))->get_Z_2(); float L_111; L_111 = MathF_Abs_m39EE850E0173823EBD1862FC41C047087C77D411_inline(L_110, /*hidden argument*/NULL); V_18 = L_111; float L_112 = V_16; float L_113 = V_17; if ((!(((float)L_112) < ((float)L_113)))) { goto IL_02cb; } } { float L_114 = V_17; float L_115 = V_18; if ((!(((float)L_114) < ((float)L_115)))) { goto IL_02bb; } } { V_15 = 0; goto IL_02e4; } IL_02bb: { float L_116 = V_16; float L_117 = V_18; if ((!(((float)L_116) < ((float)L_117)))) { goto IL_02c6; } } { V_15 = 0; goto IL_02e4; } IL_02c6: { V_15 = 2; goto IL_02e4; } IL_02cb: { float L_118 = V_16; float L_119 = V_18; if ((!(((float)L_118) < ((float)L_119)))) { goto IL_02d6; } } { V_15 = 1; goto IL_02e4; } IL_02d6: { float L_120 = V_17; float L_121 = V_18; if ((!(((float)L_120) < ((float)L_121)))) { goto IL_02e1; } } { V_15 = 1; goto IL_02e4; } IL_02e1: { V_15 = 2; } IL_02e4: { Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ** L_122 = V_5; uint32_t L_123 = V_10; uint32_t L_124 = sizeof(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ** L_125 = V_5; uint32_t L_126 = V_9; uint32_t L_127 = sizeof(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_128 = (*(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *)(*((intptr_t*)((Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 **)il2cpp_codegen_add((intptr_t)L_125, (intptr_t)((intptr_t)((int64_t)il2cpp_codegen_multiply((int64_t)((int64_t)((uint64_t)L_126)), (int64_t)((int64_t)((int64_t)((int32_t)((int32_t)L_127)))))))))))); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 * L_129 = V_8; uint32_t L_130 = V_15; uint32_t L_131 = sizeof(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_132 = (*(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *)((Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *)il2cpp_codegen_add((intptr_t)L_129, (intptr_t)((intptr_t)((int64_t)il2cpp_codegen_multiply((int64_t)((int64_t)((uint64_t)L_130)), (int64_t)((int64_t)((int64_t)((int32_t)((int32_t)L_131)))))))))); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_133; L_133 = Vector3_Cross_mEBF753748F2B7FE0FBB987135D753502193773D8_inline(L_128, L_132, /*hidden argument*/NULL); *(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *)(*((intptr_t*)((Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 **)il2cpp_codegen_add((intptr_t)L_122, (intptr_t)((intptr_t)((int64_t)il2cpp_codegen_multiply((int64_t)((int64_t)((uint64_t)L_123)), (int64_t)((int64_t)((int64_t)((int32_t)((int32_t)L_124))))))))))) = L_133; } IL_0327: { Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ** L_134 = V_5; uint32_t L_135 = V_10; uint32_t L_136 = sizeof(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ** L_137 = V_5; uint32_t L_138 = V_10; uint32_t L_139 = sizeof(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_140 = (*(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *)(*((intptr_t*)((Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 **)il2cpp_codegen_add((intptr_t)L_137, (intptr_t)((intptr_t)((int64_t)il2cpp_codegen_multiply((int64_t)((int64_t)((uint64_t)L_138)), (int64_t)((int64_t)((int64_t)((int32_t)((int32_t)L_139)))))))))))); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_141; L_141 = Vector3_Normalize_m283C15DA0D64B3599A28611DFB37802E459AF9D5_inline(L_140, /*hidden argument*/NULL); *(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *)(*((intptr_t*)((Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 **)il2cpp_codegen_add((intptr_t)L_134, (intptr_t)((intptr_t)((int64_t)il2cpp_codegen_multiply((int64_t)((int64_t)((uint64_t)L_135)), (int64_t)((int64_t)((int64_t)((int32_t)((int32_t)L_136))))))))))) = L_141; float* L_142 = V_2; uint32_t L_143 = V_11; float L_144 = *((float*)((float*)il2cpp_codegen_add((intptr_t)L_142, (intptr_t)((intptr_t)((int64_t)il2cpp_codegen_multiply((int64_t)((int64_t)((uint64_t)L_143)), (int64_t)((int64_t)((int64_t)4)))))))); if ((!(((float)L_144) < ((float)(9.99999975E-05f))))) { goto IL_03ab; } } { Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ** L_145 = V_5; uint32_t L_146 = V_11; uint32_t L_147 = sizeof(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ** L_148 = V_5; uint32_t L_149 = V_9; uint32_t L_150 = sizeof(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_151 = (*(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *)(*((intptr_t*)((Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 **)il2cpp_codegen_add((intptr_t)L_148, (intptr_t)((intptr_t)((int64_t)il2cpp_codegen_multiply((int64_t)((int64_t)((uint64_t)L_149)), (int64_t)((int64_t)((int64_t)((int32_t)((int32_t)L_150)))))))))))); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ** L_152 = V_5; uint32_t L_153 = V_10; uint32_t L_154 = sizeof(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_155 = (*(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *)(*((intptr_t*)((Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 **)il2cpp_codegen_add((intptr_t)L_152, (intptr_t)((intptr_t)((int64_t)il2cpp_codegen_multiply((int64_t)((int64_t)((uint64_t)L_153)), (int64_t)((int64_t)((int64_t)((int32_t)((int32_t)L_154)))))))))))); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_156; L_156 = Vector3_Cross_mEBF753748F2B7FE0FBB987135D753502193773D8_inline(L_151, L_155, /*hidden argument*/NULL); *(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *)(*((intptr_t*)((Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 **)il2cpp_codegen_add((intptr_t)L_145, (intptr_t)((intptr_t)((int64_t)il2cpp_codegen_multiply((int64_t)((int64_t)((uint64_t)L_146)), (int64_t)((int64_t)((int64_t)((int32_t)((int32_t)L_147))))))))))) = L_156; } IL_03ab: { Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ** L_157 = V_5; uint32_t L_158 = V_11; uint32_t L_159 = sizeof(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ** L_160 = V_5; uint32_t L_161 = V_11; uint32_t L_162 = sizeof(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_163 = (*(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *)(*((intptr_t*)((Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 **)il2cpp_codegen_add((intptr_t)L_160, (intptr_t)((intptr_t)((int64_t)il2cpp_codegen_multiply((int64_t)((int64_t)((uint64_t)L_161)), (int64_t)((int64_t)((int64_t)((int32_t)((int32_t)L_162)))))))))))); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_164; L_164 = Vector3_Normalize_m283C15DA0D64B3599A28611DFB37802E459AF9D5_inline(L_163, /*hidden argument*/NULL); *(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *)(*((intptr_t*)((Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 **)il2cpp_codegen_add((intptr_t)L_157, (intptr_t)((intptr_t)((int64_t)il2cpp_codegen_multiply((int64_t)((int64_t)((uint64_t)L_158)), (int64_t)((int64_t)((int64_t)((int32_t)((int32_t)L_159))))))))))) = L_164; float L_165; L_165 = Matrix4x4_GetDeterminant_m47CD87D3ED2E5F46B85514D721F966DCE9A50520((Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 *)(&V_6), /*hidden argument*/NULL); V_3 = L_165; float L_166 = V_3; if ((!(((float)L_166) < ((float)(0.0f))))) { goto IL_0431; } } { float* L_167 = V_2; uint32_t L_168 = V_9; float* L_169 = V_2; uint32_t L_170 = V_9; float L_171 = *((float*)((float*)il2cpp_codegen_add((intptr_t)L_169, (intptr_t)((intptr_t)((int64_t)il2cpp_codegen_multiply((int64_t)((int64_t)((uint64_t)L_170)), (int64_t)((int64_t)((int64_t)4)))))))); *((float*)((float*)il2cpp_codegen_add((intptr_t)L_167, (intptr_t)((intptr_t)((int64_t)il2cpp_codegen_multiply((int64_t)((int64_t)((uint64_t)L_168)), (int64_t)((int64_t)((int64_t)4)))))))) = (float)((-L_171)); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ** L_172 = V_5; uint32_t L_173 = V_9; uint32_t L_174 = sizeof(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ** L_175 = V_5; uint32_t L_176 = V_9; uint32_t L_177 = sizeof(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_178 = (*(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *)(*((intptr_t*)((Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 **)il2cpp_codegen_add((intptr_t)L_175, (intptr_t)((intptr_t)((int64_t)il2cpp_codegen_multiply((int64_t)((int64_t)((uint64_t)L_176)), (int64_t)((int64_t)((int64_t)((int32_t)((int32_t)L_177)))))))))))); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_179; L_179 = Vector3_op_UnaryNegation_m9E58D89BFF6907FA80A522CF563B1E893C71D9D9_inline(L_178, /*hidden argument*/NULL); *(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *)(*((intptr_t*)((Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 **)il2cpp_codegen_add((intptr_t)L_172, (intptr_t)((intptr_t)((int64_t)il2cpp_codegen_multiply((int64_t)((int64_t)((uint64_t)L_173)), (int64_t)((int64_t)((int64_t)((int32_t)((int32_t)L_174))))))))))) = L_179; float L_180 = V_3; V_3 = ((-L_180)); } IL_0431: { float L_181 = V_3; V_3 = ((float)il2cpp_codegen_subtract((float)L_181, (float)(1.0f))); float L_182 = V_3; float L_183 = V_3; V_3 = ((float)il2cpp_codegen_multiply((float)L_182, (float)L_183)); float L_184 = V_3; if ((!(((float)(9.99999975E-05f)) < ((float)L_184)))) { goto IL_0454; } } { Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C * L_185 = ___rotation2; Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C L_186; L_186 = Quaternion_get_Identity_mE482B0FDD07020157F9B6040589201033F432DEA(/*hidden argument*/NULL); *(Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C *)L_185 = L_186; V_0 = (bool)0; goto IL_0461; } IL_0454: { Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C * L_187 = ___rotation2; Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_188 = V_6; Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C L_189; L_189 = Quaternion_CreateFromRotationMatrix_m6D75AB933960CD5810A6F41FAA5443C2286ECBF7(L_188, /*hidden argument*/NULL); *(Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C *)L_187 = L_189; } IL_0461: { V_1 = (Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *)((uintptr_t)0); bool L_190 = V_0; return L_190; } } // System.Boolean System.Numerics.Matrix4x4::Equals(System.Numerics.Matrix4x4) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Matrix4x4_Equals_m45EE9FA141FCCE1614882A49F0F1C748EC43481C (Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 * __this, Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 ___other0, const RuntimeMethod* method) { { float L_0 = __this->get_M11_0(); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_1 = ___other0; float L_2 = L_1.get_M11_0(); if ((!(((float)L_0) == ((float)L_2)))) { goto IL_00f3; } } { float L_3 = __this->get_M22_5(); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_4 = ___other0; float L_5 = L_4.get_M22_5(); if ((!(((float)L_3) == ((float)L_5)))) { goto IL_00f3; } } { float L_6 = __this->get_M33_10(); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_7 = ___other0; float L_8 = L_7.get_M33_10(); if ((!(((float)L_6) == ((float)L_8)))) { goto IL_00f3; } } { float L_9 = __this->get_M44_15(); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_10 = ___other0; float L_11 = L_10.get_M44_15(); if ((!(((float)L_9) == ((float)L_11)))) { goto IL_00f3; } } { float L_12 = __this->get_M12_1(); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_13 = ___other0; float L_14 = L_13.get_M12_1(); if ((!(((float)L_12) == ((float)L_14)))) { goto IL_00f3; } } { float L_15 = __this->get_M13_2(); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_16 = ___other0; float L_17 = L_16.get_M13_2(); if ((!(((float)L_15) == ((float)L_17)))) { goto IL_00f3; } } { float L_18 = __this->get_M14_3(); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_19 = ___other0; float L_20 = L_19.get_M14_3(); if ((!(((float)L_18) == ((float)L_20)))) { goto IL_00f3; } } { float L_21 = __this->get_M21_4(); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_22 = ___other0; float L_23 = L_22.get_M21_4(); if ((!(((float)L_21) == ((float)L_23)))) { goto IL_00f3; } } { float L_24 = __this->get_M23_6(); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_25 = ___other0; float L_26 = L_25.get_M23_6(); if ((!(((float)L_24) == ((float)L_26)))) { goto IL_00f3; } } { float L_27 = __this->get_M24_7(); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_28 = ___other0; float L_29 = L_28.get_M24_7(); if ((!(((float)L_27) == ((float)L_29)))) { goto IL_00f3; } } { float L_30 = __this->get_M31_8(); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_31 = ___other0; float L_32 = L_31.get_M31_8(); if ((!(((float)L_30) == ((float)L_32)))) { goto IL_00f3; } } { float L_33 = __this->get_M32_9(); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_34 = ___other0; float L_35 = L_34.get_M32_9(); if ((!(((float)L_33) == ((float)L_35)))) { goto IL_00f3; } } { float L_36 = __this->get_M34_11(); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_37 = ___other0; float L_38 = L_37.get_M34_11(); if ((!(((float)L_36) == ((float)L_38)))) { goto IL_00f3; } } { float L_39 = __this->get_M41_12(); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_40 = ___other0; float L_41 = L_40.get_M41_12(); if ((!(((float)L_39) == ((float)L_41)))) { goto IL_00f3; } } { float L_42 = __this->get_M42_13(); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_43 = ___other0; float L_44 = L_43.get_M42_13(); if ((!(((float)L_42) == ((float)L_44)))) { goto IL_00f3; } } { float L_45 = __this->get_M43_14(); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_46 = ___other0; float L_47 = L_46.get_M43_14(); return (bool)((((float)L_45) == ((float)L_47))? 1 : 0); } IL_00f3: { return (bool)0; } } IL2CPP_EXTERN_C bool Matrix4x4_Equals_m45EE9FA141FCCE1614882A49F0F1C748EC43481C_AdjustorThunk (RuntimeObject * __this, Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 ___other0, const RuntimeMethod* method) { int32_t _offset = 1; Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 * _thisAdjusted = reinterpret_cast<Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 *>(__this + _offset); bool _returnValue; _returnValue = Matrix4x4_Equals_m45EE9FA141FCCE1614882A49F0F1C748EC43481C(_thisAdjusted, ___other0, method); return _returnValue; } // System.Boolean System.Numerics.Matrix4x4::Equals(System.Object) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Matrix4x4_Equals_mFEE640706AC48F5168BEA868A6BF9E43D7A4DA30 (Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 * __this, RuntimeObject * ___obj0, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } { RuntimeObject * L_0 = ___obj0; if (!((RuntimeObject *)IsInstSealed((RuntimeObject*)L_0, Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504_il2cpp_TypeInfo_var))) { goto IL_0015; } } { RuntimeObject * L_1 = ___obj0; bool L_2; L_2 = Matrix4x4_Equals_m45EE9FA141FCCE1614882A49F0F1C748EC43481C((Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 *)__this, ((*(Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 *)((Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 *)UnBox(L_1, Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504_il2cpp_TypeInfo_var)))), /*hidden argument*/NULL); return L_2; } IL_0015: { return (bool)0; } } IL2CPP_EXTERN_C bool Matrix4x4_Equals_mFEE640706AC48F5168BEA868A6BF9E43D7A4DA30_AdjustorThunk (RuntimeObject * __this, RuntimeObject * ___obj0, const RuntimeMethod* method) { int32_t _offset = 1; Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 * _thisAdjusted = reinterpret_cast<Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 *>(__this + _offset); bool _returnValue; _returnValue = Matrix4x4_Equals_mFEE640706AC48F5168BEA868A6BF9E43D7A4DA30(_thisAdjusted, ___obj0, method); return _returnValue; } // System.String System.Numerics.Matrix4x4::ToString() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* Matrix4x4_ToString_m02E3732C819E63C7121AFA8C6016FE96CA2E9DD5 (Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 * __this, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&_stringLiteralD26F25683308CEE6235E8DD6C4C233601EB6FF0D); s_Il2CppMethodInitialized = true; } CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 * V_0 = NULL; { IL2CPP_RUNTIME_CLASS_INIT(CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98_il2cpp_TypeInfo_var); CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 * L_0; L_0 = CultureInfo_get_CurrentCulture_m99E5F5BD20445F2A73F7EA0014A4E783DF3840BB(/*hidden argument*/NULL); V_0 = L_0; CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 * L_1 = V_0; ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE* L_2 = (ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE*)(ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE*)SZArrayNew(ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE_il2cpp_TypeInfo_var, (uint32_t)((int32_t)16)); ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE* L_3 = L_2; float* L_4 = __this->get_address_of_M11_0(); CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 * L_5 = V_0; String_t* L_6; L_6 = Single_ToString_mF554E46C641C609768519378FB0486DFD7F82985((float*)L_4, L_5, /*hidden argument*/NULL); NullCheck(L_3); ArrayElementTypeCheck (L_3, L_6); (L_3)->SetAt(static_cast<il2cpp_array_size_t>(0), (RuntimeObject *)L_6); ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE* L_7 = L_3; float* L_8 = __this->get_address_of_M12_1(); CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 * L_9 = V_0; String_t* L_10; L_10 = Single_ToString_mF554E46C641C609768519378FB0486DFD7F82985((float*)L_8, L_9, /*hidden argument*/NULL); NullCheck(L_7); ArrayElementTypeCheck (L_7, L_10); (L_7)->SetAt(static_cast<il2cpp_array_size_t>(1), (RuntimeObject *)L_10); ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE* L_11 = L_7; float* L_12 = __this->get_address_of_M13_2(); CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 * L_13 = V_0; String_t* L_14; L_14 = Single_ToString_mF554E46C641C609768519378FB0486DFD7F82985((float*)L_12, L_13, /*hidden argument*/NULL); NullCheck(L_11); ArrayElementTypeCheck (L_11, L_14); (L_11)->SetAt(static_cast<il2cpp_array_size_t>(2), (RuntimeObject *)L_14); ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE* L_15 = L_11; float* L_16 = __this->get_address_of_M14_3(); CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 * L_17 = V_0; String_t* L_18; L_18 = Single_ToString_mF554E46C641C609768519378FB0486DFD7F82985((float*)L_16, L_17, /*hidden argument*/NULL); NullCheck(L_15); ArrayElementTypeCheck (L_15, L_18); (L_15)->SetAt(static_cast<il2cpp_array_size_t>(3), (RuntimeObject *)L_18); ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE* L_19 = L_15; float* L_20 = __this->get_address_of_M21_4(); CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 * L_21 = V_0; String_t* L_22; L_22 = Single_ToString_mF554E46C641C609768519378FB0486DFD7F82985((float*)L_20, L_21, /*hidden argument*/NULL); NullCheck(L_19); ArrayElementTypeCheck (L_19, L_22); (L_19)->SetAt(static_cast<il2cpp_array_size_t>(4), (RuntimeObject *)L_22); ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE* L_23 = L_19; float* L_24 = __this->get_address_of_M22_5(); CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 * L_25 = V_0; String_t* L_26; L_26 = Single_ToString_mF554E46C641C609768519378FB0486DFD7F82985((float*)L_24, L_25, /*hidden argument*/NULL); NullCheck(L_23); ArrayElementTypeCheck (L_23, L_26); (L_23)->SetAt(static_cast<il2cpp_array_size_t>(5), (RuntimeObject *)L_26); ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE* L_27 = L_23; float* L_28 = __this->get_address_of_M23_6(); CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 * L_29 = V_0; String_t* L_30; L_30 = Single_ToString_mF554E46C641C609768519378FB0486DFD7F82985((float*)L_28, L_29, /*hidden argument*/NULL); NullCheck(L_27); ArrayElementTypeCheck (L_27, L_30); (L_27)->SetAt(static_cast<il2cpp_array_size_t>(6), (RuntimeObject *)L_30); ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE* L_31 = L_27; float* L_32 = __this->get_address_of_M24_7(); CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 * L_33 = V_0; String_t* L_34; L_34 = Single_ToString_mF554E46C641C609768519378FB0486DFD7F82985((float*)L_32, L_33, /*hidden argument*/NULL); NullCheck(L_31); ArrayElementTypeCheck (L_31, L_34); (L_31)->SetAt(static_cast<il2cpp_array_size_t>(7), (RuntimeObject *)L_34); ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE* L_35 = L_31; float* L_36 = __this->get_address_of_M31_8(); CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 * L_37 = V_0; String_t* L_38; L_38 = Single_ToString_mF554E46C641C609768519378FB0486DFD7F82985((float*)L_36, L_37, /*hidden argument*/NULL); NullCheck(L_35); ArrayElementTypeCheck (L_35, L_38); (L_35)->SetAt(static_cast<il2cpp_array_size_t>(8), (RuntimeObject *)L_38); ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE* L_39 = L_35; float* L_40 = __this->get_address_of_M32_9(); CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 * L_41 = V_0; String_t* L_42; L_42 = Single_ToString_mF554E46C641C609768519378FB0486DFD7F82985((float*)L_40, L_41, /*hidden argument*/NULL); NullCheck(L_39); ArrayElementTypeCheck (L_39, L_42); (L_39)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)9)), (RuntimeObject *)L_42); ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE* L_43 = L_39; float* L_44 = __this->get_address_of_M33_10(); CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 * L_45 = V_0; String_t* L_46; L_46 = Single_ToString_mF554E46C641C609768519378FB0486DFD7F82985((float*)L_44, L_45, /*hidden argument*/NULL); NullCheck(L_43); ArrayElementTypeCheck (L_43, L_46); (L_43)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)10)), (RuntimeObject *)L_46); ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE* L_47 = L_43; float* L_48 = __this->get_address_of_M34_11(); CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 * L_49 = V_0; String_t* L_50; L_50 = Single_ToString_mF554E46C641C609768519378FB0486DFD7F82985((float*)L_48, L_49, /*hidden argument*/NULL); NullCheck(L_47); ArrayElementTypeCheck (L_47, L_50); (L_47)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)11)), (RuntimeObject *)L_50); ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE* L_51 = L_47; float* L_52 = __this->get_address_of_M41_12(); CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 * L_53 = V_0; String_t* L_54; L_54 = Single_ToString_mF554E46C641C609768519378FB0486DFD7F82985((float*)L_52, L_53, /*hidden argument*/NULL); NullCheck(L_51); ArrayElementTypeCheck (L_51, L_54); (L_51)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)12)), (RuntimeObject *)L_54); ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE* L_55 = L_51; float* L_56 = __this->get_address_of_M42_13(); CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 * L_57 = V_0; String_t* L_58; L_58 = Single_ToString_mF554E46C641C609768519378FB0486DFD7F82985((float*)L_56, L_57, /*hidden argument*/NULL); NullCheck(L_55); ArrayElementTypeCheck (L_55, L_58); (L_55)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)13)), (RuntimeObject *)L_58); ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE* L_59 = L_55; float* L_60 = __this->get_address_of_M43_14(); CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 * L_61 = V_0; String_t* L_62; L_62 = Single_ToString_mF554E46C641C609768519378FB0486DFD7F82985((float*)L_60, L_61, /*hidden argument*/NULL); NullCheck(L_59); ArrayElementTypeCheck (L_59, L_62); (L_59)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)14)), (RuntimeObject *)L_62); ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE* L_63 = L_59; float* L_64 = __this->get_address_of_M44_15(); CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 * L_65 = V_0; String_t* L_66; L_66 = Single_ToString_mF554E46C641C609768519378FB0486DFD7F82985((float*)L_64, L_65, /*hidden argument*/NULL); NullCheck(L_63); ArrayElementTypeCheck (L_63, L_66); (L_63)->SetAt(static_cast<il2cpp_array_size_t>(((int32_t)15)), (RuntimeObject *)L_66); String_t* L_67; L_67 = String_Format_mF96F0621DC567D09C07F1EAC66B31AD261A9DC21(L_1, _stringLiteralD26F25683308CEE6235E8DD6C4C233601EB6FF0D, L_63, /*hidden argument*/NULL); return L_67; } } IL2CPP_EXTERN_C String_t* Matrix4x4_ToString_m02E3732C819E63C7121AFA8C6016FE96CA2E9DD5_AdjustorThunk (RuntimeObject * __this, const RuntimeMethod* method) { int32_t _offset = 1; Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 * _thisAdjusted = reinterpret_cast<Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 *>(__this + _offset); String_t* _returnValue; _returnValue = Matrix4x4_ToString_m02E3732C819E63C7121AFA8C6016FE96CA2E9DD5(_thisAdjusted, method); return _returnValue; } // System.Int32 System.Numerics.Matrix4x4::GetHashCode() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Matrix4x4_GetHashCode_m069B4006A635CC8B593758FFCCEEEF25BC906CC3 (Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 * __this, const RuntimeMethod* method) { { float* L_0 = __this->get_address_of_M11_0(); int32_t L_1; L_1 = Single_GetHashCode_m7662E1812DDDBC85D464398740CFFC3588DFB2C9((float*)L_0, /*hidden argument*/NULL); float* L_2 = __this->get_address_of_M12_1(); int32_t L_3; L_3 = Single_GetHashCode_m7662E1812DDDBC85D464398740CFFC3588DFB2C9((float*)L_2, /*hidden argument*/NULL); float* L_4 = __this->get_address_of_M13_2(); int32_t L_5; L_5 = Single_GetHashCode_m7662E1812DDDBC85D464398740CFFC3588DFB2C9((float*)L_4, /*hidden argument*/NULL); float* L_6 = __this->get_address_of_M14_3(); int32_t L_7; L_7 = Single_GetHashCode_m7662E1812DDDBC85D464398740CFFC3588DFB2C9((float*)L_6, /*hidden argument*/NULL); float* L_8 = __this->get_address_of_M21_4(); int32_t L_9; L_9 = Single_GetHashCode_m7662E1812DDDBC85D464398740CFFC3588DFB2C9((float*)L_8, /*hidden argument*/NULL); float* L_10 = __this->get_address_of_M22_5(); int32_t L_11; L_11 = Single_GetHashCode_m7662E1812DDDBC85D464398740CFFC3588DFB2C9((float*)L_10, /*hidden argument*/NULL); float* L_12 = __this->get_address_of_M23_6(); int32_t L_13; L_13 = Single_GetHashCode_m7662E1812DDDBC85D464398740CFFC3588DFB2C9((float*)L_12, /*hidden argument*/NULL); float* L_14 = __this->get_address_of_M24_7(); int32_t L_15; L_15 = Single_GetHashCode_m7662E1812DDDBC85D464398740CFFC3588DFB2C9((float*)L_14, /*hidden argument*/NULL); float* L_16 = __this->get_address_of_M31_8(); int32_t L_17; L_17 = Single_GetHashCode_m7662E1812DDDBC85D464398740CFFC3588DFB2C9((float*)L_16, /*hidden argument*/NULL); float* L_18 = __this->get_address_of_M32_9(); int32_t L_19; L_19 = Single_GetHashCode_m7662E1812DDDBC85D464398740CFFC3588DFB2C9((float*)L_18, /*hidden argument*/NULL); float* L_20 = __this->get_address_of_M33_10(); int32_t L_21; L_21 = Single_GetHashCode_m7662E1812DDDBC85D464398740CFFC3588DFB2C9((float*)L_20, /*hidden argument*/NULL); float* L_22 = __this->get_address_of_M34_11(); int32_t L_23; L_23 = Single_GetHashCode_m7662E1812DDDBC85D464398740CFFC3588DFB2C9((float*)L_22, /*hidden argument*/NULL); float* L_24 = __this->get_address_of_M41_12(); int32_t L_25; L_25 = Single_GetHashCode_m7662E1812DDDBC85D464398740CFFC3588DFB2C9((float*)L_24, /*hidden argument*/NULL); float* L_26 = __this->get_address_of_M42_13(); int32_t L_27; L_27 = Single_GetHashCode_m7662E1812DDDBC85D464398740CFFC3588DFB2C9((float*)L_26, /*hidden argument*/NULL); float* L_28 = __this->get_address_of_M43_14(); int32_t L_29; L_29 = Single_GetHashCode_m7662E1812DDDBC85D464398740CFFC3588DFB2C9((float*)L_28, /*hidden argument*/NULL); float* L_30 = __this->get_address_of_M44_15(); int32_t L_31; L_31 = Single_GetHashCode_m7662E1812DDDBC85D464398740CFFC3588DFB2C9((float*)L_30, /*hidden argument*/NULL); return ((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_3)), (int32_t)L_5)), (int32_t)L_7)), (int32_t)L_9)), (int32_t)L_11)), (int32_t)L_13)), (int32_t)L_15)), (int32_t)L_17)), (int32_t)L_19)), (int32_t)L_21)), (int32_t)L_23)), (int32_t)L_25)), (int32_t)L_27)), (int32_t)L_29)), (int32_t)L_31)); } } IL2CPP_EXTERN_C int32_t Matrix4x4_GetHashCode_m069B4006A635CC8B593758FFCCEEEF25BC906CC3_AdjustorThunk (RuntimeObject * __this, const RuntimeMethod* method) { int32_t _offset = 1; Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 * _thisAdjusted = reinterpret_cast<Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 *>(__this + _offset); int32_t _returnValue; _returnValue = Matrix4x4_GetHashCode_m069B4006A635CC8B593758FFCCEEEF25BC906CC3(_thisAdjusted, method); return _returnValue; } // System.Void System.Numerics.Matrix4x4::.cctor() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Matrix4x4__cctor_m68D263A74B0F30A559D258FB9A4916E699B8513C (const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } { Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_0; memset((&L_0), 0, sizeof(L_0)); Matrix4x4__ctor_mBC052C64AB9F02208DA7EFE3BD75EB9BEE747222((&L_0), (1.0f), (0.0f), (0.0f), (0.0f), (0.0f), (1.0f), (0.0f), (0.0f), (0.0f), (0.0f), (1.0f), (0.0f), (0.0f), (0.0f), (0.0f), (1.0f), /*hidden argument*/NULL); ((Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504_StaticFields*)il2cpp_codegen_static_fields_for(Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504_il2cpp_TypeInfo_var))->set__identity_16(L_0); return; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Numerics.Quaternion System.Numerics.Quaternion::get_Identity() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C Quaternion_get_Identity_mE482B0FDD07020157F9B6040589201033F432DEA (const RuntimeMethod* method) { { Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C L_0; memset((&L_0), 0, sizeof(L_0)); Quaternion__ctor_m5F4248FE191AF699AFDC210DCFE25B1D7298DFA0((&L_0), (0.0f), (0.0f), (0.0f), (1.0f), /*hidden argument*/NULL); return L_0; } } // System.Void System.Numerics.Quaternion::.ctor(System.Single,System.Single,System.Single,System.Single) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Quaternion__ctor_m5F4248FE191AF699AFDC210DCFE25B1D7298DFA0 (Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C * __this, float ___x0, float ___y1, float ___z2, float ___w3, const RuntimeMethod* method) { { float L_0 = ___x0; __this->set_X_0(L_0); float L_1 = ___y1; __this->set_Y_1(L_1); float L_2 = ___z2; __this->set_Z_2(L_2); float L_3 = ___w3; __this->set_W_3(L_3); return; } } IL2CPP_EXTERN_C void Quaternion__ctor_m5F4248FE191AF699AFDC210DCFE25B1D7298DFA0_AdjustorThunk (RuntimeObject * __this, float ___x0, float ___y1, float ___z2, float ___w3, const RuntimeMethod* method) { int32_t _offset = 1; Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C * _thisAdjusted = reinterpret_cast<Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C *>(__this + _offset); Quaternion__ctor_m5F4248FE191AF699AFDC210DCFE25B1D7298DFA0(_thisAdjusted, ___x0, ___y1, ___z2, ___w3, method); } // System.Numerics.Quaternion System.Numerics.Quaternion::CreateFromRotationMatrix(System.Numerics.Matrix4x4) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C Quaternion_CreateFromRotationMatrix_m6D75AB933960CD5810A6F41FAA5443C2286ECBF7 (Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 ___matrix0, const RuntimeMethod* method) { float V_0 = 0.0f; Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C V_1; memset((&V_1), 0, sizeof(V_1)); float V_2 = 0.0f; float V_3 = 0.0f; float V_4 = 0.0f; float V_5 = 0.0f; float V_6 = 0.0f; float V_7 = 0.0f; float V_8 = 0.0f; { Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_0 = ___matrix0; float L_1 = L_0.get_M11_0(); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_2 = ___matrix0; float L_3 = L_2.get_M22_5(); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_4 = ___matrix0; float L_5 = L_4.get_M33_10(); V_0 = ((float)il2cpp_codegen_add((float)((float)il2cpp_codegen_add((float)L_1, (float)L_3)), (float)L_5)); il2cpp_codegen_initobj((&V_1), sizeof(Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C )); float L_6 = V_0; if ((!(((float)L_6) > ((float)(0.0f))))) { goto IL_008f; } } { float L_7 = V_0; float L_8; L_8 = MathF_Sqrt_m904217E240C5181543997D0466D6D9A0675C2435_inline(((float)il2cpp_codegen_add((float)L_7, (float)(1.0f))), /*hidden argument*/NULL); V_2 = L_8; float L_9 = V_2; (&V_1)->set_W_3(((float)il2cpp_codegen_multiply((float)L_9, (float)(0.5f)))); float L_10 = V_2; V_2 = ((float)((float)(0.5f)/(float)L_10)); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_11 = ___matrix0; float L_12 = L_11.get_M23_6(); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_13 = ___matrix0; float L_14 = L_13.get_M32_9(); float L_15 = V_2; (&V_1)->set_X_0(((float)il2cpp_codegen_multiply((float)((float)il2cpp_codegen_subtract((float)L_12, (float)L_14)), (float)L_15))); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_16 = ___matrix0; float L_17 = L_16.get_M31_8(); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_18 = ___matrix0; float L_19 = L_18.get_M13_2(); float L_20 = V_2; (&V_1)->set_Y_1(((float)il2cpp_codegen_multiply((float)((float)il2cpp_codegen_subtract((float)L_17, (float)L_19)), (float)L_20))); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_21 = ___matrix0; float L_22 = L_21.get_M12_1(); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_23 = ___matrix0; float L_24 = L_23.get_M21_4(); float L_25 = V_2; (&V_1)->set_Z_2(((float)il2cpp_codegen_multiply((float)((float)il2cpp_codegen_subtract((float)L_22, (float)L_24)), (float)L_25))); goto IL_0243; } IL_008f: { Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_26 = ___matrix0; float L_27 = L_26.get_M11_0(); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_28 = ___matrix0; float L_29 = L_28.get_M22_5(); if ((!(((float)L_27) >= ((float)L_29)))) { goto IL_0132; } } { Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_30 = ___matrix0; float L_31 = L_30.get_M11_0(); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_32 = ___matrix0; float L_33 = L_32.get_M33_10(); if ((!(((float)L_31) >= ((float)L_33)))) { goto IL_0132; } } { Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_34 = ___matrix0; float L_35 = L_34.get_M11_0(); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_36 = ___matrix0; float L_37 = L_36.get_M22_5(); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_38 = ___matrix0; float L_39 = L_38.get_M33_10(); float L_40; L_40 = MathF_Sqrt_m904217E240C5181543997D0466D6D9A0675C2435_inline(((float)il2cpp_codegen_subtract((float)((float)il2cpp_codegen_subtract((float)((float)il2cpp_codegen_add((float)(1.0f), (float)L_35)), (float)L_37)), (float)L_39)), /*hidden argument*/NULL); V_3 = L_40; float L_41 = V_3; V_4 = ((float)((float)(0.5f)/(float)L_41)); float L_42 = V_3; (&V_1)->set_X_0(((float)il2cpp_codegen_multiply((float)(0.5f), (float)L_42))); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_43 = ___matrix0; float L_44 = L_43.get_M12_1(); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_45 = ___matrix0; float L_46 = L_45.get_M21_4(); float L_47 = V_4; (&V_1)->set_Y_1(((float)il2cpp_codegen_multiply((float)((float)il2cpp_codegen_add((float)L_44, (float)L_46)), (float)L_47))); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_48 = ___matrix0; float L_49 = L_48.get_M13_2(); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_50 = ___matrix0; float L_51 = L_50.get_M31_8(); float L_52 = V_4; (&V_1)->set_Z_2(((float)il2cpp_codegen_multiply((float)((float)il2cpp_codegen_add((float)L_49, (float)L_51)), (float)L_52))); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_53 = ___matrix0; float L_54 = L_53.get_M23_6(); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_55 = ___matrix0; float L_56 = L_55.get_M32_9(); float L_57 = V_4; (&V_1)->set_W_3(((float)il2cpp_codegen_multiply((float)((float)il2cpp_codegen_subtract((float)L_54, (float)L_56)), (float)L_57))); goto IL_0243; } IL_0132: { Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_58 = ___matrix0; float L_59 = L_58.get_M22_5(); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_60 = ___matrix0; float L_61 = L_60.get_M33_10(); if ((!(((float)L_59) > ((float)L_61)))) { goto IL_01c4; } } { Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_62 = ___matrix0; float L_63 = L_62.get_M22_5(); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_64 = ___matrix0; float L_65 = L_64.get_M11_0(); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_66 = ___matrix0; float L_67 = L_66.get_M33_10(); float L_68; L_68 = MathF_Sqrt_m904217E240C5181543997D0466D6D9A0675C2435_inline(((float)il2cpp_codegen_subtract((float)((float)il2cpp_codegen_subtract((float)((float)il2cpp_codegen_add((float)(1.0f), (float)L_63)), (float)L_65)), (float)L_67)), /*hidden argument*/NULL); V_5 = L_68; float L_69 = V_5; V_6 = ((float)((float)(0.5f)/(float)L_69)); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_70 = ___matrix0; float L_71 = L_70.get_M21_4(); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_72 = ___matrix0; float L_73 = L_72.get_M12_1(); float L_74 = V_6; (&V_1)->set_X_0(((float)il2cpp_codegen_multiply((float)((float)il2cpp_codegen_add((float)L_71, (float)L_73)), (float)L_74))); float L_75 = V_5; (&V_1)->set_Y_1(((float)il2cpp_codegen_multiply((float)(0.5f), (float)L_75))); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_76 = ___matrix0; float L_77 = L_76.get_M32_9(); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_78 = ___matrix0; float L_79 = L_78.get_M23_6(); float L_80 = V_6; (&V_1)->set_Z_2(((float)il2cpp_codegen_multiply((float)((float)il2cpp_codegen_add((float)L_77, (float)L_79)), (float)L_80))); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_81 = ___matrix0; float L_82 = L_81.get_M31_8(); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_83 = ___matrix0; float L_84 = L_83.get_M13_2(); float L_85 = V_6; (&V_1)->set_W_3(((float)il2cpp_codegen_multiply((float)((float)il2cpp_codegen_subtract((float)L_82, (float)L_84)), (float)L_85))); goto IL_0243; } IL_01c4: { Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_86 = ___matrix0; float L_87 = L_86.get_M33_10(); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_88 = ___matrix0; float L_89 = L_88.get_M11_0(); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_90 = ___matrix0; float L_91 = L_90.get_M22_5(); float L_92; L_92 = MathF_Sqrt_m904217E240C5181543997D0466D6D9A0675C2435_inline(((float)il2cpp_codegen_subtract((float)((float)il2cpp_codegen_subtract((float)((float)il2cpp_codegen_add((float)(1.0f), (float)L_87)), (float)L_89)), (float)L_91)), /*hidden argument*/NULL); V_7 = L_92; float L_93 = V_7; V_8 = ((float)((float)(0.5f)/(float)L_93)); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_94 = ___matrix0; float L_95 = L_94.get_M31_8(); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_96 = ___matrix0; float L_97 = L_96.get_M13_2(); float L_98 = V_8; (&V_1)->set_X_0(((float)il2cpp_codegen_multiply((float)((float)il2cpp_codegen_add((float)L_95, (float)L_97)), (float)L_98))); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_99 = ___matrix0; float L_100 = L_99.get_M32_9(); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_101 = ___matrix0; float L_102 = L_101.get_M23_6(); float L_103 = V_8; (&V_1)->set_Y_1(((float)il2cpp_codegen_multiply((float)((float)il2cpp_codegen_add((float)L_100, (float)L_102)), (float)L_103))); float L_104 = V_7; (&V_1)->set_Z_2(((float)il2cpp_codegen_multiply((float)(0.5f), (float)L_104))); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_105 = ___matrix0; float L_106 = L_105.get_M12_1(); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_107 = ___matrix0; float L_108 = L_107.get_M21_4(); float L_109 = V_8; (&V_1)->set_W_3(((float)il2cpp_codegen_multiply((float)((float)il2cpp_codegen_subtract((float)L_106, (float)L_108)), (float)L_109))); } IL_0243: { Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C L_110 = V_1; return L_110; } } // System.Boolean System.Numerics.Quaternion::Equals(System.Numerics.Quaternion) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Quaternion_Equals_mFB70C52814F0C67B1A4A719C916A8EF0D8DB5ED5 (Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C * __this, Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C ___other0, const RuntimeMethod* method) { { float L_0 = __this->get_X_0(); Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C L_1 = ___other0; float L_2 = L_1.get_X_0(); if ((!(((float)L_0) == ((float)L_2)))) { goto IL_0039; } } { float L_3 = __this->get_Y_1(); Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C L_4 = ___other0; float L_5 = L_4.get_Y_1(); if ((!(((float)L_3) == ((float)L_5)))) { goto IL_0039; } } { float L_6 = __this->get_Z_2(); Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C L_7 = ___other0; float L_8 = L_7.get_Z_2(); if ((!(((float)L_6) == ((float)L_8)))) { goto IL_0039; } } { float L_9 = __this->get_W_3(); Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C L_10 = ___other0; float L_11 = L_10.get_W_3(); return (bool)((((float)L_9) == ((float)L_11))? 1 : 0); } IL_0039: { return (bool)0; } } IL2CPP_EXTERN_C bool Quaternion_Equals_mFB70C52814F0C67B1A4A719C916A8EF0D8DB5ED5_AdjustorThunk (RuntimeObject * __this, Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C ___other0, const RuntimeMethod* method) { int32_t _offset = 1; Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C * _thisAdjusted = reinterpret_cast<Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C *>(__this + _offset); bool _returnValue; _returnValue = Quaternion_Equals_mFB70C52814F0C67B1A4A719C916A8EF0D8DB5ED5(_thisAdjusted, ___other0, method); return _returnValue; } // System.Boolean System.Numerics.Quaternion::Equals(System.Object) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Quaternion_Equals_m981AE209DDA0F4A09C797E0651325A5AF4C9B7D9 (Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C * __this, RuntimeObject * ___obj0, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } { RuntimeObject * L_0 = ___obj0; if (!((RuntimeObject *)IsInstSealed((RuntimeObject*)L_0, Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C_il2cpp_TypeInfo_var))) { goto IL_0015; } } { RuntimeObject * L_1 = ___obj0; bool L_2; L_2 = Quaternion_Equals_mFB70C52814F0C67B1A4A719C916A8EF0D8DB5ED5((Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C *)__this, ((*(Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C *)((Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C *)UnBox(L_1, Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C_il2cpp_TypeInfo_var)))), /*hidden argument*/NULL); return L_2; } IL_0015: { return (bool)0; } } IL2CPP_EXTERN_C bool Quaternion_Equals_m981AE209DDA0F4A09C797E0651325A5AF4C9B7D9_AdjustorThunk (RuntimeObject * __this, RuntimeObject * ___obj0, const RuntimeMethod* method) { int32_t _offset = 1; Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C * _thisAdjusted = reinterpret_cast<Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C *>(__this + _offset); bool _returnValue; _returnValue = Quaternion_Equals_m981AE209DDA0F4A09C797E0651325A5AF4C9B7D9(_thisAdjusted, ___obj0, method); return _returnValue; } // System.String System.Numerics.Quaternion::ToString() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* Quaternion_ToString_mA741B70C582F99AF851DB20A0C9CD7569D930783 (Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C * __this, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&_stringLiteral4DC02E9DBA2BBA6B0B90CAE0980D70CE6132DCD1); s_Il2CppMethodInitialized = true; } CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 * V_0 = NULL; { IL2CPP_RUNTIME_CLASS_INIT(CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98_il2cpp_TypeInfo_var); CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 * L_0; L_0 = CultureInfo_get_CurrentCulture_m99E5F5BD20445F2A73F7EA0014A4E783DF3840BB(/*hidden argument*/NULL); V_0 = L_0; CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 * L_1 = V_0; ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE* L_2 = (ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE*)(ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE*)SZArrayNew(ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE_il2cpp_TypeInfo_var, (uint32_t)4); ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE* L_3 = L_2; float* L_4 = __this->get_address_of_X_0(); CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 * L_5 = V_0; String_t* L_6; L_6 = Single_ToString_mF554E46C641C609768519378FB0486DFD7F82985((float*)L_4, L_5, /*hidden argument*/NULL); NullCheck(L_3); ArrayElementTypeCheck (L_3, L_6); (L_3)->SetAt(static_cast<il2cpp_array_size_t>(0), (RuntimeObject *)L_6); ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE* L_7 = L_3; float* L_8 = __this->get_address_of_Y_1(); CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 * L_9 = V_0; String_t* L_10; L_10 = Single_ToString_mF554E46C641C609768519378FB0486DFD7F82985((float*)L_8, L_9, /*hidden argument*/NULL); NullCheck(L_7); ArrayElementTypeCheck (L_7, L_10); (L_7)->SetAt(static_cast<il2cpp_array_size_t>(1), (RuntimeObject *)L_10); ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE* L_11 = L_7; float* L_12 = __this->get_address_of_Z_2(); CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 * L_13 = V_0; String_t* L_14; L_14 = Single_ToString_mF554E46C641C609768519378FB0486DFD7F82985((float*)L_12, L_13, /*hidden argument*/NULL); NullCheck(L_11); ArrayElementTypeCheck (L_11, L_14); (L_11)->SetAt(static_cast<il2cpp_array_size_t>(2), (RuntimeObject *)L_14); ObjectU5BU5D_tC1F4EE0DB0B7300255F5FD4AF64FE4C585CF5ADE* L_15 = L_11; float* L_16 = __this->get_address_of_W_3(); CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 * L_17 = V_0; String_t* L_18; L_18 = Single_ToString_mF554E46C641C609768519378FB0486DFD7F82985((float*)L_16, L_17, /*hidden argument*/NULL); NullCheck(L_15); ArrayElementTypeCheck (L_15, L_18); (L_15)->SetAt(static_cast<il2cpp_array_size_t>(3), (RuntimeObject *)L_18); String_t* L_19; L_19 = String_Format_mF96F0621DC567D09C07F1EAC66B31AD261A9DC21(L_1, _stringLiteral4DC02E9DBA2BBA6B0B90CAE0980D70CE6132DCD1, L_15, /*hidden argument*/NULL); return L_19; } } IL2CPP_EXTERN_C String_t* Quaternion_ToString_mA741B70C582F99AF851DB20A0C9CD7569D930783_AdjustorThunk (RuntimeObject * __this, const RuntimeMethod* method) { int32_t _offset = 1; Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C * _thisAdjusted = reinterpret_cast<Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C *>(__this + _offset); String_t* _returnValue; _returnValue = Quaternion_ToString_mA741B70C582F99AF851DB20A0C9CD7569D930783(_thisAdjusted, method); return _returnValue; } // System.Int32 System.Numerics.Quaternion::GetHashCode() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Quaternion_GetHashCode_m2AEEE9647E9B6BF1554BA67FF3C369409FD0B83A (Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C * __this, const RuntimeMethod* method) { { float* L_0 = __this->get_address_of_X_0(); int32_t L_1; L_1 = Single_GetHashCode_m7662E1812DDDBC85D464398740CFFC3588DFB2C9((float*)L_0, /*hidden argument*/NULL); float* L_2 = __this->get_address_of_Y_1(); int32_t L_3; L_3 = Single_GetHashCode_m7662E1812DDDBC85D464398740CFFC3588DFB2C9((float*)L_2, /*hidden argument*/NULL); float* L_4 = __this->get_address_of_Z_2(); int32_t L_5; L_5 = Single_GetHashCode_m7662E1812DDDBC85D464398740CFFC3588DFB2C9((float*)L_4, /*hidden argument*/NULL); float* L_6 = __this->get_address_of_W_3(); int32_t L_7; L_7 = Single_GetHashCode_m7662E1812DDDBC85D464398740CFFC3588DFB2C9((float*)L_6, /*hidden argument*/NULL); return ((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_add((int32_t)((int32_t)il2cpp_codegen_add((int32_t)L_1, (int32_t)L_3)), (int32_t)L_5)), (int32_t)L_7)); } } IL2CPP_EXTERN_C int32_t Quaternion_GetHashCode_m2AEEE9647E9B6BF1554BA67FF3C369409FD0B83A_AdjustorThunk (RuntimeObject * __this, const RuntimeMethod* method) { int32_t _offset = 1; Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C * _thisAdjusted = reinterpret_cast<Quaternion_tE38335092171ED778CFD631B55A5C81347A93E8C *>(__this + _offset); int32_t _returnValue; _returnValue = Quaternion_GetHashCode_m2AEEE9647E9B6BF1554BA67FF3C369409FD0B83A(_thisAdjusted, method); return _returnValue; } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Boolean System.Numerics.Vector::get_IsHardwareAccelerated() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Vector_get_IsHardwareAccelerated_m3BD40AD300CA3DBE95EEEF5D3A09AA2C276525B0 (const RuntimeMethod* method) { { return (bool)0; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif // System.Numerics.Vector3 System.Numerics.Vector3::get_Zero() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 Vector3_get_Zero_mDDD8591FBCC5C4DDCE318AE5AA2CA1358E2485E3 (const RuntimeMethod* method) { Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 V_0; memset((&V_0), 0, sizeof(V_0)); { il2cpp_codegen_initobj((&V_0), sizeof(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 )); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_0 = V_0; return L_0; } } // System.Int32 System.Numerics.Vector3::GetHashCode() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int32_t Vector3_GetHashCode_m5007ED59E489EFDEFCB1D868FC948EDC49B6339D (Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 * __this, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&HashHelpers_t9CEAA5EB2CF719D22684A23A40FD24BA498775E4_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } { float* L_0 = __this->get_address_of_X_0(); int32_t L_1; L_1 = Single_GetHashCode_m7662E1812DDDBC85D464398740CFFC3588DFB2C9((float*)L_0, /*hidden argument*/NULL); float* L_2 = __this->get_address_of_Y_1(); int32_t L_3; L_3 = Single_GetHashCode_m7662E1812DDDBC85D464398740CFFC3588DFB2C9((float*)L_2, /*hidden argument*/NULL); IL2CPP_RUNTIME_CLASS_INIT(HashHelpers_t9CEAA5EB2CF719D22684A23A40FD24BA498775E4_il2cpp_TypeInfo_var); int32_t L_4; L_4 = HashHelpers_Combine_mFCC110506B1B6EA51DBCAC0F7F1E58EED742A3A5(L_1, L_3, /*hidden argument*/NULL); float* L_5 = __this->get_address_of_Z_2(); int32_t L_6; L_6 = Single_GetHashCode_m7662E1812DDDBC85D464398740CFFC3588DFB2C9((float*)L_5, /*hidden argument*/NULL); int32_t L_7; L_7 = HashHelpers_Combine_mFCC110506B1B6EA51DBCAC0F7F1E58EED742A3A5(L_4, L_6, /*hidden argument*/NULL); return L_7; } } IL2CPP_EXTERN_C int32_t Vector3_GetHashCode_m5007ED59E489EFDEFCB1D868FC948EDC49B6339D_AdjustorThunk (RuntimeObject * __this, const RuntimeMethod* method) { int32_t _offset = 1; Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 * _thisAdjusted = reinterpret_cast<Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *>(__this + _offset); int32_t _returnValue; _returnValue = Vector3_GetHashCode_m5007ED59E489EFDEFCB1D868FC948EDC49B6339D(_thisAdjusted, method); return _returnValue; } // System.Boolean System.Numerics.Vector3::Equals(System.Object) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Vector3_Equals_m54F58C09083B02681DAE2727B020EAC20AEFD2AB (Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 * __this, RuntimeObject * ___obj0, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } { RuntimeObject * L_0 = ___obj0; if (((RuntimeObject *)IsInstSealed((RuntimeObject*)L_0, Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4_il2cpp_TypeInfo_var))) { goto IL_000a; } } { return (bool)0; } IL_000a: { RuntimeObject * L_1 = ___obj0; bool L_2; L_2 = Vector3_Equals_m32203E71072E2FF76E14F073E2207BCED63F1E82((Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *)__this, ((*(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *)((Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *)UnBox(L_1, Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4_il2cpp_TypeInfo_var)))), /*hidden argument*/NULL); return L_2; } } IL2CPP_EXTERN_C bool Vector3_Equals_m54F58C09083B02681DAE2727B020EAC20AEFD2AB_AdjustorThunk (RuntimeObject * __this, RuntimeObject * ___obj0, const RuntimeMethod* method) { int32_t _offset = 1; Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 * _thisAdjusted = reinterpret_cast<Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *>(__this + _offset); bool _returnValue; _returnValue = Vector3_Equals_m54F58C09083B02681DAE2727B020EAC20AEFD2AB_inline(_thisAdjusted, ___obj0, method); return _returnValue; } // System.String System.Numerics.Vector3::ToString() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* Vector3_ToString_m5D8C52853AAC8AC53276607BB9105CFB307B157E (Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 * __this, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&_stringLiteral3DCC6243286938BE75C3FA773B9BA71160A2E869); s_Il2CppMethodInitialized = true; } { IL2CPP_RUNTIME_CLASS_INIT(CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98_il2cpp_TypeInfo_var); CultureInfo_t1B787142231DB79ABDCE0659823F908A040E9A98 * L_0; L_0 = CultureInfo_get_CurrentCulture_m99E5F5BD20445F2A73F7EA0014A4E783DF3840BB(/*hidden argument*/NULL); String_t* L_1; L_1 = Vector3_ToString_m9B642FAC459C548A376365637E82DFB5001E2DAD((Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *)__this, _stringLiteral3DCC6243286938BE75C3FA773B9BA71160A2E869, L_0, /*hidden argument*/NULL); return L_1; } } IL2CPP_EXTERN_C String_t* Vector3_ToString_m5D8C52853AAC8AC53276607BB9105CFB307B157E_AdjustorThunk (RuntimeObject * __this, const RuntimeMethod* method) { int32_t _offset = 1; Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 * _thisAdjusted = reinterpret_cast<Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *>(__this + _offset); String_t* _returnValue; _returnValue = Vector3_ToString_m5D8C52853AAC8AC53276607BB9105CFB307B157E(_thisAdjusted, method); return _returnValue; } // System.String System.Numerics.Vector3::ToString(System.String,System.IFormatProvider) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR String_t* Vector3_ToString_m9B642FAC459C548A376365637E82DFB5001E2DAD (Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 * __this, String_t* ___format0, RuntimeObject* ___formatProvider1, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_il2cpp_TypeInfo_var); il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&StringBuilder_t_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } String_t* V_0 = NULL; { StringBuilder_t * L_0 = (StringBuilder_t *)il2cpp_codegen_object_new(StringBuilder_t_il2cpp_TypeInfo_var); StringBuilder__ctor_m5A81DE19E748F748E19FF13FB6FFD2547F9212D9(L_0, /*hidden argument*/NULL); RuntimeObject* L_1 = ___formatProvider1; NumberFormatInfo_t58780B43B6A840C38FD10C50CDFE2128884CAD1D * L_2; L_2 = NumberFormatInfo_GetInstance_mE5108A48B8BFDB2158C05951FACC08AFB09FDDBB(L_1, /*hidden argument*/NULL); NullCheck(L_2); String_t* L_3; L_3 = NumberFormatInfo_get_NumberGroupSeparator_m1D17A9A056016A546F4C5255FA2DBEC532FC1BF1_inline(L_2, /*hidden argument*/NULL); V_0 = L_3; StringBuilder_t * L_4 = L_0; NullCheck(L_4); StringBuilder_t * L_5; L_5 = StringBuilder_Append_m1ADA3C16E40BF253BCDB5F9579B4DBA9C3E5B22E(L_4, ((int32_t)60), /*hidden argument*/NULL); StringBuilder_t * L_6 = L_4; float L_7 = __this->get_X_0(); float L_8 = L_7; RuntimeObject * L_9 = Box(Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_il2cpp_TypeInfo_var, &L_8); String_t* L_10 = ___format0; RuntimeObject* L_11 = ___formatProvider1; String_t* L_12; L_12 = Single_ToString_m7631D332703B4197EAA7DC0BA067CE7E16334D8B((float*)UnBox(L_9, Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_il2cpp_TypeInfo_var), L_10, L_11, /*hidden argument*/NULL); NullCheck(L_6); StringBuilder_t * L_13; L_13 = StringBuilder_Append_mD02AB0C74C6F55E3E330818C77EC147E22096FB1(L_6, L_12, /*hidden argument*/NULL); StringBuilder_t * L_14 = L_6; String_t* L_15 = V_0; NullCheck(L_14); StringBuilder_t * L_16; L_16 = StringBuilder_Append_mD02AB0C74C6F55E3E330818C77EC147E22096FB1(L_14, L_15, /*hidden argument*/NULL); StringBuilder_t * L_17 = L_14; NullCheck(L_17); StringBuilder_t * L_18; L_18 = StringBuilder_Append_m1ADA3C16E40BF253BCDB5F9579B4DBA9C3E5B22E(L_17, ((int32_t)32), /*hidden argument*/NULL); StringBuilder_t * L_19 = L_17; float L_20 = __this->get_Y_1(); float L_21 = L_20; RuntimeObject * L_22 = Box(Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_il2cpp_TypeInfo_var, &L_21); String_t* L_23 = ___format0; RuntimeObject* L_24 = ___formatProvider1; String_t* L_25; L_25 = Single_ToString_m7631D332703B4197EAA7DC0BA067CE7E16334D8B((float*)UnBox(L_22, Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_il2cpp_TypeInfo_var), L_23, L_24, /*hidden argument*/NULL); NullCheck(L_19); StringBuilder_t * L_26; L_26 = StringBuilder_Append_mD02AB0C74C6F55E3E330818C77EC147E22096FB1(L_19, L_25, /*hidden argument*/NULL); StringBuilder_t * L_27 = L_19; String_t* L_28 = V_0; NullCheck(L_27); StringBuilder_t * L_29; L_29 = StringBuilder_Append_mD02AB0C74C6F55E3E330818C77EC147E22096FB1(L_27, L_28, /*hidden argument*/NULL); StringBuilder_t * L_30 = L_27; NullCheck(L_30); StringBuilder_t * L_31; L_31 = StringBuilder_Append_m1ADA3C16E40BF253BCDB5F9579B4DBA9C3E5B22E(L_30, ((int32_t)32), /*hidden argument*/NULL); StringBuilder_t * L_32 = L_30; float L_33 = __this->get_Z_2(); float L_34 = L_33; RuntimeObject * L_35 = Box(Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_il2cpp_TypeInfo_var, &L_34); String_t* L_36 = ___format0; RuntimeObject* L_37 = ___formatProvider1; String_t* L_38; L_38 = Single_ToString_m7631D332703B4197EAA7DC0BA067CE7E16334D8B((float*)UnBox(L_35, Single_tE07797BA3C98D4CA9B5A19413C19A76688AB899E_il2cpp_TypeInfo_var), L_36, L_37, /*hidden argument*/NULL); NullCheck(L_32); StringBuilder_t * L_39; L_39 = StringBuilder_Append_mD02AB0C74C6F55E3E330818C77EC147E22096FB1(L_32, L_38, /*hidden argument*/NULL); StringBuilder_t * L_40 = L_32; NullCheck(L_40); StringBuilder_t * L_41; L_41 = StringBuilder_Append_m1ADA3C16E40BF253BCDB5F9579B4DBA9C3E5B22E(L_40, ((int32_t)62), /*hidden argument*/NULL); NullCheck(L_40); String_t* L_42; L_42 = VirtFuncInvoker0< String_t* >::Invoke(3 /* System.String System.Object::ToString() */, L_40); return L_42; } } IL2CPP_EXTERN_C String_t* Vector3_ToString_m9B642FAC459C548A376365637E82DFB5001E2DAD_AdjustorThunk (RuntimeObject * __this, String_t* ___format0, RuntimeObject* ___formatProvider1, const RuntimeMethod* method) { int32_t _offset = 1; Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 * _thisAdjusted = reinterpret_cast<Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *>(__this + _offset); String_t* _returnValue; _returnValue = Vector3_ToString_m9B642FAC459C548A376365637E82DFB5001E2DAD(_thisAdjusted, ___format0, ___formatProvider1, method); return _returnValue; } // System.Single System.Numerics.Vector3::Length() IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float Vector3_Length_mFF8BCD98596F2A4DB1549D89DF257A97FD671DEF (Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 * __this, const RuntimeMethod* method) { { bool L_0; L_0 = Vector_get_IsHardwareAccelerated_m3BD40AD300CA3DBE95EEEF5D3A09AA2C276525B0(/*hidden argument*/NULL); if (!L_0) { goto IL_001e; } } { Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_1 = (*(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *)__this); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_2 = (*(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *)__this); float L_3; L_3 = Vector3_Dot_m61A00E6400E6F54634C0DCD262E1B756951F0728_inline(L_1, L_2, /*hidden argument*/NULL); float L_4; L_4 = MathF_Sqrt_m904217E240C5181543997D0466D6D9A0675C2435_inline(L_3, /*hidden argument*/NULL); return L_4; } IL_001e: { float L_5 = __this->get_X_0(); float L_6 = __this->get_X_0(); float L_7 = __this->get_Y_1(); float L_8 = __this->get_Y_1(); float L_9 = __this->get_Z_2(); float L_10 = __this->get_Z_2(); float L_11; L_11 = MathF_Sqrt_m904217E240C5181543997D0466D6D9A0675C2435_inline(((float)il2cpp_codegen_add((float)((float)il2cpp_codegen_add((float)((float)il2cpp_codegen_multiply((float)L_5, (float)L_6)), (float)((float)il2cpp_codegen_multiply((float)L_7, (float)L_8)))), (float)((float)il2cpp_codegen_multiply((float)L_9, (float)L_10)))), /*hidden argument*/NULL); return L_11; } } IL2CPP_EXTERN_C float Vector3_Length_mFF8BCD98596F2A4DB1549D89DF257A97FD671DEF_AdjustorThunk (RuntimeObject * __this, const RuntimeMethod* method) { int32_t _offset = 1; Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 * _thisAdjusted = reinterpret_cast<Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *>(__this + _offset); float _returnValue; _returnValue = Vector3_Length_mFF8BCD98596F2A4DB1549D89DF257A97FD671DEF_inline(_thisAdjusted, method); return _returnValue; } // System.Numerics.Vector3 System.Numerics.Vector3::Normalize(System.Numerics.Vector3) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 Vector3_Normalize_m283C15DA0D64B3599A28611DFB37802E459AF9D5 (Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ___value0, const RuntimeMethod* method) { float V_0 = 0.0f; float V_1 = 0.0f; { bool L_0; L_0 = Vector_get_IsHardwareAccelerated_m3BD40AD300CA3DBE95EEEF5D3A09AA2C276525B0(/*hidden argument*/NULL); if (!L_0) { goto IL_0017; } } { float L_1; L_1 = Vector3_Length_mFF8BCD98596F2A4DB1549D89DF257A97FD671DEF_inline((Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *)(&___value0), /*hidden argument*/NULL); V_0 = L_1; Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_2 = ___value0; float L_3 = V_0; Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_4; L_4 = Vector3_op_Division_m70FF5AF01AFA0EA9744F5677C333EE85E91DF56A_inline(L_2, L_3, /*hidden argument*/NULL); return L_4; } IL_0017: { Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_5 = ___value0; float L_6 = L_5.get_X_0(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_7 = ___value0; float L_8 = L_7.get_X_0(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_9 = ___value0; float L_10 = L_9.get_Y_1(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_11 = ___value0; float L_12 = L_11.get_Y_1(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_13 = ___value0; float L_14 = L_13.get_Z_2(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_15 = ___value0; float L_16 = L_15.get_Z_2(); float L_17; L_17 = MathF_Sqrt_m904217E240C5181543997D0466D6D9A0675C2435_inline(((float)il2cpp_codegen_add((float)((float)il2cpp_codegen_add((float)((float)il2cpp_codegen_multiply((float)L_6, (float)L_8)), (float)((float)il2cpp_codegen_multiply((float)L_10, (float)L_12)))), (float)((float)il2cpp_codegen_multiply((float)L_14, (float)L_16)))), /*hidden argument*/NULL); V_1 = L_17; Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_18 = ___value0; float L_19 = L_18.get_X_0(); float L_20 = V_1; Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_21 = ___value0; float L_22 = L_21.get_Y_1(); float L_23 = V_1; Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_24 = ___value0; float L_25 = L_24.get_Z_2(); float L_26 = V_1; Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_27; memset((&L_27), 0, sizeof(L_27)); Vector3__ctor_m7B558F4C62FE430FB22DC54F4BB1865025B04B84((&L_27), ((float)((float)L_19/(float)L_20)), ((float)((float)L_22/(float)L_23)), ((float)((float)L_25/(float)L_26)), /*hidden argument*/NULL); return L_27; } } // System.Numerics.Vector3 System.Numerics.Vector3::Cross(System.Numerics.Vector3,System.Numerics.Vector3) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 Vector3_Cross_mEBF753748F2B7FE0FBB987135D753502193773D8 (Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ___vector10, Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ___vector21, const RuntimeMethod* method) { { Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_0 = ___vector10; float L_1 = L_0.get_Y_1(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_2 = ___vector21; float L_3 = L_2.get_Z_2(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_4 = ___vector10; float L_5 = L_4.get_Z_2(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_6 = ___vector21; float L_7 = L_6.get_Y_1(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_8 = ___vector10; float L_9 = L_8.get_Z_2(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_10 = ___vector21; float L_11 = L_10.get_X_0(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_12 = ___vector10; float L_13 = L_12.get_X_0(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_14 = ___vector21; float L_15 = L_14.get_Z_2(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_16 = ___vector10; float L_17 = L_16.get_X_0(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_18 = ___vector21; float L_19 = L_18.get_Y_1(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_20 = ___vector10; float L_21 = L_20.get_Y_1(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_22 = ___vector21; float L_23 = L_22.get_X_0(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_24; memset((&L_24), 0, sizeof(L_24)); Vector3__ctor_m7B558F4C62FE430FB22DC54F4BB1865025B04B84((&L_24), ((float)il2cpp_codegen_subtract((float)((float)il2cpp_codegen_multiply((float)L_1, (float)L_3)), (float)((float)il2cpp_codegen_multiply((float)L_5, (float)L_7)))), ((float)il2cpp_codegen_subtract((float)((float)il2cpp_codegen_multiply((float)L_9, (float)L_11)), (float)((float)il2cpp_codegen_multiply((float)L_13, (float)L_15)))), ((float)il2cpp_codegen_subtract((float)((float)il2cpp_codegen_multiply((float)L_17, (float)L_19)), (float)((float)il2cpp_codegen_multiply((float)L_21, (float)L_23)))), /*hidden argument*/NULL); return L_24; } } // System.Void System.Numerics.Vector3::.ctor(System.Single,System.Single,System.Single) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR void Vector3__ctor_m7B558F4C62FE430FB22DC54F4BB1865025B04B84 (Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 * __this, float ___x0, float ___y1, float ___z2, const RuntimeMethod* method) { { float L_0 = ___x0; __this->set_X_0(L_0); float L_1 = ___y1; __this->set_Y_1(L_1); float L_2 = ___z2; __this->set_Z_2(L_2); return; } } IL2CPP_EXTERN_C void Vector3__ctor_m7B558F4C62FE430FB22DC54F4BB1865025B04B84_AdjustorThunk (RuntimeObject * __this, float ___x0, float ___y1, float ___z2, const RuntimeMethod* method) { int32_t _offset = 1; Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 * _thisAdjusted = reinterpret_cast<Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *>(__this + _offset); Vector3__ctor_m7B558F4C62FE430FB22DC54F4BB1865025B04B84(_thisAdjusted, ___x0, ___y1, ___z2, method); } // System.Boolean System.Numerics.Vector3::Equals(System.Numerics.Vector3) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR bool Vector3_Equals_m32203E71072E2FF76E14F073E2207BCED63F1E82 (Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 * __this, Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ___other0, const RuntimeMethod* method) { { float L_0 = __this->get_X_0(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_1 = ___other0; float L_2 = L_1.get_X_0(); if ((!(((float)L_0) == ((float)L_2)))) { goto IL_002b; } } { float L_3 = __this->get_Y_1(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_4 = ___other0; float L_5 = L_4.get_Y_1(); if ((!(((float)L_3) == ((float)L_5)))) { goto IL_002b; } } { float L_6 = __this->get_Z_2(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_7 = ___other0; float L_8 = L_7.get_Z_2(); return (bool)((((float)L_6) == ((float)L_8))? 1 : 0); } IL_002b: { return (bool)0; } } IL2CPP_EXTERN_C bool Vector3_Equals_m32203E71072E2FF76E14F073E2207BCED63F1E82_AdjustorThunk (RuntimeObject * __this, Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ___other0, const RuntimeMethod* method) { int32_t _offset = 1; Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 * _thisAdjusted = reinterpret_cast<Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *>(__this + _offset); bool _returnValue; _returnValue = Vector3_Equals_m32203E71072E2FF76E14F073E2207BCED63F1E82(_thisAdjusted, ___other0, method); return _returnValue; } // System.Single System.Numerics.Vector3::Dot(System.Numerics.Vector3,System.Numerics.Vector3) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR float Vector3_Dot_m61A00E6400E6F54634C0DCD262E1B756951F0728 (Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ___vector10, Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ___vector21, const RuntimeMethod* method) { { Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_0 = ___vector10; float L_1 = L_0.get_X_0(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_2 = ___vector21; float L_3 = L_2.get_X_0(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_4 = ___vector10; float L_5 = L_4.get_Y_1(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_6 = ___vector21; float L_7 = L_6.get_Y_1(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_8 = ___vector10; float L_9 = L_8.get_Z_2(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_10 = ___vector21; float L_11 = L_10.get_Z_2(); return ((float)il2cpp_codegen_add((float)((float)il2cpp_codegen_add((float)((float)il2cpp_codegen_multiply((float)L_1, (float)L_3)), (float)((float)il2cpp_codegen_multiply((float)L_5, (float)L_7)))), (float)((float)il2cpp_codegen_multiply((float)L_9, (float)L_11)))); } } // System.Numerics.Vector3 System.Numerics.Vector3::op_Subtraction(System.Numerics.Vector3,System.Numerics.Vector3) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 Vector3_op_Subtraction_m3E0D889641F5863AA583B87BA0D025338276A985 (Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ___left0, Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ___right1, const RuntimeMethod* method) { { Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_0 = ___left0; float L_1 = L_0.get_X_0(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_2 = ___right1; float L_3 = L_2.get_X_0(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_4 = ___left0; float L_5 = L_4.get_Y_1(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_6 = ___right1; float L_7 = L_6.get_Y_1(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_8 = ___left0; float L_9 = L_8.get_Z_2(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_10 = ___right1; float L_11 = L_10.get_Z_2(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_12; memset((&L_12), 0, sizeof(L_12)); Vector3__ctor_m7B558F4C62FE430FB22DC54F4BB1865025B04B84((&L_12), ((float)il2cpp_codegen_subtract((float)L_1, (float)L_3)), ((float)il2cpp_codegen_subtract((float)L_5, (float)L_7)), ((float)il2cpp_codegen_subtract((float)L_9, (float)L_11)), /*hidden argument*/NULL); return L_12; } } // System.Numerics.Vector3 System.Numerics.Vector3::op_Division(System.Numerics.Vector3,System.Single) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 Vector3_op_Division_m70FF5AF01AFA0EA9744F5677C333EE85E91DF56A (Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ___value10, float ___value21, const RuntimeMethod* method) { float V_0 = 0.0f; { float L_0 = ___value21; V_0 = ((float)((float)(1.0f)/(float)L_0)); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_1 = ___value10; float L_2 = L_1.get_X_0(); float L_3 = V_0; Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_4 = ___value10; float L_5 = L_4.get_Y_1(); float L_6 = V_0; Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_7 = ___value10; float L_8 = L_7.get_Z_2(); float L_9 = V_0; Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_10; memset((&L_10), 0, sizeof(L_10)); Vector3__ctor_m7B558F4C62FE430FB22DC54F4BB1865025B04B84((&L_10), ((float)il2cpp_codegen_multiply((float)L_2, (float)L_3)), ((float)il2cpp_codegen_multiply((float)L_5, (float)L_6)), ((float)il2cpp_codegen_multiply((float)L_8, (float)L_9)), /*hidden argument*/NULL); return L_10; } } // System.Numerics.Vector3 System.Numerics.Vector3::op_UnaryNegation(System.Numerics.Vector3) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 Vector3_op_UnaryNegation_m9E58D89BFF6907FA80A522CF563B1E893C71D9D9 (Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ___value0, const RuntimeMethod* method) { { Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_0; L_0 = Vector3_get_Zero_mDDD8591FBCC5C4DDCE318AE5AA2CA1358E2485E3(/*hidden argument*/NULL); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_1 = ___value0; Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_2; L_2 = Vector3_op_Subtraction_m3E0D889641F5863AA583B87BA0D025338276A985_inline(L_0, L_1, /*hidden argument*/NULL); return L_2; } } #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif #ifdef __clang__ #pragma clang diagnostic pop #endif #ifdef __clang__ #pragma clang diagnostic push #pragma clang diagnostic ignored "-Winvalid-offsetof" #pragma clang diagnostic ignored "-Wunused-variable" #endif #ifdef __clang__ #pragma clang diagnostic pop #endif IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 Matrix4x4_get_Identity_mCB71019837846B0A040FE9A74F6DDD0DA2FE8E4D_inline (const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } { IL2CPP_RUNTIME_CLASS_INIT(Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504_il2cpp_TypeInfo_var); Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504 L_0 = ((Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504_StaticFields*)il2cpp_codegen_static_fields_for(Matrix4x4_t5B627955C6D80AF8F1D97A6466CB337DCEEB3504_il2cpp_TypeInfo_var))->get__identity_16(); return L_0; } } IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR float Vector3_Length_mFF8BCD98596F2A4DB1549D89DF257A97FD671DEF_inline (Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 * __this, const RuntimeMethod* method) { { bool L_0; L_0 = Vector_get_IsHardwareAccelerated_m3BD40AD300CA3DBE95EEEF5D3A09AA2C276525B0(/*hidden argument*/NULL); if (!L_0) { goto IL_001e; } } { Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_1 = (*(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *)__this); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_2 = (*(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *)__this); float L_3; L_3 = Vector3_Dot_m61A00E6400E6F54634C0DCD262E1B756951F0728_inline(L_1, L_2, /*hidden argument*/NULL); float L_4; L_4 = MathF_Sqrt_m904217E240C5181543997D0466D6D9A0675C2435_inline(L_3, /*hidden argument*/NULL); return L_4; } IL_001e: { float L_5 = __this->get_X_0(); float L_6 = __this->get_X_0(); float L_7 = __this->get_Y_1(); float L_8 = __this->get_Y_1(); float L_9 = __this->get_Z_2(); float L_10 = __this->get_Z_2(); float L_11; L_11 = MathF_Sqrt_m904217E240C5181543997D0466D6D9A0675C2435_inline(((float)il2cpp_codegen_add((float)((float)il2cpp_codegen_add((float)((float)il2cpp_codegen_multiply((float)L_5, (float)L_6)), (float)((float)il2cpp_codegen_multiply((float)L_7, (float)L_8)))), (float)((float)il2cpp_codegen_multiply((float)L_9, (float)L_10)))), /*hidden argument*/NULL); return L_11; } } IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 Vector3_Normalize_m283C15DA0D64B3599A28611DFB37802E459AF9D5_inline (Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ___value0, const RuntimeMethod* method) { float V_0 = 0.0f; float V_1 = 0.0f; { bool L_0; L_0 = Vector_get_IsHardwareAccelerated_m3BD40AD300CA3DBE95EEEF5D3A09AA2C276525B0(/*hidden argument*/NULL); if (!L_0) { goto IL_0017; } } { float L_1; L_1 = Vector3_Length_mFF8BCD98596F2A4DB1549D89DF257A97FD671DEF_inline((Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *)(&___value0), /*hidden argument*/NULL); V_0 = L_1; Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_2 = ___value0; float L_3 = V_0; Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_4; L_4 = Vector3_op_Division_m70FF5AF01AFA0EA9744F5677C333EE85E91DF56A_inline(L_2, L_3, /*hidden argument*/NULL); return L_4; } IL_0017: { Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_5 = ___value0; float L_6 = L_5.get_X_0(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_7 = ___value0; float L_8 = L_7.get_X_0(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_9 = ___value0; float L_10 = L_9.get_Y_1(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_11 = ___value0; float L_12 = L_11.get_Y_1(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_13 = ___value0; float L_14 = L_13.get_Z_2(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_15 = ___value0; float L_16 = L_15.get_Z_2(); float L_17; L_17 = MathF_Sqrt_m904217E240C5181543997D0466D6D9A0675C2435_inline(((float)il2cpp_codegen_add((float)((float)il2cpp_codegen_add((float)((float)il2cpp_codegen_multiply((float)L_6, (float)L_8)), (float)((float)il2cpp_codegen_multiply((float)L_10, (float)L_12)))), (float)((float)il2cpp_codegen_multiply((float)L_14, (float)L_16)))), /*hidden argument*/NULL); V_1 = L_17; Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_18 = ___value0; float L_19 = L_18.get_X_0(); float L_20 = V_1; Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_21 = ___value0; float L_22 = L_21.get_Y_1(); float L_23 = V_1; Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_24 = ___value0; float L_25 = L_24.get_Z_2(); float L_26 = V_1; Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_27; memset((&L_27), 0, sizeof(L_27)); Vector3__ctor_m7B558F4C62FE430FB22DC54F4BB1865025B04B84((&L_27), ((float)((float)L_19/(float)L_20)), ((float)((float)L_22/(float)L_23)), ((float)((float)L_25/(float)L_26)), /*hidden argument*/NULL); return L_27; } } IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR float MathF_Abs_m39EE850E0173823EBD1862FC41C047087C77D411_inline (float ___x0, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Math_tA269614262430118C9FC5C4D9EF4F61C812568F0_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } { float L_0 = ___x0; IL2CPP_RUNTIME_CLASS_INIT(Math_tA269614262430118C9FC5C4D9EF4F61C812568F0_il2cpp_TypeInfo_var); float L_1; L_1 = fabsf(L_0); return L_1; } } IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 Vector3_Cross_mEBF753748F2B7FE0FBB987135D753502193773D8_inline (Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ___vector10, Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ___vector21, const RuntimeMethod* method) { { Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_0 = ___vector10; float L_1 = L_0.get_Y_1(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_2 = ___vector21; float L_3 = L_2.get_Z_2(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_4 = ___vector10; float L_5 = L_4.get_Z_2(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_6 = ___vector21; float L_7 = L_6.get_Y_1(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_8 = ___vector10; float L_9 = L_8.get_Z_2(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_10 = ___vector21; float L_11 = L_10.get_X_0(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_12 = ___vector10; float L_13 = L_12.get_X_0(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_14 = ___vector21; float L_15 = L_14.get_Z_2(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_16 = ___vector10; float L_17 = L_16.get_X_0(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_18 = ___vector21; float L_19 = L_18.get_Y_1(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_20 = ___vector10; float L_21 = L_20.get_Y_1(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_22 = ___vector21; float L_23 = L_22.get_X_0(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_24; memset((&L_24), 0, sizeof(L_24)); Vector3__ctor_m7B558F4C62FE430FB22DC54F4BB1865025B04B84((&L_24), ((float)il2cpp_codegen_subtract((float)((float)il2cpp_codegen_multiply((float)L_1, (float)L_3)), (float)((float)il2cpp_codegen_multiply((float)L_5, (float)L_7)))), ((float)il2cpp_codegen_subtract((float)((float)il2cpp_codegen_multiply((float)L_9, (float)L_11)), (float)((float)il2cpp_codegen_multiply((float)L_13, (float)L_15)))), ((float)il2cpp_codegen_subtract((float)((float)il2cpp_codegen_multiply((float)L_17, (float)L_19)), (float)((float)il2cpp_codegen_multiply((float)L_21, (float)L_23)))), /*hidden argument*/NULL); return L_24; } } IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 Vector3_op_UnaryNegation_m9E58D89BFF6907FA80A522CF563B1E893C71D9D9_inline (Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ___value0, const RuntimeMethod* method) { { Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_0; L_0 = Vector3_get_Zero_mDDD8591FBCC5C4DDCE318AE5AA2CA1358E2485E3(/*hidden argument*/NULL); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_1 = ___value0; Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_2; L_2 = Vector3_op_Subtraction_m3E0D889641F5863AA583B87BA0D025338276A985_inline(L_0, L_1, /*hidden argument*/NULL); return L_2; } } IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR float MathF_Sqrt_m904217E240C5181543997D0466D6D9A0675C2435_inline (float ___x0, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Math_tA269614262430118C9FC5C4D9EF4F61C812568F0_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } { float L_0 = ___x0; IL2CPP_RUNTIME_CLASS_INIT(Math_tA269614262430118C9FC5C4D9EF4F61C812568F0_il2cpp_TypeInfo_var); double L_1; L_1 = sqrt(((double)((double)L_0))); return ((float)((float)L_1)); } } IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR bool Vector3_Equals_m54F58C09083B02681DAE2727B020EAC20AEFD2AB_inline (Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 * __this, RuntimeObject * ___obj0, const RuntimeMethod* method) { static bool s_Il2CppMethodInitialized; if (!s_Il2CppMethodInitialized) { il2cpp_codegen_initialize_runtime_metadata((uintptr_t*)&Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4_il2cpp_TypeInfo_var); s_Il2CppMethodInitialized = true; } { RuntimeObject * L_0 = ___obj0; if (((RuntimeObject *)IsInstSealed((RuntimeObject*)L_0, Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4_il2cpp_TypeInfo_var))) { goto IL_000a; } } { return (bool)0; } IL_000a: { RuntimeObject * L_1 = ___obj0; bool L_2; L_2 = Vector3_Equals_m32203E71072E2FF76E14F073E2207BCED63F1E82((Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *)__this, ((*(Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *)((Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 *)UnBox(L_1, Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4_il2cpp_TypeInfo_var)))), /*hidden argument*/NULL); return L_2; } } IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR String_t* NumberFormatInfo_get_NumberGroupSeparator_m1D17A9A056016A546F4C5255FA2DBEC532FC1BF1_inline (NumberFormatInfo_t58780B43B6A840C38FD10C50CDFE2128884CAD1D * __this, const RuntimeMethod* method) { { String_t* L_0 = __this->get_numberGroupSeparator_7(); return L_0; } } IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR float Vector3_Dot_m61A00E6400E6F54634C0DCD262E1B756951F0728_inline (Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ___vector10, Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ___vector21, const RuntimeMethod* method) { { Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_0 = ___vector10; float L_1 = L_0.get_X_0(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_2 = ___vector21; float L_3 = L_2.get_X_0(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_4 = ___vector10; float L_5 = L_4.get_Y_1(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_6 = ___vector21; float L_7 = L_6.get_Y_1(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_8 = ___vector10; float L_9 = L_8.get_Z_2(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_10 = ___vector21; float L_11 = L_10.get_Z_2(); return ((float)il2cpp_codegen_add((float)((float)il2cpp_codegen_add((float)((float)il2cpp_codegen_multiply((float)L_1, (float)L_3)), (float)((float)il2cpp_codegen_multiply((float)L_5, (float)L_7)))), (float)((float)il2cpp_codegen_multiply((float)L_9, (float)L_11)))); } } IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 Vector3_op_Division_m70FF5AF01AFA0EA9744F5677C333EE85E91DF56A_inline (Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ___value10, float ___value21, const RuntimeMethod* method) { float V_0 = 0.0f; { float L_0 = ___value21; V_0 = ((float)((float)(1.0f)/(float)L_0)); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_1 = ___value10; float L_2 = L_1.get_X_0(); float L_3 = V_0; Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_4 = ___value10; float L_5 = L_4.get_Y_1(); float L_6 = V_0; Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_7 = ___value10; float L_8 = L_7.get_Z_2(); float L_9 = V_0; Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_10; memset((&L_10), 0, sizeof(L_10)); Vector3__ctor_m7B558F4C62FE430FB22DC54F4BB1865025B04B84((&L_10), ((float)il2cpp_codegen_multiply((float)L_2, (float)L_3)), ((float)il2cpp_codegen_multiply((float)L_5, (float)L_6)), ((float)il2cpp_codegen_multiply((float)L_8, (float)L_9)), /*hidden argument*/NULL); return L_10; } } IL2CPP_MANAGED_FORCE_INLINE IL2CPP_METHOD_ATTR Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 Vector3_op_Subtraction_m3E0D889641F5863AA583B87BA0D025338276A985_inline (Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ___left0, Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 ___right1, const RuntimeMethod* method) { { Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_0 = ___left0; float L_1 = L_0.get_X_0(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_2 = ___right1; float L_3 = L_2.get_X_0(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_4 = ___left0; float L_5 = L_4.get_Y_1(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_6 = ___right1; float L_7 = L_6.get_Y_1(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_8 = ___left0; float L_9 = L_8.get_Z_2(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_10 = ___right1; float L_11 = L_10.get_Z_2(); Vector3_t8DE19479CE3BD4C34B7AF76E89F5523A14FE37F4 L_12; memset((&L_12), 0, sizeof(L_12)); Vector3__ctor_m7B558F4C62FE430FB22DC54F4BB1865025B04B84((&L_12), ((float)il2cpp_codegen_subtract((float)L_1, (float)L_3)), ((float)il2cpp_codegen_subtract((float)L_5, (float)L_7)), ((float)il2cpp_codegen_subtract((float)L_9, (float)L_11)), /*hidden argument*/NULL); return L_12; } }
[ "ss3448@scarletmail.rutgers.edu" ]
ss3448@scarletmail.rutgers.edu
c31768e24556047b14cc79e6790dbf33b6379eb3
a7c4aca213a2a6450b37609d395a887c6a96e049
/monsterbreaker/Classes/ItemHalfHeart.h
2ccbe4602c09386355125f3fad073a77a9e75d96
[]
no_license
ilhaeYe/MB
ba6172fbde53d1ca03b11e2243b6f4c797df29a7
9d4d6e9aa8fdfb6205ba5a6ebca7b6ec8f24e9e5
refs/heads/master
2020-12-25T17:56:14.480060
2018-07-15T20:45:27
2018-07-15T20:45:27
38,498,603
0
1
null
null
null
null
UTF-8
C++
false
false
477
h
#pragma once #ifndef __ITEM_HALF_HEART_H__ #define __ITEM_HALF_HEART_H__ #include "cocos2d.h" #include "Definitions.h" #include "Hero.h" #include "Item.h" #include "cocostudio\CocoStudio.h" #include "ui\CocosGUI.h" class ItemHalfHeart : public Item { public : ItemHalfHeart(cocos2d::Layer * layer, Hero * hero, bool isShop); static ItemHalfHeart* create(cocos2d::Layer * layer, Hero * hero, bool isShop); virtual void ClickEvent(); }; #endif // __ITEM_HALF_HEART_H__
[ "yeaih89@gmail.com" ]
yeaih89@gmail.com
76ae22d82f48c89ebb7f675d6e4842d2bbdaedda
35f084540ef11f55f9f82f36f44827aea65248a6
/NodeMCU Files/NodeMCU-Thermal-Controller-DHT/NodeMCU-Thermal-Controller-DHT.ino
b6bb57a7254677ed11cafe8f82facfd06570feb1
[ "Apache-2.0" ]
permissive
aandroide/google-actions-smarthome
b51d440d7fb9152ddf8fea512fe7abbe575adc41
988ead1f50b7e4c117ad7a13eb88ff16ff337905
refs/heads/master
2021-05-18T14:02:04.924613
2020-04-15T17:08:50
2020-04-15T17:08:50
251,272,929
2
0
Apache-2.0
2020-03-30T10:31:59
2020-03-30T10:31:58
null
UTF-8
C++
false
false
4,391
ino
//************************Written by Sid for Sid's E Classroom***************************** //**********************https://www.youtube.com/c/SidsEClassroom*************************** //*************************https://github.com/shivasiddharth******************************* //*************************Do not modify or remove this part******************************* //************If you are modifying or re-using the code, credit the the author************* //This sketch has been adapted from Aandroide #include <FirebaseArduino.h> #include <ESP8266WiFi.h> #include <DNSServer.h> #include <ESP8266WebServer.h> #include <WiFiManager.h> #include <DHT.h> // On a Trinket or Gemma we suggest changing this to 1: //Pin is set for Wemos d1 mini. If using any other board, change it accordingly. #define RELAY_PIN D6 #define DHTPIN 2 //connected to pin D4 which already has a pull up resistance #define PWRSENSOR D5 //pin to be connected to the + of the sensor temperature // Uncomment the type of sensor in use: //#define DHTTYPE DHT11 // DHT 11 #define DHTTYPE DHT22 // DHT 22 (AM2302) //#define DHTTYPE DHT21 // DHT 21 (AM2301) DHT dht(DHTPIN, DHTTYPE); //Firebase Database URL and KEY #define FIREBASE_DATABASE_URL "ENTER YOUR FIREBASE DATABASE URL HERE" #define FIREBASE_KEY "ENTER YOUR FIREBASE KEY HERE" //Set the ID to the device id used in the index.json file static const String STRMDEVID = "4"; //Variables float temperature; float humidity; unsigned long previousMillis = 0; const long interval = 10000; // interval to refresh temp from sensor (10 seconds) void setup() { Serial.begin(115200); dht.begin(); pinMode(RELAY_PIN, OUTPUT); digitalWrite(RELAY_PIN, LOW); pinMode(PWRSENSOR, OUTPUT); digitalWrite(PWRSENSOR, HIGH); //WiFi Manager WiFiManager wifiManager; wifiManager.autoConnect(); Serial.println("Connected.."); //Firebase Declaration Firebase.begin(FIREBASE_DATABASE_URL, FIREBASE_KEY); Firebase.stream(STRMDEVID); } void loop() { unsigned long currentMillis = millis(); if (currentMillis - previousMillis >= interval) { // save the last time you updated the temp values previousMillis = currentMillis; // Read temperature as Celsius (the default) float newT = dht.readTemperature(); if (isnan(newT)) { Serial.println("Failed to read from DHT sensor!"); } else { temperature = newT - 2.00; Serial.print("temperature detected: "); Serial.print(temperature); Serial.println(" C°"); Firebase.setFloat("/" + STRMDEVID + "/TemperatureSetting/thermostatTemperatureAmbient", temperature); } // Read Humidity float newH = dht.readHumidity(); // if humidity read failed, don't change h value if (isnan(newH)) { Serial.println("Failed to read from DHT sensor!"); } else { humidity = newH ; Serial.print("humidity: "); Serial.print(humidity); Serial.println(" %"); Firebase.setFloat("/" + STRMDEVID + "/TemperatureSetting/thermostatHumidityAmbient", humidity); } } //Check Firebase connection if (Firebase.failed()) { Serial.println("Streaming Error"); Serial.println(Firebase.error()); } if (Firebase.available()) { FirebaseObject event = Firebase.readEvent(); String eventType = event.getString("type"); eventType.toLowerCase(); Serial.println(eventType); String path = event.getString("path"); Serial.println(path); if (eventType == "patch" || eventType == "put" ) { if (path == "/thermostatTemperatureSetpoint/", "") { float temperature_set = Firebase.getFloat("/" + STRMDEVID + "/TemperatureSetting/thermostatTemperatureSetpoint/"); Serial.print("temp set to: "); Serial.print(temperature_set); Serial.println(" C°"); if (temperature < temperature_set) { digitalWrite(RELAY_PIN, HIGH); } if (temperature > temperature_set) { digitalWrite(RELAY_PIN, LOW); } } if (path == "/thermostatMode/", "") { String set_mode = (Firebase.getString("/" + STRMDEVID + "/TemperatureSetting/thermostatMode")); Serial.print("termostat mode: "); Serial.println(set_mode); } } } }
[ "noreply@github.com" ]
noreply@github.com
32e5d1c2f97ed4095fce6945c8ea88082acc22f4
389ef2c9957bbdd5340d4b69c7da6fbe63ed7e26
/includes/typeHandlerImplementations/longHandler.h
d596f77231dc5ddcbabd856b9111362d3159e76a
[]
no_license
Arkshine/Orpheu
c9f3451259645e0d6a198ee8d92a1910bcbe7915
be35f4521a2fd94e8ae3fecd7f58d7bbf8f409b2
refs/heads/master
2021-01-02T08:14:26.428642
2020-05-28T22:23:28
2020-05-28T22:23:28
9,413,354
29
19
null
2022-09-22T22:20:48
2013-04-13T12:34:52
C++
UTF-8
C++
false
false
566
h
#ifndef _INCLUDE_LONG_HANDLER_ #define _INCLUDE_LONG_HANDLER_ #include <typeHandler.h> class LongHandler : public TypeHandler { public: virtual void* convertFromAmx(AMX* amx, cell param); virtual void convertToAmx(cell& value, long standardReturn, ConvertMode convertMode); virtual void convertFromAmxToStructure(AMX* amx, cell param, void* address); virtual cell convertToAmxFromStructure(AMX* amx, cell* params, void* address); int getSize(AMX* amx, cell param) { return sizeof(long); } virtual const char* getName() { return "long"; } }; #endif
[ "hv.contact@gmail.com" ]
hv.contact@gmail.com
e7998daa458835d4e3ed935eeca289901a3a1a03
d71c7dd0fb54134acec01b92da5bf6eefed8af97
/0806/LRU.cc
b59ea6abfaae39643eeb909e24448350e85b58b7
[]
no_license
xuaokun/work
e42ff73049b18b59e1cd83be141419c85de995dd
10d201b557eb77b1293b78762505c0552ef8b4c9
refs/heads/master
2020-06-25T00:54:44.513841
2019-08-08T16:17:19
2019-08-08T16:17:19
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,708
cc
#include <iostream> #include <list> #include <map> #include <unordered_map> using std::endl; using std::cout; using std::list; using std::map; using std::unordered_map; class LRUCache { public: LRUCache(int capacity) :_capacity(capacity) ,_size(0) {} int get(int key) { if(!map.count(key)) { cout << "未找到" << endl; return -1; } int tmp=map[key]; map.erase(key); map.insert({key,tmp}); cout << tmp << endl; return tmp; } void put(int key, int value) { if(map.count(key)){//元素已经存在 map.erase(key); map.insert({key,value}); }else{ if(_size<_capacity){//未满 map.insert({key,value}); } else{//已满 auto it=map.begin(); for(int i=1;i<_capacity;i++){ it++; } cout << it->first << "," << it->second << "被删除" << endl; map.erase(it); map.insert({key,value}); } _size++; } } private: int _capacity; unordered_map<int,int> map;//按最久未使用的顺序排列中的元素 int _size; }; int main(){ LRUCache cache(2); cache.put(1, 1); cache.put(2, 2); cache.get(1); // 返回 1 cache.put(3, 3); // 该操作会使得密钥 2 作废 cache.get(2); // 返回 -1 (未找到) cache.put(4, 4); // 该操作会使得密钥 1 作废 cache.get(1); // 返回 -1 (未找到) cache.get(3); // 返回 3 cache.get(4); // 返回 4 return 0; }
[ "xuaokun1997@163.com" ]
xuaokun1997@163.com
2caf7a7f92247d45278d85dc347e22d94a1b4bc8
a8653ca84ad1a72097efe80e1e214994e09cab1b
/src/core/network/messages/payments/ParticipantsPublicKeysMessage.h
a84d0c3150b7f06fba383d58f1002af65c775146
[]
no_license
GEO-Protocol/GEO-network-client
c2d6069f15a833f4eea717b101de5602e5bf4de7
daffc8d7e1e64b7ef3c0d27d807986b07adfff25
refs/heads/develop
2021-06-04T05:47:58.510637
2021-03-21T06:51:15
2021-03-21T06:51:15
59,763,647
16
5
null
2019-03-31T11:04:59
2016-05-26T15:54:47
C
UTF-8
C++
false
false
1,056
h
#ifndef GEO_NETWORK_CLIENT_PARTICIPANTSPUBLICKEYSMESSAGE_H #define GEO_NETWORK_CLIENT_PARTICIPANTSPUBLICKEYSMESSAGE_H #include "../base/transaction/TransactionMessage.h" #include "../../../crypto/lamportkeys.h" #include <map> using namespace crypto; class ParticipantsPublicKeysMessage : public TransactionMessage { public: typedef shared_ptr<ParticipantsPublicKeysMessage> Shared; public: ParticipantsPublicKeysMessage( const SerializedEquivalent equivalent, vector<BaseAddress::Shared> &senderAddresses, const TransactionUUID &transactionUUID, const map<PaymentNodeID, lamport::PublicKey::Shared>& publicKeys); ParticipantsPublicKeysMessage( BytesShared buffer); const MessageType typeID() const override; pair<BytesShared, size_t> serializeToBytes() const override; const map<PaymentNodeID, lamport::PublicKey::Shared>& publicKeys() const; private: map<PaymentNodeID, lamport::PublicKey::Shared> mPublicKeys; }; #endif //GEO_NETWORK_CLIENT_PARTICIPANTSPUBLICKEYSMESSAGE_H
[ "mykola.ilashchuk@gmail.com" ]
mykola.ilashchuk@gmail.com
5f7e45349e13e219f94090c43ed93de42dee384a
0e1b2b1401434ebd9e8f50543578ca67b6b2edf0
/ros_workspace/src/parbot_ui/src/UI_Command_handler.cpp
68540a14059ddfbed6bbfb7c3d62925575c56635
[]
no_license
WPI-FRASIER/PARbot
47d65e9fba0057b12b8ef5b1ea12065a167c9518
5d645bc36a1802be0b981edb85aa5525c9349f32
refs/heads/master
2021-01-01T17:16:04.998109
2015-05-05T06:32:07
2015-05-05T06:32:07
35,078,266
0
0
null
null
null
null
UTF-8
C++
false
false
940
cpp
#include "UI_Command_handler.h" UI_Command_handler::UI_Command_handler(ros::NodeHandle n, std::string sub_topic) { ui_sub = n.subscribe(sub_topic, 1, &UI_Command_handler::ui_callback, this); got_message = false; }; void UI_Command_handler::ui_callback(const parbot_msgs::Command_MSG cmd_msg) { got_message = true; last_msg.command = cmd_msg.command; last_msg.ID = cmd_msg.ID; last_msg.flag = cmd_msg.flag; last_msg.value = cmd_msg.value; last_msg.emergency = cmd_msg.emergency; } bool UI_Command_handler::ready() { return got_message; } std::string UI_Command_handler::get_command() { return last_msg.command; } int64_t UI_Command_handler::get_ID() { return last_msg.ID; } bool UI_Command_handler::get_flag() { return last_msg.flag; } double UI_Command_handler::get_value() { return last_msg.value; } bool UI_Command_handler::get_emergency() { return last_msg.emergency; }
[ "fraiser@FRAISER.(none)" ]
fraiser@FRAISER.(none)
d9be24a4e68ca9f62e1f63008342d8c6d0498ff3
f17e04bdebde2a540e19cdfa2cc9b4faea9b004d
/MusicPlayer/SScrollLrc.h
099b2c38a0986e5ad429addac2f38beea18ea8c6
[ "MIT" ]
permissive
wray007/ui
d94212bf8ba741c63a090d846cd42a6917eba5ff
6a0c492ccec81ecd8b5ab808a605cfe8f8bed134
refs/heads/master
2021-10-10T10:45:40.100899
2015-09-22T03:01:25
2015-09-22T03:01:25
null
0
0
null
null
null
null
GB18030
C++
false
false
1,553
h
/**************************************************************************** * 功 能:STreeBox扩展的歌词面板控件 * * 作 者:小可 * * 添加时间:2015.02.07 17:00 * * 版本类型:初始版本 * * 联系方式:QQ-1035144170 * ****************************************************************************/ #pragma once namespace SOUI { typedef BOOL(__stdcall *pCallBackLrc)(void *pUser);// 回调函数原型 class SScrollLrc : public STreeBox { SOUI_CLASS_NAME(SScrollLrc,L"scrolllrc") public: SScrollLrc(void); ~SScrollLrc(void); protected: void OnTimer(char cTimer); void OnSize(UINT nType, CSize size); SOUI_MSG_MAP_BEGIN() MSG_WM_TIMER_EX(OnTimer) MSG_WM_SIZE(OnSize) SOUI_MSG_MAP_END() SOUI_ATTRS_BEGIN() ATTR_INT(L"speed",m_nSpeed,FALSE) SOUI_ATTRS_END() private: int m_nSpeed; bool bTurnFlag; void *pParen; pCallBackLrc pCallSetlrc; public: static SScrollLrc *GetInstance(); void StarsRollLrc(); void LoadLrc(const SStringT strLrc); void SetWindowText(const SStringT & strText); BOOL GetSetLrcFun(pCallBackLrc funCall,void *pUser); }; }
[ "xiaoke@5312f6f6-3d4f-41ab-b741-a9c9e676edf4" ]
xiaoke@5312f6f6-3d4f-41ab-b741-a9c9e676edf4
a92e8e0e5154578901b9ff85cdeb452705155361
600b2b48b880fea74a6bf4929f8cc1565b2a506b
/src/CmdFramer.h
00b92e986ce41f920c555fa5b6641d08d0ad6f8d
[ "BSD-3-Clause" ]
permissive
wsull001/rshell
3c8dbb1321e592d644fbb68f7e80e9bb7c238bd6
ce1b564ea173c8b2a715304894b111406d44f38f
refs/heads/master
2021-01-10T01:54:37.732355
2016-03-05T22:09:08
2016-03-05T22:09:08
51,498,212
1
3
null
null
null
null
UTF-8
C++
false
false
6,732
h
#ifndef _CMDFRAMER_H #define _CMDFRAMER_H #include <iostream> #include <vector> #include "Command.h" #include "ParenCommand.h" #include <sstream> using namespace std; class Cmd_Framer { public: //creates a command to be executed Cmd_Framer() {}; Command* frame(istringstream& linein) { string temp; string parenString; vector<string> v; bool hasAllArgs = false; bool hasNext = false; bool parenCommand = false; bool firstItr = true; while (!hasAllArgs) { bool tester = (linein >> temp); //deal with parentheses if (tester && (temp.at(0) == '(') && firstItr) { //assume parentheses are broken with spaces, so only last character can be closing //parens parenCommand = true; int numParens = 0; bool parseForClose = true; bool singleCommand = false; if (temp.at(temp.size() - 1) == ')') { parseForClose = false; temp = temp.substr(0, temp.size() - 1); } else if (temp.at(temp.size() - 2) == ')' && temp.at(temp.size() - 1) == ';') { singleCommand = true; parseForClose = false; temp = temp.substr(0, temp.size() - 2); hasNext = true; hasAllArgs = true; } for (unsigned i = 1; i < temp.size(); i++) { if (temp.at(i) == '('){ numParens++; } } while (parseForClose) { char myChar = 0; if (!linein.get(&myChar, 2)) parseForClose = false; if (myChar != ')') { temp = temp + myChar; if (myChar == '(') numParens++; } else { if (!numParens) parseForClose = false; else numParens--; } } parenString = temp.substr(1); if (!singleCommand) { linein >> temp; //assume its followed by connector } if (temp.at(temp.size() - 1) == ';') { hasNext = true; } } firstItr = false; //deal with quotations if (tester && temp.at(0) == '"') { bool keepParsing = true; for (unsigned i = 1; i < temp.size(); i++) { if (temp.at(i) == '"') keepParsing = false; } while (keepParsing) { string tempStr; tester = (linein >> tempStr); while (!tester) { temp = temp + "\n"; string newLine; cout << "> "; getline(cin, newLine); linein.str(newLine); linein.clear(); tester = linein >> tempStr; } if (temp.at(temp.size() - 1) != '\n') temp = temp + " " + tempStr; else temp = temp + tempStr; for (unsigned i = 0; i < tempStr.size(); i++) { if (tempStr.at(i) == '"') { keepParsing = false; } } } temp = temp.substr(1, temp.size() - 1); int t = temp.find('"'); temp.erase(t, 1); } //deal with command line comments else if (tester) { for (unsigned i = 0; i < temp.size(); i++) { if (temp.at(i) == '#') { temp = temp.substr(0, i); string l; while (linein >> l); break; } } if (temp.size() == 0) tester = false; } //check to see if reached the end of line if (!tester) { hasAllArgs = true; } else if (temp.compare("&&") == 0 || temp.compare("||") == 0) { hasAllArgs = true; } else if (temp.at(temp.size() - 1) == ';') { hasAllArgs = true; hasNext = true; temp = temp.substr(0, temp.size() - 1); v.push_back(temp); } else { v.push_back(temp); } } //if no arguments then no command so return null pointer and not a parenCommand if (v.size() == 0 && !parenCommand) { return NULL; } //create the command object Command* command; if (!parenCommand) { char* cmd = (char*)v.at(0).c_str(); char** args = new char*[v.size()]; for (unsigned i = 0; i < v.size(); i++) { args[i] = (char*)v.at(i).c_str(); } command = new Command(cmd, args, v.size()); } else { istringstream newStrin(parenString); command = new ParenCommand(this->frame(newStrin)); } //now add next, success, and failure commands if (hasNext) { command->addNext(this->frame(linein)); } else if (temp.compare("&&") == 0) { command->addSuccess(this->frame(linein)); } else if (temp.compare("||") == 0) { command->addFailure(this->frame(linein)); } //return the framed command return command; }; }; #endif
[ "sgoka001@hammer.cs.ucr.edu" ]
sgoka001@hammer.cs.ucr.edu
562eda0a3a74d5d73a15099bf959fb91cc6bfdca
cb94f516af62a0297e763cee16f274e89913de6f
/srm593div1c250/main.cpp
2fd1445cae0e13bb963eb359a769c4d356795c32
[]
no_license
Coder-12/topcoder-solutions
d91f035d903ee662a6b9b1a090201bef09aa08c2
997d188010cdb8df385451a8d0955e22a65d5682
refs/heads/master
2023-08-03T23:49:31.489874
2021-09-18T05:16:11
2021-09-18T05:16:11
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,044
cpp
#include <iostream> #include <bits/stdc++.h> using namespace std; class HexagonalBoard{ public: int minColors(vector <string>); }; int result=0; int n; //bool marked[50][50]; vector <string> s; int color[55][55]; void dfsbaptrite(int x,int y,int c){ if(s[x][y]=='X'){ result=max(1,result);// non empty case if(color[x][y]==-1){// if uncolored color[x][y]=c;// color it now // look at its neighbor now and work on them for(int nx=max(0,x-1);nx<=min(n-1,x+1);nx++){ for(int ny=max(0,y-1);ny<=min(n-1,y+1);ny++){ if((nx-x!=ny-y )&& (s[nx][ny]=='X')){ dfsbaptrite(nx,ny,!c);// !c changes the color of c result=max(2,result); if(color[nx][ny]==c) result=3; } } } } } } int HexagonalBoard::minColors(vector <string> board){ s=board; n=s.size(); memset(color,-1,sizeof(color)); for(int i=0;i<n;i++){ for(int j=0;j<n;j++){ dfsbaptrite(i,j,0); } } return result; }
[ "coderboysatya@gmail.com" ]
coderboysatya@gmail.com
3dff62eedfebdd7ecce6f8345ec77734e1ec5577
eda7505b5e54f11301e35ef3c8856d21451eac0b
/logger.cpp
5ac2401805936a6ad8816ec322cfec8faa022449
[]
no_license
gnilk/contour
a60073b5c512e9e2961d6addfd69d735b0b5f8ea
f0882a95fc509ba67b64a583493528fe8938b486
refs/heads/master
2021-05-11T11:09:49.287663
2018-01-31T13:54:56
2018-01-31T13:54:56
118,122,367
2
1
null
null
null
null
UTF-8
C++
false
false
23,214
cpp
/*------------------------------------------------------------------------- File : $Archive: $ Author : $Author: $ Version : $Revision: $ Orginal : 2006-07-26, 15:50 Descr : Tiny Log4Net look-alike for C++ Layout can be changed in: Logger::WriteReportString Comparision in output is '>=' means, setting debug level filtering to INFO gives INFO and everything above.. Levels: 0..99 - none, 100..199 - debug, 200..299 - info, 300..399 - warning 400..499 - error 500..599 - crtical 600..X - custom Modified: $Date: $ by $Author: $ --------------------------------------------------------------------------- TODO: [ -:Not done, +:In progress, !:Completed] <pre> ! Level filtering [sink levels] ! Global properties [early filtering] ! Introduce more debug levels to reduce noise - Support for module exclusion/inclusion lists ! Rolling file appender would be nice! - Support for threading - Unicode support... - Refactor the configuration handling to optional free-standing 'LogManager' class </pre> \History - 25.10.2010, FKling, Property handling and from-file-initialization - 25.10.2010, FKling, Simple rolling file appender - 21.10.2010, FKling, Changed messages classes to be ranges instead of fixed - 20.10.2010, FKling, Refactored the creation of report strings - 19.10.2010, FKling, Support for sink management - 02.04.2009, FKling, Support for sink levels - 23.03.2009, FKling, Implementation ---------------------------------------------------------------------------*/ #ifdef WIN32 #include "stdafx.h" #endif #include <stdlib.h> #include <stdio.h> #include <string.h> #include <stdarg.h> #ifdef WIN32 #include <windows.h> #include <time.h> #define strdup _strdup // bla,bla #if defined(_MSC_VER) || defined(_MSC_EXTENSIONS) #define DELTA_EPOCH_IN_MICROSECS 11644473600000000Ui64 #else #define DELTA_EPOCH_IN_MICROSECS 11644473600000000ULL #endif #define snprintf _snprintf #define vsnprintf _vsnprintf #else #include <pthread.h> #include <sys/time.h> #endif #include <list> #include <map> #include "logger.h" #include "logger_internal.h" #define DEFAULT_DEBUG_LEVEL 0 // used by constructors, default is output everything #define DEFAULT_SINK_NAME ("") #define DEFAULT_LOGFILE_NAME ("logfile") #define DEFAULT_BUFFER_SIZE 1024 using namespace std; namespace gnilk { static int StrExplode(std::vector<std::string> *strList, char *mString, int chrSplit); static char *StrTrim(char *s); extern "C" { ILogOutputSink * LOG_CALLCONV CreateSink(const char *className) { return NULL; } } // Loggers currently available static LOG_SINK_FACTORY sinkFactoryList[] = { "LogConsoleSink", LogConsoleSink::CreateInstance, "LogRollingFileSink", LogRollingFileSink::CreateInstance, "LogFileSink", LogFileSink::CreateInstance, NULL, NULL, }; // -------------------------------------------------------------------------- // // Console sink // outputs all debug messages to the console // ILogOutputSink *LogConsoleSink::CreateInstance(const char *className) { return dynamic_cast<ILogOutputSink *>(new LogConsoleSink()); } void LogConsoleSink::Initialize(int argc, char **argv) { // Do stuff here int i; for (i=0;i<argc;i++) { if (!strcmp(argv[i],"filename")) { // } } } int LogConsoleSink::WriteLine(int dbgLevel, char *hdr, char *string) { int res = SINK_WRITE_FILTERED; if (WithinRange(dbgLevel)) { res = fprintf(stdout, "%s%s\n", hdr,string); if (res < 0) { res = SINK_WRITE_IO_ERROR; } } return res; } void LogConsoleSink::Close() { // close file here } // -------------------------------------------------------------------------- // // Simple file sink // LogFileSink::LogFileSink() { fOut = NULL; } LogFileSink::~LogFileSink() { if (fOut != NULL) { Close(); } } ILogOutputSink *LogFileSink::CreateInstance(const char *className) { return dynamic_cast<ILogOutputSink *>(new LogFileSink()); } void LogFileSink::ParseArgs(int argc, char **argv) { int i; for (i=0;i<argc;i++) { if (!strcmp(argv[i],"file")) { this->properties.SetValue(LOG_CONF_LOGFILE, argv[++i]); } } } void LogFileSink::Initialize(int argc, char **argv) { ParseArgs(argc, argv); Open(properties.GetLogfileName(), false); } long LogFileSink::Size() { if (fOut != NULL) { #if defined(_WIN32) && (_MSC_VER>0x1310) return _filelengthi64(_fileno(f)); #else long offset,length; offset = ftell(fOut); if (offset < 0) return -1; if (fseek(fOut, 0, SEEK_END) != 0) return -1; length = ftell(fOut); if (fseek(fOut, offset, SEEK_SET) != 0) -1; return length; #endif } return -1; } void LogFileSink::Open(const char *filename, bool bAppend) { if (filename != NULL) { if (bAppend) { fOut = fopen(filename,"a"); } else { fOut = fopen(filename,"w"); } } } int LogFileSink::WriteLine(int dbgLevel, char *hdr, char *string) { int res = SINK_WRITE_FILTERED; if (fOut != NULL) { if (WithinRange(dbgLevel)) { res = fprintf(fOut,"%s%s",hdr,string); if (res < 0) { res = SINK_WRITE_IO_ERROR; } } } else { res = SINK_WRITE_IO_ERROR; } return res; } void LogFileSink::Close() { if (fOut != NULL) { fclose(fOut); } fOut = NULL; } // -------------------------------------------------------------------------- // // Rolling file sink // #define LOG_SZ_GB(x) ((x)*1024*1024*1024) #define LOG_SZ_MB(x) ((x)*1024*1024) #define LOG_SZ_KB(x) ((x)*1024) #define LOG_MAX_FILENAME 255 LogRollingFileSink::LogRollingFileSink() : LogFileSink() { } LogRollingFileSink::~LogRollingFileSink() { } ILogOutputSink *LogRollingFileSink::CreateInstance(const char *className) { return dynamic_cast<ILogOutputSink *>(new LogRollingFileSink()); } char *LogRollingFileSink::GetFileName(char *dst, int idx) { const char *sFileName = properties.GetLogfileName(); snprintf(dst, LOG_MAX_FILENAME, "%s.%d.log",sFileName, idx); return dst; } void LogRollingFileSink::RollOver() { char dstFileName[LOG_MAX_FILENAME]; char srcFileName[LOG_MAX_FILENAME]; // 1) Close current file LogFileSink::Close(); // 2) Initiate rename loop for(int i=nMaxBackupIndex-1;i>0;i--) { GetFileName(srcFileName, i); GetFileName(dstFileName, i+1); #ifdef WIN32 #ifdef UNICODE { wchar_t w_dst[LOG_MAX_FILENAME]; wchar_t w_src[LOG_MAX_FILENAME]; mbstowcs(w_dst, dstFileName, LOG_MAX_FILENAME); mbstowcs(w_src, srcFileName, LOG_MAX_FILENAME); MoveFile(w_src, w_dst); } #else MoveFile(srcFileName, dstFileName); #endif #else #endif } // 3) Open up new file GetFileName(srcFileName, 1); LogFileSink::Open(srcFileName, false); } void LogRollingFileSink::CheckApplyRules() { if (nBytes > nBytesRollLimit) { // Swap to new file.. RollOver(); nBytes = 0; } } void LogRollingFileSink::Initialize(int argc, char **argv) { // ..This is not directly correct.. //LogFileSink::Initialize(argc, argv); char tmp[LOG_MAX_FILENAME]; ParseArgs(argc, argv); GetFileName(tmp, 1); Open(tmp, true); nBytes = Size(); // roll size limit of zero not allowed, using 10 MB instead nBytesRollLimit = properties.GetMaxLogfileSize(); //LOG_SZ_KB(10); // 10 Mb if (!nBytesRollLimit) nBytesRollLimit = LOG_SZ_MB(10); nMaxBackupIndex = properties.GetMaxBackupIndex(); // 0 (zero) Work's like 'reset' } int LogRollingFileSink::WriteLine(int dbgLevel, char *hdr, char *string) { int res; CheckApplyRules(); res = LogFileSink::WriteLine(dbgLevel, hdr, string); if (res > 0) { nBytes+=res; } return res; } ///////// // // -- static functions // int Logger::iIndentStep = 2; bool Logger::bInitialized = false; std::queue<void *> Logger::buffers; ILoggerList Logger::loggers; ILoggerSinkList Logger::sinks; Logger::TimeFormat Logger::kTimeFormat = kTFLog4Net; LogProperties Logger::properties; void Logger::SendToSinks(int dbgLevel, char *hdr, char *string) { ILogOutputSink *pSink = NULL; ILoggerSinkList::iterator it; it = sinks.begin(); while(it != sinks.end()) { pSink = (ILogOutputSink *)*it; pSink->WriteLine(dbgLevel, hdr, string); it++; } } #ifdef WIN32 struct timezone { int tz_minuteswest; /* minutes W of Greenwich */ int tz_dsttime; /* type of dst correction */ }; static int gettimeofday(struct timeval *tv, struct timezone *tz) { FILETIME ft; unsigned __int64 tmpres = 0; static int tzflag; if (NULL != tv) { GetSystemTimeAsFileTime(&ft); tmpres |= ft.dwHighDateTime; tmpres <<= 32; tmpres |= ft.dwLowDateTime; /*converting file time to unix epoch*/ tmpres /= 10; /*convert into microseconds*/ tmpres -= DELTA_EPOCH_IN_MICROSECS; tv->tv_sec = (long)(tmpres / 1000000UL); tv->tv_usec = (long)(tmpres % 1000000UL); } if (NULL != tz) { if (!tzflag) { _tzset(); tzflag++; } tz->tz_minuteswest = _timezone / 60; tz->tz_dsttime = _daylight; } return 0; } #endif // // Returns a formatted time string for logging // string can be either in default kTFLog4Net format or Unix // char *Logger::TimeString(int maxchar, char *dst) { struct timeval tmv; gettimeofday(&tmv, NULL); switch(kTimeFormat) { case kTFDefault : case kTFUnix : #ifdef WIN32 //ctime_s(&tmv.tv_sec, 24,dst); #else ctime_r(&tmv.tv_sec, dst); #endif dst[24] = '\0'; break; case kTFLog4Net : { time_t bla = tmv.tv_sec; struct tm *gmt = gmtime(&bla); snprintf(dst,maxchar,"%.2d.%.2d.%.4d %.2d:%.2d:%.2d.%.3d", gmt->tm_mday,gmt->tm_mon,gmt->tm_year+1900, gmt->tm_hour,gmt->tm_min,gmt->tm_sec,tmv.tv_usec/1000); } break; } return dst; } void *Logger::RequestBuffer() { void *res = NULL; if (buffers.empty()) { res = (void *)new MsgBuffer(); } else { res = buffers.front(); buffers.pop(); } return res; } void Logger::ReleaseBuffer(void *pBuf) { buffers.push(pBuf); } ILogger *Logger::GetLogger(const char *name) { ILogger *pLogger = NULL; LoggerInstance *pInstance; ILoggerList::iterator it; Initialize(); it = loggers.begin(); while(it != loggers.end()) { pInstance = (LoggerInstance *)*it; pLogger = pInstance->pLogger; if (!strcmp(pLogger->GetName(), name)) { return pLogger; } it++; } // Have to create a new logger pLogger = (ILogger *)new Logger(name); pInstance = new LoggerInstance(pLogger); // TODO: Support for exclude list loggers.push_back(pInstance); return pLogger; } void Logger::SetAllSinkDebugLevel(int iNewDebugLevel) { // This might very well be the first call, make sure we are initalized Initialize(); LogBaseSink *pSink = NULL; ILoggerSinkList::iterator it; it = sinks.begin(); while(it != sinks.end()) { pSink = (LogBaseSink *)*it; pSink->GetProperties()->SetDebugLevel(iNewDebugLevel); it++; } } // TODO: Update sink properties! // Without initialization void Logger::AddSink(ILogOutputSink *pSink, const char *sName) { LogBaseSink *pBase = dynamic_cast<LogBaseSink *> (pSink); if (pBase != NULL) { pBase->SetName(sName); } sinks.push_back(pSink); } // With initialization void Logger::AddSink(ILogOutputSink *pSink, const char *sName, int argc, char **argv) { pSink->Initialize(argc, argv); AddSink(pSink, sName); } // // Create sink's based on class name and factory instances in the global list // ILogOutputSink *Logger::CreateSink(const char *className) { for(int i=0;sinkFactoryList[i].name!=NULL;i++) { if (!strcmp(sinkFactoryList[i].name, className)) { return sinkFactoryList[i].factory(className); } } return NULL; } // // This will clear out everything and rebuild all sink's from the configuration // void Logger::RebuildSinksFromConfiguration() { char appenders[256]; if (!properties.GetValue("sinks",appenders,256,NULL)) return; std::vector<std::string> arAppenders; // TODO: need to call destructors here I guess sinks.clear(); int nAppenders = StrExplode(&arAppenders, appenders, ','); for (int i=0;i<nAppenders;i++) { char className[256]; std::string sinkName = arAppenders[i] + ".class"; if (properties.GetValue(sinkName.c_str(), className, 256, NULL)) { LogBaseSink *pSink = dynamic_cast<LogBaseSink *>(CreateSink(className)); if (pSink != NULL) { // 1) Extract all known properties and put to sink std::vector<std::pair<std::string, std::string> > sinkProperties; properties.GetAllStartingWith(&sinkProperties, arAppenders[i].c_str()); for(int p=0;p<(int)sinkProperties.size();p++) { pSink->GetProperties()->SetValue(sinkProperties[i].first.c_str(),sinkProperties[i].second.c_str()); } // 2) Call initialize and attach pSink->Initialize(0,NULL); sinks.push_back(pSink); } } } } void Logger::Initialize() { if (!Logger::bInitialized) { // Initialize the rest #ifdef DEBUG ILogOutputSink *pSink = (ILogOutputSink *)new LogConsoleSink(); AddSink(pSink, "console", 0, NULL); #endif Logger::bInitialized = true; properties.SetDebugLevel(DEFAULT_DEBUG_LEVEL); properties.SetName("Logger"); // HACK properties.ReadFromFile("logger.res"); char appenders[256]; properties.GetValue("sinks",appenders, 256, ""); if (strcmp(appenders, "")) { RebuildSinksFromConfiguration(); } } } // Regular functions Logger::Logger(const char *sName) { this->sName = strdup(sName); this->iIndentLevel = 0; this->sIndent = (char *)malloc(MAX_INDENT+1); memset(this->sIndent,0,MAX_INDENT+1); Logger::Initialize(); } Logger::~Logger() { free(this->sName); // remove this from list of loggers // TODO: better clean up, properties... } static char *lMessageClassNames[] = { "NONE", // 0 "DEBUG", // 1 "INFO", // 2 "WARN", // 3 "ERROR", // 4 "CRITICAL" // 5 "CUSTOM" // 6 }; const char *Logger::MessageClassNameFromInt(int mc) { if ((mc>=Logger::kMCNone) && (mc<(int)Logger::kMCDebug)) { return lMessageClassNames[0]; } else if ((mc>=(int)Logger::kMCDebug) && (mc<(int)Logger::kMCInfo)) { return lMessageClassNames[1]; } else if ((mc>=(int)Logger::kMCInfo) && (mc<(int)Logger::kMCWarning)) { return lMessageClassNames[2]; } else if ((mc>=(int)Logger::kMCWarning) && (mc<(int)Logger::kMCError)) { return lMessageClassNames[3]; } else if ((mc>=(int)Logger::kMCError) && (mc<(int)Logger::kMCCritical)) { return lMessageClassNames[4]; } else if ((mc>=(int)Logger::kMCCritical)) { return lMessageClassNames[5]; } return lMessageClassNames[6]; } int Logger::MessageLevelFromName(const char *level) { if (!strcmp(level, "NONE")) return kMCNone; if (!strcmp(level, "DEBUG")) return kMCDebug; if (!strcmp(level, "INFO")) return kMCInfo; if (!strcmp(level, "WARN")) return kMCWarning; if (!strcmp(level, "WARNING")) return kMCWarning; if (!strcmp(level, "ERROR")) return kMCError; if (!strcmp(level, "CRITICAL")) return kMCCritical; return kMCNone; } // // Compiles the final string and header and sends it to the sinks // NOTE: The layout is fixed // void Logger::WriteReportString(int mc, char *string) { char sHdr[MAX_INDENT + 64]; char sTime[32]; // saftey, 26 is enough const char *sLevel = MessageClassNameFromInt(mc); TimeString(32, sTime); // Create the special header string // Format: "time [thread] msglevel module - " #ifdef WIN32 DWORD tid = 0; tid = GetCurrentThreadId(); snprintf(sHdr, MAX_INDENT + 64, "%s [%.8x] %8s %32s - %s", sTime, tid, sLevel, sName, sIndent); #else //void *tid = NULL; pthread_t tid = pthread_self(); snprintf(sHdr, MAX_INDENT + 64, "%s [%p] %8s %32s - %s", sTime, tid, sLevel, sName, sIndent); #endif Logger::SendToSinks((int)mc,sHdr, string); } void Logger::GenerateIndentString() { memset(this->sIndent,0,MAX_INDENT+1); memset(this->sIndent,' ',iIndentLevel); } // This functionality is duplicated by all 'write'-functions. It composes the message // string. The reason why it is not in a function is because of the va_xxx functions. // Event is essentially a container around the buffer which makes a query for the buffer // upon creation and releases it in the destructor #define WRITE_REPORT_STRING(__DBGTYPE__) \ va_list values; \ char * newstr = NULL; \ try { \ LogEvent evt; \ MsgBuffer *pBuf = evt.GetBuffer(); \ int res; \ do \ { \ newstr=pBuf->GetBuffer(); \ va_start( values, sFormat ); \ res = vsnprintf(newstr, pBuf->GetSize(), sFormat, values); \ va_end( values); \ if (res < 0) { \ pBuf->Extend(); \ } \ } while(res < 0); \ Logger::WriteReportString(__DBGTYPE__, pBuf->GetBuffer()); \ } catch(...) { \ } \ void Logger::WriteLine(int iDbgLevel, const char *sFormat,...) { // Always write stuff without global filtering - let appenders figure it out.. WRITE_REPORT_STRING(iDbgLevel); } void Logger::WriteLine(const char *sFormat,...) { // Always write stuff without global filtering - let appenders figure it out.. WRITE_REPORT_STRING(kMCNone); } void Logger::Critical(const char *sFormat,...) { if (IsCriticalEnabled()) { WRITE_REPORT_STRING(kMCCritical); } } void Logger::Error(const char *sFormat, ...) { if (IsErrorEnabled()) { WRITE_REPORT_STRING(kMCError); } } void Logger::Warning(const char *sFormat, ...) { if (IsWarningEnabled()) { WRITE_REPORT_STRING(kMCWarning); } } void Logger::Info(const char *sFormat, ...) { if (IsInfoEnabled()) { WRITE_REPORT_STRING(kMCInfo); } } void Logger::Debug(const char *sFormat, ...) { if (IsDebugEnabled()) { WRITE_REPORT_STRING(kMCDebug); } } // Increases intendation void Logger::Enter() { iIndentLevel+=Logger::iIndentStep; if (iIndentLevel > MAX_INDENT) { iIndentLevel = MAX_INDENT; } GenerateIndentString(); } // Decreases intendation void Logger::Leave() { iIndentLevel-=Logger::iIndentStep; if (iIndentLevel < 0) { iIndentLevel = 0; } GenerateIndentString(); } // --------------------------------------------------------------------------- // // Holds an instance of a logger // LoggerInstance::LoggerInstance() { this->pLogger = NULL; } LoggerInstance::LoggerInstance(ILogger *pLogger) { this->pLogger = pLogger; } // --------------------------------------------------------------------------- // // Message buffers are used to minimize buffer allocation. // Each debug string get's copied in to a message buffer before feed down the // chain of sink's // MsgBuffer::MsgBuffer() { buffer = (char *)malloc(DEFAULT_BUFFER_SIZE); sz = DEFAULT_BUFFER_SIZE; } MsgBuffer::~MsgBuffer() { free(buffer); } void MsgBuffer::Extend() { sz += DEFAULT_BUFFER_SIZE; char *tmp = (char *)realloc(buffer, sz); if (tmp == NULL) { //exit(1); // can't allocate memory, just leave.. tmp = buffer; sz -= DEFAULT_BUFFER_SIZE; } buffer = tmp; } // --------------------------------------------------------------------------- // // Property handling // LogProperties::LogProperties() : LogPropertyReader() { SetDefaults(); } void LogProperties::SetDefaults() { this->iDebugLevel = DEFAULT_DEBUG_LEVEL; this->name = strdup(DEFAULT_SINK_NAME); this->logFileName = strdup(DEFAULT_LOGFILE_NAME); this->nMaxBackupIndex = 10; this->nMaxLogfileSize = LOG_SZ_MB(10); } #define REPLACE_STR(__dst,__src)\ if (__dst != NULL) \ { \ free(__dst); \ } \ __dst = strdup(__src); void LogProperties::SetName(const char *newName) { REPLACE_STR(this->name, newName); } void LogProperties::SetLogfileName(const char *newName) { REPLACE_STR(this->logFileName, newName); } void LogProperties::SetClassName(const char *newName) { REPLACE_STR(this->className, newName); } // Called by the base class on 'SetValue' - use to update internal proper variables void LogProperties::OnValueChanged(const char *key, const char *value) { if (!strcmp(key, LOG_CONF_NAME)) { SetName(value); } else if (!strcmp(key, LOG_CONF_DEBUGLEVEL)) { int level = atoi(value); if (!level) level = Logger::MessageLevelFromName(value); SetDebugLevel(level); } else if (!strcmp(key, LOG_CONF_MAXBACKUPINDEX)) { SetMaxBackupIndex(atoi(value)); } else if (!strcmp(key, LOG_CONF_MAXLOGSIZE)) { SetMaxLogfileSize(atoi(value)); } else if (!strcmp(key, LOG_CONF_LOGFILE)) { SetLogfileName(value); } else if (!strcmp(key, LOG_CONF_CLASSNAME)) { SetClassName(value); } } // --------------------------------------------------------------------------- // // Property file reading // LogPropertyReader::LogPropertyReader() { } LogPropertyReader::~LogPropertyReader() { } void LogPropertyReader::ParseLine(char *_line) { if (_line == NULL) return; if (_line[0]!='#') { char *line = StrTrim(_line); char *value = strchr(line, '='); if (value != NULL) { *value='\0'; value++; SetValue(line, value); } } } void LogPropertyReader::ReadFromFile(const char *filename) { char line[256]; FILE *f = fopen(filename, "rb"); if (f != NULL) { while (fgets(line,256, f)!=NULL) { ParseLine(line); } fclose(f); } } void LogPropertyReader::WriteToFile(const char *filename) { // TODO: Implement this one... } int LogPropertyReader::GetAllStartingWith(std::vector<std::pair<std::string, std::string> > *result, const char *filter) { std::string sFilter(filter); std::map<std::string, std::string>::iterator it; for(it = properties.begin(); it!=properties.end(); it++) { if (it->first.compare(0,sFilter.length(),sFilter) == 0) { result->push_back(std::pair<std::string, std::string>(it->first, it->second)); } } return result->size(); } char *LogPropertyReader::GetValue(const char *key, char *dst, int nMax, char *defValue) { if (properties.find(key) != properties.end()) { strncpy(dst, properties.find(key)->second.c_str(), nMax); } else { strncpy(dst, defValue, nMax); } return dst; } void LogPropertyReader::SetValue(const char *key, const char *value) { if (properties.find(key) != properties.end()) { // Update needed, just remove and reinsert.. properties.erase(key); } properties.insert(std::pair<std::string, std::string>(key, value)); OnValueChanged(key, value); } // ------------------------------------------------------------------------- // // Internal helpers // static char *StrTrim(char *s) { char *ptr; if (!s) return NULL; // handle NULL string if (!*s) return s; // handle empty string for (ptr = s + strlen(s) - 1; (ptr >= s) && isspace(*ptr); --ptr); ptr[1] = '\0'; return s; } // // Splits the string into substrings for a given character // static int StrExplode(std::vector<std::string> *strList, char *mString, int chrSplit) { std::string strTmp,strPart; size_t ofs,pos; int count; strTmp = std::string(mString); pos = count = 0; do { ofs = strTmp.find_first_of(chrSplit,pos); if (ofs == -1) { if (pos != -1) { strPart = strTmp.substr(pos,strTmp.length()-pos); strList->push_back(strPart); count++; } else { // We had trailing spaces... } break; } strPart = strTmp.substr(pos,ofs - pos); strList->push_back(strPart); pos = ofs+1; pos = strTmp.find_first_not_of(chrSplit,pos); count++; } while(1); return count; } // StrExplode } // axcore
[ "kling.fredrik@gmail.com" ]
kling.fredrik@gmail.com
2c96c1313dbe75cd2cc57e71d062cfa21d4e97e5
6848723448cc22474863f6506f30bdbac2b6293e
/tools/mosesdecoder-master/contrib/synlm/hhmm/rvtl/include/nl-dtree.h
93a0e4d42a830bf967fff36a0d85ae38e6dfd97d
[ "LicenseRef-scancode-warranty-disclaimer", "LGPL-2.1-only", "LGPL-2.0-or-later", "GPL-1.0-or-later", "LGPL-2.1-or-later", "LicenseRef-scancode-other-copyleft", "GPL-2.0-only", "Apache-2.0", "LicenseRef-scancode-generic-exception", "GPL-3.0-only" ]
permissive
Pangeamt/nectm
74b3052ba51f227cd508b89d3c565feccc0d2f4f
6b84f048698f2530b9fdbb30695f2e2217c3fbfe
refs/heads/master
2022-04-09T11:21:56.646469
2020-03-30T07:37:41
2020-03-30T07:37:41
250,306,101
1
0
Apache-2.0
2020-03-26T16:05:11
2020-03-26T16:05:10
null
UTF-8
C++
false
false
21,601
h
/////////////////////////////////////////////////////////////////////////////// // // // This file is part of ModelBlocks. Copyright 2009, ModelBlocks developers. // // // // ModelBlocks 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 3 of the License, or // // (at your option) any later version. // // // // ModelBlocks 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 ModelBlocks. If not, see <http://www.gnu.org/licenses/>. // // // // ModelBlocks developers designate this particular file as subject to // // the "Moses" exception as provided by ModelBlocks developers in // // the LICENSE file that accompanies this code. // // // /////////////////////////////////////////////////////////////////////////////// #ifndef _NL_DTREE__ #define _NL_DTREE__ #include <math.h> #include <vector> #include <string> #include <map> #include "nl-safeids.h" //#include "nl-probmodel.h" #include "nl-cpt.h" #include "nl-randvar.h" #include "nl-tree.h" #include "nl-hash.h" #include "nl-list.h" //#define UNIGR_FO .5 // IF NO EXAMPLES, USE APRIORI PROB OF FO //typedef Id<int> A; //BitNum; // //typedef Id<char> B; using namespace std; //////////////////////////////////////////////////////////////////////////////// // // DTree Node // //////////////////////////////////////////////////////////////////////////////// template<class X, class Y, class P> class DecisNode { public: // Public types... typedef Id<int> A; private: // Private types... typedef typename X::ElementType B; // Data members... A aNontermDecis; // Nonterminal nodes have an attribute (e.g. convexity bit) on which to condition map<Y,P> aprTermDistrib; // Terminal nodes have a distribution over Y values public: // Constructor / destructor methods... DecisNode ( ) : aNontermDecis(-1) { } // Specification methods... A& setA ( ) { return aNontermDecis; } P& setProb ( const Y y ) { return aprTermDistrib[y]; } // Extraction methods... const A getA ( ) const { return aNontermDecis; } const P getProb ( const Y y ) const { return ( (aprTermDistrib.empty()) ? P(1.0/Y::getDomain().getSize()) : (aprTermDistrib.find(y)!=aprTermDistrib.end()) ? aprTermDistrib.find(y)->second : P() ); } }; //////////////////////////////////////////////////////////////////////////////// // // DTree Model // //////////////////////////////////////////////////////////////////////////////// template<class Y, class X, class P> //class DTree2DModel : public Generic2DModel<Y,X,P>, public Tree < typename X::ElementType, DecisNode<X,Y,P> > { class DTree2DModel : public Tree < typename X::ElementType, DecisNode<X,Y,P> > { private: // Type members... typedef typename X::ElementType B; public: // Downcasts (safe b/c no new data)... DTree2DModel<Y,X,P>& setBranch(const B& b) { return static_cast<DTree2DModel<Y,X,P>&> ( Tree<B,DecisNode<X,Y,P> >::setBranch(b) ); } const DTree2DModel<Y,X,P>& getBranch(const B& b) const { return static_cast<const DTree2DModel<Y,X,P>&> ( Tree<B,DecisNode<X,Y,P> >::getBranch(b) ); } // Extraction methods... const P getProb ( const Y y, const X& x ) const { const Tree<B,DecisNode<X,Y,P> >* ptr = this; while ( !ptr->isTerm() ) /*{cerr<<x.get(ptr->getA().toInt())<<",";*/ ptr = &ptr->getBranch ( x.get(ptr->getA().toInt()) ); /*}*/ return ptr->getProb(y); } // Input / output methods... bool readFields ( Array<char*>& ) ; void write ( FILE* pf, const char psPrefix[], char psPath[], int iEnd ) const { if (Tree<B,DecisNode<X,Y,P> >::isTerm()) { psPath[iEnd]='\0'; Y y; for ( bool b=y.setFirst(); b; b=y.setNext() ) { fprintf(pf, "%s [%s] : ", psPrefix, psPath); fprintf(pf,"%s",y.getString().c_str()); fprintf(pf, " = %f\n", Tree<B,DecisNode<X,Y,P> >::getProb(y).toDouble()); } ////psPath[iEnd]='\0'; fprintf ( pf, "%s [%s] : 0 = %f\n", psPrefix, psPath, (double)Tree<DecisNode<Y,P> >::getProb("0") ); ////psPath[iEnd]='\0'; fprintf ( pf, "%s [%s] : 1 = %f\n", psPrefix, psPath, (double)Tree<DecisNode<Y,P> >::getProb("1") ); } else { psPath[iEnd]='\0'; fprintf ( pf, "%s [%s] = %d\n", psPrefix, psPath, (int)Tree<B,DecisNode<X,Y,P> >::getA().toInt() ); B b; for ( bool bb=b.setFirst(); bb; bb=b.setNext() ) { psPath[iEnd]=b.getString().c_str()[0]; psPath[iEnd+1]='\0'; getBranch(b).write(pf,psPrefix,psPath,iEnd+1); // psPath[iEnd]='0'; psPath[iEnd+1]='\0'; getLeft().write ( pf, psPrefix, psPath, iEnd+1 ); // psPath[iEnd]='1'; psPath[iEnd+1]='\0'; getRight().write ( pf, psPrefix, psPath, iEnd+1 ); } } } void writeFields ( FILE* pf, string sPref ) { char psPath[1000] = ""; write ( pf, (sPref+"").c_str(), psPath, 0 ); } //// friend pair<StringInput,DTree2DModel<Y,X,P>*> operator>> ( StringInput si, DTree2DModel<Y,X,P>& m ) { return pair<StringInput,DTree2DModel<Y,X,P>*>(si,&m); } friend StringInput operator>> ( pair<StringInput,DTree2DModel<Y,X,P>*> si_m, const char* psD ) { if (StringInput(NULL)==si_m.first) return si_m.first; Y y; String xs; StringInput si,si2; si=si_m.first; DTree2DModel<Y,X,P>* pm=si_m.second; while((si2=si>>" ")!=NULL)si=si2; si=si>>xs>>" "; while((si2=si>>" ")!=NULL)si=si2; // Find appropriate node, creating nodes as necessary... for(int i=1; i<int(strlen(xs.c_array()))-1; i++) { char psTemp[2]=" "; psTemp[0]=xs.c_array()[i]; pm = &pm->setBranch ( B(psTemp) ); } if ( si!=NULL && si[0]==':' ) { si=si>>": "; while((si2=si>>" ")!=NULL)si=si2; si=si>>y>>" "; while((si2=si>>" ")!=NULL)si=si2; si=si>>"= "; while((si2=si>>" ")!=NULL)si=si2; // Specify attribute number (at nonterminal) or probability in distribution (at terminal)... return (si!=NULL) ? si>>pm->setProb(y)>>psD : si; } else if ( si!=NULL && si[0]=='=' ) { si=si>>"= "; //cerr<<" in after equals "<<((si==NULL) ? "yes" : "no") << endl; while((si2=si>>" ")!=NULL)si=si2; //m.setA() = atoi(si.c_str()); int aVar = 0; si=si>>aVar>>psD; pm->setA()=aVar; ////cerr<<" at end "<<((si==NULL) ? "yes" : "no") << endl; ////cerr<<" m.getA() is "<< m.getA().toInt() << endl; return si; //return (si!=NULL) ? si>>m.setA()>>psD : si; } else if ( si!=NULL ) cerr<<" ??? ["<<si.c_str()<<"]\n"; return StringInput(NULL); /* Y y; String xs; X x; StringInput si,si2; string sRt; DTree2DModel<Y,X,P>& m = *si_m.second; si=si_m.first; sRt = si.c_str(); if (sRt.find(':')!=string::npos) { while((si2=si>>" [")!=NULL)si=si2; si=si>>xs>>"] "; while((si2=si>>" ")!=NULL)si=si2; si=si>>": "; while((si2=si>>" ")!=NULL)si=si2; si=si>>y>>" "; while((si2=si>>" ")!=NULL)si=si2; si=si>>"= "; // For DTree, must find the node labeled by X //Tree<B,DecisNode<X,Y,P> >* ptr = m; //assert(ptr); // Find appropriate node, creating nodes as necessary... for(int i=1; i<int(strlen(xs.c_array()))-1; i++) { char psTemp[2]="\0"; psTemp[0]=xs.c_array()[i]; m = m.setBranch ( B(psTemp) ); } // Specify attribute number (at nonterminal) or probability in distribution (at terminal)... return (si!=NULL) ? si>>m.setProb(y)>>psD : si; } else { while((si2=si>>" [")!=NULL)si=si2; si=si>>xs>>"] "; //cerr<<" in bracket "<<((si==NULL) ? "yes" : "no") << endl; while((si2=si>>" ")!=NULL)si=si2; si=si>>"= "; //cerr<<" in after equals "<<((si==NULL) ? "yes" : "no") << endl; //m.setA() = atoi(si.c_str()); int aVar = 0; si=si>>aVar>>psD; m.setA()=aVar; //cerr<<" at end "<<((si==NULL) ? "yes" : "no") << endl; //cerr<<" m.getA() is "<< m.getA().toInt() << endl; return si; //return (si!=NULL) ? si>>m.setA()>>psD : si; } */ } //// }; //////////////////// template <class Y,class X, class P> bool DTree2DModel<Y,X,P>::readFields ( Array<char*>& aps ) { if ( /*aps[0]==sId &&*/ (3==aps.size() || 4==aps.size()) ) { //fprintf(stderr,"%s,%d\n",aps[3],numFields); assert ( '['==aps[1][0] && ']'==aps[1][strlen(aps[1])-1] ); // Start at root... Tree<B,DecisNode<X,Y,P> >* ptr = this; assert(ptr); // Find appropriate node, creating nodes as necessary... for(int i=1; i<int(strlen(aps[1]))-1; i++) { char psTemp[2]="\0"; psTemp[0]=aps[1][i]; ptr = &ptr->setBranch ( B(psTemp) ); // assert ( '0'==aps[1][i] || '1'==aps[1][i] ); // ptr = ( ('0'==aps[1][i]) ? &ptr->setLeft() : &ptr->setRight() ) ; // assert(ptr); } // Specify attribute number (at nonterminal) or probability in distribution (at terminal)... if (3==aps.size()) ptr->setA() = atoi(aps[2]); else if (4==aps.size()) ptr->setProb(aps[2]) = atof(aps[3]); else assert(false); } else return false; return true; } //////////////////////////////////////////////////////////////////////////////// template<class Y, class X1,class X2, class P> //class DTree3DModel : public Generic3DModel<Y,X1,X2,P> { class DTree3DModel { private: // Type members... typedef typename X2::ElementType B; // Data members... string sId; SimpleHash<X1,DTree2DModel<Y,X2,P> > aqt; public: // Constructor / destructor methods... DTree3DModel ( ) { } DTree3DModel ( const string& s ) { sId = s; } // Specification methods... DTree2DModel<Y,X2,P>& setTree ( const X1& x1 ) { return aqt.set(x1); } // Extraction methods... bool setFirst ( Y& y ) const { return y.setFirst(); } bool setNext ( Y& y ) const { return y.setNext(); } P getProb ( const Y y, const X1& x1, const X2& x2 ) const { return aqt.get(x1).getProb(y,x2); } // Input / output methods... bool readFields ( char*[], int ) ; void writeFields ( FILE* pf, string sPref ) { char psPath[1000] = ""; X1 x1; for ( bool b=x1.setFirst(); b; b=x1.setNext() ) aqt.get(x1).write ( pf, (sPref + " " + x1.getString()).c_str(), psPath, 0 ); } }; //////////////////// template <class Y,class X1,class X2, class P> bool DTree3DModel<Y,X1,X2,P>::readFields ( char* aps[], int numFields ) { if ( /*aps[0]==sId &&*/ (4==numFields || 5==numFields) ) { //fprintf(stderr,"%s,%d\n",aps[3],numFields); assert ( '['==aps[2][0] && ']'==aps[2][strlen(aps[2])-1] ); // Start at root... Tree<B,DecisNode<X2,Y,P> >* ptr = &aqt.set(aps[1]); assert(ptr); // Find appropriate node, creating nodes as necessary... for(int i=1; i<strlen(aps[2])-1; i++) { char psTemp[2]="\0\0"; psTemp[0]=aps[1][i]; ptr = ptr->setBranch ( B(psTemp) ); // assert ( '0'==aps[2][i] || '1'==aps[2][i] ); // ptr = ( ('0'==aps[2][i]) ? &ptr->setLeft() : &ptr->setRight() ) ; // assert(ptr); } // Specify bit (at nonterminal) or distribution (at terminal)... if (4==numFields) ptr->setA() = atoi(aps[3]); else if (5==numFields) ptr->setProb(aps[3]) = atof(aps[4]); //// else if (5==numFields && 0==strcmp(aps[3],"0")) ptr->setProb() = 1.0 - atof(aps[4]); //// else if (5==numFields && 0==strcmp(aps[3],"1")) ptr->setProb() = atof(aps[4]); else assert(false); } else return false; return true; } //////////////////////////////////////////////////////////////////////////////// // // Trainable DTree Model // //////////////////////////////////////////////////////////////////////////////// template<class Y, class X, class P> class TrainableDTree2DModel : public DTree2DModel<Y,X,P> { private: // Type members... typedef typename X::ElementType B; // Static data members... static List<Joint2DRV<X,Y> > lxyInitial; public: // Static member varaibles... static bool OUTPUT_NOISY; static bool OUTPUT_VERYNOISY; // Downcasts (safe b/c no new data)... TrainableDTree2DModel<Y,X,P>& setBranch(const B& b) { return static_cast<TrainableDTree2DModel<Y,X,P>&> ( Tree<B,DecisNode<X,Y,P> >::setBranch(b) ); } const TrainableDTree2DModel<Y,X,P>& getBranch(const B& b) const { return static_cast<const TrainableDTree2DModel<Y,X,P>&> ( Tree<B,DecisNode<X,Y,P> >::getBranch(b) ); } // Specification methods... void train ( List<Joint2DRV<X,Y> >&, const DecisNode<X,Y,P>&, const double ) ; void train ( const double d ) { train(lxyInitial,DecisNode<X,Y,P>(),d); } ////// Input / output methods... bool readData ( Array<char*>& aps ) { if ( 3==aps.size() ) lxyInitial.add() = Joint2DRV<X,Y> ( X(aps[1]), Y(aps[2]) ); else if ( 4==aps.size() ) { for ( int i=atoi(aps[3]); i>0; i-- ) lxyInitial.add() = Joint2DRV<X,Y> ( X(aps[1]), Y(aps[2]) ); } else return false; return true; } }; template <class Y, class X, class P> List<Joint2DRV<X,Y> > TrainableDTree2DModel<Y,X,P>::lxyInitial; template <class Y, class X, class P> bool TrainableDTree2DModel<Y,X,P>::OUTPUT_NOISY = false; template <class Y, class X, class P> bool TrainableDTree2DModel<Y,X,P>::OUTPUT_VERYNOISY = false; //////////////////// template<class Y, class X, class P> void TrainableDTree2DModel<Y,X,P>::train ( List<Joint2DRV<X,Y> >& lxy, const DecisNode<X,Y,P>& dnParent, const double DTREE_CHISQR_LIMIT ) { typedef typename DecisNode<X,Y,P>::A A; // Place to store counts... //CPT3DModel<A,B,Y,double> aaaCounts; // hash was MUCH slower!! SafeArray3D<A,B,Y,double> aaaCounts ( X::getSize(), B::getDomain().getSize(), Y::getDomain().getSize(), 0.0 ); double dTot = lxy.getCard(); CPT1DModel<Y,double> modelY; // ( "Y_prior" ); // For each datum in list... ListedObject<Joint2DRV<X,Y> >* pxy; for ( pxy = lxy.getFirst(); pxy; pxy = lxy.getNext(pxy) ) { // For each attribute position... for ( A a=0; a<X::getSize(); a.setNext() ) // Add to counts... aaaCounts.set ( a, pxy->first.get(a.toInt()), pxy->second )++; //(pxy->second==Y("1"))?1:0 )++; modelY.setProb(pxy->second)++; } modelY.normalize(); // // If best attribute's prediction is not significant... // else { // Add ratio as leaf... Y y; for ( bool by=y.setFirst(); by; by=y.setNext() ) DecisNode<X,Y,P>::setProb(y) = (dTot>100) ? modelY.getProb(y) : (double)dnParent.getProb(y); //1.0/Y::getDomain().getSize(); //DecisNode<Y,P>::setProb("0") = (dXX>0) ? dX0/dXX : UNIGR_FO; //DecisNode<Y,P>::setProb("1") = (dXX>0) ? dX1/dXX : UNIGR_FO; ////DTree3DModel<Y,X1,X,P>::setLeafModel().setProb(Y("0"),x1,node) = dX0/dXX; ////DTree3DModel<Y,X1,X,P>::setLeafModel().setProb(Y("1"),x1,node) = dX1/dXX; // } double chisqr = 0.0; A aBest=0; // Bail if will never be significant... if ( !lxy.isEmpty() && lxy.getCard()>1000 ) { // For each attribute position... double entBest=0.0; for ( A a=0; a<X::getSize(); a.setNext() ) { // Local model for each attrib (bit num)... CPT2DModel<Y,B,double> modelY_giv_B; // ( "Y_giv_B" ); CPT1DModel<B,double> modelB; // ( "B_prior" ); B b; for ( bool bb=b.setFirst(); bb; bb=b.setNext() ) { Y y; for ( bool by=y.setFirst(); by; by=y.setNext() ) { modelY_giv_B.setProb(y,b) = aaaCounts.get(a,b,y); modelB.setProb(b) += aaaCounts.get(a,b,y); } } modelY_giv_B.normalize(); modelB.normalize(); // Calc entropy... double ent = 0.0; for ( bool bb=b.setFirst(); bb; bb=b.setNext() ) { Y y; for ( bool by=y.setFirst(); by; by=y.setNext() ) ent -= (0.0==modelY_giv_B.getProb(y,b)) ? 0.0 : ( modelB.getProb(b) * modelY_giv_B.getProb(y,b) * log(modelY_giv_B.getProb(y,b)) ); } // Record minimum entropy division... if ( a==0 || ent<entBest ) { entBest=ent; aBest=a; } if(OUTPUT_VERYNOISY) { // fprintf(stderr," bit=%d ent=%g (%g:%g,%g:%g) (%g:%g,%g:%g,%g:%g)\n",(int)a,ent, // aaaCounts.getProb(a,0,0),aaaCounts.getProb(a,0,1),aaaCounts.getProb(a,1,0),aaaCounts.getProb(a,1,1), // modelB.getProb(0),modelB.getProb(1), // modelY_giv_B.getProb(0,0),modelY_giv_B.getProb(1,0),modelY_giv_B.getProb(0,1),modelY_giv_B.getProb(1,1)); // //d0X,d1X,d00giv0X,d01giv0X,d10giv1X,d11giv1X); fprintf(stderr," bit=%d ent=%g\n",a.toInt(),ent); Y y; for ( bool by=y.setFirst(); by; by=y.setNext() ) fprintf(stderr," \t%s\t%s%.1f %s%.1f %s%.1f %s%.1f %s%.1f %s%.1f ...\n",y.getString().c_str(), B(0).getString().c_str(),modelY_giv_B.getProb(y,0), B(1).getString().c_str(),modelY_giv_B.getProb(y,1), B(2).getString().c_str(),modelY_giv_B.getProb(y,2), B(3).getString().c_str(),modelY_giv_B.getProb(y,3), B(4).getString().c_str(),modelY_giv_B.getProb(y,4), B(5).getString().c_str(),modelY_giv_B.getProb(y,5)); //fprintf(stderr," %s %g:%g\n",y.getString().c_str(),modelY_giv_B.getProb(y,0),modelY_giv_B.getProb(y,1)); } } if(OUTPUT_NOISY) fprintf(stderr," tot=%08d bestbit=%d bestent=%g\n",(int)dTot,aBest.toInt(),entBest); chisqr = 0.0; if ( X::getSize()>0 ) { // Local model for each attrib (bit num)... CPT1DModel<B,double> modelB_giv_Abest; // ( "B_giv_Abest" ); B b; for ( bool bb=b.setFirst(); bb; bb=b.setNext() ) { Y y; for ( bool by=y.setFirst(); by; by=y.setNext() ) { modelB_giv_Abest.setProb(b) += aaaCounts.get(aBest,b,y); } } modelB_giv_Abest.normalize(); // Calc chi sqr... for ( bool bb=b.setFirst(); bb; bb=b.setNext() ) { Y y; for ( bool by=y.setFirst(); by; by=y.setNext() ) { if ( modelB_giv_Abest.getProb(b)>0 && modelY.getProb(y)>0 && dTot>0 ) { double exp = modelB_giv_Abest.getProb(b) * modelY.getProb(y) * dTot; chisqr += pow ( aaaCounts.get(aBest,b,y)-exp, 2 ) / exp; } } } } if(OUTPUT_NOISY) fprintf(stderr," chisqr=%g\n",chisqr); } // If best bit prediction is significant... if ( chisqr > DTREE_CHISQR_LIMIT ) { //// // Add node to model fields... //// DTree3DModel<Y,X1,X,P>::setNodeMap()[Joint2DRV<X1,NodeNum>(x1,node)] = aBest; // Split list into each 0/1 child of this node... SimpleHash<B,List<Joint2DRV<X,Y> > > alxy; // For each datum in list... while ( !lxy.isEmpty() ) { Joint2DRV<X,Y>* pxy = lxy.getFirst(); alxy[pxy->first.get(aBest.toInt())].add() = *pxy; lxy.pop(); } // Recursively call train at each child... DecisNode<X,Y,P>::setA()=aBest; B b; for ( bool bb=b.setFirst(); bb; bb=b.setNext() ) setBranch(b).train ( alxy[b], *this, DTREE_CHISQR_LIMIT ); // setLeft().train ( alxy[0], DTREE_CHISQR_LIMIT ); ////node*2LL); // setRight().train ( alxy[1], DTREE_CHISQR_LIMIT ); ////node*2LL+1LL); } } //////////////////////////////////////////////////////////////////////////////// template<class Y, class X1, class X2, class P> class TrainableDTree3DModel : public DTree3DModel<Y,X1,X2,P> { private: map<X1,List<Joint2DRV<X2,Y> > > mqlxy; public: // Static member varaibles... static bool OUTPUT_NOISY; ////// Constructor... TrainableDTree3DModel(const char* ps) : DTree3DModel<Y,X1,X2,P>(ps) { } ////// setTree downcast... TrainableDTree2DModel<Y,X2,P>& setTree(const X1& x1) { return static_cast<TrainableDTree2DModel<Y,X2,P>&>(DTree3DModel<Y,X1,X2,P>::setTree(x1)); } ////// Add training data to per-subphone lists... bool readData ( Array<char*>& aps ) { if ( 4==aps.size() ) { mqlxy[X1(aps[1])].add() = Joint2DRV<X2,Y> ( X2(aps[2]), Y(aps[3]) ); ////mqlxy[X1(aps[1])].getLast()->write(stderr); fprintf(stderr,"\n"); } else return false; return true; } ////// Train each subphone... void train ( const double DTREE_CHISQR_LIMIT ) { int ctr = 0; // For each subphone... X1 x1; for ( bool b=x1.setFirst(); b; b=x1.setNext() ) { if(OUTPUT_NOISY) fprintf(stderr,"***** x1:%s (number %d) *****\n",x1.getString().c_str(),ctr++); setTree(x1).train ( mqlxy[x1], DTREE_CHISQR_LIMIT ); } } }; template <class Y, class X1, class X2, class P> bool TrainableDTree3DModel<Y,X1,X2,P>::OUTPUT_NOISY = false; #endif // _NL_DTREE__
[ "alexander.raginsky@gmail.com" ]
alexander.raginsky@gmail.com
a18c4f90e0924f765cf71f9ee7ed6e66891d5948
6b660cb96baa003de9e18e332b048c0f1fa67ab9
/External/SDK/BP_riddle_trigger_classes.h
c44d40fd5ef6208b1decc5766829bb808fccb80d
[]
no_license
zanzo420/zSoT-SDK
1edbff62b3e12695ecf3969537a6d2631a0ff36f
5e581eb0400061f6e5f93b3affd95001f62d4f7c
refs/heads/main
2022-07-30T03:35:51.225374
2021-07-07T01:07:20
2021-07-07T01:07:20
383,634,601
1
0
null
null
null
null
UTF-8
C++
false
false
1,661
h
#pragma once // Name: SoT, Version: 2.2.0.2 /*!!DEFINE!!*/ /*!!HELPER_DEF!!*/ /*!!HELPER_INC!!*/ #ifdef _MSC_VER #pragma pack(push, 0x01) #endif namespace CG { //--------------------------------------------------------------------------- // Classes //--------------------------------------------------------------------------- // BlueprintGeneratedClass BP_riddle_trigger.BP_riddle_trigger_C // 0x001C (FullSize[0x03EC] - InheritedSize[0x03D0]) class ABP_riddle_trigger_C : public AActor { public: class UStaticMeshComponent* Shockwave; // 0x03D0(0x0008) (BlueprintVisible, ZeroConstructor, IsPlainOldData, NonTransactional, NoDestructor) class USceneComponent* DefaultSceneRoot; // 0x03D8(0x0008) (BlueprintVisible, ZeroConstructor, IsPlainOldData, NonTransactional, NoDestructor) class UMaterialInstanceDynamic* DynamicMaterial; // 0x03E0(0x0008) (Edit, BlueprintVisible, ZeroConstructor, DisableEditOnInstance, IsPlainOldData, NoDestructor) float Duration; // 0x03E8(0x0004) (Edit, BlueprintVisible, ZeroConstructor, IsPlainOldData, NoDestructor) static UClass* StaticClass() { static auto ptr = UObject::FindClass("BlueprintGeneratedClass BP_riddle_trigger.BP_riddle_trigger_C"); return ptr; } void Destroy(); void UserConstructionScript(); void AfterRead(); void BeforeDelete(); }; } #ifdef _MSC_VER #pragma pack(pop) #endif
[ "Massimo.linker@gmail.com" ]
Massimo.linker@gmail.com
cc893bb4068b0f5c36495c371e7c929e2cc8f0ca
35bae09e70265d648d34a9c93d6a3c4c2de91282
/src/sort/binary_search.cpp
3150014ee2aa8d25d82c825aaf99fdb1aa6e3490
[]
no_license
min9813/algorithm_contest
06e2055776c9ba969a59e31a4512146f26391be5
6f565a118150c1207cea014a5608a68f79899dd6
refs/heads/master
2020-12-27T04:55:16.091152
2020-10-31T07:27:14
2020-10-31T07:27:14
237,772,690
0
0
null
null
null
null
UTF-8
C++
false
false
1,478
cpp
#include <iostream> using namespace std; #define MAX_NUM 100000 #define MAX_WEIGHT 10000 int calc_weight_num(int A[], int p, int n, int k){ long long sum_num = 0; int i=0, now_weight = 0, track_now_num=0; while(i<n && track_now_num<k){ // printf("now weight : %d p=%d i=%d t_num=%d\n", now_weight,p,i, track_now_num); now_weight += A[i]; if (now_weight < p){ sum_num ++; i++; }else{ track_now_num ++; if(now_weight == p){ sum_num++; i++; } while(A[i]>p){ i++; } now_weight = 0; } } return sum_num == n; } int BinarySearch(int A[], int n, int max_p, int k){ long long left = 0; long long right = max_p; long long middle; bool is_ok = false; while (left + 1< right){ middle = (left + right) / 2; // printf("%lld %lld %lld\n", middle, left, right); is_ok = calc_weight_num(A, middle,n,k); if (is_ok){ // printf("yes"); right = middle; }else{ // printf("no"); left = middle; } } return right; } int main(){ int n,k,w,max_p=0; int T[MAX_NUM]; cin >> n >> k; for(int i=0;i<n;i++){ cin >> w; max_p += w; T[i] = w; } long long ans = BinarySearch(T, n, max_p, k); cout << ans << endl; return 0; }
[ "hmc1984techjob@gmail.com" ]
hmc1984techjob@gmail.com
59180c3f39d543805efcdbe703f1df235c2ed859
6d98ac10b5b8909a9eedcf2cd7ab2686e1155542
/Cocos2d-x/QFLTest/Classes/TestElevator/ElevatorOne/TestElevatorOne.hpp
d26e078f80a145745c622690b42247b2d58b511d
[]
no_license
qufangliu/MyTest
926dabc6e12a0fa4020cc96d3a2d1a228ed354a0
156e954bcbb624f51e17ce09443d5461f5c0b094
refs/heads/master
2020-09-22T20:54:29.697088
2016-10-10T23:55:39
2016-10-10T23:55:39
66,987,202
1
1
null
null
null
null
UTF-8
C++
false
false
439
hpp
// // TestElevatorOne.hpp // QFLTest // // Created by QuFangliu on 16/9/18. // // #ifndef TestElevatorOne_hpp #define TestElevatorOne_hpp #include <stdio.h> #include "cocos2d.h" class TestElevatorOne : public cocos2d::Layer { public: TestElevatorOne(); virtual ~TestElevatorOne(); virtual bool init(); CREATE_FUNC(TestElevatorOne); public: private: void initSelf(); }; #endif /* TestElevatorOne_hpp */
[ "qufl@feiyu.com" ]
qufl@feiyu.com
35d66e361bbcee24c55a7c22d38aef81122ba9c7
5962a1dcdc70b91eae23cc6259bae35486cc1944
/wm_test.cc
e34a2a0f6d721c787b2ce40329648242fcc80825
[ "BSD-2-Clause" ]
permissive
ondratu/tiny-shell
79b5ec497eb04e2cd8f9fb198918dc769d455d88
7b7d684198f5d6b371943b6640fcd2ca058d02ca
refs/heads/master
2023-05-26T08:24:57.888517
2023-05-20T21:04:39
2023-05-20T21:04:39
120,957,114
0
0
null
null
null
null
UTF-8
C++
false
false
2,004
cc
#include <memory> #include "wm_widget.h" #include "wm_buttons.h" extern WMHandlers wm_handlers; bool keep_running = true; class WMTest: public WMWidget { public: WMTest(Display * display, Window parent): WMWidget(display, parent, 0, 0, 300, 200, 1, 0xaaa, 0xffffff) { button = std::shared_ptr<WMButton>( new WMButton(display, window, 100, 100, 30, 30)); button->on_click.connect( this, static_cast<object_signal_t>(&WMTest::on_button_click)); button->map(); button->set_events(); set_events(); map(); } virtual ~WMTest() {} virtual void set_events(){ XSelectInput(display, window, StructureNotifyMask); Atom wm_delete_window = XInternAtom(display, "WM_DELETE_WINDOW", 0); XSetWMProtocols(display, window, &wm_delete_window, 1); connect(ClientMessage, static_cast<event_signal_t>(&WMTest::on_client_message)); } void on_client_message(const XEvent &e, void *) { if (e.xclient.message_type == XInternAtom(display, "WM_PROTOCOLS", 1) && (Atom)e.xclient.data.l[0] == XInternAtom(display, "WM_DELETE_WINDOW", 1)) { printf("This is it!\n"); keep_running = false; } } void on_button_click(WMObject * btn, const XEvent &e, void * data) { printf("Jo bylo kliknuto :)\n"); } private: std::shared_ptr<WMButton> button; }; int main (int argc, char * argv[]) { Display* display = XOpenDisplay(NULL); WMTest test(display, DefaultRootWindow(display)); XEvent event; while (keep_running) { XNextEvent(display, &event); auto signal_id = std::make_pair(event.type, event.xany.window); // call manager handlers first if (wm_handlers.count(signal_id)){ wm_handlers.call_hanlder(signal_id, event); continue; } } XCloseDisplay(display); return 0; }
[ "mcbig@zeropage.cz" ]
mcbig@zeropage.cz
f9cc8ea4b7c368a89c89f9097a56c42271b2476c
16d515822090e747a5b5e9136148bccbdd4027ac
/gameNode.h
5fed3ffed53317cbbe01b8b79f88291ea37e3522
[]
no_license
woo921127/mapTool
0631b9d00fe8fcd7a6cfd988fa55c03e3ee32c8c
677fdbf9e08f8f83396d03ca9de9674e28d355a0
refs/heads/master
2020-04-22T02:57:45.940440
2019-02-11T04:43:12
2019-02-11T04:43:12
170,069,009
0
0
null
null
null
null
UHC
C++
false
false
1,225
h
#pragma once #include "image.h" //백버퍼 전역 선언 static image* _backBuffer = IMAGEMANAGER->addImage("backBuffer", WINSIZEX, WINSIZEY); static image* _backBuffer1 = IMAGEMANAGER->addImage("background", 800, WINSIZEY); class gameNode { private: HDC _hdc; //매니저를 이닛할껀지 여부 bool _managerInit; public: gameNode(); virtual ~gameNode(); int _ctrSelect; //컨트롤 버튼 이넘문과 연결하기 위함 //마소 전용 -> 디버그 모드에서 초기화가 잘되었는지 에러가 났는지 여부 등을 //S_OK, E_FAIL, SUCCEDED 등으로 알랴줌. virtual HRESULT init(); virtual HRESULT init(bool managerInit); virtual void release(); virtual void update(); virtual void render(); virtual void save(); virtual void load(); virtual void save2(); virtual void load2(); void setCtrlSelect(int num) { _ctrSelect = num; } LRESULT MainProc(HWND hWnd, UINT iMessage, WPARAM wParam, LPARAM lParam); image* getBackBuffer() { return _backBuffer; } // image* getCameraBuffer() { return _backBuffer1; } //DC 접근자 HDC getMemDC() { return _backBuffer->getMemDC(); } //HDC getCameraDC() { return _backBuffer1->getMemDC();} HDC getHDC() { return _hdc; } };
[ "shany21@naver.com" ]
shany21@naver.com
5c176838f559f9a7108a84e27e614ec24171c798
d670d91da7895cf656022bfa51f69223bb26a785
/kill-interview-part-1-master/49.cpp
c33b123f988d7e6007d8c463a5fddd69c7abf305
[]
no_license
Shiva0124/hello
cbfe5505a4348fd4a381e8cc4236dbbabd1e389c
c90c9dac1d067fbe5f0fda74fcc7b1d07c453c17
refs/heads/master
2020-04-14T02:00:23.822871
2019-07-21T07:24:56
2019-07-21T07:24:56
163,574,860
0
0
null
null
null
null
UTF-8
C++
false
false
493
cpp
#include <stdio.h> #include <string.h> const int maxn =3000; int main() { char word[100]; scanf("%s",word); int len = strlen(word); for (int i = 1; i <= len; ++i) if (len % i ==0) { int ok = 1; for (int j = i; j < len; ++j) { if (word[j] != word[j % i]) { ok = 0; break; } if (ok) { printf("%d\n",i); break; } } } }
[ "b1184009363@gmail.com" ]
b1184009363@gmail.com
5ad8150bf174868e0a49132892fa93c0478e321b
39268450000bf03f9a827dd25527989f312e29e8
/src/CoreController.cpp
ee62a9172107c155d5584f8148af9378ed7b368d
[]
no_license
durcakd/Grapgh_Viz_project
f50a51f47fad4aac0ed9d34f91be8fba0141c44e
9a0c74d3fa64366c03c248c93efa491a63ff19e6
refs/heads/master
2021-01-19T15:01:42.436945
2014-05-19T22:03:09
2014-05-19T22:03:09
18,835,675
1
0
null
null
null
null
UTF-8
C++
false
false
1,150
cpp
#include "CoreController.h" #include "data/Manager.h" CoreController::CoreController() { _coreDrawer = new CoreDrawer; _coreGLWidget = new CoreGLWidget(_coreDrawer ); _coreWindow = new CoreWindow( _coreGLWidget ); QObject::connect( _coreWindow, SIGNAL(openGraph(QString)), _coreDrawer, SLOT(openNewGraph(QString)) ); QObject::connect( _coreWindow->getHeightCoefSL(), SIGNAL(valueChanged(int)), _coreDrawer, SLOT(computeHeightCoef(int)) ); Manager *man = Manager::getInstance(); QObject::connect( _coreDrawer, SIGNAL(sentHeightCoef(GLuint)), man, SLOT(setHeightCoef(GLuint)) ); QObject::connect( _coreWindow->getAlphaCoefSL(), SIGNAL(valueChanged(int)), man, SLOT(setAlphaCoef(int)) ); QObject::connect( _coreWindow->getCurveWidthCoefSL(), SIGNAL(valueChanged(int)), man, SLOT(setCurveWidthCoef(int)) ); QObject::connect( _coreWindow->getGapCoefSL(), SIGNAL(valueChanged(int)), man, SLOT(setGapCoef(int)) ); QObject::connect( _coreWindow->getSelectAdjNodesCB(), SIGNAL(clicked(bool)), man, SLOT(setSelectAdjNodes(bool)) ); _coreWindow->resize( 800, 800 ); _coreWindow->show(); }
[ "durcak.david01@gmail.com" ]
durcak.david01@gmail.com
055294a01e3214eebea2d745f81783c2bdf4c1a7
4cd27b9d81d30d62a7d6f9f3356dac3840348ede
/include/SF/DataPtr.hpp
41715155d7d092a07efdd55af3e7a90af4712944
[]
no_license
Fruneng/POI_DB_client
debc6508a64358541d3baf944cd7c56933439564
b50bd1805fa8618f5baf08713019ba32e2f78211
refs/heads/master
2021-01-13T02:16:35.652477
2013-03-07T09:18:45
2013-03-07T09:18:45
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,006
hpp
//****************************************************************************** // RCF - Remote Call Framework // // Copyright (c) 2005 - 2012, Delta V Software. All rights reserved. // http://www.deltavsoft.com // // RCF is distributed under dual licenses - closed source or GPL. // Consult your particular license for conditions of use. // // If you have not purchased a commercial license, you are using RCF // under GPL terms. // // Version: 2.0 // Contact: support <at> deltavsoft.com // //****************************************************************************** #ifndef INCLUDE_SF_DATAPTR_HPP #define INCLUDE_SF_DATAPTR_HPP #include <string> #include <RCF/Export.hpp> #include <SF/PortableTypes.hpp> namespace SF { //************************************************************************ // DataPtr class holds a pointer to a buffer of data. It includes an internal // buffer in order to avoid dynamic memory allocation for small buffer sizes, < 64bytes. class RCF_EXPORT DataPtr { private: typedef Byte8 T; public: DataPtr(); DataPtr(const T *sz); DataPtr(const T *sz, UInt32 length); DataPtr(const DataPtr &rhs); DataPtr &operator=(const DataPtr &rhs); ~DataPtr(); void assign(const T *sz, UInt32 length); void assign(const T *sz); void assign(const std::string &s); void release(); UInt32 allocate(UInt32 length); void terminatebufferwithzero() const; void update_length(); T *get() const; UInt32 length() const; bool empty() const; std::string cpp_str() const; private: T *ptr_; UInt32 length_; UInt32 allocatedLength_; int whichDeleter_; void (*pfn_deleter_)(T *); T buffer_[64]; UInt32 length(const T *sz); }; } // namespace SF #endif // ! INCLUDE_SF_DATAPTR_HPP
[ "zunceng@gmail.com" ]
zunceng@gmail.com
f77e67fbf8efd48ecb5cd00dbba807bd026cb120
a4bc0bf607faf7700af9b6212eb0e04153ba0390
/gw-app/pos/posuart.cpp
2d73f77dfb3b66e72a0bf50686d0c6510c83d102
[]
no_license
mengke2017/wg-app
8dd7149560171eed4e4e4f34d6988ee52b9d69dc
f9825096ec56468ffb081dbee8d02f1563487883
refs/heads/master
2020-07-02T01:13:04.858938
2019-07-29T07:03:03
2019-07-29T07:03:03
201,369,549
1
0
null
null
null
null
UTF-8
C++
false
false
3,538
cpp
#include "posuart.h" #include "common/mydebug.h" #include "common/systemutils.h" #define TIME_OUT 10 #define PACKET_START "~" #define PACKET_END "~" #define ESCAPE_CHAR_SRC1 "}" #define ESCAPE_CHAR_DST1 "}\1" #define ESCAPE_CHAR_SRC2 "~" #define ESCAPE_CHAR_DST2 "}\2" #define PACHET_START_SIZE 1 #define PACHET_END_SIZE 1 #define ESCAPE_CHAR_SRC1_SIZE 1 #define ESCAPE_CHAR_DST1_SIZE 2 #define ESCAPE_CHAR_SRC2_SIZE 1 #define ESCAPE_CHAR_DST2_SIZE 2 PosUart::PosUart(QObject *parent) : QObject(parent) { mComData.resize(0); mCom = new SerialPort(); } PosUart::~PosUart() { close(); } void PosUart::receive() { connect(mCom, SIGNAL(hasdata()), this, SLOT(readMyCom())); open(); } //open port void PosUart::open() { // QString portName = POS_UART; // if(!mCom->openPort(portName,BAUD9600,DATA_8,PAR_NONE,STOP_1,FLOW_OFF,TIME_OUT)) { // MY_WARNING("uart open fail!"); return; // } } //close port void PosUart::close() { mCom->close(); mCom = NULL; } //read data void PosUart::readMyCom() { MY_WARNING("readMyCom!"); mComData += mCom->read(); int32 size = mComData.size(); if(0 != size) { bool flag = false; do { flag = parsePacket(); }while(flag); } } bool PosUart::parsePacket() { static QByteArray tmp; int32 startIndex = mComData.indexOf(PACKET_START); if(startIndex < 0) { mComData.remove(0,mComData.size()); MY_DEBUG("startIndex fail!"); return false; } mComData = mComData.mid(startIndex); int32 endIndex = mComData.indexOf(PACKET_END,PACHET_START_SIZE); if(endIndex < 0) { MY_DEBUG("endIndex fail!"); return false; } if(endIndex < 15) { MY_DEBUG("len fail!"); mComData.remove(0,endIndex+PACHET_END_SIZE); if(mComData.indexOf(PACKET_START) < 0) { return false; } else { return true; } } tmp = mComData.mid(0,endIndex+PACHET_END_SIZE); SystemUtils::escape(&tmp,ESCAPE_CHAR_DST1,ESCAPE_CHAR_DST1_SIZE,ESCAPE_CHAR_SRC1); SystemUtils::escape(&tmp,ESCAPE_CHAR_DST2,ESCAPE_CHAR_DST2_SIZE,ESCAPE_CHAR_SRC2); if(16 != tmp.size()) { MY_DEBUG("size fail!"); mComData.remove(0,endIndex+PACHET_END_SIZE); if(mComData.indexOf(PACKET_START) < 0) { return false; } else { return true; } } if(tmp.at(1) != 0x01 ||(uint8)(tmp.at(2)) != 0x80 ||(uint8)(tmp.at(3)) != 0x8A ||tmp.at(4) != 0x00 ||tmp.at(5) != 0x00 ||tmp.at(6) != 0x10 ||tmp.at(8) != 0x1d) { MY_DEBUG("head fail!"); mComData.remove(0,endIndex+PACHET_END_SIZE); if(mComData.indexOf(PACKET_START) < 0) { return false; } else { return true; } } uint16 effect = tmp[13]; effect = (effect<<8)|tmp[14]; if(effect != SystemUtils::CRC16(&tmp,8,tmp[7]+8)) { MY_DEBUG("effect fail!"); mComData.remove(0,endIndex+PACHET_END_SIZE); if(mComData.indexOf(PACKET_START) < 0) { return false; } else { return true; } } emit readCom(tmp); mComData.remove(0,endIndex+PACHET_END_SIZE); if(mComData.indexOf(PACKET_START) < 0) { return false; } else { return true; } } //continue send data void PosUart::send(QByteArray data) { mCom->write(data); }
[ "1432603260@qq.com" ]
1432603260@qq.com
2b782089aff588e0533c5f06dea2a2bc8e681fd4
56357f6253a8a9f026e5b798a16e06be5285e099
/include/arg_parser.h
6d3e189b6c1fdd23304c02a28ae71ea99cbae400
[]
no_license
peng225/happy_arrange
498bfe20c5c0d709acc2e21ddd6ab3d4bc4b98fb
d45e607bbdac9d74d543ff662cee38e187bbaaf6
refs/heads/master
2022-01-29T18:47:33.697229
2022-01-21T10:34:33
2022-01-21T10:34:33
23,311,704
0
0
null
null
null
null
UTF-8
C++
false
false
438
h
#pragma once #include <string> #include <vector> #include <list> class ArgParser { public: void genDefaultSettings(int &numChoices, std::vector<int> &scores) const; void argParse(int argc, char** argv, bool &verbose, bool &hopelessCut, int &numChoices, std::vector<int> &scores, char* inputFileName) const; private: bool isScoresInCorrectFormat(const std::vector<int> &scores) const; };
[ "shinyaUT0925@gmail.com" ]
shinyaUT0925@gmail.com
87a389d35cf1784b1967c1e0c34f16e58defdaf2
d93e5b4345f7960d6282aaf32d40a1e64e8c4b69
/ProjectPBO/ProjectPBO.cpp
aebbdf8067d5736f66e7dd17c44243328d3a3bb9
[]
no_license
doenny10/ProyekPBO
142a103791092a27f846add284084c6ed64aaebd
e67a1887da6849a2005a7e72aac6bca1faf1bc2e
refs/heads/master
2020-04-01T19:44:39.215989
2018-10-18T05:47:16
2018-10-18T05:47:16
153,569,962
0
0
null
null
null
null
UTF-8
C++
false
false
488
cpp
#include <SFML/Graphics.hpp> int main() { sf::RenderWindow window(sf::VideoMode(200, 200), "SFML works!"); sf::CircleShape shape(100.f); shape.setFillColor(sf::Color::Green); while (window.isOpen()) { sf::Event event; while (window.pollEvent(event)) { if (event.type == sf::Event::Closed) window.close(); } window.clear(); window.draw(shape); window.display(); } return 0; }
[ "donny.auddy10@gmail.com" ]
donny.auddy10@gmail.com
e272f6e407cf0583d2b873c6a7291f2ffc103e88
06bddadc598873a9d64bb83e4a6c12556c17eda0
/GameClashBasu/kratos.cpp
c02c2c93ccbdc6c590dd5b4b744138bd884b9872
[]
no_license
AmirBakhshi79/Clash-Of-Basu
dccd1da0986191b062fedc9751cd424598de52fb
697cb07993abf539fb92864b8a32052b269175ad
refs/heads/master
2020-12-26T08:03:31.209673
2020-02-02T09:19:25
2020-02-02T09:19:25
237,441,373
0
0
null
null
null
null
UTF-8
C++
false
false
125
cpp
#include "kratos.h" Kratos::Kratos(std::string FileName, float x, float y) : Entity(FileName,x,y) { this->W = KRATOS; }
[ "amirbakhshizade79@gmail.com" ]
amirbakhshizade79@gmail.com
a3b61277c1cbeb17eb8f3caba833f040a6f211ec
a89402e007e97d1029fc327e18bbba604ccad251
/ProfilerCore/Message.h
6a5f6e31214fa4ae5b512b00fbf0aacbb540f789
[ "MIT" ]
permissive
corefan/brofiler
7014fdf972e7d885ef0f615f9b74d2fbc3e4cc61
f9c49eb342eb8e242a9bae4f008ea2cbef4128ec
refs/heads/master
2021-01-22T01:51:22.083626
2015-07-13T09:39:51
2015-07-13T09:39:51
49,761,598
3
0
null
2016-01-16T06:04:22
2016-01-16T06:04:22
null
UTF-8
C++
false
false
3,068
h
#pragma once #include "Common.h" #include "Serialization.h" namespace Profiler { //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// static const uint32 NETWORK_PROTOCOL_VERSION = 5; //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// struct DataResponse { enum Type { FrameDescriptionBoard = 0, // DescriptionBoard for Instrumental Frames EventFrame = 1, // Instrumental Data SamplingFrame = 2, // Sampling Data NullFrame = 3, // Last Fame Mark ReportProgress = 4, // Report Current Progress Handshake = 5, // Handshake Response }; uint32 version; uint32 size; Type type; DataResponse(Type t, uint32 s) : type(t), size(s), version(NETWORK_PROTOCOL_VERSION) {} }; //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// OutputDataStream& operator << (OutputDataStream& os, const DataResponse& val); //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// class IMessage { public: enum Type { Start, Stop, TurnSampling, SetupHook, COUNT, }; virtual void Apply() = 0; virtual ~IMessage() {} static IMessage* Create( InputDataStream& str ); }; //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// template<IMessage::Type MESSAGE_TYPE> class Message : public IMessage { enum { id = MESSAGE_TYPE }; public: static uint32 GetMessageType() { return id; } }; //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// struct StartMessage : public Message<IMessage::Start> { static IMessage* Create(InputDataStream&); virtual void Apply() override; }; //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// struct StopMessage : public Message<IMessage::Stop> { static IMessage* Create(InputDataStream&); virtual void Apply() override; }; //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// struct TurnSamplingMessage : public Message<IMessage::TurnSampling> { int32 index; byte isSampling; static IMessage* Create(InputDataStream& stream); virtual void Apply() override; }; //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// struct SetupHookMessage : public Message<IMessage::SetupHook> { uint64 address; byte isHooked; static IMessage* Create(InputDataStream& stream); virtual void Apply() override; }; //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// }
[ "nb_grif@mail.ru" ]
nb_grif@mail.ru
c15225fbd1ebd1413f01841c4ad9415e08afaac2
3730a6eb2c8fd7133adbb92d536902c84e165c32
/modul_01/task_03/main.cpp
6d49c15030d52d259e68e9b2f6e99df5e3a04400
[]
no_license
Surfingbird/Algorithms_TP
0a6f39ec94fa9ae24fe1e5043919f81e8b389265
34a97749f397b824d3e75e1d8a15ab82f1eb5882
refs/heads/master
2020-04-03T06:24:03.474292
2018-12-10T20:39:42
2018-12-10T20:39:42
155,073,576
0
0
null
null
null
null
UTF-8
C++
false
false
2,864
cpp
#include <iostream> #include <assert.h> //Реализовать очередь с динамическим зацикленным буфером. //Обрабатывать команды push back и pop front. /// 12397183 int MagicSize = 10; using namespace std; class CQueue { public: CQueue(); ~CQueue(); CQueue(const CQueue&) = delete; CQueue(CQueue&&) = delete; CQueue&operator=(const CQueue&) = delete; CQueue&operator=(CQueue&&) = delete; void ShowBuffer() const; bool IsEmpty() const; void Enqueue(int element); int Dequeue(); bool IsFull() const; private: void Resize(); int* buffer; size_t BufferSize; size_t head; size_t tail; size_t count; }; CQueue::CQueue() : head(0), tail(0), BufferSize(MagicSize), buffer(nullptr), count(0) { buffer = new int[BufferSize]; } CQueue::~CQueue() { delete [] buffer; } bool CQueue::IsEmpty() const { return head == tail; } bool CQueue::IsFull() const { return count == BufferSize - 1; } void CQueue::Resize() { int* NewBuffer = new int[2 * BufferSize]; size_t IndexInNew = 0; if (BufferSize - 1 == tail) { for (size_t i = head; i < BufferSize; ++i) { NewBuffer[IndexInNew] = buffer[i]; ++IndexInNew; } tail = --IndexInNew; } else { for(size_t i = 0; i < BufferSize; ++i) { NewBuffer[IndexInNew] = buffer[i]; ++IndexInNew; } for (size_t i = 0; i < tail; ++i) { NewBuffer[IndexInNew] = buffer[i]; ++IndexInNew; } tail = IndexInNew; } head = 0; delete [] buffer; buffer = nullptr; BufferSize *= 2; buffer = NewBuffer; } void CQueue::Enqueue(int element) { assert(element >= 0); if (IsFull()) { Resize(); } buffer[tail] = element; ++count; tail = (tail + 1) % BufferSize; } int CQueue::Dequeue() { if (IsEmpty()) { return -1; } int result = buffer[head]; head = (head + 1) % BufferSize; --count; return result; } void CQueue::ShowBuffer() const { for(size_t i = 0; i < BufferSize; ++i) { cout << buffer[i] << " "; } cout << endl; } int main() { CQueue queue; size_t CommandCount = 0; cin >> CommandCount; int CommandID = 0; int CommandValue = 0; for (size_t i = 0; i < CommandCount; ++i) { cin >> CommandID >> CommandValue; if(CommandID == 3) { queue.Enqueue(CommandValue); } else if(CommandID == 2) { int current = queue.Dequeue(); if (current != CommandValue) { cout << "NO"; return 0; } } else { cout << "NO"; return 0; } } cout << "YES" << endl; return 0; }
[ "a.baronskiy@mail.ru" ]
a.baronskiy@mail.ru
8f83d68deb2af94ec9b7b33d8387dc72278da064
e0242089d4f342c74bc0a681ecc6fd364f8f9af1
/src/xdb/postmortem_cursor.cc
c1e6e3e00c84c36cd76c5ad8eb8b3cadcaa11dbe
[]
no_license
atupac/xenia
9d99c06e5f6a0636f0e0e7ab96b7cbb5c9bc75e6
3658e710d2e4de6c323b5b74dbac21925875e8f3
refs/heads/master
2021-01-18T12:45:15.801267
2015-01-06T08:13:27
2015-01-06T08:13:27
28,930,404
1
0
null
2015-01-07T19:36:24
2015-01-07T19:36:24
null
UTF-8
C++
false
false
4,711
cc
/** ****************************************************************************** * Xenia : Xbox 360 Emulator Research Project * ****************************************************************************** * Copyright 2014 Ben Vanik. All rights reserved. * * Released under the BSD license - see LICENSE in the root for more details. * ****************************************************************************** */ #include <xdb/postmortem_cursor.h> #include <atomic> #include <condition_variable> #include <mutex> #include <queue> #include <thread> #include <xdb/postmortem_debug_target.h> #include <xdb/protocol.h> namespace xdb { using xdb::protocol::EventType; struct Command { enum class Type { EXIT, CONTINUE, }; Type type; protected: Command(Type type) : type(type) {} }; struct ExitCommand : public Command { ExitCommand() : Command(Type::EXIT) {} }; struct ContinueCommand : public Command { ContinueCommand() : Command(Type::CONTINUE), thread(nullptr) {} Thread* thread; }; class PostmortemCursor::Executor { public: Executor(PostmortemCursor* cursor) : cursor_(cursor), running_(true) { trace_ptr_ = cursor->target_->trace_base(); // Must be last, as it'll spin up here. thread_ = std::thread(std::bind(&Executor::ExecutionThread, this)); } ~Executor() { running_ = false; IssueCommand(std::make_unique<ExitCommand>()); thread_.join(); } bool eof() const { return eof_; } void IssueCommand(std::unique_ptr<Command> command) { { std::unique_lock<std::mutex> lock(queue_lock_); queue_.push(std::move(command)); pending_commands_ = true; } queue_cond_.notify_one(); } private: void ExecutionThread() { while (running_) { auto command = AwaitCommand(); if (!running_ || !command || command->type == Command::Type::EXIT) { break; } switch (command->type) { case Command::Type::CONTINUE: { auto cmd = static_cast<ContinueCommand*>(command.get()); cmd->thread; break; } } // Process(pending_commands_); } } void Process(std::atomic<bool>& exit_signal) { if (eof_) { return; } while (!exit_signal) { auto event_type = poly::load<EventType>(trace_ptr_); switch (event_type) { case EventType::END_OF_STREAM: { eof_= true; cursor_->end_of_stream(); return; } case EventType::MODULE_LOAD: { auto ev = protocol::ModuleLoadEvent::Get(trace_ptr_); break; } case EventType::MODULE_UNLOAD: { auto ev = protocol::ModuleLoadEvent::Get(trace_ptr_); break; } case EventType::THREAD_CREATE: { auto ev = protocol::ThreadCreateEvent::Get(trace_ptr_); break; } case EventType::THREAD_INFO: { auto ev = protocol::ThreadInfoEvent::Get(trace_ptr_); break; } case EventType::THREAD_EXIT: { auto ev = protocol::ThreadExitEvent::Get(trace_ptr_); break; } } trace_ptr_ += protocol::kEventSizes[static_cast<uint8_t>(event_type)]; } } std::unique_ptr<Command> AwaitCommand() { std::unique_lock<std::mutex> lock(queue_lock_); while (queue_.empty()) { queue_cond_.wait(lock); } auto command = std::move(queue_.front()); queue_.pop(); pending_commands_ = !queue_.empty(); return command; } PostmortemCursor* cursor_; std::atomic<bool> running_; const uint8_t* trace_ptr_; std::atomic<bool> eof_; std::thread thread_; std::queue<std::unique_ptr<Command>> queue_; std::mutex queue_lock_; std::condition_variable queue_cond_; std::atomic<bool> pending_commands_; }; PostmortemCursor::PostmortemCursor(PostmortemDebugTarget* target) : target_(target) { executor_.reset(new Executor(this)); } PostmortemCursor::~PostmortemCursor() { executor_.reset(); } bool PostmortemCursor::can_step() const { // TODO(benvanik): check trace flags. return true; } void PostmortemCursor::Continue(Thread* thread) { auto cmd = std::make_unique<ContinueCommand>(); cmd->thread = thread; executor_->IssueCommand(std::move(cmd)); } void PostmortemCursor::ContinueTo(uint32_t address, Thread* thread) {} void PostmortemCursor::ContinueToNextCall(Thread* thread) {} void PostmortemCursor::ContinueToReturn(Thread* thread) {} void PostmortemCursor::ContinueUntil( const std::function<bool(protocol::EventType, uint8_t*)> predicate, Thread* thread) {} void PostmortemCursor::Break() {} } // namespace xdb
[ "ben.vanik@gmail.com" ]
ben.vanik@gmail.com
ddaeb7181f8d967f205539b0f2d14d9b813ad616
f24be649e191363e241dad07eb8868f35c3a6b17
/PM_2/BDF_PM2_PROJECT/Extra.cpp
d26fe2b11f256f99ef6738efb41a6848900a1e01
[]
no_license
bfaure/Classwork
f7b702f78789d70d9445aeaea0143bf6ba43ae9a
008fed5b4940213bf1ab3c8b1a9ee1f172171da4
refs/heads/master
2021-01-17T14:31:23.080651
2017-03-08T17:55:21
2017-03-08T17:55:21
55,639,466
0
0
null
null
null
null
UTF-8
C++
false
false
6,337
cpp
/* Brian Faure RUID:150003563 NetID:bdf39 Programming Methodology II Project #1 Extra Credit */ #include <iostream> #include <vector> #include <string> #include <algorithm> #include <queue> #include <random> //---------------------------------------------------------------- class customer{ public: int departureTime; int waitTime; int arrivalTime; int transactionTime; customer(int A, int T){ arrivalTime = A; transactionTime = T; } }; int currentTime = 0; bool tellerAvailable = true; std::queue<customer> bankQueue; std::vector<customer> finished; std::vector<customer> atTeller; int numCustomers; bool arrivalsDone = false; //---------------------------------------------------------------- int checkTeller(int numTellers){ std::cout<<"There are now "<<atTeller.size()<<" customers at the Teller\n"; if(atTeller.size()==0){ return numTellers; } int empty = numTellers-atTeller.size(); int free = 0; int i=0; while(i<atTeller.size()){ customer temp = atTeller[i]; if(currentTime==temp.departureTime){ atTeller.erase(atTeller.begin()+i); std::cout<<"Customer has LEFT the Teller\n"; temp.waitTime = currentTime-temp.arrivalTime-temp.transactionTime; finished.push_back(temp); numCustomers--; free++; } else{ i++; } } return i+empty; } //---------------------------------------------------------------- int fromLine(int free_Tellers){ std::cout<<"There are now "<<bankQueue.size()<<" customers in line\n"; int lineSize = bankQueue.size(); if(lineSize==0){ return 0; } if(free_Tellers==0){ return 0; } int moved = 0; int to_move = lineSize; if(free_Tellers<lineSize){ to_move = free_Tellers; } if(free_Tellers>0 and lineSize!=0){ for(int i=0; i<to_move; i++){ std::cout<<"Customer is moving from the line to the bank Teller\n"; customer temp = bankQueue.front(); temp.departureTime = currentTime+temp.transactionTime; atTeller.push_back(temp); bankQueue.pop(); moved++; } } return moved; } //---------------------------------------------------------------- bool isArrive(std::queue<customer> &arrivals){ if(arrivals.size()==0){ return false; //False is there are no customers left } customer temp = arrivals.front(); if(temp.arrivalTime==currentTime){ return true; //True if there is a customer arriving } return false; //False if there is no one coming at that time } //---------------------------------------------------------------- bool arriveHandler(std::queue<customer> &arrivals, int free_Tellers, int fromLine, bool arrival){ if(arrival==false){ return false; } customer temp = arrivals.front(); int tellers_Left = free_Tellers - fromLine; if(tellers_Left==0){ std::cout<<"Customer arriving is going to end of line\n"; arrivals.pop(); bankQueue.push(temp); return false; } std::cout<<"Customer arriving is going straight to Bank Teller\n"; arrivals.pop(); temp.departureTime = currentTime + temp.transactionTime; atTeller.push_back(temp); return true; } //---------------------------------------------------------------- void simulation(std::queue<customer> &arrivals, int numTellers){ std::cout<<"----------------------------------------------------------\n"; std::cout<<"Current Time: "<<currentTime<<"\n"; numCustomers = arrivals.size(); customer temp = arrivals.front(); currentTime = temp.arrivalTime; std::cout<<"----------------------------------------------------------\n"; std::cout<<"Current Time: "<<currentTime<<"\n"; std::cout<<"Customer has ARRIVED, moving to bank Teller\n"; temp.departureTime = currentTime + temp.transactionTime; atTeller.push_back(temp); arrivals.pop(); int running = 1; while(numCustomers!=0){ std::cout<<"----------------------------------------------------------\n"; currentTime++; std::cout<<"Current Time: "<<currentTime<<"\n"; int free_Tellers = checkTeller(numTellers); int Line = fromLine(free_Tellers); bool arrive = isArrive(arrivals); bool end = arriveHandler(arrivals, free_Tellers, Line, arrive); } std::cout<<"----------------------------------------------------------\n"; } //---------------------------------------------------------------- int main(){ int num_cust = 100; std::cout<<"\nCenter of Poisson-Distributed Arrival Times: "; float pCenter; std::cin>>pCenter; std::cout<<"Center of Exponential-Distributed Transaction Times: "; float tCenter; std::cin>>tCenter; std::vector<int> arrivalTimes; std::vector<int> transactionTimes; std::queue<customer> arrival; std::default_random_engine generator; std::exponential_distribution<double> exponential(tCenter); std::poisson_distribution<int> poisson(pCenter); for(int i=0; i<num_cust; i++){ double number = exponential(generator); number++; number = number*10; number = round(number); int temp = number; transactionTimes.push_back(temp); } arrivalTimes.push_back(1); for(int i=0; i<num_cust-1; i++){ int last = arrivalTimes[i]; int add = poisson(generator); add++; int next = last+add; arrivalTimes.push_back(next); } for(int i=1; i<=num_cust; i++){ int j = arrivalTimes[i]; int k = transactionTimes[i]; customer temp(j,k); arrival.push(temp); } std::cout<<"Number of bank tellers: "; int number_of_tellers; std::cin>>number_of_tellers; simulation(arrival, number_of_tellers); std::cout<<"----------------------------------------------------------\n"; std::cout<<"\n-----------------Simulation is Complete-------------------\n"; std::cout<<"--------------------------Results-------------------------\n"; int total_size = finished.size(); int total_wait=0; for(int i=0; i<total_size; i++){ customer temp = finished[i]; total_wait = total_wait + temp.waitTime; } float all_cust = total_size; float all_wait = total_wait; float average_wait = all_wait/all_cust; std::cout<<"\n-----> AVERAGE WAIT TIME: "<<average_wait<<" Time Units\n"; std::cout<<"-----> NUMBER OF CUSTOMERS: "<<total_size<<"\n"; std::cout<<"-----> NUMBER OF BANK TELLERS: "<<number_of_tellers<<"\n\n"; std::cout<<"----------------------------------------------------------\n\n"; }
[ "bfaure23@gmail.com" ]
bfaure23@gmail.com
a2c7ff3829aacbfb7c79ab63a935e6b33da9db72
3cf97ef0c6a03597b43022200fad3633b856468f
/code_chef_4.cpp
8799b2f20d10d636453d29d58c991c2878aac5f7
[]
no_license
Dishantdhillon/Babbar_Sheet_and_Interview_questions
e5e31f420bc6f8fe5583d4c27a742b844081cf77
c5b9ef8197951bbb627f2cd1a80518aa9defea6f
refs/heads/master
2023-08-14T00:19:21.184961
2021-10-06T17:37:42
2021-10-06T17:37:42
413,917,916
0
0
null
null
null
null
UTF-8
C++
false
false
1,112
cpp
#include<bits/stdc++.h> using namespace std; const long long int N = 1e5; long long int gcd(long long int a, long long int b) { if(a == 0) { return b; } if(b == 0) { return a; } if(a == b) { return a; } if(a > b) { return gcd(a-b, b); } return gcd(a, b-a); } int main() { int T; cin >> T; while(T--) { int n; cin >> n; long long int arr[n]; for(int i=0; i<n; i++) { cin >> arr[i]; } int arr1[N]; int arr2[N]; sort(arr, arr+n); arr1[0] = arr[0]; for(int i=1; i<n; i++) { arr1[i] = gcd(arr[i], arr1[i-1]); } arr2[n-1] = arr[n-1]; for(int i=n-2; i>=0; i--) { arr2[i] = gcd(arr[i], arr2[i+1]); } int sum = 0, ans = 1e6, m; for(int i=0; i<n; i++) { sum = sum + arr[i]; } for(int i=0; i<n; i++) { m = (sum - arr[i] + gcd(arr1[i-1], arr2[i+1]))/gcd(arr1[i-1], arr2[i+1]); ans = min(ans, m); } cout << ans << endl; } return 0; }
[ "dishantdhillon@gmail.com" ]
dishantdhillon@gmail.com
93c47bb91a827d4f0862a38ef6fd77c376a6f0d6
b47a67b1293864730ec4d8dc231c01e408c200fa
/lessons/03-loops/src/nested_01.cpp
4d9bf1787784acb3d15b6822af935a148e24eaef
[ "BSD-3-Clause" ]
permissive
alvarovm/LearnCPP11
4f04b20fcc767f95692c39aecb8d696a907c6ccd
025a6e043c6eadb61324c261168bbd0478d9690b
refs/heads/master
2021-09-16T11:05:35.555785
2018-06-20T00:17:17
2018-06-20T00:17:17
null
0
0
null
null
null
null
UTF-8
C++
false
false
314
cpp
#include <iostream> int main() { // Loop until i is equal to 10, increasing i by 2 each iteration. for (int i = 0; i < 3; i++) { for (int j = 0; j < 4; j++) { // Print i std::cout << "Iteration with i = " << i << " and j = " << j << " completed\n"; } } return 0; }
[ "mrierari@ucsd.edu" ]
mrierari@ucsd.edu
90395e248d2d60dc7e9cf57381b97b20ed6fd7af
1d928c3f90d4a0a9a3919a804597aa0a4aab19a3
/c++/rdkit/2015/12/rdMolChemicalFeatures.cpp
dc98ddc0e1904d845be846d3541a6f88d06de32b
[]
no_license
rosoareslv/SED99
d8b2ff5811e7f0ffc59be066a5a0349a92cbb845
a062c118f12b93172e31e8ca115ce3f871b64461
refs/heads/main
2023-02-22T21:59:02.703005
2021-01-28T19:40:51
2021-01-28T19:40:51
306,497,459
1
1
null
2020-11-24T20:56:18
2020-10-23T01:18:07
null
UTF-8
C++
false
false
2,754
cpp
// $Id$ // // Copyright (C) 2003-2006 Rational Discovery LLC // // @@ All Rights Reserved @@ // This file is part of the RDKit. // The contents are covered by the terms of the BSD license // which is included in the file license.txt, found at the root // of the RDKit source tree. // #include <RDBoost/Wrap.h> #include <GraphMol/MolChemicalFeatures/MolChemicalFeature.h> #include <GraphMol/MolChemicalFeatures/MolChemicalFeatureFactory.h> #include <boost/python/register_ptr_to_python.hpp> #include <fstream> #include <sstream> #include <iostream> #include <GraphMol/MolChemicalFeatures/FeatureParser.h> namespace python = boost::python; using namespace RDKit; void wrap_MolChemicalFeat(); void wrap_factory(); void wrap_ChemicalFeatureUtils(); namespace RDKit { MolChemicalFeatureFactory *buildFeatFactory(std::string fileName) { std::ifstream inStream(fileName.c_str()); if (!inStream.is_open()) { std::string errorstring = "File: " + fileName + " could not be opened."; PyErr_SetString(PyExc_IOError, errorstring.c_str()); python::throw_error_already_set(); } std::istream &instrm = static_cast<std::istream &>(inStream); return buildFeatureFactory(instrm); } MolChemicalFeatureFactory *buildFeatFactoryFromString(std::string fdefString) { std::istringstream inStream(fdefString); std::istream &instrm = static_cast<std::istream &>(inStream); return buildFeatureFactory(instrm); } } void translate_FeatureFileParse_error( RDKit::FeatureFileParseException const &e) { std::stringstream err; err << "Error parsing feature file at line " << e.lineNo() << ":" << std::endl; err << e.message() << std::endl; PyErr_SetString(PyExc_ValueError, err.str().c_str()); python::throw_error_already_set(); } BOOST_PYTHON_MODULE(rdMolChemicalFeatures) { python::scope().attr("__doc__") = "Module containing from chemical feature and functions to generate the"; python::register_exception_translator<RDKit::FeatureFileParseException>( &translate_FeatureFileParse_error); python::register_exception_translator<IndexErrorException>( &translate_index_error); python::register_exception_translator<ValueErrorException>( &translate_value_error); python::def( "BuildFeatureFactory", RDKit::buildFeatFactory, "Construct a feature factory given a feature definition in a file", python::return_value_policy<python::manage_new_object>()); python::def("BuildFeatureFactoryFromString", RDKit::buildFeatFactoryFromString, "Construct a feature factory given a feature definition block", python::return_value_policy<python::manage_new_object>()); wrap_MolChemicalFeat(); wrap_factory(); wrap_ChemicalFeatureUtils(); }
[ "rodrigosoaresilva@gmail.com" ]
rodrigosoaresilva@gmail.com
f1fcbd98343c9aa2f54b1293c05035f144eb1486
573f78ea86e12ff52463b9bd6752c5d3b736b9b1
/Kick_Time_Game/Kick_Time_Game/Kick_Time_Game/InputManager.h
8a709095a8223cb05c0fbf7057ce074a47eb860c
[]
no_license
YomYomNuts/kick-time
29634d2de8436079b06b235a068e9ee6d34ceed3
25c265cea39b62f22ef34b01fb6a367370f2796f
refs/heads/master
2021-05-29T22:33:40.520083
2014-07-18T10:58:14
2014-07-18T10:58:14
41,967,869
0
1
null
null
null
null
UTF-8
C++
false
false
542
h
#ifndef _INPUTMANAGER_H #define _INPUTMANAGER_H #include "InputCharacter.h" #include "GameManager_Defines.h" #include "InputManager_Defines.h" #include "Position.h" #include <SFML/Graphics.hpp> #include <vector> using namespace std; class InputManager { private: vector<InputCharacter*> * listInputsCharacter; public: InputManager(void); ~InputManager(void); void initializeInputManager(); void updateInputManager(); bool isPressed(int indexPlayer, int indexAction); vector<InputCharacter*>* getListInputsCharacter(); }; #endif
[ "noisette.guillaume@gmail.com" ]
noisette.guillaume@gmail.com
568006397e7ec3b18c6e080f862719c445ef11ae
c6f6b192efcd84f3b71025b3e64ecda6a27b3104
/113_PathSumII.cpp
a9fd7b54f7f5494d520fe93b9808634f1c386eca
[]
no_license
Cheng-HsiLin/AlgorithmProblemPractice
eaa2b92a2362df5363604e557bf42bb10ebc82bb
05e80dfb80304b7a85f58fdfbe95c5f434aae483
refs/heads/master
2021-01-17T20:55:05.675103
2017-04-20T18:33:59
2017-04-20T18:33:59
84,152,386
0
0
null
null
null
null
UTF-8
C++
false
false
1,748
cpp
// // 113_PathSumII.cpp // AlgorithmPractice // // Created by Cheng-Hsi Lin on 4/19/17. // Copyright © 2017 Cheng-Hsi Lin. All rights reserved. // #include <iostream> #include <vector> #include <stack> using namespace std; struct TreeNode { int val; TreeNode* left; TreeNode* right; TreeNode(int x) : val(x), left(nullptr), right(nullptr) {} }; class Solution { public: vector<vector<int>> pathSum(TreeNode* root, int sum) { // time: O(n); space: O(n) vector<vector<int> > res; if (!root) { return res; } vector<int> cur; dfs(root, sum, cur, res); return res; } private: void dfs(TreeNode* node, int sum, vector<int>& cur, vector<vector<int> >& res) { if (!node) { return; } cur.push_back(node->val); if (!node->left && !node->right && sum == node->val) { res.push_back(cur); } dfs(node->left, sum - node->val, cur, res); dfs(node->right, sum - node->val, cur, res); cur.pop_back(); } }; // Test int main () { Solution solution; TreeNode* root = new TreeNode(5); root->left = new TreeNode(4); root->right = new TreeNode(8); root->left->left = new TreeNode(11); root->left->left->left = new TreeNode(7); root->left->left->right = new TreeNode(2); root->right->left = new TreeNode(13); root->right->right = new TreeNode(4); root->right->right->left = new TreeNode(5); root->right->right->right = new TreeNode(1); vector<vector<int> > res = solution.pathSum(root, 22); for (vector<int>& v : res) { for (int& i : v) { cout << i << " "; } cout << endl; } return 0; }
[ "noreply@github.com" ]
noreply@github.com
cf032931e6e8e53523a0a48e4b2f9c6112787387
94d9e8ec108a2f79068da09cb6ac903c16b77730
/sociarium/module/community_detection.h
fe5649870e9f4e7ebe3b1aefc1fb298d74a7037d
[]
no_license
kiyoya/sociarium
d375c0e5abcce11ae4b087930677483d74864d09
b26c2c9cbd23c2f8ef219d0059e42370294865d1
refs/heads/master
2021-01-25T07:28:25.862346
2009-10-22T05:57:42
2009-10-22T05:57:42
318,115
1
0
null
null
null
null
UTF-8
C++
false
false
3,108
h
// s.o.c.i.a.r.i.u.m: module/community_detection.h // HASHIMOTO, Yasuhiro (E-mail: hy @ sys.t.u-tokyo.ac.jp) /* Copyright (c) 2005-2009, HASHIMOTO, Yasuhiro, All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * - Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * - 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. * - Neither the name of the University of Tokyo nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #ifndef INCLUDE_GUARD_SOCIARIUM_PROJECT_MODULE_COMMUNITY_DETECTION_H #define INCLUDE_GUARD_SOCIARIUM_PROJECT_MODULE_COMMUNITY_DETECTION_H #include <vector> #include <string> #ifdef _MSC_VER #include <memory> #include <windows.h> #else #include <tr1/memory> #endif namespace hashimoto_ut { class Thread; class Graph; class Node; class Message; namespace sociarium_project_module_community_detection { //////////////////////////////////////////////////////////////////////////////// #ifdef _MSC_VER typedef __declspec(dllimport) void (__cdecl* FuncDetectCommunity)( #else typedef void (*FuncDetectCommunity)( #endif Thread& parent, std::wstring& status, Message const& message, std::vector<std::vector<Node*> >& community, bool& is_canceled, std::tr1::shared_ptr<Graph const> graph, std::vector<double> const& edge_weight); //////////////////////////////////////////////////////////////////////////////// // Return the module function which called by the community detection thread. FuncDetectCommunity get(int method); } // The end of the namespace "sociarium_project_module_community_detection" } // The end of the namespace "hashimoto_ut" #endif // INCLUDE_GUARD_SOCIARIUM_PROJECT_MODULE_COMMUNITY_DETECTION_H
[ "kiyoya@gmail.com" ]
kiyoya@gmail.com
808d916a3b3a56f3b227355d6639ea31f29b8421
dae6d556da61e025fbe94feb677c93cc8e374e2f
/qt_test/test_1/moc_mywidget.cpp
3cb6ce510b2b509b86b34949739ca0fff444f7c3
[]
no_license
yaoxiaokui/linux_ever
bb72344a36efeb4fb42d88d06eeeb1a7a43d651d
a654e5fb8d14a2bf7049c16d41c5b13b5bfd9285
refs/heads/master
2020-05-22T04:10:15.091175
2018-01-07T03:09:23
2018-01-07T03:09:23
49,123,522
3
0
null
null
null
null
UTF-8
C++
false
false
2,522
cpp
/**************************************************************************** ** Meta object code from reading C++ file 'mywidget.h' ** ** Created by: The Qt Meta Object Compiler version 67 (Qt 5.2.1) ** ** WARNING! All changes made in this file will be lost! *****************************************************************************/ #include "mywidget.h" #include <QtCore/qbytearray.h> #include <QtCore/qmetatype.h> #if !defined(Q_MOC_OUTPUT_REVISION) #error "The header file 'mywidget.h' doesn't include <QObject>." #elif Q_MOC_OUTPUT_REVISION != 67 #error "This file was generated using the moc from 5.2.1. It" #error "cannot be used with the include files from this version of Qt." #error "(The moc has changed too much.)" #endif QT_BEGIN_MOC_NAMESPACE struct qt_meta_stringdata_MyWidget_t { QByteArrayData data[1]; char stringdata[10]; }; #define QT_MOC_LITERAL(idx, ofs, len) \ Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \ offsetof(qt_meta_stringdata_MyWidget_t, stringdata) + ofs \ - idx * sizeof(QByteArrayData) \ ) static const qt_meta_stringdata_MyWidget_t qt_meta_stringdata_MyWidget = { { QT_MOC_LITERAL(0, 0, 8) }, "MyWidget\0" }; #undef QT_MOC_LITERAL static const uint qt_meta_data_MyWidget[] = { // content: 7, // revision 0, // classname 0, 0, // classinfo 0, 0, // methods 0, 0, // properties 0, 0, // enums/sets 0, 0, // constructors 0, // flags 0, // signalCount 0 // eod }; void MyWidget::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a) { Q_UNUSED(_o); Q_UNUSED(_id); Q_UNUSED(_c); Q_UNUSED(_a); } const QMetaObject MyWidget::staticMetaObject = { { &QWidget::staticMetaObject, qt_meta_stringdata_MyWidget.data, qt_meta_data_MyWidget, qt_static_metacall, 0, 0} }; const QMetaObject *MyWidget::metaObject() const { return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject; } void *MyWidget::qt_metacast(const char *_clname) { if (!_clname) return 0; if (!strcmp(_clname, qt_meta_stringdata_MyWidget.stringdata)) return static_cast<void*>(const_cast< MyWidget*>(this)); return QWidget::qt_metacast(_clname); } int MyWidget::qt_metacall(QMetaObject::Call _c, int _id, void **_a) { _id = QWidget::qt_metacall(_c, _id, _a); if (_id < 0) return _id; return _id; } QT_END_MOC_NAMESPACE
[ "529188712@qq.com" ]
529188712@qq.com
0f45a0f311eb968e9650d70ea690bb5258591dc7
24a01281307b57875fae873a5a5e7b1288d24cc5
/src/geometry/tf/tfMessage.h
5869a2d752197205955cc676d10579fe503e5af3
[]
no_license
zphilip/KinectOpenGL1
ba23a84f4a3f707bd549f288ec4f72635decb52d
69e26e66cd412b5d70b2f04261ca78d235a40889
refs/heads/master
2021-01-25T00:11:21.516833
2013-02-03T15:01:52
2013-02-03T15:01:52
null
0
0
null
null
null
null
UTF-8
C++
false
false
9,863
h
/* Auto-generated by genmsg_cpp for file /home/rec/ros/stacks/geometry/tf/msg/tfMessage.msg */ #ifndef TF_MESSAGE_TFMESSAGE_H #define TF_MESSAGE_TFMESSAGE_H #include <string> #include <vector> #include <ostream> #include "ros/serialization.h" #include "ros/builtin_message_traits.h" #include "ros/message_operations.h" #include "ros/message.h" #include "ros/time.h" #include "ros/roscpp_macros.h" #include "geometry_msgs/TransformStamped.h" namespace tf { template <class ContainerAllocator> struct tfMessage_ : public ros::Message { typedef tfMessage_<ContainerAllocator> Type; tfMessage_() : transforms() { } tfMessage_(const ContainerAllocator& _alloc) : transforms(_alloc) { } typedef std::vector< ::geometry_msgs::TransformStamped_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::TransformStamped_<ContainerAllocator> >::other > _transforms_type; std::vector< ::geometry_msgs::TransformStamped_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::TransformStamped_<ContainerAllocator> >::other > transforms; ROSCPP_DEPRECATED uint32_t get_transforms_size() const { return (uint32_t)transforms.size(); } ROSCPP_DEPRECATED void set_transforms_size(uint32_t size) { transforms.resize((size_t)size); } ROSCPP_DEPRECATED void get_transforms_vec(std::vector< ::geometry_msgs::TransformStamped_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::TransformStamped_<ContainerAllocator> >::other > & vec) const { vec = this->transforms; } ROSCPP_DEPRECATED void set_transforms_vec(const std::vector< ::geometry_msgs::TransformStamped_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::TransformStamped_<ContainerAllocator> >::other > & vec) { this->transforms = vec; } private: static const char* __s_getDataType_() { return "tf/tfMessage"; } public: ROSCPP_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } ROSCPP_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } private: static const char* __s_getMD5Sum_() { return "94810edda583a504dfda3829e70d7eec"; } public: ROSCPP_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } ROSCPP_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } private: static const char* __s_getMessageDefinition_() { return "geometry_msgs/TransformStamped[] transforms\n\ \n\ ================================================================================\n\ MSG: geometry_msgs/TransformStamped\n\ # This expresses a transform from coordinate frame header.frame_id\n\ # to the coordinate frame child_frame_id\n\ #\n\ # This message is mostly used by the \n\ # <a href=\"http://www.ros.org/wiki/tf\">tf</a> package. \n\ # See it's documentation for more information.\n\ \n\ Header header\n\ string child_frame_id # the frame id of the child frame\n\ Transform transform\n\ \n\ ================================================================================\n\ MSG: roslib/Header\n\ # Standard metadata for higher-level stamped data types.\n\ # This is generally used to communicate timestamped data \n\ # in a particular coordinate frame.\n\ # \n\ # sequence ID: consecutively increasing ID \n\ uint32 seq\n\ #Two-integer timestamp that is expressed as:\n\ # * stamp.secs: seconds (stamp_secs) since epoch\n\ # * stamp.nsecs: nanoseconds since stamp_secs\n\ # time-handling sugar is provided by the client library\n\ time stamp\n\ #Frame this data is associated with\n\ # 0: no frame\n\ # 1: global frame\n\ string frame_id\n\ \n\ ================================================================================\n\ MSG: geometry_msgs/Transform\n\ # This represents the transform between two coordinate frames in free space.\n\ \n\ Vector3 translation\n\ Quaternion rotation\n\ \n\ ================================================================================\n\ MSG: geometry_msgs/Vector3\n\ # This represents a vector in free space. \n\ \n\ float64 x\n\ float64 y\n\ float64 z\n\ ================================================================================\n\ MSG: geometry_msgs/Quaternion\n\ # This represents an orientation in free space in quaternion form.\n\ \n\ float64 x\n\ float64 y\n\ float64 z\n\ float64 w\n\ \n\ "; } public: ROSCPP_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } ROSCPP_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } ROSCPP_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const { ros::serialization::OStream stream(write_ptr, 1000000000); ros::serialization::serialize(stream, transforms); return stream.getData(); } ROSCPP_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) { ros::serialization::IStream stream(read_ptr, 1000000000); ros::serialization::deserialize(stream, transforms); return stream.getData(); } ROSCPP_DEPRECATED virtual uint32_t serializationLength() const { uint32_t size = 0; size += ros::serialization::serializationLength(transforms); return size; } typedef boost::shared_ptr< ::tf::tfMessage_<ContainerAllocator> > Ptr; typedef boost::shared_ptr< ::tf::tfMessage_<ContainerAllocator> const> ConstPtr; }; // struct tfMessage typedef ::tf::tfMessage_<std::allocator<void> > tfMessage; typedef boost::shared_ptr< ::tf::tfMessage> tfMessagePtr; typedef boost::shared_ptr< ::tf::tfMessage const> tfMessageConstPtr; template<typename ContainerAllocator> std::ostream& operator<<(std::ostream& s, const ::tf::tfMessage_<ContainerAllocator> & v) { ros::message_operations::Printer< ::tf::tfMessage_<ContainerAllocator> >::stream(s, "", v); return s;} } // namespace tf namespace ros { namespace message_traits { template<class ContainerAllocator> struct MD5Sum< ::tf::tfMessage_<ContainerAllocator> > { static const char* value() { return "94810edda583a504dfda3829e70d7eec"; } static const char* value(const ::tf::tfMessage_<ContainerAllocator> &) { return value(); } static const uint64_t static_value1 = 0x94810edda583a504ULL; static const uint64_t static_value2 = 0xdfda3829e70d7eecULL; }; template<class ContainerAllocator> struct DataType< ::tf::tfMessage_<ContainerAllocator> > { static const char* value() { return "tf/tfMessage"; } static const char* value(const ::tf::tfMessage_<ContainerAllocator> &) { return value(); } }; template<class ContainerAllocator> struct Definition< ::tf::tfMessage_<ContainerAllocator> > { static const char* value() { return "geometry_msgs/TransformStamped[] transforms\n\ \n\ ================================================================================\n\ MSG: geometry_msgs/TransformStamped\n\ # This expresses a transform from coordinate frame header.frame_id\n\ # to the coordinate frame child_frame_id\n\ #\n\ # This message is mostly used by the \n\ # <a href=\"http://www.ros.org/wiki/tf\">tf</a> package. \n\ # See it's documentation for more information.\n\ \n\ Header header\n\ string child_frame_id # the frame id of the child frame\n\ Transform transform\n\ \n\ ================================================================================\n\ MSG: roslib/Header\n\ # Standard metadata for higher-level stamped data types.\n\ # This is generally used to communicate timestamped data \n\ # in a particular coordinate frame.\n\ # \n\ # sequence ID: consecutively increasing ID \n\ uint32 seq\n\ #Two-integer timestamp that is expressed as:\n\ # * stamp.secs: seconds (stamp_secs) since epoch\n\ # * stamp.nsecs: nanoseconds since stamp_secs\n\ # time-handling sugar is provided by the client library\n\ time stamp\n\ #Frame this data is associated with\n\ # 0: no frame\n\ # 1: global frame\n\ string frame_id\n\ \n\ ================================================================================\n\ MSG: geometry_msgs/Transform\n\ # This represents the transform between two coordinate frames in free space.\n\ \n\ Vector3 translation\n\ Quaternion rotation\n\ \n\ ================================================================================\n\ MSG: geometry_msgs/Vector3\n\ # This represents a vector in free space. \n\ \n\ float64 x\n\ float64 y\n\ float64 z\n\ ================================================================================\n\ MSG: geometry_msgs/Quaternion\n\ # This represents an orientation in free space in quaternion form.\n\ \n\ float64 x\n\ float64 y\n\ float64 z\n\ float64 w\n\ \n\ "; } static const char* value(const ::tf::tfMessage_<ContainerAllocator> &) { return value(); } }; } // namespace message_traits } // namespace ros namespace ros { namespace serialization { template<class ContainerAllocator> struct Serializer< ::tf::tfMessage_<ContainerAllocator> > { template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) { stream.next(m.transforms); } ROS_DECLARE_ALLINONE_SERIALIZER; }; // struct tfMessage_ } // namespace serialization } // namespace ros namespace ros { namespace message_operations { template<class ContainerAllocator> struct Printer< ::tf::tfMessage_<ContainerAllocator> > { template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::tf::tfMessage_<ContainerAllocator> & v) { s << indent << "transforms[]" << std::endl; for (size_t i = 0; i < v.transforms.size(); ++i) { s << indent << " transforms[" << i << "]: "; s << std::endl; s << indent; Printer< ::geometry_msgs::TransformStamped_<ContainerAllocator> >::stream(s, indent + " ", v.transforms[i]); } } }; } // namespace message_operations } // namespace ros #endif // TF_MESSAGE_TFMESSAGE_H
[ "zphilip2000@hotmail.com" ]
zphilip2000@hotmail.com
5ce4281df65fd4a4ccae38ebe46d7e11308aa41f
5724a3f8c4ca5393fe43ac820737044720fb6901
/src/layer/cuda/relu_cuda.h
5acac93faa22763ae38d9cf2e75e326fbb713c38
[ "Zlib", "BSD-3-Clause", "BSD-2-Clause" ]
permissive
Janus1984/ncnn-with-cuda
f6619c5bc5c2769cf090bd1129b24e56eecead53
86147ce80de3b70af3821132720f9bff44f81c2f
refs/heads/master
2023-02-16T16:08:00.650616
2021-01-18T00:39:11
2021-01-18T00:39:11
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,151
h
// // Author: Marko Atanasievski // // Copyright (C) 2020 TANCOM SOFTWARE SOLUTIONS Ltd. All rights reserved. // // Licensed under the BSD 3-Clause License (the "License"); you may not use this file except // in compliance with the License. You may obtain a copy of the License at // // https://opensource.org/licenses/BSD-3-Clause // // 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. // // Parts of this file are originally copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved. #ifndef LAYER_RELU_CUDA_H #define LAYER_RELU_CUDA_H #include "relu.h" namespace ncnn { class ReLU_cuda : virtual public ReLU { public: ReLU_cuda(); virtual int forward_inplace(CudaMat& bottom_top_blob, const Option& opt) const; virtual int forward_inplace_int8(CudaMat& bottom_top_blob, const Option& opt) const; }; } // namespace ncnn #endif // LAYER_RELU_CUDA_H
[ "markoatana@gmail.com" ]
markoatana@gmail.com
4c3f34997660764806c7c172ef689f2f42b03239
603c89a0698aa43a55ef1e270b9f0f0acda4b4e6
/solutions/69. Binary Tree Level Order Traversal.cpp
9226e1219df5c53cc5548935cdc30fe03d812aca
[]
no_license
jzhang1901/lintcode
cd0250da0ba6af8f0138b1b068f6b79ced930cb2
8ca7b7b6804ec76c6250feed4b209c45160be585
refs/heads/master
2020-03-18T04:58:57.044849
2018-06-13T11:20:01
2018-06-13T11:20:01
134,317,273
0
0
null
null
null
null
UTF-8
C++
false
false
1,155
cpp
/* Description Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level). */ /** * Definition of TreeNode: * class TreeNode { * public: * int val; * TreeNode *left, *right; * TreeNode(int val) { * this->val = val; * this->left = this->right = NULL; * } * } */ class Solution { public: /** * @param root: A Tree * @return: Level order a list of lists of integer */ vector<vector<int>> levelOrder(TreeNode * root) { // write your code here vector<vector<int>> ret; if(!root) return ret; std::queue<TreeNode*> q; q.push(root); while(!q.empty()) { vector<int> curLevel; const size_t l = q.size(); for(int i = 0; i < l; i++) { TreeNode *cur = q.front(); q.pop(); curLevel.push_back(cur->val); if(cur->left) q.push(cur->left); if(cur->right) q.push(cur->right); } ret.push_back(curLevel); } return ret; } };
[ "zjustc@gmail.com" ]
zjustc@gmail.com
84300b9974dcd033deeea12a8b11547a8c479ebb
7b1f7ba574afb614103db289f44c0b4b583a3d59
/devices/mcp4922/mcp4922.cc
43c562898e6bb70885dbc02315caeaca4d74818d
[]
no_license
bunker-stills/bunkerbox_server
391554421003ff31f303d6857d57d2d91fb55501
a0b76b82bbffaed5a9fb032826e8c49c3a62ec73
refs/heads/master
2021-03-22T04:32:21.184753
2018-09-13T22:58:30
2018-09-13T22:58:30
37,428,201
1
2
null
null
null
null
UTF-8
C++
false
false
3,780
cc
#include <node.h> #include <stdio.h> #include <stdint.h> #include <unistd.h> #include <fcntl.h> #include <string.h> #include <sys/ioctl.h> #include <linux/spi/spidev.h> using namespace v8; #define SPI_MODE0 0x00 // rest = 0, latch on rise #define GPIO_MODE_PATH "/sys/devices/virtual/misc/gpio/mode/" #define GPIO_PIN_PATH "/sys/devices/virtual/misc/gpio/pin/" #define GPIO_FILENAME "gpio" #define HIGH '1' #define LOW '0' #define INPUT '0' #define OUTPUT '1' #define INPUT_PU '8' #define SPI '2' static const char *spi_name = "/dev/spidev0.0"; int pinMode[18]; int pinData[18]; int spiDev; void writeFile(int fileID, int value); void setPinMode(int pinID, int mode); void setPin(int pinID, int state); Handle<Value> SetDAC(const Arguments& args) { HandleScope scope; int res = 0; if (args.Length() < 3) { ThrowException(Exception::TypeError(String::New("Wrong number of arguments"))); return scope.Close(Undefined()); } if (!args[0]->IsNumber() || !args[1]->IsNumber() || !args[2]->IsNumber()) { ThrowException(Exception::TypeError(String::New("Wrong arguments"))); return scope.Close(Undefined()); } int chipSelectPin = args[0]->NumberValue(); int channel = args[1]->NumberValue(); uint16_t value = args[2]->NumberValue(); setPinMode(pinMode[chipSelectPin], OUTPUT); unsigned char dacSPI0 = 0x70; unsigned char dacSPI1 = 0; if(channel >= 1) dacSPI0 |= (1 << 7); // A/B: DACa or DACb - Forces 7th bit of x to be 1. all other bits left alone. else dacSPI0 |= (0 << 7); dacSPI0 |= (value >> 8) & 0x00FF; //byte0 = takes bit 15 - 12 dacSPI1 = value & 0x00FF; //byte1 = takes bit 11 - 0 setPin(pinData[chipSelectPin], LOW); struct spi_ioc_transfer xfer; memset(&xfer, 0, sizeof(xfer)); char dataBuffer[3]; char rxBuffer[3]; dataBuffer[0] = dacSPI0; dataBuffer[1] = dacSPI1; dataBuffer[2] = 0x00; xfer.tx_buf = (unsigned long)dataBuffer; xfer.rx_buf = (unsigned long)rxBuffer; xfer.len = 3; xfer.speed_hz = 500000; xfer.cs_change = 1; xfer.bits_per_word = 8; res = ioctl(spiDev, SPI_IOC_MESSAGE(1), &xfer); setPin(pinData[chipSelectPin], HIGH); setPin(pinData[chipSelectPin], LOW); setPin(pinData[chipSelectPin], HIGH); return scope.Close(Undefined()); } void Init(Handle<Object> exports) { exports->Set(String::NewSymbol("setDAC"), FunctionTemplate::New(SetDAC)->GetFunction()); int i = 0; // Loop iterator char path[256]; for (i = 2; i <= 17; i++) { // Clear the path variable... memset(path,0,sizeof(path)); // ...then assemble the path variable for the current pin mode file... sprintf(path, "%s%s%d", GPIO_MODE_PATH, GPIO_FILENAME, i); // ...and create a file descriptor... pinMode[i] = open(path, O_RDWR); // ...then rinse, repeat, for the pin data files. memset(path,0,sizeof(path)); sprintf(path, "%s%s%d", GPIO_PIN_PATH, GPIO_FILENAME, i); pinData[i] = open(path, O_RDWR); } for (i = 10; i<=13; i++) { setPinMode(pinMode[i], SPI); } spiDev = open(spi_name, O_RDWR); int mode = SPI_MODE0; ioctl(spiDev, SPI_IOC_WR_MODE, &mode); int lsb_setting = 0; ioctl(spiDev, SPI_IOC_WR_LSB_FIRST, &lsb_setting); int bits_per_word = 0; ioctl(spiDev, SPI_IOC_WR_BITS_PER_WORD, &bits_per_word); } void setPinMode(int pinID, int mode) { writeFile(pinID, mode); } void setPin(int pinID, int state) { writeFile(pinID, state); } void writeFile(int fileID, int value) { char buffer[4]; // A place to build our four-byte string. memset((void *)buffer, 0, sizeof(buffer)); // clear the buffer out. sprintf(buffer, "%c", value); lseek(fileID, 0, SEEK_SET); // Make sure we're at the top of the file! write(fileID, buffer, sizeof(buffer)); } NODE_MODULE(mcp4922, Init)
[ "jheising@gmail.com" ]
jheising@gmail.com
401460dc6f2d29dddea506fc4153f26d1755697d
36e4dc8cde66312dfe70e4d13edccf1258970178
/src/qt/transactionfilterproxy.h
343bae380bff4e41685a189803af7d88c26c2cba
[ "MIT" ]
permissive
Alonewolf-123/DOMO-Core
bc355fc67cd1b91a0776302325b6b6cecf277fca
f67b6309212ee665f4aac33239cfecdf2afb4387
refs/heads/master
2021-09-22T21:04:49.957335
2018-09-16T11:04:19
2018-09-16T11:04:19
138,198,712
1
0
null
null
null
null
UTF-8
C++
false
false
2,245
h
// Copyright (c) 2011-2013 The Bitcoin developers // Copyright (c) 2017-2018 The PIVX developers // Copyright (c) 2018 The DOMO developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_QT_TRANSACTIONFILTERPROXY_H #define BITCOIN_QT_TRANSACTIONFILTERPROXY_H #include "amount.h" #include <QDateTime> #include <QSortFilterProxyModel> /** Filter the transaction list according to pre-specified rules. */ class TransactionFilterProxy : public QSortFilterProxyModel { Q_OBJECT public: explicit TransactionFilterProxy(QObject* parent = 0); /** Earliest date that can be represented (far in the past) */ static const QDateTime MIN_DATE; /** Last date that can be represented (far in the future) */ static const QDateTime MAX_DATE; /** Type filter bit field (all types) */ static const quint32 ALL_TYPES = 0xFFFFFFFF; /** Type filter bit field (all types but Obfuscation-SPAM ... enum 0-14 are common) */ static const quint32 COMMON_TYPES = 0x0005FFFF; static quint32 TYPE(int type) { return 1 << type; } enum WatchOnlyFilter { WatchOnlyFilter_All, WatchOnlyFilter_Yes, WatchOnlyFilter_No }; void setDateRange(const QDateTime& from, const QDateTime& to); void setAddressPrefix(const QString& addrPrefix); /** @note Type filter takes a bit field created with TYPE() or ALL_TYPES */ void setTypeFilter(quint32 modes); void setMinAmount(const CAmount& minimum); void setWatchOnlyFilter(WatchOnlyFilter filter); /** Set maximum number of rows returned, -1 if unlimited. */ void setLimit(int limit); /** Set whether to show conflicted transactions. */ void setShowInactive(bool showInactive); int rowCount(const QModelIndex& parent = QModelIndex()) const; protected: bool filterAcceptsRow(int source_row, const QModelIndex& source_parent) const; private: QDateTime dateFrom; QDateTime dateTo; QString addrPrefix; quint32 typeFilter; WatchOnlyFilter watchOnlyFilter; CAmount minAmount; int limitRows; bool showInactive; }; #endif // BITCOIN_QT_TRANSACTIONFILTERPROXY_H
[ "alonewolf2ksk@gmail.com" ]
alonewolf2ksk@gmail.com
f2e7276751fd8ef3114fecfad2015aad58849f61
f77f2c2fd67faf1bfd983a4505286461d54c7aac
/Server/GameServer/Server/Packets/CGAskDetailSkillListHandler.cpp
67035d3c8070121746b411ddc964cdaf50c43283
[]
no_license
xu561865/TL_Server
7ec4662489906cb5f83067b96cd51b498681cdb1
48968a49a088762e8792f5af9e97c816ab574bfa
refs/heads/master
2021-01-10T01:20:33.129394
2016-04-04T16:06:19
2016-04-04T16:07:21
55,425,216
1
3
null
null
null
null
GB18030
C++
false
false
1,779
cpp
#include "stdafx.h" #include "Log.h" #include "GamePlayer.h" #include "GCDetailSkillList.h" #include "Scene.h" #include "HumanDB.h" #include "CGAskDetailSkillList.h" uint CGAskDetailSkillListHandler::Execute( CGAskDetailSkillList* pPacket, Player* pPlayer ) { __ENTER_FUNCTION GamePlayer* pGamePlayer = (GamePlayer*)pPlayer ; Assert( pGamePlayer ) ; Obj_Human* pHuman = pGamePlayer->GetHuman() ; Assert( pHuman ) ; Scene* pScene = pHuman->getScene() ; if( pScene==NULL ) { Assert(FALSE) ; return PACKET_EXE_ERROR ; } //检查线程执行资源是否正确 Assert( MyGetCurrentThreadID()==pScene->m_ThreadID ) ; ObjID_t ObjID = pHuman->GetID(); if( ObjID == INVALID_ID ) { Assert(FALSE) ; return PACKET_EXE_ERROR ; } Obj_Character *pTarget = (Obj_Character*)(pScene->GetObjManager()->GetObj(pPacket->getTargetID())); if( pTarget==NULL ) { Assert( pTarget ) ; return PACKET_EXE_ERROR ; } // 权限判断 // to be continue... if ( pTarget->GetObjType() != Obj::OBJ_TYPE_HUMAN && pTarget->GetObjType() != Obj::OBJ_TYPE_PET ) { g_pLog->FastSaveLog( LOG_FILE_1, "CGAskDetailSkillListHandler: faile obj=%d scene=%d", ObjID, pScene->SceneID() ) ; return PACKET_EXE_CONTINUE; } GCDetailSkillList Msg; Msg.setObjID( pTarget->GetID() ); WORD nSkillNum = pHuman->FillSkillList( Msg.getSkillList(), Msg.getLevelList() ); Msg.setNumSkill( nSkillNum ); //Msg.setSkillList( (WORD)(pHuman->Skill_GetSkillList().m_Count), pHuman->Skill_GetSkillList().m_aSkill, pHuman->Skill_GetXinFaList().m_aXinFa ); pGamePlayer->SendPacket( &Msg ) ; g_pLog->FastSaveLog( LOG_FILE_1, "CGAskDetailSkillListHandler: ok obj=%d scene=%d", ObjID, pScene->SceneID() ) ; return PACKET_EXE_CONTINUE ; __LEAVE_FUNCTION return PACKET_EXE_ERROR ; }
[ "xuyi561865@sina.com" ]
xuyi561865@sina.com
a9cfc8d70e041c5bb5c02263527a30d4a746d447
d6b4bdf418ae6ab89b721a79f198de812311c783
/teo/include/tencentcloud/teo/v20220106/model/DescribeApplicationProxyDetailResponse.h
840cf22a66306c7ff923e9b24040b38fcf6d7039
[ "Apache-2.0" ]
permissive
TencentCloud/tencentcloud-sdk-cpp-intl-en
d0781d461e84eb81775c2145bacae13084561c15
d403a6b1cf3456322bbdfb462b63e77b1e71f3dc
refs/heads/master
2023-08-21T12:29:54.125071
2023-08-21T01:12:39
2023-08-21T01:12:39
277,769,407
2
0
null
null
null
null
UTF-8
C++
false
false
14,128
h
/* * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved. * * 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. */ #ifndef TENCENTCLOUD_TEO_V20220106_MODEL_DESCRIBEAPPLICATIONPROXYDETAILRESPONSE_H_ #define TENCENTCLOUD_TEO_V20220106_MODEL_DESCRIBEAPPLICATIONPROXYDETAILRESPONSE_H_ #include <string> #include <vector> #include <map> #include <tencentcloud/core/AbstractModel.h> #include <tencentcloud/teo/v20220106/model/ApplicationProxyRule.h> namespace TencentCloud { namespace Teo { namespace V20220106 { namespace Model { /** * DescribeApplicationProxyDetail response structure. */ class DescribeApplicationProxyDetailResponse : public AbstractModel { public: DescribeApplicationProxyDetailResponse(); ~DescribeApplicationProxyDetailResponse() = default; CoreInternalOutcome Deserialize(const std::string &payload); std::string ToJsonString() const; /** * 获取Instance ID * @return ProxyId Instance ID * */ std::string GetProxyId() const; /** * 判断参数 ProxyId 是否已赋值 * @return ProxyId 是否已赋值 * */ bool ProxyIdHasBeenSet() const; /** * 获取Name of the proxy: Domain name or subdomain name when `ProxyType=hostname` Instance name when `ProxyType=instance` * @return ProxyName Name of the proxy: Domain name or subdomain name when `ProxyType=hostname` Instance name when `ProxyType=instance` * */ std::string GetProxyName() const; /** * 判断参数 ProxyName 是否已赋值 * @return ProxyName 是否已赋值 * */ bool ProxyNameHasBeenSet() const; /** * 获取Proxy mode. Valid values: `ip`: Anycast IP `domain`: CNAME * @return PlatType Proxy mode. Valid values: `ip`: Anycast IP `domain`: CNAME * */ std::string GetPlatType() const; /** * 判断参数 PlatType 是否已赋值 * @return PlatType 是否已赋值 * */ bool PlatTypeHasBeenSet() const; /** * 获取`0`: Disable security protection; `1`: Enable security protection. * @return SecurityType `0`: Disable security protection; `1`: Enable security protection. * */ int64_t GetSecurityType() const; /** * 判断参数 SecurityType 是否已赋值 * @return SecurityType 是否已赋值 * */ bool SecurityTypeHasBeenSet() const; /** * 获取`0`: Disable acceleration; `1`: Enable acceleration. * @return AccelerateType `0`: Disable acceleration; `1`: Enable acceleration. * */ int64_t GetAccelerateType() const; /** * 判断参数 AccelerateType 是否已赋值 * @return AccelerateType 是否已赋值 * */ bool AccelerateTypeHasBeenSet() const; /** * 获取This field is moved to `Rule.ForwardClientIp`. * @return ForwardClientIp This field is moved to `Rule.ForwardClientIp`. * */ std::string GetForwardClientIp() const; /** * 判断参数 ForwardClientIp 是否已赋值 * @return ForwardClientIp 是否已赋值 * */ bool ForwardClientIpHasBeenSet() const; /** * 获取This field is moved to `Rule.SessionPersist`. * @return SessionPersist This field is moved to `Rule.SessionPersist`. * */ bool GetSessionPersist() const; /** * 判断参数 SessionPersist 是否已赋值 * @return SessionPersist 是否已赋值 * */ bool SessionPersistHasBeenSet() const; /** * 获取List of rules * @return Rule List of rules * */ std::vector<ApplicationProxyRule> GetRule() const; /** * 判断参数 Rule 是否已赋值 * @return Rule 是否已赋值 * */ bool RuleHasBeenSet() const; /** * 获取Status. Valid values: `online`: Enable `offline`: Disable `progress`: Deploying * @return Status Status. Valid values: `online`: Enable `offline`: Disable `progress`: Deploying * */ std::string GetStatus() const; /** * 判断参数 Status 是否已赋值 * @return Status 是否已赋值 * */ bool StatusHasBeenSet() const; /** * 获取Scheduling information * @return ScheduleValue Scheduling information * */ std::vector<std::string> GetScheduleValue() const; /** * 判断参数 ScheduleValue 是否已赋值 * @return ScheduleValue 是否已赋值 * */ bool ScheduleValueHasBeenSet() const; /** * 获取Update time * @return UpdateTime Update time * */ std::string GetUpdateTime() const; /** * 判断参数 UpdateTime 是否已赋值 * @return UpdateTime 是否已赋值 * */ bool UpdateTimeHasBeenSet() const; /** * 获取Site ID * @return ZoneId Site ID * */ std::string GetZoneId() const; /** * 判断参数 ZoneId 是否已赋值 * @return ZoneId 是否已赋值 * */ bool ZoneIdHasBeenSet() const; /** * 获取Site name * @return ZoneName Site name * */ std::string GetZoneName() const; /** * 判断参数 ZoneName 是否已赋值 * @return ZoneName 是否已赋值 * */ bool ZoneNameHasBeenSet() const; /** * 获取Session persistence time * @return SessionPersistTime Session persistence time * */ uint64_t GetSessionPersistTime() const; /** * 判断参数 SessionPersistTime 是否已赋值 * @return SessionPersistTime 是否已赋值 * */ bool SessionPersistTimeHasBeenSet() const; /** * 获取Specifies how a layer-4 proxy is created. `hostname`: Create by subdomain name `instance`: Create by instance * @return ProxyType Specifies how a layer-4 proxy is created. `hostname`: Create by subdomain name `instance`: Create by instance * */ std::string GetProxyType() const; /** * 判断参数 ProxyType 是否已赋值 * @return ProxyType 是否已赋值 * */ bool ProxyTypeHasBeenSet() const; /** * 获取When `ProxyType=hostname`: `ProxyName` indicates a specified domain name, such as test.123.com `HostId` indicates a unique ID of the domain name. * @return HostId When `ProxyType=hostname`: `ProxyName` indicates a specified domain name, such as test.123.com `HostId` indicates a unique ID of the domain name. * */ std::string GetHostId() const; /** * 判断参数 HostId 是否已赋值 * @return HostId 是否已赋值 * */ bool HostIdHasBeenSet() const; private: /** * Instance ID */ std::string m_proxyId; bool m_proxyIdHasBeenSet; /** * Name of the proxy: Domain name or subdomain name when `ProxyType=hostname` Instance name when `ProxyType=instance` */ std::string m_proxyName; bool m_proxyNameHasBeenSet; /** * Proxy mode. Valid values: `ip`: Anycast IP `domain`: CNAME */ std::string m_platType; bool m_platTypeHasBeenSet; /** * `0`: Disable security protection; `1`: Enable security protection. */ int64_t m_securityType; bool m_securityTypeHasBeenSet; /** * `0`: Disable acceleration; `1`: Enable acceleration. */ int64_t m_accelerateType; bool m_accelerateTypeHasBeenSet; /** * This field is moved to `Rule.ForwardClientIp`. */ std::string m_forwardClientIp; bool m_forwardClientIpHasBeenSet; /** * This field is moved to `Rule.SessionPersist`. */ bool m_sessionPersist; bool m_sessionPersistHasBeenSet; /** * List of rules */ std::vector<ApplicationProxyRule> m_rule; bool m_ruleHasBeenSet; /** * Status. Valid values: `online`: Enable `offline`: Disable `progress`: Deploying */ std::string m_status; bool m_statusHasBeenSet; /** * Scheduling information */ std::vector<std::string> m_scheduleValue; bool m_scheduleValueHasBeenSet; /** * Update time */ std::string m_updateTime; bool m_updateTimeHasBeenSet; /** * Site ID */ std::string m_zoneId; bool m_zoneIdHasBeenSet; /** * Site name */ std::string m_zoneName; bool m_zoneNameHasBeenSet; /** * Session persistence time */ uint64_t m_sessionPersistTime; bool m_sessionPersistTimeHasBeenSet; /** * Specifies how a layer-4 proxy is created. `hostname`: Create by subdomain name `instance`: Create by instance */ std::string m_proxyType; bool m_proxyTypeHasBeenSet; /** * When `ProxyType=hostname`: `ProxyName` indicates a specified domain name, such as test.123.com `HostId` indicates a unique ID of the domain name. */ std::string m_hostId; bool m_hostIdHasBeenSet; }; } } } } #endif // !TENCENTCLOUD_TEO_V20220106_MODEL_DESCRIBEAPPLICATIONPROXYDETAILRESPONSE_H_
[ "tencentcloudapi@tencent.com" ]
tencentcloudapi@tencent.com
15577f405e69ec38d196f2a44cd80d2a70dfd958
9fbff544471056f0816fa52d1bbf0c4db47c1f24
/leetcode/697.数组的度.cpp
c2b508eaeac07ca09bae011b5f9d345e75afd159
[]
no_license
theDreamBear/algorithmn
88d1159fb70e60b5a16bb64673d7383e20dc5fe5
c672d871848a7453ac3ddb8335b1e38d112626ee
refs/heads/master
2023-06-08T15:47:08.368054
2023-06-02T13:00:30
2023-06-02T13:00:30
172,293,806
0
0
null
null
null
null
UTF-8
C++
false
false
2,571
cpp
/* * @lc app=leetcode.cn id=697 lang=cpp * * [697] 数组的度 */ #include <string.h> #include <algorithm> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <unordered_map> #include <unordered_set> #include <utility> #include <vector> using namespace std; // @lc code=start class Solution { public: // 空间换时间 int findShortestSubArray1(vector<int>& nums) { unordered_map<int, int> hash; for (auto val : nums) { ++hash[val]; } int max_ct = 0; vector<int> max_vec; for (auto& kv : hash) { if (kv.second > max_ct) { max_ct = kv.second; } } for (auto& kv : hash) { if (kv.second == max_ct) { max_vec.push_back(kv.first); } } int min_len = INT_MAX; for (auto val : max_vec) { int i, j; for (i = 0; i < nums.size() && nums[i] != val; ++i) ; for (j = nums.size() - 1; j >= 0 && nums[j] != val; --j) ; if (j - i + 1 < min_len) { min_len = j - i + 1; } } return min_len; } struct AA { public: int times; int left; int right; AA() { times = 0; left = -1; right = -1; } void update(int i) { ++times; if (left == -1) { left = i; right = i; } else { right = i; } } int count() { return times; } int getLen() { return right - left + 1; } }; int findShortestSubArray(vector<int>& nums) { if (nums.size() <= 1) { return nums.size(); } unordered_map<int, AA> hash; for (int i = 0; i < nums.size(); ++i) { hash[nums[i]].update(i); } int max_times = 0; int min_len = INT_MAX; for (auto& kv : hash) { if (kv.second.count() > max_times) { max_times = kv.second.count(); min_len = kv.second.getLen(); } else if (kv.second.count() == max_times && kv.second.getLen() < min_len) { min_len = kv.second.getLen(); } } return min_len; } }; // @lc code=end int main() { vector<int> ss = {1, 2, 2, 3, 1}; cout << Solution{}.findShortestSubArray(ss); }
[ "512068167@qq.com" ]
512068167@qq.com