blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 247 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2 values | repo_name stringlengths 4 111 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 58 | visit_date timestamp[ns]date 2015-07-25 18:16:41 2023-09-06 10:45:08 | revision_date timestamp[ns]date 1970-01-14 14:03:36 2023-09-06 06:22:19 | committer_date timestamp[ns]date 1970-01-14 14:03:36 2023-09-06 06:22:19 | github_id int64 3.89k 689M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 25 values | gha_event_created_at timestamp[ns]date 2012-06-07 00:51:45 2023-09-14 21:58:52 ⌀ | gha_created_at timestamp[ns]date 2008-03-27 23:40:48 2023-08-24 19:49:39 ⌀ | gha_language stringclasses 159 values | src_encoding stringclasses 34 values | language stringclasses 1 value | is_vendor bool 1 class | is_generated bool 2 classes | length_bytes int64 7 10.5M | extension stringclasses 111 values | filename stringlengths 1 195 | text stringlengths 7 10.5M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
885c58f8fe7ffea93d50091d3ea027c9aba424ab | 4231871d911b587d542a3ffad201a4f884dcae36 | /mtgGame/Card_Creature.cpp | b4207bb0c8f0978225470ac87e92161871a69a0c | [] | no_license | dstuck/mtgAlg | 8cd1b78bb0e46ea72a974a392eeacf4849724d1e | c68ef3810565f8adb6fdbfd478669060a11de809 | refs/heads/master | 2021-01-01T05:54:05.568134 | 2015-03-22T20:10:49 | 2015-03-22T20:10:49 | 15,098,653 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,045 | cpp | Card_Creature.cpp | /*
* Card_Creature.cpp
*
* Created on: Nov 24, 2013
* Author: dstuck
*/
#include "headers/Card_Creature.h"
#include "SBA_Destroyed.h"
Card_Creature::Card_Creature() {
DefaultInit();
}
Card_Creature::~Card_Creature() {
// TODO Auto-generated destructor stub
}
void Card_Creature::DefaultInit() {
isCreature=true;
usesStack=true;
if(!flash) {
instantSpeed=false;
}
else {
instantSpeed=true;
}
regenerating = 0;
SetVanillaVariables();
}
string Card_Creature::GetImage() {
string image;
if(!tapped) {
image = "|"+to_string(power)+"/"+to_string(toughness)+"|";
}
else {
image = "\\"+to_string(power)+"/"+to_string(toughness)+"\\";
}
if(flying) {
image = image+"V";
}
if(unblockable) {
image = image+"Ub";
}
if(flash) {
image = image+"*";
}
return image;
}
void Card_Creature::Play() {
MoveLoc(thePlayer->bf);
}
bool Card_Creature::CanPay(bool isSorc) {
if(!DefaultCheckPay(isSorc)) {
return false;
}
if(thePlayer->HasMana(mana)) {
return true;
}
else {
// Not enough mana
return false;
}
}
bool Card_Creature::Pay(bool isSorc) {
// Make sure card is in hand and allowed to cast at this speed
if(!DefaultCheckPay(isSorc)) {
return false;
}
if(thePlayer->HasMana(mana)) {
// Pay that mana! Notice that remaining colorless mana is paid in color order!
// Convert colored to colorless if you want to chose for yourself.
thePlayer->PayMana(mana);
// Put the card in exile while the spell is on the stack.
// TODO: Could make a stack zone for the physical cards to wait while the pointer sits on the stack.
MoveLoc(thePlayer->ex);
return true;
}
else {
cout << "Not enough mana!" << endl;
return false;
}
}
//int Card_Creature::GetPower() {
// return power;
//}
//
//
//int Card_Creature::GetToughness() {
// return toughness;
//}
//void Card_Creature::KeywordVanilla() {
// firstStrike = false;
// regularStrike = true;
// trample = false;
// deathtouch = false;
// haste = false;
// lifelink = false;
// vigalance = false;
// indestructable = false;
// flash = false;
// reach = false;
// flying = false;
// intimidate = false;
// unblockable = false;
// isCreature=true;
// isLand=false;
// isBasic=false;
// isInstant=false;
// isSorcery=false;
// isEnchantment=false;
// isArtifact=false;
// isLegendary=false;
// power = 0;
// toughness = 0;
// mana[colors::W]=0;
// mana[colors::U]=0;
// mana[colors::B]=0;
// mana[colors::R]=0;
// mana[colors::G]=0;
// mana[colors::O]=0;
//}
//void Card_Creature::ResetEOT() {
// damage=0;
//// At some point I'll have to include EOT effects to this function, but for now damage is the only real EOT effect
//// Might as well make sure these are reset as well...
// attacking = NULL;
// blocking = NULL;
// blocked.clear();
//}
//void Card_Creature::ResetAll() {
// tapped = false;
// attacking = NULL;
// blocking = NULL;
// blocked.clear();
// damage = 0;
// summoningSick = true;
//}
//
//void Card_Creature::SetVanillaVariables() {
// vanillaCombat = !(firstStrike||trample||deathtouch);
// vanillaMisc = !(haste||lifelink||vigalance||indestructable);
// vanillaBlocks = !(reach||flying);
// vanillaBlockability = !(flying||intimidate||unblockable);
//}
//
//void Card_Creature::TakeDamage(int damageDealt) {
//// cout << "Damage starts as " << damage << endl;
// damage += damageDealt;
//// cout << "Damage is " << damage << endl;
// if((toughness>0) && (damage>=toughness)) {
//// Destroy();
// thePlayer->sbaQueue->AddSBA(new SBA_Destroyed(this));
// }
//}
//
//void Card_Creature::Destroy() {
//// cout << GetName() << " is destroyed!" << endl;
// if(indestructable) {
// cout << "Indestructable!" << endl;
// return;
// }
// if(regenerating>0) {
// cout << "Regenerating!" << endl;
// regenerating--;
// tapped = true;
// }
// else {
// Die();
// }
//}
//
//void Card_Creature::Die() {
// MoveLoc(thePlayer->gy);
//}
//bool Card_Creature::CanAttack() {
// if(tapped||!isCreature) {
// return false;
// }
// else if(summoningSick && !haste) {
// return false;
// }
// else {
// return true;
// }
//}
//
//void Card_Creature::Attack(Planeswalker* target) {
// if(!vigalance) {
// tapped = true;
// }
// attacking = target;
//}
//
//bool Card_Creature::CanBlock(Card_Creature* blockTarget) {
//// TODO: Need this to call is blockable from blockTarget to deal with only blockable by X or more spire chaser...
// if(tapped) {
// return false;
// }
// else if(blockTarget->CanBeBlocked(this)) {
// return true;
// }
// else {
// return false;
// }
//}
//
//bool Card_Creature::CanBeBlocked(Card_Creature* blocker) {
// if(!(blocker->flying||blocker->reach) && flying) {
// return false;
// }
// else if(unblockable) {
// return false;
// }
// else if(intimidate) {
// bool sharedColor = false;
// for(int i=0; i<5; i++) {
// if(mana[i]>0 && blocker->mana[i]>0) {
// sharedColor = true;
// }
// }
// return true;
// }
// else {
// return true;
// }
//}
//
//void Card_Creature::Block(Card_Creature* blockTarget) {
// blocking = blockTarget;
// blockTarget->blocked.push_back(this);
//}
|
0fe086e68046522617eb1e76e15f95b7000a0cec | cd06fc17c282bc24ebc09ccb1eb980d8004f48dd | /UserLevelSystem.h | 62628b340dce6a3d1c34cf192ca3c535d209a884 | [] | no_license | 1404204769/Simple_Player_System | 988727ed9c01204d7cb4fee2da272e556317f605 | 17a3c10c1d243e269b849f943a2b1c08d1831168 | refs/heads/master | 2023-06-28T15:41:00.157793 | 2021-08-05T02:26:37 | 2021-08-05T02:26:37 | 391,867,802 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 393 | h | UserLevelSystem.h | #pragma once
#ifndef _USERLEVELSYSTEM_H_
#define _USERLEVELSYSTEM_H_
#include "UserMgr.h"
extern CUserMgr g_UserMgr;
class CUserLevelSystem
{
public:
CUserLevelSystem();
~CUserLevelSystem();
bool LevelUp(const long long int _i64Id,const unsigned int _unLev);/*传入ID和要升的等级,直接在m_UserMgr的map内调用set函数修改数据*/
private:
};
#endif //!_USERLEVELSYSTEM_H_ |
7ac7d6031d88a747580904c14f703ad755519919 | bc997f47b4cffef395f0ce85d72f113ceb1466e6 | /ICPC/NAIPC/naipc19_d.cpp | 04715985cf39fb9ebf0c66a98f5b648d264cab13 | [
"LicenseRef-scancode-public-domain"
] | permissive | koosaga/olympiad | 1f069dd480004c9df033b73d87004b765d77d622 | fcb87b58dc8b5715b3ae2fac788bd1b7cac9bffe | refs/heads/master | 2023-09-01T07:37:45.168803 | 2023-08-31T14:18:03 | 2023-08-31T14:18:03 | 45,691,895 | 246 | 49 | null | 2020-10-20T16:52:45 | 2015-11-06T16:01:57 | C++ | UTF-8 | C++ | false | false | 656 | cpp | naipc19_d.cpp | #include <bits/stdc++.h>
using lint = long long;
using ll = long long;
// (0 <= x < n&& 0 < y <= k / d x + b / d)
ll count_solve(ll n, ll k, ll b, ll d){
if(k == 0) return (b / d) * n;
if(k >= d || b >= d){
return
((k / d) * (n - 1) + 2 * (b / d)) * n / 2 +
count_solve(n, k % d, b % d, d);
}
return count_solve((k * n + b) / d, d, (k * n + b) % d, k);
}
lint solve(int p, int q, int n){
lint ret = count_solve(n + 1, p, 0, q);
return ret;
}
int main(){
int tc; scanf("%d",&tc);
while(tc--){
int p, q, n;
scanf("%d %d %d",&p,&q,&n);
lint ret = 1ll * p * n * (n + 1) / 2;
ret -= q * solve(p, q, n);
printf("%lld\n", ret);
}
}
|
4e7659a0cedf0f9bf92c4e710547744ea44ff9e7 | b2d99e612a2456cb8eac6d822f53d66e7215d105 | /accuracy_checker/include/meshac/UnexpectedPointException.hpp | 06b4b6088921efb2157f2ae8bf822a368a8a206b | [] | no_license | luca-morreale/stochastic-nbv-4-mesh-refinement | 3750280f1e6af9ccbcec0f1d42fa171903d294d3 | 1b59c464c9fc9688fb7d9560d116f1bd1ed62ebe | refs/heads/master | 2021-03-16T07:54:23.575858 | 2018-02-04T10:34:05 | 2018-02-04T10:34:05 | 83,083,020 | 3 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,045 | hpp | UnexpectedPointException.hpp | #ifndef MESH_ACCURACY_UNEXPECTED_POINT_EXCEPTION_H
#define MESH_ACCURACY_UNEXPECTED_POINT_EXCEPTION_H
#include <stdexcept>
namespace meshac {
class UnexpectedPointException : public std::runtime_error {
public:
UnexpectedPointException(std::string msg) : std::runtime_error(msg)
{ /* */ }
UnexpectedPointException(Point &point) : std::runtime_error("Point (" + std::to_string(point[0]) + ", " +
std::to_string(point[1]) + ", " + std::to_string(point[2]) + ") is not part of the mesh.")
{ /* */ }
UnexpectedPointException(GLMVec3 &point) : std::runtime_error("Point ("+ std::to_string(point.x) + ", " +
std::to_string(point.y) + ", " + std::to_string(point.z) + ") is not part of the mesh.")
{ /* */ }
UnexpectedPointException() : std::runtime_error("Given point is not part of the set given.")
{ /* */ }
};
} // namespace meshac
#endif // MESH_ACCURACY_UNEXPECTED_POINT_EXCEPTION_H
|
a98d40252667a939ede8f5f4826b0290a44cbea1 | 4d161c2943661a209e34713cbdf82be0c1bb256a | /src/Input.cc | 04691c61e33ebac1e2edc01e4f7cb1f1c0add18f | [
"MIT"
] | permissive | RafaelGiordanno/GGJ-2021-Lost-and-Found | eab78df1fb31847096a42bd887fb3232faf17402 | 7999d6424cb5b6eca2428ce4a1ba448ae8a2dbf9 | refs/heads/main | 2023-03-22T03:48:35.966084 | 2021-01-31T20:50:02 | 2021-01-31T20:50:02 | 334,042,349 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,162 | cc | Input.cc | #include "Input.h"
Input::Input() {
}
void Input::update() {
}
bool Input::getKeyDown(int button) {
return buttonsPressed[button];
}
void Input::setKeyDown(SDL_Keycode button, bool status) {
bool b = status;
if (button == Input::PK_UP || button == Input::SK_UP) {
updateButtonStatus(Input::UP, buttonsPressed[Input::UP], status);
buttonsPressed[Input::UP] = status;
} else if (button == Input::PK_DOWN || button == Input::SK_DOWN) {
updateButtonStatus(Input::DOWN, buttonsPressed[Input::DOWN], status);
buttonsPressed[Input::DOWN] = status;
} else if (button == Input::PK_LEFT || button == Input::SK_LEFT) {
updateButtonStatus(Input::LEFT, buttonsPressed[Input::LEFT], status);
buttonsPressed[Input::LEFT] = status;
} else if (button == Input::PK_RIGHT || button == Input::SK_RIGHT) {
updateButtonStatus(Input::RIGHT, buttonsPressed[Input::RIGHT], status);
buttonsPressed[Input::RIGHT] = status;
} else if (button == Input::PK_ACTION || button == Input::SK_ACTION) {
updateButtonStatus(Input::ACTION, buttonsPressed[Input::ACTION], status);
buttonsPressed[Input::ACTION] = status;
} else if (button == Input::PK_CANCEL || button == Input::SK_CANCEL) {
updateButtonStatus(Input::CANCEL, buttonsPressed[Input::CANCEL], status);
buttonsPressed[Input::CANCEL] = status;
} else if (button == Input::PK_ACCEPT) {
updateButtonStatus(Input::ACCEPT, buttonsPressed[Input::ACCEPT], status);
buttonsPressed[Input::ACCEPT] = status;
} else if (button == Input::PK_CHECKPOINT) {
updateButtonStatus(Input::CHECKPOINT, buttonsPressed[Input::CHECKPOINT], status);
buttonsPressed[Input::CHECKPOINT] = status;
}
}
void Input::updateButtonStatus(int button, bool oldState, bool newState) {
buttonsUp[button] = false;
buttonsDown[button] = false;
if (oldState != newState) {
if (oldState) {
buttonsUp[button] = true;
buttonsDown[button] = false;
} else {
buttonsUp[button] = false;
buttonsDown[button] = true;
}
}
} |
66eb9b117b78864a707eda0aaedfb4c9bfeea2b1 | a8743d7b03d2c30db9352230c8ecf051ac769d17 | /熱血プログラミングC++/熱血プログラミングC++/Calculator.cpp | 654ce78ba6f2e80586a0cb863997b8ba920c07a0 | [] | no_license | fool8474/C-Study | 0a71331b8b298418d3164e2f87a7fc42eae7a270 | 39a4047929140bad5964610a82954f3c72cd3b99 | refs/heads/master | 2020-04-12T13:11:38.721438 | 2019-01-03T15:59:43 | 2019-01-03T15:59:43 | 162,515,062 | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 613 | cpp | Calculator.cpp | #include "mainHeader.h"
using namespace std;
double Calculator::Add(double a, double b)
{
countAdd++;
return a + b;
}
double Calculator::Sub(double a, double b)
{
countSub++;
return a - b;
}
double Calculator::Mul(double a, double b)
{
countMul++;
return a * b;
}
double Calculator::Div(double a, double b)
{
countDiv++;
return a / b;
}
void Calculator::ShowOpCount()
{
cout << "µ¡¼À : " << countAdd << " »¬¼À : " << countSub << " °ö¼À : " << countMul << " ³ª´°¼À : " << countDiv << endl;
}
void Calculator::Init()
{
countAdd = 0;
countSub = 0;
countMul = 0;
countDiv = 0;
}
|
eb3c62c048e35fac59d7ba1db7de1b2715624b63 | 17c1d4c926b3bbb702a2a232e36bb9337ca7d02c | /STRCOUNT.cpp | bdbe37e3192d76afb590b66d5122b4e5787e1ae7 | [] | no_license | venkat-oss/SPOJ | 796c51696061240980935f6fbf2fdc2f9f1ba674 | 119d0dec0733ca300bb0072d69e9e5bbcbb80c72 | refs/heads/master | 2021-10-11T05:15:50.696357 | 2019-01-22T16:52:48 | 2019-01-22T16:52:48 | 169,182,392 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,276 | cpp | STRCOUNT.cpp | //
// main.cpp
// practice
//
// Created by Mahmud on 01/30/18.
// Copyright © 2017 Mahmud. All rights reserved.
//
/*
O(N^4) solution by my teammate Rashad Mammadov
Solution can be reduced to O(N^3) by optimising partial sum section.
*/
#include <iostream>
#include <cmath>
#include <cassert>
using namespace std;
const int MAX = 64;
unsigned long long dp[MAX][MAX];
unsigned long long f[MAX], prefix[MAX];
int main() {
for (int n = 1; n < MAX; n ++) {
for (int k = 0; k <= n; k ++) {
for (int i = 0; i <= n; i ++) f[i] = 0;
for (int i = 0; i <= k; i ++) f[i] = 1LL << i;
for (int i = k + 1; i <= n; i ++) {
for (int j = max(i - k - 1, 0); j < i; j ++) f[i] += f[j];
assert(f[i] > 0 && 1. * f[i] < 19.e18);
}
//cout << "n = " << n << ", k = " << k << " --> " << dp[n][k] << endl;
dp[n][k] = f[n];
}
}
for (int n = 1; n < MAX; n ++) {
for (int k = n; k > 0; k --) {
dp[n][k] -= dp[n][k - 1];
}
}
for (int n = 1; n < MAX; n ++) {
for (int k = 0; k <= n; k ++) {
cout << dp[n][k];
if (k < n) cout << " ";
}
cout << endl;
}
return 0;
}
|
f8160eb4e94a94aee8ceb8c7bd778707b322edf1 | 0132ed42cdcf15cbb9c9ac45011e8fff1915642f | /ExcellManagement/ExcellManagement/ConvertDate.cpp | fa5aef6819cf029c4ecb52d064719e0fec878f3b | [] | no_license | tetrashop/Refrigitz | 50e79f17148f3ffcf853685f20d92ec2606489d8 | 92c228bd686c3f6015b539584c6f1cf82b29825b | refs/heads/Othermaster | 2022-11-11T00:48:36.129583 | 2022-11-06T08:18:31 | 2022-11-06T08:18:31 | 200,526,050 | 15 | 1 | null | 2022-06-24T06:55:18 | 2019-08-04T18:09:11 | C# | WINDOWS-1256 | C++ | false | false | 6,101 | cpp | ConvertDate.cpp | // Date:2005 / 5 / 30
// Programmer : Behzad Bahjat Manesh Ardakan (Iranian)
// ConvertDate.cpp
//===================================================
#include "stdafx.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
CConvertDate::CConvertDate()
{
}
CConvertDate::~CConvertDate()
{
}
//===============================================//
int CConvertDate::OutDateGregorian(int D,int M,int Y,int what)//what ==> 0Day 1Month 2Year
{
int inty=Y;
int xxx=1379,i=0;
BOOL m_ok;
do
{
i++;
if(inty==xxx)
{m_ok=TRUE;
break;
}
else
{
m_ok=FALSE;
xxx=xxx+4;//----------سال كبيسه هر چهار سال يكبار-----
}
}while(i<30);
if(m_ok==TRUE)
{return OutDateGregorian_k( D, M, Y, what);}
int m,r;
int R;
R=D;
if(M==1 && R<12)
{
m=3;
r=R+20;
}
else if(M==1 && R>=12)
{
m=4;
r=R-11;
}
if(M==2 && R<11)
{
m=4;
r=R+20;
}
else if( M==2 && R>=11)
{
m=5;
r=R-10;
}
if(M==3 && R<11)
{
m=5;
r=R+21;
}
else if( M==3 && R>=11)
{
m=6;
r=R-10;
}
if(M==4 && R<10)
{
m=6;
r=R+21;
}
else if(M==4 && R>=10)
{
m=7;
r=R-9;
}
if(M==5 && R<10)
{
m=7;
r=R+22;
}
else if(M==5 && R>=10)
{
m=8;
r=R-9;
}
if(M==6 && R<10)
{
m=8;
r=R+22;
}
else if(M==6 && R>=10)
{
m=9;
r=R-9;
}
if(M==7 && R<9)
{
m=9;
r=R+22;
}
else if( M==7 && R>=9)
{
m=10;
r=R-8;
}
//This Section is Corrected Until "***" By Ramin Edjlal. 1392/09/29
//Instead of m=11 we replace m=10 and instead of m=12 we replace m=11
if(M==8 && R<10)
{
m=10;
r=R+22;
}
else if(M==8 && R>=10)
{
m=11;
r=R-9;
}
//"***"
if(M==9 && R<10)
{
m=11;
r=R+21;
}
else if(M==9 && R>=10)
{
m=12;
r=R-9;
}
//-----------
Y=Y+621;
if(M==10 && R<11 )
{
m=12;
r=R+21;
//Y++;
}
else if(M==10 && R>=11)
{
m=1;
r=R-10;
Y++;
}
if(M==11 && R<12)
{
m=1;
r=R+20;
Y++;
}
else if(M==11 && R>=12)
{
m=2;
r=R-11;
Y++;
}
if(M==12 && R<10)
{
m=2;
r=R+19;
Y++;
}
else if(M==12 && R>=10)
{
m=3;
r=R-9;
Y++;
}
if(what==0)
return r;//return Day
else if(what==1) return m;//return month
else if(what==2) return Y;//return Year
return 3;//return error
}
int CConvertDate::OutDateGregorian_k(int D,int M,int Y,int what)//<< input Year Kabiseh >> what ==> 0Day 1Month 2Year
{
//***********************
int m,r;
int R;
R=D;
if(M==1 && R<13)
{
m=3;
r=R+19;
}
else if(M==1 && R>=13)
{
m=4;
r=R-12;
}
if(M==2 && R<12)
{
m=4;
r=R+19;
}
else if( M==2 && R>=12)
{
m=5;
r=R-11;
}
if(M==3 && R<12)
{
m=5;
r=R+20;
}
else if( M==3 && R>=12)
{
m=6;
r=R-11;
}
if(M==4 && R<11)
{
m=6;
r=R+20;
}
else if(M==4 && R>=11)
{
m=7;
r=R-10;
}
if(M==5 && R<11)
{
m=7;
r=R+21;
}
else if(M==5 && R>=11)
{
m=8;
r=R-10;
}
if(M==6 && R<11)
{
m=8;
r=R+21;
}
else if(M==6 && R>=11)
{
m=9;
r=R-10;
}
if(M==7 && R<10)
{
m=9;
r=R+21;
}
else if( M==7 && R>=10)
{
m=10;
r=R-9;
}
if(M==8 && R<11)
{
m=11;
r=R+21;
}
else if(M==8 && R>=11)
{
m=12;
r=R-10;
}
if(M==9 && R<11)
{
m=11;
r=R+20;
}
else if(M==9 && R>=11)
{
m=12;
r=R-10;
}
//-----------
Y=Y+621;
if(M==10 && R<12 )
{
m=12;
r=R+20;
//Y++;
}
else if(M==10 && R>=12)
{
m=1;
r=R-11;
Y++;
}
if(M==11 && R<13)
{
m=1;
r=R+19;
Y++;
}
else if(M==11 && R>=13)
{
m=2;
r=R-12;
Y++;
}
if(M==12 && R<11)
{
m=2;
r=R+18;
Y++;
}
else if(M==12 && R>=11)
{
m=3;
r=R-10;
Y++;
}
if(what==0)
return r;//return Day
else if(what==1) return m;//return month
else if(what==2) return Y;//return Year
return 3;//return error
}
int CConvertDate::OutDateLeap(int D,int M,int Y,int what)
{
int R;
R=D;
//--R M Y----------------------------------
int inty;
int x12=0;
if(M==1||M==2)
{
x12=622;
}
else if(M==3&&R<20)//31k
{
x12=622;
}
else
x12=621;
inty=Y-x12;
int xxx=1379,i=0;
BOOL m_ok;
do
{
i++;
if(inty==xxx)
{m_ok=TRUE;
break;
}
else
{
m_ok=FALSE;
xxx=xxx+4;//----------سال كبيسه هر چهار سال يكبار-----
}
}while(i<30);
if(m_ok==TRUE)//سال كبيسه هست
{
if(R<31 && M==1)
{
R++;
}
else if(R<28 && M==2)
{
R++;
}
else if(R<31 && M==3)
{
R++;
}
else if(R<30 && M==4)
{
R++;
}
else if(R<31 && M==5)
{
R++;
}
else if(R<30 && M==6)
{
R++;
}
else if(R<31 && M==7)
{
R++;
}
else if(R<31 && M==8)
{
R++;
}
else if(R<30 && M==9)
{
R++;
}
else if(R<31 && M==10)
{
R++;
}
else if(R<30 && M==11)
{
R++;
}
else if(R<31 && M==12)
{
R++;
}
else
{
R=1;
M++;
}
}//---------end if cabise
int r,m;
if(M==1&&R<21)
{
r=R+10;
m=10;
}
else if(M==1&&R>=21)
{
r=R-20;
m=11;
}
if(M==2&&R<20)
{
r=R+11;
m=11;
}
else if(M==2&&R>=20)
{
r=R-19;
m=12;
}
////////////////////////////
if(M==3&&R<21)
{
/*r=R+9;
m=12;
*/
//r=R+9;
r=R+10;
m=12;
}
else if(M==3&&R>=21)
{
r=R-20;
m=1;
}
if(M==4&&R<21)
{
r=R+11;
m=1;
}
else if(M==4&&R>=21)
{
r=R-20;
m=2;
}
if(M==5&&R<22)
{
r=R+10;
m=2;
}
else if(M==5&&R>=22)
{
r=R-21;
m=3;
}
if(M==6&&R<22)
{
r=R+10;
m=3;
}
else if(M==6&&R>=22)
{
r=R-21;
m=4;
}
if(M==7&&R<23)
{
r=R+9;
m=4;
}
else if(M==7&&R>=23)
{
r=R-22;
m=5;
}
if(M==8&&R<23)
{
r=R+9;
m=5;
}
else if(M==8&&R>=23)
{
r=R-22;
m=6;
}
if(M==9&&R<23)
{
r=R+9;
m=6;
}
else if(M==9&&R>=23)
{
r=R-22;
m=7;
}
if(M==10&&R<23)
{
r=R+8;
m=7;
}
else if(M==10&&R>=23)
{
r=R-22;
m=8;
}
if(M==11&&R<22)
{
r=R+9;
m=8;
}
else if(M==11&&R>=22)
{
r=R-21;
m=9;
}
if(M==12&&R<22)
{
r=R+9;
m=9;
}
else if(M==12&&R>=22)
{
r=R-21;
m=10;
}
int x=0;
if(M==1||M==2)
{
x=622;
}
else if(M==3&&R<=20)//31
{
x=622;
}
else
x=621;
Y=Y-x;
if(what==0)
return r;//return Day
else if(what==1) return m;//return month
else if(what==2) return Y;//return Year
return 3;//return error
}
//Created by Ramin Edjlal. 1392/09/28
int CConvertDate::OutDateGerogianAll(int D,int M,int Y,int what)
{
if(((Y-1391)%4)==0)
return OutDateGregorian_k(D,M,Y,what);
return OutDateGregorian(D,M,Y,what);
} |
0d5c73c38e7907c634ba0423eaefe511208c2e57 | b4711417082b96b5d2514601655241ec848bd2d5 | /method.h | 0e21612c3839bf8b940082f873c2a494516aaccd | [] | no_license | 18606054251/object3 | 6e22f4b25063eb0e31e502d61344f82a39c291e1 | a4778dc76c21be5a4bac7faebf6c23d2eb61277b | refs/heads/master | 2021-01-20T17:39:49.012769 | 2017-05-11T02:56:43 | 2017-05-11T02:56:43 | 90,865,785 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 234 | h | method.h | #include<stdio.h>
#include<iostream>
using namespace std;
char* first();
void scan(FILE *f,int n);
void init(FILE *f);
pair<int,int> run(FILE *fp,int n,FILE *f);
void result(FILE *f,pair<int,int> p);
int ReadFile(FILE *f);
|
568d6b499a29932d44de0d94c241e212849d6e95 | b9bb31e30bf3e8478dd982a65ed96ebd3bd333af | /lab1/palindrome/Palindrome.cpp | 62a2a11b3f6f3f8cd2dc670fa1540c2270f48015 | [] | no_license | kubas1129/jimp-exercise | 0fd8e30ac2948986e815c1048025b3534b72f1a7 | eb72858c7ef55e67684e98332bab72aa9cb79536 | refs/heads/master | 2021-01-17T22:46:28.329886 | 2017-06-20T11:01:07 | 2017-06-20T11:01:07 | 84,202,392 | 0 | 1 | null | 2017-06-20T11:01:08 | 2017-03-07T13:30:26 | C++ | UTF-8 | C++ | false | false | 451 | cpp | Palindrome.cpp | //
// Created by kubas1129 on 05.03.17.
//
#include "Palindrome.h"
bool IsPalindrome(std::string str)
{
str = ToLower(str);
std::string reverse_str = reverse(str);
if(str == reverse_str)
{
return true;
}
else
{
return false;
}
}
std::string ToLower(std::string str)
{
for(int i = 0; i < str.length();i++)
{
if(str[i] >= 65 && str[i] <= 90) str[i] += 32;
}
return str;
}
|
e7a3f5b772983d40ea0fd3f57bfd929a414f6fbc | 1298a01dbb047908538a9262e94dd2e293b81a9b | /lib/sensors/sensors.cpp | 2cf9e9048f72f6a8e01f4e5592a4db9028967a0a | [] | no_license | heyer2/matrix-IMU | 2db33219ada9b584c2ab1dbfc1b9a8c4342270c7 | a7c88e06f59b23f061c8f50c495afb7bc3436f71 | refs/heads/master | 2016-08-11T00:16:51.035661 | 2016-02-15T15:35:14 | 2016-02-15T15:35:14 | 44,473,903 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,194 | cpp | sensors.cpp | #include <stdint.h>
#include <sensors.h>
#include <matrixFix.h>
#include <i2c_t3.h> // If using Teensy 3.x
//#include "Wire.h" // If using arduino
#include "Arduino.h"
#define GYR_SAD 0x6B
#define GYR_SUB_CTRL1 0x20
#define GYR_SUB_CTRL1_MASK_ODR_100HZ 0x00
#define GYR_SUB_CTRL1_MASK_ODR_200HZ 0x40
#define GYR_SUB_CTRL1_MASK_ODR_400HZ 0x80
#define GYR_SUB_CTRL1_MASK_ODR_800HZ 0xC0
#define GYR_SUB_CTRL1_MASK_BW_LOWEST 0x00
#define GYR_SUB_CTRL1_MASK_BW_LOW 0x01
#define GYR_SUB_CTRL1_MASK_BW_HIGH 0x02
#define GYR_SUB_CTRL1_MASK_BW_HIGHEST 0x03
#define GYR_SUB_CTRL1_MASK_ENABLE 0x0F
#define GYR_SUB_CTRL4 0x23
#define GYR_SUB_CTRL4_MASK_FS_245DPS 0x00
#define GYR_SUB_CTRL4_MASK_FS_500DPS 0x10
#define GYR_SUB_CTRL4_MASK_FS_2000DPS 0x20
#define GYR_SUB_STATUS 0x27
#define GYR_SUB_STATUS_MASK_NEWSET 0x08
#define GYR_SUB_OUT 0x28 // Initial register, use incrementing read
#define GYR_BIAS_SAMPLES_DISCARD 200
#define GYR_BIAS_SAMPLES_USE 1000
#define ACC_SAD 0x19
#define ACC_SUB_CTRL1 0x20
#define ACC_SUB_CTRL1_MASK_ODR_1HZ 0x10
#define ACC_SUB_CTRL1_MASK_ODR_10HZ 0x20
#define ACC_SUB_CTRL1_MASK_ODR_25HZ 0x30
#define ACC_SUB_CTRL1_MASK_ODR_50HZ 0x40
#define ACC_SUB_CTRL1_MASK_ODR_100HZ 0x50
#define ACC_SUB_CTRL1_MASK_ODR_200HZ 0x60
#define ACC_SUB_CTRL1_MASK_ODR_400HZ 0x70
#define ACC_SUB_CTRL1_MASK_ENABLE 0x07
#define ACC_SUB_CTRL4 0x23
#define ACC_SUB_CTRL4_MASK_FS_2G 0x00
#define ACC_SUB_CTRL4_MASK_FS_4G 0x10
#define ACC_SUB_CTRL4_MASK_FS_8G 0x20
#define ACC_SUB_CTRL4_MASK_FS_16G 0x30
#define ACC_SUB_CTRL4_HIGHRES 0x08 // If disabled, accelerometer data is supposedly stored in the upper 12 bits
#define ACC_SUB_STATUS 0x27
#define ACC_SUB_STATUS_MASK_NEWSET 0x08
#define ACC_SUB_OUT 0x28 // Initial register, use incrementing read
#define MAG_SAD 0x1E
#define MAG_SUB_CRA 0x00
#define MAG_SUB_CRA_MASK_ODR_0x75HZ 0x00
#define MAG_SUB_CRA_MASK_ODR_1x50HZ 0x04
#define MAG_SUB_CRA_MASK_ODR_3x00HZ 0x08
#define MAG_SUB_CRA_MASK_ODR_7x50HZ 0x0C
#define MAG_SUB_CRA_MASK_ODR_15HZ 0x10
#define MAG_SUB_CRA_MASK_ODR_30HZ 0x14
#define MAG_SUB_CRA_MASK_ODR_75HZ 0x18
#define MAG_SUB_CRA_MASK_ODR_220HZ 0x1C
#define MAG_SUB_CRB 0x01
#define MAG_SUB_CRB_MASK_FS_1x3GAUSS 0x20
#define MAG_SUB_CRB_MASK_FS_1x9GAUSS 0x40
#define MAG_SUB_CRB_MASK_FS_2x5GAUSS 0x60
#define MAG_SUB_CRB_MASK_FS_4x0GAUSS 0x80
#define MAG_SUB_CRB_MASK_FS_4x7GAUSS 0xA0
#define MAG_SUB_CRB_MASK_FS_5x6GAUSS 0xC0
#define MAG_SUB_CRB_MASK_FS_8x1GAUSS 0xF0
#define MAG_SUB_MR 0x02
#define MAG_SUB_MR_MASK_ENABLE 0x00 // Continuous conversion mode, only useful one
#define MAG_SUB_SR 0x09 // This register is broken it seems, usage differs from the data-sheet
#define MAG_SUB_SR_MASK_RELEVANT 0x03
#define MAG_SUB_OUT 0x03
#define MAG_GAIN_X float2Fix(0.01326922)
#define MAG_GAIN_Y float2Fix(0.01278126)
#define MAG_GAIN_Z float2Fix(0.01115709)
#define MAG_BIAS_X float2Fix(0.00032732)
#define MAG_BIAS_Y float2Fix(0.001090738056514)
#define MAG_BIAS_Z float2Fix(0.012563747364052)
static void I2CWriteReg(char SAD, char SUB, char byte)
{
Wire.beginTransmission(SAD);
Wire.write(SUB);
Wire.write(byte);
Wire.endTransmission();
}
static char I2CReadReg(char SAD, char SUB)
{
Wire.beginTransmission(SAD);
Wire.write(SUB);
Wire.endTransmission(0);
Wire.requestFrom(SAD, 1);
return Wire.read();
}
// Will hold the line until all read
static void I2CReadRegSeries(char SAD, char SUB, int bytes)
{
Wire.beginTransmission(SAD);
Wire.write(SUB | 0x80); // 0x80 activates pointer incrementation
Wire.endTransmission(1);
Wire.requestFrom(SAD, bytes);
}
void gyrSetDefault(struct gyro * gyr)
{
gyr->ODR = g_HZ_800;
gyr->BW = BW_HIGHEST;
gyr->FS = DPS_2000;
vec3fZero(&gyr->vecBias);
vec3fZero(&gyr->vecGyr);
gyr->timeUsed = 0;
gyr->flagNewAvail = 0;
}
void gyrApply(struct gyro * gyr)
{
char byte = 0x00;
switch(gyr->ODR) {
case g_HZ_100: byte |= GYR_SUB_CTRL1_MASK_ODR_100HZ; break;
case g_HZ_200: byte |= GYR_SUB_CTRL1_MASK_ODR_200HZ; break;
case g_HZ_400: byte |= GYR_SUB_CTRL1_MASK_ODR_400HZ; break;
case g_HZ_800: byte |= GYR_SUB_CTRL1_MASK_ODR_800HZ; break;
}
switch(gyr->BW) {
case BW_LOWEST : byte |= GYR_SUB_CTRL1_MASK_BW_LOWEST ; break;
case BW_LOW : byte |= GYR_SUB_CTRL1_MASK_BW_LOW ; break;
case BW_HIGH : byte |= GYR_SUB_CTRL1_MASK_BW_HIGH ; break;
case BW_HIGHEST: byte |= GYR_SUB_CTRL1_MASK_BW_HIGHEST; break;
}
byte |= GYR_SUB_CTRL1_MASK_ENABLE; // This should be made optional later
I2CWriteReg(GYR_SAD, GYR_SUB_CTRL1, byte);
byte = 0x00;
switch(gyr->FS) {
case DPS_245 : byte |= GYR_SUB_CTRL4_MASK_FS_245DPS ; break;
case DPS_500 : byte |= GYR_SUB_CTRL4_MASK_FS_500DPS ; break;
case DPS_2000: byte |= GYR_SUB_CTRL4_MASK_FS_2000DPS; break;
}
I2CWriteReg(GYR_SAD, GYR_SUB_CTRL4, byte);
}
void gyrGetAvailability(struct gyro * gyr)
{
char byte = I2CReadReg(GYR_SAD, GYR_SUB_STATUS);
gyr->flagNewAvail = (byte & GYR_SUB_STATUS_MASK_NEWSET) > 0;
}
static void gyrGetRaw(struct gyro * gyr, struct vec3f * vec)
{
I2CReadRegSeries(GYR_SAD, GYR_SUB_OUT, 6);
unsigned int XL = Wire.read();
unsigned int XH = Wire.read();
unsigned int YL = Wire.read();
unsigned int YH = Wire.read();
unsigned int ZL = Wire.read();
unsigned int ZH = Wire.read();
vec->data[0] = (int16_t)(XH << 8 | XL);
vec->data[1] = (int16_t)(YH << 8 | YL);
vec->data[2] = (int16_t)(ZH << 8 | ZL);
gyr->flagNewAvail = 0;
}
void gyrUpdate(struct gyro * gyr)
{
gyrGetRaw(gyr, &gyr->vecGyr);
vec3fAccum(&gyr->vecGyr, &gyr->vecBias);
unsigned int microsElapsed = micros() - gyr->timeUsed;
gyr->timeUsed += microsElapsed;
switch(gyr->FS) {
case DPS_245:
gyr->vecAng.data[0] = (((int64_t)gyr->vecGyr.data[0] << 46) / 360 * 35 / 4000 * microsElapsed / 1000000) >> 16;
gyr->vecAng.data[1] = (((int64_t)gyr->vecGyr.data[1] << 46) / 360 * 35 / 4000 * microsElapsed / 1000000) >> 16;
gyr->vecAng.data[2] = (((int64_t)gyr->vecGyr.data[2] << 46) / 360 * 35 / 4000 * microsElapsed / 1000000) >> 16;
break;
case DPS_500:
gyr->vecAng.data[0] = (((int64_t)gyr->vecGyr.data[0] << 46) / 360 * 35 / 2000 * microsElapsed / 1000000) >> 16;
gyr->vecAng.data[1] = (((int64_t)gyr->vecGyr.data[1] << 46) / 360 * 35 / 2000 * microsElapsed / 1000000) >> 16;
gyr->vecAng.data[2] = (((int64_t)gyr->vecGyr.data[2] << 46) / 360 * 35 / 2000 * microsElapsed / 1000000) >> 16;
break;
case DPS_2000:
gyr->vecAng.data[0] = (((int64_t)gyr->vecGyr.data[0] << 46) / 360 * 35 / 500 * microsElapsed / 1000000) >> 16;
gyr->vecAng.data[1] = (((int64_t)gyr->vecGyr.data[1] << 46) / 360 * 35 / 500 * microsElapsed / 1000000) >> 16;
gyr->vecAng.data[2] = (((int64_t)gyr->vecGyr.data[2] << 46) / 360 * 35 / 500 * microsElapsed / 1000000) >> 16;
break;
}
}
void gyrGetBias(struct gyro * gyr)
{
struct vec3f vecTmp;
vec3fZero(&gyr->vecBias);
for (int i = 0; i < GYR_BIAS_SAMPLES_DISCARD; i++) {
while(!gyr->flagNewAvail)
gyrGetAvailability(gyr);
gyrGetRaw(gyr, &vecTmp);
}
for (int i = 0; i < GYR_BIAS_SAMPLES_USE; i++) {
while(!gyr->flagNewAvail)
gyrGetAvailability(gyr);
gyrGetRaw(gyr, &vecTmp);
vec3fAccum(&gyr->vecBias, &vecTmp);
}
gyr->vecBias.data[0] /= -GYR_BIAS_SAMPLES_USE;
gyr->vecBias.data[1] /= -GYR_BIAS_SAMPLES_USE;
gyr->vecBias.data[2] /= -GYR_BIAS_SAMPLES_USE;
}
void accSetDefault(struct acce * acc)
{
acc->ODR = a_HZ_100;
acc->FS = G_2;
vec3fZero(&acc->vecAcc);
acc->flagNewAvail = 0;
}
void accApply(struct acce * acc)
{
char byte = 0x00;
switch(acc->ODR) {
case a_HZ_1 : byte |= ACC_SUB_CTRL1_MASK_ODR_1HZ ; break;
case a_HZ_10 : byte |= ACC_SUB_CTRL1_MASK_ODR_10HZ ; break;
case a_HZ_25 : byte |= ACC_SUB_CTRL1_MASK_ODR_25HZ ; break;
case a_HZ_50 : byte |= ACC_SUB_CTRL1_MASK_ODR_50HZ ; break;
case a_HZ_100: byte |= ACC_SUB_CTRL1_MASK_ODR_100HZ; break;
case a_HZ_200: byte |= ACC_SUB_CTRL1_MASK_ODR_200HZ; break;
case a_HZ_400: byte |= ACC_SUB_CTRL1_MASK_ODR_400HZ; break;
}
byte |= ACC_SUB_CTRL1_MASK_ENABLE; // This should be made optional later
I2CWriteReg(ACC_SAD, ACC_SUB_CTRL1, byte);
byte = 0x00;
switch(acc->FS) {
case G_2 : byte |= ACC_SUB_CTRL4_MASK_FS_2G ; break;
case G_4 : byte |= ACC_SUB_CTRL4_MASK_FS_4G ; break;
case G_8 : byte |= ACC_SUB_CTRL4_MASK_FS_8G ; break;
case G_16: byte |= ACC_SUB_CTRL4_MASK_FS_16G; break;
}
byte |= ACC_SUB_CTRL4_HIGHRES;
I2CWriteReg(ACC_SAD, ACC_SUB_CTRL4, byte);
}
void accGetAvailability(struct acce * acc)
{
char byte = I2CReadReg(ACC_SAD, ACC_SUB_STATUS);
acc->flagNewAvail = (byte & ACC_SUB_STATUS_MASK_NEWSET) > 0;
}
void accUpdate(struct acce * acc)
{
I2CReadRegSeries(ACC_SAD, ACC_SUB_OUT, 6);
unsigned int XL = Wire.read();
unsigned int XH = Wire.read();
unsigned int YL = Wire.read();
unsigned int YH = Wire.read();
unsigned int ZL = Wire.read();
unsigned int ZH = Wire.read();
acc->vecAcc.data[0] = (int16_t)(XH << 8 | XL);
acc->vecAcc.data[1] = (int16_t)(YH << 8 | YL);
acc->vecAcc.data[2] = (int16_t)(ZH << 8 | ZL);
acc->vecAcc.data[0] <<= 16 - FIX_BITS_BEFORE_DOT;
acc->vecAcc.data[1] <<= 16 - FIX_BITS_BEFORE_DOT;
acc->vecAcc.data[2] <<= 16 - FIX_BITS_BEFORE_DOT;
acc->flagNewAvail = 0;
}
void magSetDefault(struct magn * mag)
{
mag->ODR = m_HZ_75;
mag->FS = GAUSS_1x3;
vec3fZero(&mag->vecMag);
mag->timeUsed = 0;
mag->flagNewAvail = 0;
}
void magApply(struct magn * mag)
{
char byte = 0x00;
switch(mag->ODR) {
case m_HZ_0x75: byte |= MAG_SUB_CRA_MASK_ODR_0x75HZ; break;
case m_HZ_1x50: byte |= MAG_SUB_CRA_MASK_ODR_1x50HZ; break;
case m_HZ_3x00: byte |= MAG_SUB_CRA_MASK_ODR_3x00HZ; break;
case m_HZ_7x50: byte |= MAG_SUB_CRA_MASK_ODR_7x50HZ; break;
case m_HZ_15 : byte |= MAG_SUB_CRA_MASK_ODR_15HZ ; break;
case m_HZ_30 : byte |= MAG_SUB_CRA_MASK_ODR_30HZ ; break;
case m_HZ_75 : byte |= MAG_SUB_CRA_MASK_ODR_75HZ ; break;
case m_HZ_220 : byte |= MAG_SUB_CRA_MASK_ODR_220HZ ; break;
}
I2CWriteReg(MAG_SAD, MAG_SUB_CRA, byte);
byte = 0x00;
switch(mag->FS) {
case GAUSS_1x3: byte |= MAG_SUB_CRB_MASK_FS_1x3GAUSS ; break;
case GAUSS_1x9: byte |= MAG_SUB_CRB_MASK_FS_1x9GAUSS ; break;
case GAUSS_2x5: byte |= MAG_SUB_CRB_MASK_FS_2x5GAUSS ; break;
case GAUSS_4x0: byte |= MAG_SUB_CRB_MASK_FS_4x0GAUSS ; break;
case GAUSS_4x7: byte |= MAG_SUB_CRB_MASK_FS_4x7GAUSS ; break;
case GAUSS_5x6: byte |= MAG_SUB_CRB_MASK_FS_5x6GAUSS ; break;
case GAUSS_8x1: byte |= MAG_SUB_CRB_MASK_FS_8x1GAUSS ; break;
}
I2CWriteReg(MAG_SAD, MAG_SUB_CRB, byte);
byte = 0x00;
byte |= MAG_SUB_MR_MASK_ENABLE;
I2CWriteReg(MAG_SAD, MAG_SUB_MR, byte);
}
void magGetAvailability(struct magn * mag)
{
unsigned int timeLim = 0;
switch(mag->ODR) {
case m_HZ_0x75: timeLim = 2000; break; // Treated as 0.5Hz
case m_HZ_1x50: timeLim = 1000; break; // Treated as 1Hz
case m_HZ_3x00: timeLim = 500 ; break; // Treated as 2Hz
case m_HZ_7x50: timeLim = 200 ; break; // Treated as 5Hz
case m_HZ_15 : timeLim = 100 ; break; // Treated as 10Hz
case m_HZ_30 : timeLim = 40 ; break; // Treated as 25Hz
case m_HZ_75 : timeLim = 17 ; break; // Treated as 60Hz, though closer to 55Hz
case m_HZ_220 : timeLim = 7 ; break; // Treated as 150Hz, though closer to 125Hz
}
if (millis() - mag->timeUsed > timeLim) {
mag->flagNewAvail = 1;
mag->timeUsed = millis();
}
}
void magUpdate(struct magn * mag)
{
I2CReadRegSeries(MAG_SAD, MAG_SUB_OUT, 6);
unsigned int XH = Wire.read();
unsigned int XL = Wire.read();
unsigned int ZH = Wire.read();
unsigned int ZL = Wire.read();
unsigned int YH = Wire.read();
unsigned int YL = Wire.read();
mag->vecMag.data[0] = (int16_t)(XH << 8 | XL);
mag->vecMag.data[1] = (int16_t)(YH << 8 | YL);
mag->vecMag.data[2] = (int16_t)(ZH << 8 | ZL);
mag->vecMag.data[0] <<= 16 - FIX_BITS_BEFORE_DOT;
mag->vecMag.data[1] <<= 16 - FIX_BITS_BEFORE_DOT;
mag->vecMag.data[2] <<= 16 - FIX_BITS_BEFORE_DOT;
struct vec3f vecBias;
vec3fSet(&vecBias, -MAG_BIAS_X, -MAG_BIAS_Y, -MAG_BIAS_Z);
vec3fAccum(&mag->vecMag, &vecBias);
struct vec3f vecGain;
vec3fSet(&vecGain, MAG_GAIN_X, MAG_GAIN_Y, MAG_GAIN_Z);
vec3fDivVec(&mag->vecMag, &vecGain);
mag->flagNewAvail = 0;
}
|
8a0389cb53be875234113bc8524361acd3ba39c4 | 836058bead290db26d22892478dc8445408102ea | /src/user/protection/supply/protection_imbalance_voltage_input.h | b033703da0210400c605f3ed273bfb36da24ea38 | [] | no_license | yisea123/STM32_Main | 57761ee52b73bfe96e7b11bae1c76994fa44de45 | c24affdf6b3c16dc8058745c31c055354678a2d3 | refs/heads/master | 2020-09-02T00:02:41.564295 | 2017-06-06T09:47:12 | 2017-06-06T09:47:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 498 | h | protection_imbalance_voltage_input.h | #ifndef PROTECTIONIMBALANCEVOLTAGEINPUT_H
#define PROTECTIONIMBALANCEVOLTAGEINPUT_H
#include "protection.h"
/*!
* \brief Класс автомата защиты "Дисбаланс напряжения"
*/
class ProtectionImbalanceVoltageInput : public Protection
{
public:
ProtectionImbalanceVoltageInput();
~ProtectionImbalanceVoltageInput();
private:
bool checkAlarm();
bool checkPrevent();
float calcValue();
bool isProtect();
};
#endif // PROTECTIONIMBALANCEVOLTAGEINPUT_H
|
ab8a26b17ee052ca58932b6e574224b53858b33a | e9c76e81e6b4d2843d661576947527b84a32c916 | /soundscope.cpp | 9bb06ab4e9d15f5a8c300cc3c7ac461b91593ace | [] | no_license | fuzyll/soundscope | 0ae17f7b52248911c667d4f40b67449bd2146f0c | a42af4f09e3191d97a4cc850f29e2fe554a7dc88 | refs/heads/master | 2020-12-25T22:19:23.540511 | 2015-11-28T16:55:40 | 2015-11-28T16:55:40 | 46,999,070 | 0 | 0 | null | 2015-11-27T20:58:21 | 2015-11-27T20:58:21 | null | UTF-8 | C++ | false | false | 11,995 | cpp | soundscope.cpp | #define GL_GLEXT_PROTOTYPES
#include <stdio.h>
#include <math.h>
#include <SDL.h>
#ifdef __APPLE__
#include <OpenGL/gl.h>
#else
#include <GL/gl.h>
#endif
#define SCOPE_SIZE 768
#define LINE_SEGMENTS 24
struct Vertex
{
float startX, startY, endX, endY;
float u, v;
};
Vertex verts[4096 * 4];
GLuint vertbuf;
SDL_Surface* g_screen;
short* g_audioData;
long g_audioPos, g_audioSamples;
long g_renderPos;
GLuint scopeProg, scopeFrac, scopeTexture, scopeFrameBuffer;
GLuint downsampleXTexture, downsampleXFrameBuffer, downsampleXProg, downsampleXImage;
GLuint downsampleYTexture, downsampleYFrameBuffer, downsampleYProg, downsampleYImage;
GLuint bloomXTexture, bloomXFrameBuffer, bloomXProg, bloomXImage;
GLuint bloomYTexture, bloomYFrameBuffer, bloomYProg, bloomYImage;
GLuint finalProg, finalScope, finalBloom;
GLuint LoadShader(const char* psFile, const char* vsFile)
{
FILE* fp = fopen(psFile, "r");
fseek(fp, 0, SEEK_END);
long len = ftell(fp);
fseek(fp, 0, SEEK_SET);
char* psSource = (char*)malloc(len + 1);
fread(psSource, 1, len, fp);
psSource[len] = 0;
fclose(fp);
fp = fopen(vsFile, "r");
fseek(fp, 0, SEEK_END);
len = ftell(fp);
fseek(fp, 0, SEEK_SET);
char* vsSource = (char*)malloc(len + 1);
fread(vsSource, 1, len, fp);
vsSource[len] = 0;
fclose(fp);
GLuint pid = glCreateShader(GL_FRAGMENT_SHADER);
glShaderSource(pid, 1, (const GLchar**)&psSource, NULL);
glCompileShader(pid);
int status;
glGetShaderiv(pid, GL_COMPILE_STATUS, &status);
if (status == GL_FALSE)
{
char msg[4096];
printf("Pixel shader (%s) compile failed\n", psFile);
glGetShaderInfoLog(pid, 4095, NULL, msg);
msg[4095] = 0;
printf("%s\n", msg);
return 0;
}
GLuint vid = glCreateShader(GL_VERTEX_SHADER);
glShaderSource(vid, 1, (const GLchar**)&vsSource, NULL);
glCompileShader(vid);
glGetShaderiv(vid, GL_COMPILE_STATUS, &status);
if (status == GL_FALSE)
{
char msg[4096];
printf("Vertex shader (%s) compile failed\n", vsFile);
glGetShaderInfoLog(vid, 4095, NULL, msg);
msg[4095] = 0;
printf("%s\n", msg);
return 0;
}
GLuint prog = glCreateProgram();
glAttachShader(prog, pid);
glAttachShader(prog, vid);
glLinkProgram(prog);
glGetProgramiv(prog, GL_LINK_STATUS, &status);
if (status == GL_FALSE)
{
char msg[4096];
printf("Shader link failed (%s, %s)\n", psFile, vsFile);
glGetProgramInfoLog(prog, 4095, NULL, msg);
msg[4095] = 0;
printf("%s\n", msg);
return 0;
}
return prog;
}
bool CreateRenderTarget(unsigned int w, unsigned int h, GLuint* texture, GLuint* target)
{
glGenTextures(1, texture);
glBindTexture(GL_TEXTURE_2D, *texture);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA8, SCOPE_SIZE, SCOPE_SIZE, 0, GL_RGBA, GL_UNSIGNED_BYTE, NULL);
glGenFramebuffersEXT(1, target);
glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, *target);
glFramebufferTexture2DEXT(GL_FRAMEBUFFER_EXT, GL_COLOR_ATTACHMENT0_EXT, GL_TEXTURE_2D, *texture, 0);
glBindRenderbufferEXT(GL_RENDERBUFFER_EXT, 0);
if (glCheckFramebufferStatusEXT(GL_FRAMEBUFFER_EXT) != GL_FRAMEBUFFER_COMPLETE_EXT)
{
printf("Invalid texture render target\n");
return false;
}
glBindTexture(GL_TEXTURE_2D, 0);
glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0);
return true;
}
void AudioCallback(void* params, unsigned char* stream, int len)
{
short* dest = (short*)stream;
for (int i = 0; i < (len / 2); i++)
{
if (g_audioPos >= g_audioSamples)
dest[i] = 0;
else
dest[i] = g_audioData[g_audioPos++];
}
}
void Render()
{
long audioPos = g_audioPos;
bool updated = false;
while ((g_renderPos + 2048) <= audioPos)
{
int prevX = g_audioData[g_renderPos];
int prevY = g_audioData[g_renderPos + 1];
int n = 0;
for (int i = 0; i < 4096; i += 2)
{
int curX = g_audioData[g_renderPos + i];
int curY = g_audioData[g_renderPos + i + 1];
float startX = prevX;
float startY = prevY;
float endX = curX;
float endY = curY;
startX = (SCOPE_SIZE - 1) - (((startX * SCOPE_SIZE) / 0xffff) +
(SCOPE_SIZE / 2));
startY = ((startY * SCOPE_SIZE) / 0xffff) +
(SCOPE_SIZE / 2);
endX = (SCOPE_SIZE - 1) - (((endX * SCOPE_SIZE) / 0xffff) +
(SCOPE_SIZE / 2));
endY = ((endY * SCOPE_SIZE) / 0xffff) +
(SCOPE_SIZE / 2);
verts[n].startX = startX - 2; verts[n].startY = startY - 2;
verts[n].endX = endX - 2; verts[n].endY = endY - 2;
verts[n].u = -2; verts[n].v = -2;
verts[n + 1].startX = startX + 2; verts[n + 1].startY = startY - 2;
verts[n + 1].endX = endX + 2; verts[n + 1].endY = endY - 2;
verts[n + 1].u = 2; verts[n + 1].v = -2;
verts[n + 2].startX = startX + 2; verts[n + 2].startY = startY + 2;
verts[n + 2].endX = endX + 2; verts[n + 2].endY = endY + 2;
verts[n + 2].u = 2; verts[n + 2].v = 2;
verts[n + 3].startX = startX - 2; verts[n + 3].startY = startY + 2;
verts[n + 3].endX = endX - 2; verts[n + 3].endY = endY + 2;
verts[n + 3].u = -2; verts[n + 3].v = 2;
n += 4;
prevX = curX;
prevY = curY;
}
glBufferSubData(GL_ARRAY_BUFFER, 0, sizeof(verts), verts);
glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, scopeFrameBuffer);
glClear(GL_COLOR_BUFFER_BIT);
glEnable(GL_BLEND);
glDisable(GL_TEXTURE_2D);
glBlendFunc(GL_ONE, GL_ONE);
glUseProgram(scopeProg);
glEnableClientState(GL_VERTEX_ARRAY);
glEnableClientState(GL_TEXTURE_COORD_ARRAY);
glVertexPointer(4, GL_FLOAT, sizeof(Vertex), (void*)(size_t)0);
glTexCoordPointer(2, GL_FLOAT, sizeof(Vertex), (void*)(sizeof(float) * 4));
for (int i = 0; i <= LINE_SEGMENTS; i++)
{
glUniform1f(scopeFrac, (float)i / (float)LINE_SEGMENTS);
glDrawArrays(GL_QUADS, 0, 4096 * 4);
}
g_renderPos += 2048;
updated = true;
}
if (!updated)
{
// No updates, don't need to re-render
SDL_Delay(10);
return;
}
// Downsample in the X direction
glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, downsampleXFrameBuffer);
glClear(GL_COLOR_BUFFER_BIT);
glUseProgram(downsampleXProg);
glDisable(GL_BLEND);
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, scopeTexture);
glUniform1i(downsampleXImage, 0);
glBegin(GL_QUADS);
glVertex2f(0, 0); glTexCoord2f(1, 1);
glVertex2f(SCOPE_SIZE, 0); glTexCoord2f(1, 0);
glVertex2f(SCOPE_SIZE, SCOPE_SIZE); glTexCoord2f(0, 0);
glVertex2f(0, SCOPE_SIZE); glTexCoord2f(0, 1);
glEnd();
// Downsample in the Y direction
glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, downsampleYFrameBuffer);
glClear(GL_COLOR_BUFFER_BIT);
glUseProgram(downsampleYProg);
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, downsampleXTexture);
glUniform1i(downsampleYImage, 0);
glBegin(GL_QUADS);
glVertex2f(0, 0); glTexCoord2f(1, 1);
glVertex2f(SCOPE_SIZE, 0); glTexCoord2f(1, 0);
glVertex2f(SCOPE_SIZE, SCOPE_SIZE); glTexCoord2f(0, 0);
glVertex2f(0, SCOPE_SIZE); glTexCoord2f(0, 1);
glEnd();
// Blur in the X direction
glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, bloomXFrameBuffer);
glClear(GL_COLOR_BUFFER_BIT);
glUseProgram(bloomXProg);
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, downsampleYTexture);
glUniform1i(bloomXImage, 0);
glBegin(GL_QUADS);
glVertex2f(0, 0); glTexCoord2f(1, 1);
glVertex2f(SCOPE_SIZE, 0); glTexCoord2f(1, 0);
glVertex2f(SCOPE_SIZE, SCOPE_SIZE); glTexCoord2f(0, 0);
glVertex2f(0, SCOPE_SIZE); glTexCoord2f(0, 1);
glEnd();
// Blur in the Y direction
glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, bloomYFrameBuffer);
glClear(GL_COLOR_BUFFER_BIT);
glUseProgram(bloomYProg);
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, bloomXTexture);
glUniform1i(bloomYImage, 0);
glBegin(GL_QUADS);
glVertex2f(0, 0); glTexCoord2f(1, 1);
glVertex2f(SCOPE_SIZE, 0); glTexCoord2f(1, 0);
glVertex2f(SCOPE_SIZE, SCOPE_SIZE); glTexCoord2f(0, 0);
glVertex2f(0, SCOPE_SIZE); glTexCoord2f(0, 1);
glEnd();
// Draw final output to screen
glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0);
glClear(GL_COLOR_BUFFER_BIT);
glUseProgram(finalProg);
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, scopeTexture);
glActiveTexture(GL_TEXTURE1);
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, bloomYTexture);
glUniform1i(finalScope, 0);
glUniform1i(finalBloom, 1);
glBegin(GL_QUADS);
glVertex2f(0, 0); glTexCoord2f(1, 1);
glVertex2f(SCOPE_SIZE, 0); glTexCoord2f(1, 0);
glVertex2f(SCOPE_SIZE, SCOPE_SIZE); glTexCoord2f(0, 0);
glVertex2f(0, SCOPE_SIZE); glTexCoord2f(0, 1);
glEnd();
glDisable(GL_TEXTURE_2D);
glActiveTexture(GL_TEXTURE0);
SDL_GL_SwapBuffers();
}
int main(int argc, char* argv[])
{
if (argc < 2)
{
printf("Usage: soundscope <input>\n");
return 1;
}
FILE* fp = fopen(argv[1], "rb");
if (!fp)
{
printf("Unable to open input file\n");
return 1;
}
fseek(fp, 0, SEEK_END);
long len = ftell(fp);
fseek(fp, 0, SEEK_SET);
g_audioData = (short*)malloc(len);
g_audioPos = 0;
g_audioSamples = len / 2;
g_renderPos = 0;
fread(g_audioData, 1, len, fp);
fclose(fp);
if (SDL_Init(SDL_INIT_EVERYTHING) != 0)
{
printf("SDL init failed\n");
return 1;
}
SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 8);
SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 8);
SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 8);
SDL_GL_SetAttribute(SDL_GL_ALPHA_SIZE, 8);
SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 0);
SDL_GL_SetAttribute(SDL_GL_BUFFER_SIZE, 32);
SDL_GL_SetAttribute(SDL_GL_ACCUM_RED_SIZE, 8);
SDL_GL_SetAttribute(SDL_GL_ACCUM_GREEN_SIZE, 8);
SDL_GL_SetAttribute(SDL_GL_ACCUM_BLUE_SIZE, 8);
SDL_GL_SetAttribute(SDL_GL_ACCUM_ALPHA_SIZE, 8);
SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, 0);
g_screen = SDL_SetVideoMode(SCOPE_SIZE, SCOPE_SIZE, 24, SDL_HWSURFACE | SDL_GL_DOUBLEBUFFER | SDL_OPENGL);
if (!g_screen)
{
printf("Set video mode failed\n");
return 1;
}
glClearColor(0, 0, 0, 0);
glViewport(0, 0, SCOPE_SIZE, SCOPE_SIZE);
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glOrtho(0, SCOPE_SIZE, SCOPE_SIZE, 0, 1, -1);
glMatrixMode(GL_MODELVIEW);
glLoadIdentity();
glGenBuffers(1, &vertbuf);
glBindBuffer(GL_ARRAY_BUFFER, vertbuf);
glBufferData(GL_ARRAY_BUFFER, sizeof(verts), NULL, GL_STREAM_DRAW);
CreateRenderTarget(SCOPE_SIZE, SCOPE_SIZE, &scopeTexture, &scopeFrameBuffer);
CreateRenderTarget(SCOPE_SIZE / 8, SCOPE_SIZE, &downsampleXTexture, &downsampleXFrameBuffer);
CreateRenderTarget(SCOPE_SIZE / 8, SCOPE_SIZE / 8, &downsampleYTexture, &downsampleYFrameBuffer);
CreateRenderTarget(SCOPE_SIZE / 8, SCOPE_SIZE / 8, &bloomXTexture, &bloomXFrameBuffer);
CreateRenderTarget(SCOPE_SIZE / 8, SCOPE_SIZE / 8, &bloomYTexture, &bloomYFrameBuffer);
scopeProg = LoadShader("scope.ps", "scope.vs");
scopeFrac = glGetUniformLocation(scopeProg, "frac");
downsampleXProg = LoadShader("downsample_x.ps", "downsample_x.vs");
downsampleXImage = glGetUniformLocation(downsampleXProg, "image");
downsampleYProg = LoadShader("downsample_y.ps", "downsample_y.vs");
downsampleYImage = glGetUniformLocation(downsampleYProg, "image");
bloomXProg = LoadShader("bloom_x.ps", "bloom_x.vs");
bloomXImage = glGetUniformLocation(bloomXProg, "image");
bloomYProg = LoadShader("bloom_y.ps", "bloom_y.vs");
bloomYImage = glGetUniformLocation(bloomYProg, "image");
finalProg = LoadShader("final.ps", "final.vs");
finalScope = glGetUniformLocation(finalProg, "scope");
finalBloom = glGetUniformLocation(finalProg, "bloom");
SDL_AudioSpec desired, actual;
desired.freq = 44100;
desired.format = AUDIO_S16SYS;
desired.channels = 2;
desired.samples = 1470;
desired.callback = AudioCallback;
desired.userdata = NULL;
if (SDL_OpenAudio(&desired, &actual) != 0)
{
printf("Open audio failed\n");
return 1;
}
SDL_PauseAudio(0);
bool quit = false;
while (!quit)
{
SDL_Event event;
while (SDL_PollEvent(&event))
{
switch (event.type)
{
case SDL_QUIT:
quit = true;
break;
default:
break;
}
}
Render();
}
return 0;
}
|
82f970c52c39cb28a36e4d846ad9b4831d566157 | 73b80a1074ad8b9999e4dd78c86a6baad32bfce5 | /Core/ToDoList/PreferencesShortcutsPage.h | 67f4b92e6701926b38d8a4d007ce357abce47d97 | [] | no_license | abstractspoon/ToDoList_Dev | 25f463dea727b71ae30ca8de749570baa451aa13 | 29d038a7ff54150af21094f317e4f7c7d2dd118d | refs/heads/master | 2023-08-31T21:18:16.238149 | 2023-08-29T01:24:16 | 2023-08-29T01:24:16 | 66,343,401 | 87 | 26 | null | 2023-09-09T08:16:35 | 2016-08-23T07:19:50 | C++ | UTF-8 | C++ | false | false | 3,521 | h | PreferencesShortcutsPage.h | #if !defined(AFX_PREFERENCESSHORTCUTSPAGE_H__DA5D005D_C6CC_453A_A431_A2B85A920CE5__INCLUDED_)
#define AFX_PREFERENCESSHORTCUTSPAGE_H__DA5D005D_C6CC_453A_A431_A2B85A920CE5__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// PrefererencesShortcutsPage.h : header file
//
#include "..\shared\shortcutManager.h"
#include "..\shared\orderedtreectrl.h"
#include "..\shared\hotkeyctrlex.h"
#include "..\shared\preferencesbase.h"
#include "..\shared\enstring.h"
#include "..\shared\FontCache.h"
/////////////////////////////////////////////////////////////////////////////
// CPreferencesShortcutsPage dialog
class CPreferencesShortcutsPage : public CPreferencesPageBase
{
// Construction
public:
CPreferencesShortcutsPage(CShortcutManager* pMgr);
~CPreferencesShortcutsPage();
UINT GetShortcutCmdID(DWORD dwShortcut) const { return m_pShortcutMgr->GetCommandID(dwShortcut); }
BOOL RemapMenuItemIDs(const CMap<UINT, UINT, UINT, UINT&>& mapCmdIDs);
protected:
// Dialog Data
//{{AFX_DATA(CPreferencesShortcutsPage)
enum { IDD = IDD_PREFSHORTCUTS_PAGE };
CHotKeyCtrlEx m_hkCur;
COrderedTreeCtrl m_tcCommands;
CHotKeyCtrlEx m_hkNew;
CEnString m_sOtherCmdID;
BOOL m_bShowCommandIDs;
//}}AFX_DATA
CFontCache m_fonts;
CShortcutManager* m_pShortcutMgr;
CMap<UINT, UINT, DWORD, DWORD&> m_mapID2Shortcut;
CMap<DWORD, DWORD, HTREEITEM, HTREEITEM&> m_mapShortcut2HTI;
// Overrides
// ClassWizard generate virtual function overrides
//{{AFX_VIRTUAL(CPreferencesShortcutsPage)
//}}AFX_VIRTUAL
protected:
virtual BOOL PreTranslateMessage(MSG* pMsg);
virtual void OnOK();
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
virtual BOOL OnInitDialog();
virtual void OnFirstShow();
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CPreferencesShortcutsPage)
afx_msg void OnSize(UINT nType, int cx, int cy);
//}}AFX_MSG
afx_msg void OnSelchangedShortcuts(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg void OnAssignshortcut();
afx_msg void OnShowCmdIDs();
afx_msg void OnCopyall();
afx_msg void OnChangeShortcut();
afx_msg LRESULT OnGutterDrawItem(WPARAM wParam, LPARAM lParam);
afx_msg LRESULT OnGutterPostDrawItem(WPARAM wParam, LPARAM lParam);
afx_msg LRESULT OnGutterRecalcColWidth(WPARAM wParam, LPARAM lParam);
afx_msg void OnTreeCustomDraw(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo);
DECLARE_MESSAGE_MAP()
protected:
virtual void LoadPreferences(const IPreferences* pPrefs, LPCTSTR szKey);
virtual void SavePreferences(IPreferences* pPrefs, LPCTSTR szKey) const;
virtual int HighlightUIText(const CStringArray& aSearch, COLORREF crHighlight);
virtual void ClearHighlights();
HTREEITEM AddMenuItem(HTREEITEM htiParent, const CMenu* pMenu, int nPos, BOOL bForceAdd);
int GetLongestShortcutText(HTREEITEM hti, CDC* pDC);
void AddMiscShortcuts();
void RemoveUnusedDefaultFilterItems(CMenu& menu) const;
BOOL CopyItem(HTREEITEM hti, CString& sOutput);
void BuildMenuTree();
HTREEITEM InsertItem(const CString& sItem, UINT nCmdID, HTREEITEM htiParent, BOOL bForceAdd);
BOOL WantKeepSubmenu(HTREEITEM hti) const;
BOOL WantItem(const CString& sItem) const;
BOOL MatchesSearch(const CString& sItem) const;
static BOOL IsMiscCommandID(UINT nCmdID);
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_PREFERERENCESSHORTCUTSPAGE_H__DA5D005D_C6CC_453A_A431_A2B85A920CE5__INCLUDED_)
|
edffbb64f9e311962464514ec9cbbc299e22586c | 5861bf7bd93dbebce3c1d69c37158a7f54f22735 | /odrive_interface/include/odrive_interface/odrive_endpoint.hpp | e9ab5c906b3130a5a9de0a52a6d833e040c42397 | [] | no_license | project-march/controller-research | 6a7f9eaf76f8b51a4887c23af552afc97b430a62 | a876be26612fe82050ee1e5b3089ea11f91178a3 | refs/heads/master | 2023-01-20T13:35:07.742429 | 2020-12-01T10:56:00 | 2020-12-01T10:56:00 | 266,047,527 | 1 | 0 | null | 2020-08-12T12:00:54 | 2020-05-22T07:33:12 | Python | UTF-8 | C++ | false | false | 4,870 | hpp | odrive_endpoint.hpp | #ifndef ODRIVE_ENDPOINT_HPP_
#define ODRIVE_ENDPOINT_HPP_
#include <cstdint>
#include <unistd.h>
#include <cstdio>
#include <cstdlib>
#include <getopt.h>
#include <iostream>
#include <string>
#include <vector>
#include <endian.h>
#include <mutex>
#include <libusb-1.0/libusb.h>
// ODrive Device Info
#define ODRIVE_USB_VENDORID 0x1209
#define ODRIVE_USB_PRODUCTID 0x0D32
// ODrive USB Protocol
#define ODRIVE_TIMEOUT 200
#define ODRIVE_MAX_BYTES_TO_RECEIVE 64
#define ODRIVE_MAX_RESULT_LENGTH 100
#define ODRIVE_DEFAULT_CRC_VALUE 0x7411
#define ODRIVE_PROTOCOL_VERION 1
// ODrive Comm
#define ODRIVE_COMM_SUCCESS 0
#define ODRIVE_COMM_ERROR 1
// Endpoints (from target)
#define CDC_IN_EP 0x81 /* EP1 for data IN (target) */
#define CDC_OUT_EP 0x01 /* EP1 for data OUT (target) */
#define CDC_CMD_EP 0x82 /* EP2 for CDC commands */
#define ODRIVE_IN_EP 0x83 /* EP3 IN: ODrive device TX endpoint */
#define ODRIVE_OUT_EP 0x03 /* EP3 OUT: ODrive device RX endpoint */
// CDC Endpoints parameters
#define CDC_DATA_HS_MAX_PACKET_SIZE 64 /* Endpoint IN & OUT Packet size */
#define CDC_DATA_FS_MAX_PACKET_SIZE 64 /* Endpoint IN & OUT Packet size */
#define CDC_CMD_PACKET_SIZE 8 /* Control Endpoint Packet size */
#define USB_CDC_CONFIG_DESC_SIZ (67 + 39)
#define CDC_DATA_HS_IN_PACKET_SIZE CDC_DATA_HS_MAX_PACKET_SIZE
#define CDC_DATA_HS_OUT_PACKET_SIZE CDC_DATA_HS_MAX_PACKET_SIZE
#define CDC_DATA_FS_IN_PACKET_SIZE CDC_DATA_FS_MAX_PACKET_SIZE
#define CDC_DATA_FS_OUT_PACKET_SIZE CDC_DATA_FS_MAX_PACKET_SIZE
#define CDC_SEND_ENCAPSULATED_COMMAND 0x00
#define CDC_GET_ENCAPSULATED_RESPONSE 0x01
#define CDC_SET_COMM_FEATURE 0x02
#define CDC_GET_COMM_FEATURE 0x03
#define CDC_CLEAR_COMM_FEATURE 0x04
#define CDC_SET_LINE_CODING 0x20
#define CDC_GET_LINE_CODING 0x21
#define CDC_SET_CONTROL_LINE_STATE 0x22
#define CDC_SEND_BREAK 0x23
typedef std::vector<uint8_t> commBuffer;
class OdriveEndpoint
{
public:
/**
* initialize USB library and local variables
*/
OdriveEndpoint();
/**
* release USB library
*/
~OdriveEndpoint();
/**
* enumerate ODrive hardware
* @param serialNumber odrive serial number
* @return ODRIVE_COMM_SUCCESS on success else ODRIVE_COMM_ERROR
*/
int open_connection(const std::string& serialNumber);
/**
* close ODrive device
*/
void remove();
/**
* Read value from ODrive
* @param id odrive ID
* @param value Data read
* @return ODRIVE_COMM_SUCCESS on success else ODRIVE_COMM_ERROR
*/
template <typename T>
int getData(int id, T& value);
/**
* Write value to Odrive
* @param id odrive ID
* @param value Data to be written
* @return ODRIVE_COMM_SUCCESS on success
*/
template <typename TT>
int setData(int id, const TT& value);
/**
* Request function to ODrive
* @param id odrive ID
* @return ODRIVE_COMM_SUCCESS on success
*/
int execFunc(int id);
/**
* Request to USB endpoint
* @param handle USB device handler
* @param endpoint_id odrive ID
* @param received_payload receive buffer
* @param received_length receive length
* @param payload data read
* @param ack request acknowledge
* @param length data length
* @param read send read address
* @param address read address
* @return LIBUSB_SUCCESS on success
*/
int endpointRequest(int endpoint_id, commBuffer& received_payload, int& received_length, const commBuffer& payload,
bool ack, int length, bool read = false, int address = 0);
std::string odrive_serial_number;
private:
/**
* Append short data to data buffer
* @param buf data buffer
* @param value data to append
*/
static void appendShortToCommBuffer(commBuffer& buf, short value);
/**
* Append int data to data buffer
* @param buf data buffer
* @param value data to append
*/
static void appendIntToCommBuffer(commBuffer& buf, int value);
/**
* Decode odrive packet
* @param buf data buffer
* @param seq_no packet sequence number
* @param received_packet received buffer
* @return data buffer
*/
static commBuffer decodeODrivePacket(commBuffer& buf, short& seq_no);
/**
* Read data buffer from Odrive hardware
* @param seq_no next sequence number
* @param endpoint_id USB endpoint ID
* @param response_size maximum data length to be read
* @param read append request address
* @param address destination address
* @param input data buffer to send
* @return data buffer read
*/
commBuffer createODrivePacket(short seq_no, int endpoint_id, short response_size, bool read, int address,
const commBuffer& input);
libusb_context* lib_usb_context_ = nullptr;
libusb_device_handle* odrive_handle_ = nullptr;
int outbound_seq_no_ = 0;
std::mutex ep_lock_;
};
#endif // ODRIVE_ENDPOINT_HPP_
|
342011f23b1fb0f528c47ee6ec8b69ace7be209f | e70316f88b896d51a4820993b63bd3a575b849ec | /Sisyphe/cppbase/src/interpreter/cppNoticeInterpreter.hpp | 5afc75760ea0a9cde55645b27f7f3d78b540ce94 | [
"Unlicense"
] | permissive | tedi21/SisypheReview | 0e634a2f24a3eb464dab3c050b7337462d0c8442 | a3eb490bf7d049e54ce845d4b4ae6da156927cd2 | refs/heads/master | 2023-02-09T08:11:52.522055 | 2022-07-31T16:09:22 | 2022-07-31T16:10:21 | 61,547,357 | 0 | 0 | Unlicense | 2023-02-04T12:00:11 | 2016-06-20T12:50:37 | C | UTF-8 | C++ | false | false | 11,685 | hpp | cppNoticeInterpreter.hpp | /*
* cppNoticeInterpreter.hpp
*
*
* @date 31-07-2022
* @author Teddy DIDE
* @version 1.00
* cppBase generated by gensources.
*/
#ifndef _CPPNOTICE_INTERPRETER_HPP_
#define _CPPNOTICE_INTERPRETER_HPP_
#include "config.hpp"
#include "Macros.hpp"
#include "Base.hpp"
#include "Array.hpp"
#include "cppBaseExport.hpp"
#include "cppBaseData.h"
#define A(str) encode<EncodingT,ansi>(str)
#define C(str) encode<ansi,EncodingT>(str)
NAMESPACE_BEGIN(interp)
using namespace log4cpp;
using namespace fctr;
using namespace enc;
using namespace entity;
using namespace boost;
template <class EncodingT>
class CppFileInterpreter;
template <class EncodingT>
class CppNoticeInterpreter
: public Base<EncodingT>
{
private:
boost::shared_ptr< _CppNotice<EncodingT> > m_value;
public:
CppNoticeInterpreter();
CppNoticeInterpreter(boost::shared_ptr< _CppNotice<EncodingT> > const& value);
FACTORY_PROTOTYPE12(CppNoticeInterpreter,
In< boost::shared_ptr< Base<EncodingT> > >,
In< boost::shared_ptr< Base<EncodingT> > >,
In< boost::shared_ptr< Base<EncodingT> > >,
In< boost::shared_ptr< Base<EncodingT> > >,
In< boost::shared_ptr< Base<EncodingT> > >,
In< boost::shared_ptr< Base<EncodingT> > >,
In< boost::shared_ptr< Base<EncodingT> > >,
In< boost::shared_ptr< Base<EncodingT> > >,
In< boost::shared_ptr< Base<EncodingT> > >,
In< boost::shared_ptr< Base<EncodingT> > >,
In< boost::shared_ptr< Base<EncodingT> > >,
In< boost::shared_ptr< Base<EncodingT> > >)
CppNoticeInterpreter(boost::shared_ptr< Base<EncodingT> > const& description,
boost::shared_ptr< Base<EncodingT> > const& category,
boost::shared_ptr< Base<EncodingT> > const& ruleNumber,
boost::shared_ptr< Base<EncodingT> > const& lineNumber,
boost::shared_ptr< Base<EncodingT> > const& startBlock,
boost::shared_ptr< Base<EncodingT> > const& lengthBlock,
boost::shared_ptr< Base<EncodingT> > const& isNew,
boost::shared_ptr< Base<EncodingT> > const& commitHash,
boost::shared_ptr< Base<EncodingT> > const& commitDate,
boost::shared_ptr< Base<EncodingT> > const& commitAuthor,
boost::shared_ptr< Base<EncodingT> > const& commitLine,
boost::shared_ptr< Base<EncodingT> > const& derogation);
boost::shared_ptr< _CppNotice<EncodingT> > value() const;
void value(boost::shared_ptr< _CppNotice<EncodingT> > const& value);
virtual typename EncodingT::string_t toString() const;
virtual boost::shared_ptr< Base<EncodingT> > clone() const;
virtual typename EncodingT::string_t getClassName() const;
virtual boost::shared_ptr< Base<EncodingT> > invoke(const typename EncodingT::string_t& method, std::vector< boost::shared_ptr< Base<EncodingT> > >& params);
boost::shared_ptr< Base<EncodingT> > getIdentifier() const;
boost::shared_ptr< Base<EncodingT> > getDescription() const;
boost::shared_ptr< Base<EncodingT> > getCategory() const;
boost::shared_ptr< Base<EncodingT> > getRuleNumber() const;
boost::shared_ptr< Base<EncodingT> > getLineNumber() const;
boost::shared_ptr< Base<EncodingT> > getStartBlock() const;
boost::shared_ptr< Base<EncodingT> > getLengthBlock() const;
boost::shared_ptr< Base<EncodingT> > getIsNew() const;
boost::shared_ptr< Base<EncodingT> > getCommitHash() const;
boost::shared_ptr< Base<EncodingT> > getCommitDate() const;
boost::shared_ptr< Base<EncodingT> > getCommitAuthor() const;
boost::shared_ptr< Base<EncodingT> > getCommitLine() const;
boost::shared_ptr< Base<EncodingT> > getDerogation() const;
boost::shared_ptr< Base<EncodingT> > getCppFile();
FACTORY_PROTOTYPE1(setDescription, In< boost::shared_ptr< Base<EncodingT> > >)
void setDescription(boost::shared_ptr< Base<EncodingT> > const& description);
FACTORY_PROTOTYPE1(setCategory, In< boost::shared_ptr< Base<EncodingT> > >)
void setCategory(boost::shared_ptr< Base<EncodingT> > const& category);
FACTORY_PROTOTYPE1(setRuleNumber, In< boost::shared_ptr< Base<EncodingT> > >)
void setRuleNumber(boost::shared_ptr< Base<EncodingT> > const& ruleNumber);
FACTORY_PROTOTYPE1(setCppFile, In< boost::shared_ptr< Base<EncodingT> > >)
void setCppFile(boost::shared_ptr< Base<EncodingT> > const& cppFile);
FACTORY_PROTOTYPE1(setLineNumber, In< boost::shared_ptr< Base<EncodingT> > >)
void setLineNumber(boost::shared_ptr< Base<EncodingT> > const& lineNumber);
FACTORY_PROTOTYPE1(setStartBlock, In< boost::shared_ptr< Base<EncodingT> > >)
void setStartBlock(boost::shared_ptr< Base<EncodingT> > const& startBlock);
FACTORY_PROTOTYPE1(setLengthBlock, In< boost::shared_ptr< Base<EncodingT> > >)
void setLengthBlock(boost::shared_ptr< Base<EncodingT> > const& lengthBlock);
FACTORY_PROTOTYPE1(setIsNew, In< boost::shared_ptr< Base<EncodingT> > >)
void setIsNew(boost::shared_ptr< Base<EncodingT> > const& isNew);
FACTORY_PROTOTYPE1(setCommitHash, In< boost::shared_ptr< Base<EncodingT> > >)
void setCommitHash(boost::shared_ptr< Base<EncodingT> > const& commitHash);
FACTORY_PROTOTYPE1(setCommitDate, In< boost::shared_ptr< Base<EncodingT> > >)
void setCommitDate(boost::shared_ptr< Base<EncodingT> > const& commitDate);
FACTORY_PROTOTYPE1(setCommitAuthor, In< boost::shared_ptr< Base<EncodingT> > >)
void setCommitAuthor(boost::shared_ptr< Base<EncodingT> > const& commitAuthor);
FACTORY_PROTOTYPE1(setCommitLine, In< boost::shared_ptr< Base<EncodingT> > >)
void setCommitLine(boost::shared_ptr< Base<EncodingT> > const& commitLine);
FACTORY_PROTOTYPE1(setDerogation, In< boost::shared_ptr< Base<EncodingT> > >)
void setDerogation(boost::shared_ptr< Base<EncodingT> > const& derogation);
boost::shared_ptr< Base<EncodingT> > hasCppFile() const;
void removeCppFile();
FACTORY_BEGIN_REGISTER
CLASS_KEY_REGISTER ( CppNoticeInterpreter, UCS("CppNotice") );
CLASS_KEY_REGISTER12( CppNoticeInterpreter, UCS("CppNotice") );
METHOD_KEY_REGISTER ( CppNoticeInterpreter, boost::shared_ptr< Base<EncodingT> >, getIdentifier, const_t, UCS("CppNotice::Identifier") );
METHOD_KEY_REGISTER ( CppNoticeInterpreter, boost::shared_ptr< Base<EncodingT> >, getDescription, const_t, UCS("CppNotice::Description") );
METHOD_KEY_REGISTER1( CppNoticeInterpreter, void, setDescription, no_const_t, UCS("CppNotice::Description") );
METHOD_KEY_REGISTER ( CppNoticeInterpreter, boost::shared_ptr< Base<EncodingT> >, getCategory, const_t, UCS("CppNotice::Category") );
METHOD_KEY_REGISTER1( CppNoticeInterpreter, void, setCategory, no_const_t, UCS("CppNotice::Category") );
METHOD_KEY_REGISTER ( CppNoticeInterpreter, boost::shared_ptr< Base<EncodingT> >, getRuleNumber, const_t, UCS("CppNotice::RuleNumber") );
METHOD_KEY_REGISTER1( CppNoticeInterpreter, void, setRuleNumber, no_const_t, UCS("CppNotice::RuleNumber") );
METHOD_KEY_REGISTER1( CppNoticeInterpreter, void, setCppFile, no_const_t, UCS("CppNotice::CppFile") );
METHOD_KEY_REGISTER ( CppNoticeInterpreter, boost::shared_ptr< Base<EncodingT> >, getCppFile, no_const_t, UCS("CppNotice::CppFile") );
METHOD_KEY_REGISTER ( CppNoticeInterpreter, boost::shared_ptr< Base<EncodingT> >, hasCppFile, const_t, UCS("CppNotice::HasCppFile") );
METHOD_KEY_REGISTER ( CppNoticeInterpreter, void, removeCppFile, no_const_t, UCS("CppNotice::removeCppFile") );
METHOD_KEY_REGISTER ( CppNoticeInterpreter, boost::shared_ptr< Base<EncodingT> >, getLineNumber, const_t, UCS("CppNotice::LineNumber") );
METHOD_KEY_REGISTER1( CppNoticeInterpreter, void, setLineNumber, no_const_t, UCS("CppNotice::LineNumber") );
METHOD_KEY_REGISTER ( CppNoticeInterpreter, boost::shared_ptr< Base<EncodingT> >, getStartBlock, const_t, UCS("CppNotice::StartBlock") );
METHOD_KEY_REGISTER1( CppNoticeInterpreter, void, setStartBlock, no_const_t, UCS("CppNotice::StartBlock") );
METHOD_KEY_REGISTER ( CppNoticeInterpreter, boost::shared_ptr< Base<EncodingT> >, getLengthBlock, const_t, UCS("CppNotice::LengthBlock") );
METHOD_KEY_REGISTER1( CppNoticeInterpreter, void, setLengthBlock, no_const_t, UCS("CppNotice::LengthBlock") );
METHOD_KEY_REGISTER ( CppNoticeInterpreter, boost::shared_ptr< Base<EncodingT> >, getIsNew, const_t, UCS("CppNotice::IsNew") );
METHOD_KEY_REGISTER1( CppNoticeInterpreter, void, setIsNew, no_const_t, UCS("CppNotice::IsNew") );
METHOD_KEY_REGISTER ( CppNoticeInterpreter, boost::shared_ptr< Base<EncodingT> >, getCommitHash, const_t, UCS("CppNotice::CommitHash") );
METHOD_KEY_REGISTER1( CppNoticeInterpreter, void, setCommitHash, no_const_t, UCS("CppNotice::CommitHash") );
METHOD_KEY_REGISTER ( CppNoticeInterpreter, boost::shared_ptr< Base<EncodingT> >, getCommitDate, const_t, UCS("CppNotice::CommitDate") );
METHOD_KEY_REGISTER1( CppNoticeInterpreter, void, setCommitDate, no_const_t, UCS("CppNotice::CommitDate") );
METHOD_KEY_REGISTER ( CppNoticeInterpreter, boost::shared_ptr< Base<EncodingT> >, getCommitAuthor, const_t, UCS("CppNotice::CommitAuthor") );
METHOD_KEY_REGISTER1( CppNoticeInterpreter, void, setCommitAuthor, no_const_t, UCS("CppNotice::CommitAuthor") );
METHOD_KEY_REGISTER ( CppNoticeInterpreter, boost::shared_ptr< Base<EncodingT> >, getCommitLine, const_t, UCS("CppNotice::CommitLine") );
METHOD_KEY_REGISTER1( CppNoticeInterpreter, void, setCommitLine, no_const_t, UCS("CppNotice::CommitLine") );
METHOD_KEY_REGISTER ( CppNoticeInterpreter, boost::shared_ptr< Base<EncodingT> >, getDerogation, const_t, UCS("CppNotice::Derogation") );
METHOD_KEY_REGISTER1( CppNoticeInterpreter, void, setDerogation, no_const_t, UCS("CppNotice::Derogation") );
FACTORY_END_REGISTER
FACTORY_BEGIN_UNREGISTER
CLASS_KEY_UNREGISTER ( UCS("CppNotice") );
CLASS_KEY_UNREGISTER12( UCS("CppNotice") );
METHOD_KEY_UNREGISTER ( UCS("CppNotice::Identifier") );
METHOD_KEY_UNREGISTER ( UCS("CppNotice::Description") );
METHOD_KEY_UNREGISTER1( UCS("CppNotice::Description") );
METHOD_KEY_UNREGISTER ( UCS("CppNotice::Category") );
METHOD_KEY_UNREGISTER1( UCS("CppNotice::Category") );
METHOD_KEY_UNREGISTER ( UCS("CppNotice::RuleNumber") );
METHOD_KEY_UNREGISTER1( UCS("CppNotice::RuleNumber") );
METHOD_KEY_UNREGISTER ( UCS("CppNotice::CppFile") );
METHOD_KEY_UNREGISTER1( UCS("CppNotice::CppFile") );
METHOD_KEY_UNREGISTER ( UCS("CppNotice::HasCppFile") );
METHOD_KEY_UNREGISTER ( UCS("CppNotice::removeCppFile") );
METHOD_KEY_UNREGISTER ( UCS("CppNotice::LineNumber") );
METHOD_KEY_UNREGISTER1( UCS("CppNotice::LineNumber") );
METHOD_KEY_UNREGISTER ( UCS("CppNotice::StartBlock") );
METHOD_KEY_UNREGISTER1( UCS("CppNotice::StartBlock") );
METHOD_KEY_UNREGISTER ( UCS("CppNotice::LengthBlock") );
METHOD_KEY_UNREGISTER1( UCS("CppNotice::LengthBlock") );
METHOD_KEY_UNREGISTER ( UCS("CppNotice::IsNew") );
METHOD_KEY_UNREGISTER1( UCS("CppNotice::IsNew") );
METHOD_KEY_UNREGISTER ( UCS("CppNotice::CommitHash") );
METHOD_KEY_UNREGISTER1( UCS("CppNotice::CommitHash") );
METHOD_KEY_UNREGISTER ( UCS("CppNotice::CommitDate") );
METHOD_KEY_UNREGISTER1( UCS("CppNotice::CommitDate") );
METHOD_KEY_UNREGISTER ( UCS("CppNotice::CommitAuthor") );
METHOD_KEY_UNREGISTER1( UCS("CppNotice::CommitAuthor") );
METHOD_KEY_UNREGISTER ( UCS("CppNotice::CommitLine") );
METHOD_KEY_UNREGISTER1( UCS("CppNotice::CommitLine") );
METHOD_KEY_UNREGISTER ( UCS("CppNotice::Derogation") );
METHOD_KEY_UNREGISTER1( UCS("CppNotice::Derogation") );
FACTORY_END_UNREGISTER
};
template <class EncodingT>
bool check_cppNotice(boost::shared_ptr< Base<EncodingT> > const& val, boost::shared_ptr< _CppNotice<EncodingT> >& o);
template <class EncodingT>
bool reset_cppNotice(boost::shared_ptr< Base<EncodingT> >& val, boost::shared_ptr< _CppNotice<EncodingT> > const& o);
NAMESPACE_END
#undef C
#undef A
#include "cppNoticeInterpreter_impl.hpp"
#endif
|
0fc52d7713f115832c43d61bbac4f8efd1b14472 | e223a09cab6bd15f32dca2948afe5555aab1cd6f | /vpr_reconfig/placer_m/read_xml_arch_file.cc | 4aec7be3dac83b0eb3bd8fa9ca1dfb9daf2768d0 | [] | no_license | Frankfbmao/BMPR | e59f53aa8613cec90eee0fa3fae59201720dbf0c | c2054e7459cb111e1f309ac7365bbc021b502a38 | refs/heads/master | 2020-09-20T17:56:53.504510 | 2016-10-11T05:39:03 | 2016-10-11T05:39:03 | 67,479,204 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 82,935 | cc | read_xml_arch_file.cc | #include <string.h>
#include <assert.h>
#include "util.h"
#include "arch_types.h"
#include "ReadLine.h"
#include "ezxml.h"
#include "read_xml_arch_file.h"
#include "read_xml_util.h"
#include "physical_types.h"
/* special type indexes, necessary for initialization initialization, everything afterwards
should use the pointers to these type indices*/
#define NUM_MODELS_IN_LIBRARY 4
#define EMPTY_TYPE_INDEX 0
#define IO_TYPE_INDEX 1
enum Fc_type
{ FC_ABS, FC_FRAC, FC_FULL };
/* This identifies the t_type_ptr of an IO block */
static t_type_ptr IO_TYPE = NULL;
/* This identifies the t_type_ptr of an Empty block */
static t_type_ptr EMPTY_TYPE = NULL;
/* This identifies the t_type_ptr of the default logic block */
static t_type_ptr FILL_TYPE = NULL;
/* Describes the different types of CLBs available */
static struct s_type_descriptor *type_descriptors;
/* Function prototypes */
/* Populate data */
static void ParseFc(ezxml_t Node,
enum Fc_type *Fc,
float *Val);
static void SetupEmptyType();
static void SetupPinLocationsAndPinClasses(ezxml_t Locations,
t_type_descriptor * Type);
static void SetupGridLocations(ezxml_t Locations,
t_type_descriptor * Type);
#if 0
static void SetupTypeTiming(ezxml_t timing,
t_type_descriptor * Type);
#endif
/* Process XML hiearchy */
static void ProcessPb_Type(INOUTP ezxml_t Parent,
t_pb_type * pb_type,
t_mode * mode);
static void ProcessPb_TypePort(INOUTP ezxml_t Parent,
t_port * port);
static void ProcessPinToPinAnnotations(ezxml_t parent,
t_pin_to_pin_annotation *annotation);
static void ProcessInterconnect(INOUTP ezxml_t Parent,
t_mode * mode);
static void ProcessMode(INOUTP ezxml_t Parent,
t_mode * mode);
static void Process_Fc(ezxml_t Fc_in_node,
ezxml_t Fc_out_node,
t_type_descriptor * Type);
static void ProcessComplexBlockProps(ezxml_t Node,
t_type_descriptor * Type);
static void ProcessChanWidthDistr(INOUTP ezxml_t Node,
OUTP struct s_arch *arch);
static void ProcessChanWidthDistrDir(INOUTP ezxml_t Node,
OUTP t_chan * chan);
static void ProcessModels(INOUTP ezxml_t Node,
OUTP struct s_arch *arch);
static void ProcessLayout(INOUTP ezxml_t Node,
OUTP struct s_arch *arch);
static void ProcessDevice(INOUTP ezxml_t Node,
OUTP struct s_arch *arch,
INP boolean timing_enabled);
static void alloc_and_load_default_child_for_pb_type(INOUTP t_pb_type *pb_type, char *new_name, t_pb_type *copy);
static void ProcessLutClass(INOUTP t_pb_type *lut_pb_type);
static void ProcessMemoryClass(INOUTP t_pb_type *mem_pb_type);
static void ProcessComplexBlocks(INOUTP ezxml_t Node,
OUTP t_type_descriptor ** Types,
OUTP int *NumTypes,
INP boolean timing_enabled);
static void ProcessSwitches(INOUTP ezxml_t Node,
OUTP struct s_switch_inf **Switches,
OUTP int *NumSwitches,
INP boolean timing_enabled);
static void ProcessSegments(INOUTP ezxml_t Parent,
OUTP struct s_segment_inf **Segs,
OUTP int *NumSegs,
INP struct s_switch_inf *Switches,
INP int NumSwitches,
INP boolean timing_enabled);
static void ProcessCB_SB(INOUTP ezxml_t Node,
INOUTP boolean * list,
INP int len);
static void CreateModelLibrary(OUTP struct s_arch *arch);
static void UpdateAndCheckModels(INOUTP struct s_arch *arch);
static void SyncModelsPbTypes(INOUTP struct s_arch *arch, INP t_type_descriptor * Types, INP int NumTypes);
static void AddModelsToPbTypes_rec(INOUTP t_pb_type *pb_type);
static void SyncModelsPbTypes_rec(INOUTP struct s_arch *arch, INP t_pb_type *pb_type);
static void PrintPb_types_rec(INP FILE * Echo, INP const t_pb_type * pb_type, int level);
/* Figures out the Fc type and value for the given node. Unlinks the
* type and value. */
static void
ParseFc(ezxml_t Node, enum Fc_type *Fc, float *Val)
{
const char *Prop;
Prop = FindProperty(Node, "type", TRUE);
if(0 == strcmp(Prop, "abs"))
{
*Fc = FC_ABS;
}
else if(0 == strcmp(Prop, "frac"))
{
*Fc = FC_FRAC;
}
else if(0 == strcmp(Prop, "full"))
{
*Fc = FC_FULL;
}
else
{
printf(ERRTAG "[LINE %d] Invalid type '%s' for Fc. Only abs, frac "
"and full are allowed.\n", Node->line, Prop);
exit(1);
}
switch (*Fc)
{
case FC_FULL:
*Val = 0.0;
break;
case FC_ABS:
case FC_FRAC:
*Val = atof(Node->txt);
ezxml_set_attr(Node, "type", NULL);
ezxml_set_txt(Node, "");
break;
default:
assert(0);
}
/* Release the property */
ezxml_set_attr(Node, "type", NULL);
}
/* Sets up the pinloc map and pin classes for the type. Unlinks the loc nodes
* from the XML tree.
* Pins and pin classses must already be setup by SetupPinClasses */
static void
SetupPinLocationsAndPinClasses(ezxml_t Locations, t_type_descriptor * Type)
{
int i, j, k, PinsPerSubtile, Count, Len;
int capacity, pin_count;
int num_class;
const char * Prop;
ezxml_t Cur, Prev;
char **Tokens, **CurTokens;
capacity = Type->capacity;
PinsPerSubtile = Type->num_pins / Type->capacity;
Prop = FindProperty(Locations, "pattern", TRUE);
if(strcmp(Prop, "spread") == 0) {
Type->pin_location_distribution = E_SPREAD_PIN_DISTR;
} else if (strcmp(Prop,"custom") == 0) {
Type->pin_location_distribution = E_CUSTOM_PIN_DISTR;
} else {
printf(ERRTAG "[LINE %d] %s is an invalid pin location pattern.\n", Locations->line, Prop);
exit(1);
}
ezxml_set_attr(Locations, "pattern", NULL);
/* Alloc and clear pin locations */
Type->pinloc = (int ***)my_malloc(Type->height * sizeof(int **));
Type->pin_height = (int *)my_calloc(Type->num_pins, sizeof(int));
for(i = 0; i < Type->height; ++i)
{
Type->pinloc[i] = (int **)my_malloc(4 * sizeof(int *));
for(j = 0; j < 4; ++j)
{
Type->pinloc[i][j] =
(int *)my_malloc(Type->num_pins * sizeof(int));
for(k = 0; k < Type->num_pins; ++k)
{
Type->pinloc[i][j][k] = 0;
}
}
}
Type->pin_loc_assignments = (char****) my_malloc(Type->height * sizeof(char***));
Type->num_pin_loc_assignments = (int**) my_malloc(Type->height * sizeof(int*));
for(i = 0; i < Type->height; i++) {
Type->pin_loc_assignments[i] = (char***) my_calloc(4, sizeof(char**));
Type->num_pin_loc_assignments[i] = (int*) my_calloc(4, sizeof(int));
}
/* Load the pin locations */
if(Type->pin_location_distribution == E_CUSTOM_PIN_DISTR) {
Cur = Locations->child;
while(Cur)
{
CheckElement(Cur, "loc");
/* Get offset */
i = GetIntProperty(Cur, "offset", FALSE, 0);
if((i < 0) || (i >= Type->height))
{
printf(ERRTAG
"[LINE %d] %d is an invalid offset for type '%s'.\n", Cur->line,
i, Type->name);
exit(1);
}
/* Get side */
Prop = FindProperty(Cur, "side", TRUE);
if(0 == strcmp(Prop, "left"))
{
j = 3; ////// LEFT; conflict fbmao revised
}
else if(0 == strcmp(Prop, "top"))
{
j = TOP;
}
else if(0 == strcmp(Prop, "right"))
{
j = 1; /////fbmao revised conflict RIGHT;
}
else if(0 == strcmp(Prop, "bottom"))
{
j = BOTTOM;
}
else
{
printf(ERRTAG "[LINE %d] '%s' is not a valid side.\n", Cur->line, Prop);
exit(1);
}
ezxml_set_attr(Cur, "side", NULL);
/* Check location is on perimeter */
if((TOP == j) && (i != (Type->height - 1)))
{
printf(ERRTAG
"[LINE %d] Locations are only allowed on large block "
"perimeter. 'top' side should be at offset %d only.\n", Cur->line,
(Type->height - 1));
exit(1);
}
if((BOTTOM == j) && (i != 0))
{
printf(ERRTAG
"[LINE %d] Locations are only allowed on large block "
"perimeter. 'bottom' side should be at offset 0 only.\n", Cur->line);
exit(1);
}
/* Go through lists of pins */
CountTokensInString(Cur->txt, &Count, &Len);
Type->num_pin_loc_assignments[i][j] = Count;
if(Count > 0)
{
Tokens = GetNodeTokens(Cur);
CurTokens = Tokens;
Type->pin_loc_assignments[i][j] = (char**) my_calloc(Count, sizeof(char*));
for(k = 0; k < Count; k++) {
/* Store location assignment */
Type->pin_loc_assignments[i][j][k] = my_strdup(*CurTokens);
/* Advance through list of pins in this location */
++CurTokens;
}
FreeTokens(&Tokens);
}
Prev = Cur;
Cur = Cur->next;
FreeNode(Prev);
}
}
/* Setup pin classes */
num_class = 0;
for(i = 0; i < Type->pb_type->num_ports; i++) {
if(Type->pb_type->ports[i].equivalent) {
num_class += capacity;
} else {
num_class += capacity * Type->pb_type->ports[i].num_pins;
}
}
Type->class_inf = (s_class *)my_calloc(num_class, sizeof(struct s_class));
Type->num_class = num_class;
Type->pin_class = (int *)my_malloc(Type->num_pins * sizeof(int)* capacity);
Type->is_global_pin = (boolean *)my_malloc(Type->num_pins * sizeof(boolean)* capacity);
for(i = 0; i < Type->num_pins * capacity; i++) {
Type->pin_class[i] = OPEN;
Type->is_global_pin[i] = (boolean)OPEN;
}
pin_count = 0;
/* Equivalent pins share the same class, non-equivalent pins belong to different pin classes */
num_class = 0;
for(i = 0; i < capacity; ++i)
{
for(j = 0; j < Type->pb_type->num_ports; ++j)
{
if(Type->pb_type->ports[j].equivalent) {
Type->class_inf[num_class].num_pins = Type->pb_type->ports[j].num_pins;
Type->class_inf[num_class].pinlist =
(int *)my_malloc(sizeof(int) * Type->pb_type->ports[j].num_pins);
}
for(k = 0; k < Type->pb_type->ports[j].num_pins; ++k)
{
if(!Type->pb_type->ports[j].equivalent) {
Type->class_inf[num_class].num_pins = 1;
Type->class_inf[num_class].pinlist = (int *)my_malloc(sizeof(int) * 1);
Type->class_inf[num_class].pinlist[0] = pin_count;
} else {
Type->class_inf[num_class].pinlist[k] = pin_count;
}
if(Type->pb_type->ports[j].type == IN_PORT) {
Type->class_inf[num_class].type = RECEIVER;
} else {
assert(Type->pb_type->ports[j].type == OUT_PORT);
Type->class_inf[num_class].type = DRIVER;
}
Type->pin_class[pin_count] = num_class;
Type->is_global_pin[pin_count] = Type->pb_type->ports[j].is_clock;
pin_count++;
if(!Type->pb_type->ports[j].equivalent) {
num_class++;
}
}
if(Type->pb_type->ports[j].equivalent) {
num_class++;
}
}
}
assert(num_class == Type->num_class);
assert(pin_count == Type->num_pins);
}
/* Sets up the grid_loc_def for the type. Unlinks the loc nodes
* from the XML tree. */
static void
SetupGridLocations(ezxml_t Locations, t_type_descriptor * Type)
{
int i;
ezxml_t Cur, Prev;
const char *Prop;
Type->num_grid_loc_def = CountChildren(Locations, "loc", 1);
Type->grid_loc_def =
(struct s_grid_loc_def *)my_calloc(Type->num_grid_loc_def,
sizeof(struct s_grid_loc_def));
/* Load the pin locations */
Cur = Locations->child;
i = 0;
while(Cur)
{
CheckElement(Cur, "loc");
/* loc index */
Prop = FindProperty(Cur, "type", TRUE);
if(Prop)
{
if(strcmp(Prop, "perimeter") == 0)
{
if(Type->num_grid_loc_def != 1)
{
printf(ERRTAG
"[LINE %d] Another loc specified for perimeter.\n", Cur->line);
exit(1);
}
Type->grid_loc_def[i].grid_loc_type = BOUNDARY;
assert(IO_TYPE == Type); /* IO goes to boundary */
} else if(strcmp(Prop, "fill") == 0)
{
if(Type->num_grid_loc_def != 1 || FILL_TYPE != NULL)
{
printf(ERRTAG
"[LINE %d] Another loc specified for fill.\n", Cur->line);
exit(1);
}
Type->grid_loc_def[i].grid_loc_type = FILL;
FILL_TYPE = Type;
}
else if(strcmp(Prop, "col") == 0)
{
Type->grid_loc_def[i].grid_loc_type = COL_REPEAT;
}
else if(strcmp(Prop, "rel") == 0)
{
Type->grid_loc_def[i].grid_loc_type = COL_REL;
}
else
{
printf(ERRTAG
"[LINE %d] Unknown grid location type '%s' for type '%s'.\n", Cur->line,
Prop, Type->name);
exit(1);
}
ezxml_set_attr(Cur, "type", NULL);
}
Prop = FindProperty(Cur, "start", FALSE);
if(Type->grid_loc_def[i].grid_loc_type == COL_REPEAT)
{
if(Prop == NULL)
{
printf(ERRTAG
"[LINE %d] grid location property 'start' must be specified for grid location type 'col'.\n",
Cur->line);
exit(1);
}
Type->grid_loc_def[i].start_col = my_atoi(Prop);
ezxml_set_attr(Cur, "start", NULL);
}
else if(Prop != NULL)
{
printf(ERRTAG
"[LINE %d] grid location property 'start' valid for grid location type 'col' only.\n",
Cur->line);
exit(1);
}
Prop = FindProperty(Cur, "repeat", FALSE);
if(Type->grid_loc_def[i].grid_loc_type == COL_REPEAT)
{
if(Prop != NULL)
{
Type->grid_loc_def[i].repeat = my_atoi(Prop);
ezxml_set_attr(Cur, "repeat", NULL);
}
}
else if(Prop != NULL)
{
printf(ERRTAG
"[LINE %d] grid location property 'repeat' valid for grid location type 'col' only.\n",
Cur->line);
exit(1);
}
Prop = FindProperty(Cur, "pos", FALSE);
if(Type->grid_loc_def[i].grid_loc_type == COL_REL)
{
if(Prop == NULL)
{
printf(ERRTAG
"[LINE %d] grid location property 'pos' must be specified for grid location type 'rel'.\n",
Cur->line);
exit(1);
}
Type->grid_loc_def[i].col_rel = atof(Prop);
ezxml_set_attr(Cur, "pos", NULL);
}
else if(Prop != NULL)
{
printf(ERRTAG
"[LINE %d] grid location property 'pos' valid for grid location type 'rel' only.\n",
Cur->line);
exit(1);
}
Type->grid_loc_def[i].priority = GetIntProperty(Cur, "priority", FALSE, 1);
Prev = Cur;
Cur = Cur->next;
FreeNode(Prev);
i++;
}
}
static void
ProcessPinToPinAnnotations(ezxml_t Parent, t_pin_to_pin_annotation *annotation)
{
int i = 0;
const char *Prop;
if(FindProperty(Parent, "max", FALSE)) {
i++;
}
if(FindProperty(Parent, "min", FALSE)) {
i++;
}
if(FindProperty(Parent, "type", FALSE)) {
i++;
}
if(FindProperty(Parent, "value", FALSE)) {
i++;
}
if(0 == strcmp(Parent->name, "C_constant") || 0 == strcmp(Parent->name, "C_matrix")) {
i = 1;
}
annotation->num_value_prop_pairs = i;
annotation->prop = (int *)my_calloc(i, sizeof(int));
annotation->value = (char **)my_calloc(i, sizeof(char *));
i = 0;
if(0 == strcmp(Parent->name, "delay_constant")) {
annotation->type = (e_pin_to_pin_annotation_type)((int)E_ANNOT_PIN_TO_PIN_DELAY);
annotation->format = E_ANNOT_PIN_TO_PIN_CONSTANT;
Prop = FindProperty(Parent, "max", FALSE);
if(Prop) {
annotation->prop[i] = (int) E_ANNOT_PIN_TO_PIN_DELAY_MAX;
annotation->value[i] = my_strdup(Prop);
ezxml_set_attr(Parent, "max", NULL);
i++;
}
Prop = FindProperty(Parent, "min", FALSE);
if(Prop) {
annotation->prop[i] = (int) E_ANNOT_PIN_TO_PIN_DELAY_MIN;
annotation->value[i] = my_strdup(Prop);
ezxml_set_attr(Parent, "min", NULL);
i++;
}
Prop = FindProperty(Parent, "in_port", TRUE);
annotation->input_pins = my_strdup(Prop);
ezxml_set_attr(Parent, "in_port", NULL);
Prop = FindProperty(Parent, "out_port", TRUE);
annotation->output_pins = my_strdup(Prop);
ezxml_set_attr(Parent, "out_port", NULL);
} else if (0 == strcmp(Parent->name, "delay_matrix")) {
annotation->type = (e_pin_to_pin_annotation_type)((int)E_ANNOT_PIN_TO_PIN_DELAY);
annotation->format = E_ANNOT_PIN_TO_PIN_MATRIX;
Prop = FindProperty(Parent, "type", TRUE);
annotation->value[i] = my_strdup(Parent->txt);
ezxml_set_txt(Parent, "");
if(0 == strcmp(Prop, "max")) {
annotation->prop[i] = (int) E_ANNOT_PIN_TO_PIN_DELAY_MAX;
} else {
assert(0 == strcmp(Prop, "min"));
annotation->prop[i] = (int) E_ANNOT_PIN_TO_PIN_DELAY_MIN;
}
ezxml_set_attr(Parent, "type", NULL);
i++;
Prop = FindProperty(Parent, "in_port", TRUE);
annotation->input_pins = my_strdup(Prop);
ezxml_set_attr(Parent, "in_port", NULL);
Prop = FindProperty(Parent, "out_port", TRUE);
annotation->output_pins = my_strdup(Prop);
ezxml_set_attr(Parent, "out_port", NULL);
} else if (0 == strcmp(Parent->name, "C_constant")) {
annotation->type = (e_pin_to_pin_annotation_type)((int)E_ANNOT_PIN_TO_PIN_CAPACITANCE);
annotation->format = E_ANNOT_PIN_TO_PIN_CONSTANT;
Prop = FindProperty(Parent, "C", TRUE);
annotation->value[i] = my_strdup(Prop);
ezxml_set_attr(Parent, "C", NULL);
annotation->prop[i] = (int) E_ANNOT_PIN_TO_PIN_CAPACITANCE_C;
i++;
Prop = FindProperty(Parent, "in_port", FALSE);
annotation->input_pins = my_strdup(Prop);
ezxml_set_attr(Parent, "in_port", NULL);
Prop = FindProperty(Parent, "out_port", FALSE);
annotation->output_pins = my_strdup(Prop);
ezxml_set_attr(Parent, "out_port", NULL);
assert(annotation->output_pins != NULL || annotation->input_pins != NULL);
} else if (0 == strcmp(Parent->name, "C_matrix")) {
annotation->type = (e_pin_to_pin_annotation_type)((int) E_ANNOT_PIN_TO_PIN_CAPACITANCE);
annotation->format = E_ANNOT_PIN_TO_PIN_MATRIX;
annotation->value[i] = my_strdup(Parent->txt);
ezxml_set_txt(Parent, "");
annotation->prop[i] = (int) E_ANNOT_PIN_TO_PIN_CAPACITANCE_C;
i++;
Prop = FindProperty(Parent, "in_port", FALSE);
annotation->input_pins = my_strdup(Prop);
ezxml_set_attr(Parent, "in_port", NULL);
Prop = FindProperty(Parent, "out_port", FALSE);
annotation->output_pins = my_strdup(Prop);
ezxml_set_attr(Parent, "out_port", NULL);
assert(annotation->output_pins != NULL || annotation->input_pins != NULL);
} else if (0 == strcmp(Parent->name, "T_setup")) {
annotation->type = (e_pin_to_pin_annotation_type)((int) E_ANNOT_PIN_TO_PIN_DELAY);
annotation->format = E_ANNOT_PIN_TO_PIN_CONSTANT;
Prop = FindProperty(Parent, "value", TRUE);
annotation->prop[i] = (int) E_ANNOT_PIN_TO_PIN_DELAY_TSETUP;
annotation->value[i] = my_strdup(Prop);
ezxml_set_attr(Parent, "value", NULL);
i++;
Prop = FindProperty(Parent, "port", TRUE);
annotation->input_pins = my_strdup(Prop);
ezxml_set_attr(Parent, "port", NULL);
Prop = FindProperty(Parent, "clock", TRUE);
annotation->clock = my_strdup(Prop);
ezxml_set_attr(Parent, "clock", NULL);
} else if (0 == strcmp(Parent->name, "T_clock_to_Q")) {
annotation->type = (e_pin_to_pin_annotation_type)((int) E_ANNOT_PIN_TO_PIN_DELAY);
annotation->format = E_ANNOT_PIN_TO_PIN_CONSTANT;
Prop = FindProperty(Parent, "max", FALSE);
if(Prop) {
annotation->prop[i] = (int) E_ANNOT_PIN_TO_PIN_DELAY_CLOCK_TO_Q_MAX;
annotation->value[i] = my_strdup(Prop);
ezxml_set_attr(Parent, "max", NULL);
i++;
}
Prop = FindProperty(Parent, "min", FALSE);
if(Prop) {
annotation->prop[i] = (int) E_ANNOT_PIN_TO_PIN_DELAY_CLOCK_TO_Q_MIN;
annotation->value[i] = my_strdup(Prop);
ezxml_set_attr(Parent, "min", NULL);
i++;
}
Prop = FindProperty(Parent, "port", TRUE);
annotation->input_pins = my_strdup(Prop);
ezxml_set_attr(Parent, "port", NULL);
Prop = FindProperty(Parent, "clock", TRUE);
annotation->clock = my_strdup(Prop);
ezxml_set_attr(Parent, "clock", NULL);
} else if (0 == strcmp(Parent->name, "T_hold")) {
annotation->type = (e_pin_to_pin_annotation_type)((int) E_ANNOT_PIN_TO_PIN_DELAY);
annotation->format = E_ANNOT_PIN_TO_PIN_CONSTANT;
Prop = FindProperty(Parent, "value", TRUE);
annotation->prop[i] = (int) E_ANNOT_PIN_TO_PIN_DELAY_THOLD;
annotation->value[i] = my_strdup(Prop);
ezxml_set_attr(Parent, "value", NULL);
i++;
Prop = FindProperty(Parent, "port", TRUE);
annotation->input_pins = my_strdup(Prop);
ezxml_set_attr(Parent, "port", NULL);
Prop = FindProperty(Parent, "clock", TRUE);
annotation->clock = my_strdup(Prop);
ezxml_set_attr(Parent, "clock", NULL);
} else {
printf(ERRTAG "[LINE %d] Unknown port type %s in %s in %s", Parent->line,
Parent->name, Parent->parent->name, Parent->parent->parent->name);
exit(1);
}
assert (i == annotation->num_value_prop_pairs);
}
/* Takes in a pb_type, allocates and loads data for it and recurses downwards */
static void ProcessPb_Type(INOUTP ezxml_t Parent,
t_pb_type * pb_type,
t_mode * mode) {
int num_ports, i, j, num_annotations;
const char *Prop;
ezxml_t Cur, Prev;
char* class_name;
pb_type->parent_mode = mode;
if(mode != NULL && mode->parent_pb_type != NULL) {
pb_type->depth = mode->parent_pb_type->depth + 1;
Prop = FindProperty(Parent, "name", TRUE);
pb_type->name = my_strdup(Prop);
ezxml_set_attr(Parent, "name", NULL);
} else {
pb_type->depth = 0;
/* same name as type */
}
Prop = FindProperty(Parent, "blif_model", FALSE);
pb_type->blif_model = my_strdup(Prop);
ezxml_set_attr(Parent, "blif_model", NULL);
pb_type->class_type = UNKNOWN_CLASS;
Prop = FindProperty(Parent, "class", FALSE);
class_name = my_strdup(Prop);
if(class_name) {
ezxml_set_attr(Parent, "class", NULL);
if(0 == strcmp(class_name, "lut")) {
pb_type->class_type = LUT_CLASS;
} else if(0 == strcmp(class_name, "flipflop")) {
pb_type->class_type = LATCH_CLASS;
} else if(0 == strcmp(class_name, "memory")) {
pb_type->class_type = MEMORY_CLASS;
} else {
printf("[LINE %d] Unknown class %s in pb_type %s\n", Parent->line, class_name, pb_type->name);
exit(1);
}
free(class_name);
}
if(mode == NULL) {
pb_type->num_pb = 1;
} else {
pb_type->num_pb = GetIntProperty(Parent, "num_pb", TRUE, 0);
}
assert(pb_type->num_pb > 0);
num_ports = 0;
num_ports += CountChildren(Parent, "input", 0);
num_ports += CountChildren(Parent, "output", 0);
num_ports += CountChildren(Parent, "clock", 0);
pb_type->ports = (t_port *)my_calloc(num_ports, sizeof(t_port));
pb_type->num_ports = num_ports;
/* process ports */
j = 0;
for(i = 0; i < 3; i++) {
if(i == 0) {
Cur = FindFirstElement(Parent, "input", FALSE);
} else if (i ==1) {
Cur = FindFirstElement(Parent, "output", FALSE);
} else {
Cur = FindFirstElement(Parent, "clock", FALSE);
}
while (Cur != NULL)
{
ProcessPb_TypePort(Cur, &pb_type->ports[j]);
pb_type->ports[j].parent_pb_type = pb_type;
/* get next iteration */
Prev = Cur;
Cur = Cur->next;
j++;
FreeNode(Prev);
}
}
assert(j == num_ports);
/* Count stats on the number of each type of pin */
pb_type->num_clock_pins = pb_type->num_input_pins = pb_type->num_output_pins = 0;
for(i = 0; i < pb_type->num_ports; i++) {
if(pb_type->ports[i].type == IN_PORT && pb_type->ports[i].is_clock == FALSE) {
pb_type->num_input_pins += pb_type->ports[i].num_pins;
} else if(pb_type->ports[i].type == OUT_PORT) {
assert(pb_type->ports[i].is_clock == FALSE);
pb_type->num_output_pins += pb_type->ports[i].num_pins;
} else {
assert(pb_type->ports[i].is_clock && pb_type->ports[i].type == IN_PORT);
pb_type->num_clock_pins += pb_type->ports[i].num_pins;
}
}
/* set max_internal_delay if exist */
pb_type->max_internal_delay = UNDEFINED;
Cur = FindElement(Parent, "max_internal_delay", FALSE);
if(Cur) {
pb_type->max_internal_delay = GetFloatProperty(Cur, "value", TRUE, UNDEFINED);
FreeNode(Cur);
}
pb_type->annotations = NULL;
pb_type->num_annotations = 0;
i = 0;
/* Determine if this is a leaf or container pb_type */
if(pb_type->blif_model != NULL) {
/* Process delay and capacitance annotations */
num_annotations = 0;
num_annotations += CountChildren(Parent, "delay_constant", 0);
num_annotations += CountChildren(Parent, "delay_matrix", 0);
num_annotations += CountChildren(Parent, "C_constant", 0);
num_annotations += CountChildren(Parent, "C_matrix", 0);
num_annotations += CountChildren(Parent, "T_setup", 0);
num_annotations += CountChildren(Parent, "T_clock_to_Q", 0);
num_annotations += CountChildren(Parent, "T_hold", 0);
pb_type->annotations = (t_pin_to_pin_annotation *)my_calloc(num_annotations, sizeof(t_pin_to_pin_annotation));
pb_type->num_annotations = num_annotations;
j = 0;
Cur = NULL;
for(i = 0; i < 7; i++) {
if(i == 0) {
Cur = FindFirstElement(Parent, "delay_constant", FALSE);
} else if (i == 1) {
Cur = FindFirstElement(Parent, "delay_matrix", FALSE);
} else if (i == 2) {
Cur = FindFirstElement(Parent, "C_constant", FALSE);
} else if (i == 3) {
Cur = FindFirstElement(Parent, "C_matrix", FALSE);
} else if (i == 4) {
Cur = FindFirstElement(Parent, "T_setup", FALSE);
} else if (i == 5) {
Cur = FindFirstElement(Parent, "T_clock_to_Q", FALSE);
} else if (i == 6) {
Cur = FindFirstElement(Parent, "T_hold", FALSE);
}
while (Cur != NULL)
{
ProcessPinToPinAnnotations(Cur, &pb_type->annotations[j]);
/* get next iteration */
Prev = Cur;
Cur = Cur->next;
j++;
FreeNode(Prev);
}
}
assert(j == num_annotations);
/* leaf pb_type, if special known class, then read class lib otherwise treat as primitive */
if(pb_type->class_type == LUT_CLASS) {
ProcessLutClass(pb_type);
} else if(pb_type->class_type == MEMORY_CLASS) {
ProcessMemoryClass(pb_type);
} else {
/* other leaf pb_type do not have modes */
pb_type->num_modes = 0;
assert(CountChildren(Parent, "mode", 0) == 0);
}
} else {
/* container pb_type, process modes */
assert(pb_type->class_type == UNKNOWN_CLASS);
pb_type->num_modes = CountChildren(Parent, "mode", 0);
if(pb_type->num_modes == 0) {
/* The pb_type operates in an implied one mode */
pb_type->num_modes = 1;
pb_type->modes = (t_mode *)my_calloc(pb_type->num_modes, sizeof(t_mode));
pb_type->modes[i].parent_pb_type = pb_type;
pb_type->modes[i].index = i;
ProcessMode(Parent, &pb_type->modes[i]);
i++;
} else {
pb_type->modes = (t_mode *)my_calloc(pb_type->num_modes, sizeof(t_mode));
Cur = FindFirstElement(Parent, "mode", TRUE);
while (Cur != NULL)
{
if(0 == strcmp(Cur->name, "mode")) {
pb_type->modes[i].parent_pb_type = pb_type;
ProcessMode(Cur, &pb_type->modes[i]);
/* get next iteration */
Prev = Cur;
Cur = Cur->next;
i++;
FreeNode(Prev);
}
}
}
assert(i == pb_type->num_modes);
}
}
static void ProcessPb_TypePort(INOUTP ezxml_t Parent,
t_port * port) {
const char *Prop;
Prop = FindProperty(Parent, "name", TRUE);
port->name = my_strdup(Prop);
ezxml_set_attr(Parent, "name", NULL);
Prop = FindProperty(Parent, "port_class", FALSE);
port->port_class = my_strdup(Prop);
ezxml_set_attr(Parent, "port_class", NULL);
port->equivalent = GetBooleanProperty(Parent, "equivalent", FALSE, FALSE);
port->num_pins = GetIntProperty(Parent, "num_pins", TRUE, 0);
if(0 == strcmp(Parent->name, "input")) {
port->type = IN_PORT;
port->is_clock = FALSE;
} else if (0 == strcmp(Parent->name, "output")) {
port->type = OUT_PORT;
port->is_clock = FALSE;
} else if (0 == strcmp(Parent->name, "clock")) {
port->type = IN_PORT;
port->is_clock = TRUE;
} else {
printf(ERRTAG "[LINE %d] Unknown port type %s", Parent->line, Parent->name);
exit(1);
}
}
static void ProcessInterconnect(INOUTP ezxml_t Parent,
t_mode * mode) {
int num_interconnect = 0;
int i, j, k, index, num_annotations;
const char *Prop;
ezxml_t Cur, Prev;
ezxml_t Cur2, Prev2;
num_interconnect += CountChildren(Parent, "complete", 0);
num_interconnect += CountChildren(Parent, "direct", 0);
num_interconnect += CountChildren(Parent, "mux", 0);
mode->num_interconnect = num_interconnect;
mode->interconnect = (t_interconnect *)my_calloc(num_interconnect, sizeof(t_interconnect));
i = 0;
for(index = 0; index < 3; index++) {
if(index == 0) {
Cur = FindFirstElement(Parent, "complete", FALSE);
} else if (index == 1) {
Cur = FindFirstElement(Parent, "direct", FALSE);
} else {
Cur = FindFirstElement(Parent, "mux", FALSE);
}
while (Cur != NULL)
{
if(0 == strcmp(Cur->name, "complete")) {
mode->interconnect[i].type = COMPLETE_INTERC;
} else if(0 == strcmp(Cur->name, "direct")) {
mode->interconnect[i].type = DIRECT_INTERC;
} else {
assert(0 == strcmp(Cur->name, "mux"));
mode->interconnect[i].type = MUX_INTERC;
}
mode->interconnect[i].parent_mode_index = mode->index;
Prop = FindProperty(Cur, "input", TRUE);
mode->interconnect[i].input_string = my_strdup(Prop);
ezxml_set_attr(Cur, "input", NULL);
Prop = FindProperty(Cur, "output", TRUE);
mode->interconnect[i].output_string = my_strdup(Prop);
ezxml_set_attr(Cur, "output", NULL);
Prop = FindProperty(Cur, "name", TRUE);
mode->interconnect[i].name = my_strdup(Prop);
ezxml_set_attr(Cur, "name", NULL);
/* Process delay and capacitance annotations */
num_annotations = 0;
num_annotations += CountChildren(Cur, "delay_constant", 0);
num_annotations += CountChildren(Cur, "delay_matrix", 0);
num_annotations += CountChildren(Cur, "C_constant", 0);
num_annotations += CountChildren(Cur, "C_matrix", 0);
mode->interconnect[i].annotations = (t_pin_to_pin_annotation *)my_calloc(num_annotations, sizeof(t_pin_to_pin_annotation));
mode->interconnect[i].num_annotations = num_annotations;
k = 0;
Cur2 = NULL;
for(j = 0; j < 4; j++) {
if(j == 0) {
Cur2 = FindFirstElement(Cur, "delay_constant", FALSE);
} else if (j == 1) {
Cur2 = FindFirstElement(Cur, "delay_matrix", FALSE);
} else if (j == 2) {
Cur2 = FindFirstElement(Cur, "C_constant", FALSE);
} else if (j == 3) {
Cur2 = FindFirstElement(Cur, "C_matrix", FALSE);
}
while (Cur2 != NULL)
{
ProcessPinToPinAnnotations(Cur2, &(mode->interconnect[i].annotations[k]));
/* get next iteration */
Prev2 = Cur2;
Cur2 = Cur2->next;
k++;
FreeNode(Prev2);
}
}
assert(k == num_annotations);
/* get next iteration */
Prev = Cur;
Cur = Cur->next;
FreeNode(Prev);
i++;
}
}
assert(i == num_interconnect);
}
static void ProcessMode(INOUTP ezxml_t Parent,
t_mode * mode) {
int i;
const char *Prop;
ezxml_t Cur, Prev;
if(0 == strcmp(Parent->name, "pb_type")) {
/* implied mode */
mode->name = my_strdup(mode->parent_pb_type->name);
} else {
Prop = FindProperty(Parent, "name", TRUE);
mode->name = my_strdup(Prop);
ezxml_set_attr(Parent, "name", NULL);
}
mode->num_pb_type_children = CountChildren(Parent, "pb_type", 1);
mode->pb_type_children = (s_pb_type *)my_calloc(mode->num_pb_type_children, sizeof(t_pb_type));
i = 0;
Cur = FindFirstElement(Parent, "pb_type", TRUE);
while (Cur != NULL)
{
if(0 == strcmp(Cur->name, "pb_type")) {
ProcessPb_Type(Cur, &mode->pb_type_children[i], mode);
/* get next iteration */
Prev = Cur;
Cur = Cur->next;
i++;
FreeNode(Prev);
}
}
Cur = FindElement(Parent, "interconnect", TRUE);
ProcessInterconnect(Cur, mode);
FreeNode(Cur);
}
/* Takes in the node ptr for the 'fc_in' and 'fc_out' elements and initializes
* the appropriate fields of type. Unlinks the contents of the nodes. */
static void
Process_Fc(ezxml_t Fc_in_node, ezxml_t Fc_out_node, t_type_descriptor * Type)
{
enum Fc_type Type_in;
enum Fc_type Type_out;
ParseFc(Fc_in_node, &Type_in, &Type->Fc_in);
ParseFc(Fc_out_node, &Type_out, &Type->Fc_out);
if(FC_FULL == Type_in)
{
printf(ERRTAG "[LINE %d] 'full' Fc type isn't allowed for Fc_in.\n", Fc_in_node->line);
exit(1);
}
Type->is_Fc_out_full_flex = FALSE;
Type->is_Fc_frac = FALSE;
if(FC_FULL == Type_out)
{
Type->is_Fc_out_full_flex = TRUE;
}
else if(Type_in != Type_out)
{
printf(ERRTAG
"[LINE %d] Fc_in and Fc_out must have same type unless Fc_out has type 'full'.\n", Fc_in_node->line);
exit(1);
}
if(FC_FRAC == Type_in)
{
Type->is_Fc_frac = TRUE;
}
}
/* Thie processes attributes of the 'type' tag and then unlinks them */
static void
ProcessComplexBlockProps(ezxml_t Node, t_type_descriptor * Type)
{
const char *Prop;
/* Load type name */
Prop = FindProperty(Node, "name", TRUE);
Type->name = my_strdup(Prop);
ezxml_set_attr(Node, "name", NULL);
/* Load properties */
Type->capacity = GetIntProperty(Node, "capacity", FALSE, 1); /* TODO: Any block with capacity > 1 that is not I/O has not been tested, must test */
Type->height = GetIntProperty(Node, "height", FALSE, 1);
Type->area = GetFloatProperty(Node, "area", FALSE, UNDEFINED);
if(atof(Prop) < 0) {
printf("[LINE %d] Area for type %s must be non-negative\n", Node->line, Type->name);
exit(1);
}
}
/* Takes in node pointing to <models> and loads all the
* child type objects. Unlinks the entire <models> node
* when complete. */
static void
ProcessModels(INOUTP ezxml_t Node, OUTP struct s_arch *arch)
{
const char *Prop;
ezxml_t child;
ezxml_t p;
ezxml_t junk;
ezxml_t junkp;
t_model *temp;
t_model_ports *tp;
int index;
index = NUM_MODELS_IN_LIBRARY;
arch->models = NULL;
child = ezxml_child(Node, "model");
while (child != NULL)
{
temp = (t_model*)my_calloc(1, sizeof(t_model));
temp->used = 0;
///fbmao revised
temp->instances = NULL;
temp->inputs = temp->outputs = (t_model_ports *)(temp->instances); //// = NULL;
Prop = FindProperty(child, "name", TRUE);
temp->name = my_strdup(Prop);
ezxml_set_attr(child, "name", NULL);
temp->pb_types = NULL;
temp->index = index;
index++;
/* Process the inputs */
p = ezxml_child(child, "input_ports");
junkp = p;
if (p == NULL)
printf(ERRTAG "Required input ports not found for element '%s'.\n", temp->name);
p = ezxml_child(p, "port");
if (p != NULL)
{
while (p != NULL)
{
tp = (t_model_ports*)my_calloc(1, sizeof(t_model_ports));
Prop = FindProperty(p, "name", TRUE);
tp->name = my_strdup(Prop);
ezxml_set_attr(p, "name", NULL);
tp->size = -1; /* determined later by pb_types */
tp->min_size = -1; /* determined later by pb_types */
tp->next = temp->inputs;
tp->dir = IN_PORT;
tp->is_clock = FALSE;
Prop = FindProperty(p, "is_clock", FALSE);
if(Prop && my_atoi(Prop) != 0) {
tp->is_clock = TRUE;
}
ezxml_set_attr(p, "is_clock", NULL);
temp->inputs = tp;
junk = p;
p = ezxml_next(p);
FreeNode(junk);
}
}
else /* No input ports? */
{
printf(ERRTAG "Required input ports not found for element '%s'.\n", temp->name);
}
FreeNode(junkp);
/* Process the outputs */
p = ezxml_child(child, "output_ports");
junkp = p;
if (p == NULL)
printf(ERRTAG "Required output ports not found for element '%s'.\n", temp->name);
p = ezxml_child(p, "port");
if (p != NULL)
{
while (p != NULL)
{
tp = (t_model_ports*)my_calloc(1, sizeof(t_model_ports));
Prop = FindProperty(p, "name", TRUE);
tp->name = my_strdup(Prop);
ezxml_set_attr(p, "name", NULL);
tp->size = -1; /* determined later by pb_types */
tp->min_size = -1; /* determined later by pb_types */
tp->next = temp->outputs;
tp->dir = OUT_PORT;
temp->outputs = tp;
junk = p;
p = ezxml_next(p);
FreeNode(junk);
}
}
else /* No output ports? */
{
printf(ERRTAG "Required output ports not found for element '%s'.\n", temp->name);
}
FreeNode(junkp);
/* Find the next model */
temp->next = arch->models;
arch->models = temp;
junk = child;
child = ezxml_next(child);
FreeNode(junk);
}
return;
}
/* Takes in node pointing to <layout> and loads all the
* child type objects. Unlinks the entire <layout> node
* when complete. */
static void
ProcessLayout(INOUTP ezxml_t Node, OUTP struct s_arch *arch)
{
const char *Prop;
arch->clb_grid.IsAuto = TRUE;
/* Load width and height if applicable */
Prop = FindProperty(Node, "width", FALSE);
if(Prop != NULL)
{
arch->clb_grid.IsAuto = FALSE;
arch->clb_grid.W = my_atoi(Prop);
ezxml_set_attr(Node, "width", NULL);
arch->clb_grid.H = GetIntProperty(Node, "height", TRUE, UNDEFINED);
}
/* Load aspect ratio if applicable */
Prop = FindProperty(Node, "auto", arch->clb_grid.IsAuto);
if(Prop != NULL)
{
if(arch->clb_grid.IsAuto == FALSE)
{
printf(ERRTAG
"Auto-sizing, width and height cannot be specified\n");
}
arch->clb_grid.Aspect = atof(Prop);
ezxml_set_attr(Node, "auto", NULL);
if(arch->clb_grid.Aspect <= 0)
{
printf(ERRTAG
"Grid aspect ratio is less than or equal to zero %g\n", arch->clb_grid.Aspect);
}
}
}
/* Takes in node pointing to <device> and loads all the
* child type objects. Unlinks the entire <device> node
* when complete. */
static void
ProcessDevice(INOUTP ezxml_t Node, OUTP struct s_arch *arch,
INP boolean timing_enabled)
{
const char *Prop;
ezxml_t Cur;
Cur = FindElement(Node, "sizing", TRUE);
arch->R_minW_nmos = GetFloatProperty(Cur, "R_minW_nmos", timing_enabled, 0);
arch->R_minW_pmos = GetFloatProperty(Cur, "R_minW_pmos", timing_enabled, 0);
arch->ipin_mux_trans_size = GetFloatProperty(Cur, "ipin_mux_trans_size", FALSE, 0);
FreeNode(Cur);
Cur = FindElement(Node, "timing", timing_enabled);
if(Cur != NULL)
{
arch->C_ipin_cblock = GetFloatProperty(Cur, "C_ipin_cblock", FALSE, 0);
arch->T_ipin_cblock = GetFloatProperty(Cur, "T_ipin_cblock", FALSE, 0);
FreeNode(Cur);
}
Cur = FindElement(Node, "area", TRUE);
arch->grid_logic_tile_area = GetFloatProperty(Cur, "grid_logic_tile_area", FALSE, 0);
FreeNode(Cur);
Cur = FindElement(Node, "chan_width_distr", FALSE);
if(Cur != NULL)
{
ProcessChanWidthDistr(Cur, arch);
FreeNode(Cur);
}
Cur = FindElement(Node, "switch_block", TRUE);
Prop = FindProperty(Cur, "type", TRUE);
if(strcmp(Prop, "wilton") == 0)
{
arch->SBType = WILTON;
}
else if(strcmp(Prop, "universal") == 0)
{
arch->SBType = UNIVERSAL;
}
else if(strcmp(Prop, "subset") == 0)
{
arch->SBType = SUBSET;
}
else
{
printf(ERRTAG "[LINE %d] Unknown property %s for switch block type x\n", Cur->line,
Prop);
exit(1);
}
ezxml_set_attr(Cur, "type", NULL);
arch->Fs = GetIntProperty(Cur, "fs", TRUE, 3);
FreeNode(Cur);
}
/* Takes in node pointing to <chan_width_distr> and loads all the
* child type objects. Unlinks the entire <chan_width_distr> node
* when complete. */
static void
ProcessChanWidthDistr(INOUTP ezxml_t Node, OUTP struct s_arch *arch)
{
ezxml_t Cur;
Cur = FindElement(Node, "io", TRUE);
arch->Chans.chan_width_io = GetFloatProperty(Cur, "width", TRUE, UNDEFINED);
FreeNode(Cur);
Cur = FindElement(Node, "x", TRUE);
ProcessChanWidthDistrDir(Cur, &arch->Chans.chan_x_dist);
FreeNode(Cur);
Cur = FindElement(Node, "y", TRUE);
ProcessChanWidthDistrDir(Cur, &arch->Chans.chan_y_dist);
FreeNode(Cur);
}
/* Takes in node within <chan_width_distr> and loads all the
* child type objects. Unlinks the entire node when complete. */
static void
ProcessChanWidthDistrDir(INOUTP ezxml_t Node, OUTP t_chan * chan)
{
const char *Prop;
boolean hasXpeak, hasWidth, hasDc;
hasXpeak = hasWidth = hasDc = FALSE;
Prop = FindProperty(Node, "distr", TRUE);
if(strcmp(Prop, "uniform") == 0)
{
chan->type = UNIFORM;
}
else if(strcmp(Prop, "gaussian") == 0)
{
chan->type = GAUSSIAN;
hasXpeak = hasWidth = hasDc = TRUE;
}
else if(strcmp(Prop, "pulse") == 0)
{
chan->type = PULSE;
hasXpeak = hasWidth = hasDc = TRUE;
}
else if(strcmp(Prop, "delta") == 0)
{
hasXpeak = hasDc = TRUE;
chan->type = DELTA;
}
else
{
printf(ERRTAG "[LINE %d] Unknown property %s for chan_width_distr x\n", Node->line,
Prop);
exit(1);
}
ezxml_set_attr(Node, "distr", NULL);
chan->peak = GetFloatProperty(Node, "peak", TRUE, UNDEFINED);
chan->width = GetFloatProperty(Node, "width", hasWidth, 0);
chan->xpeak = GetFloatProperty(Node, "xpeak", hasXpeak, 0);
chan->dc = GetFloatProperty(Node, "dc", hasDc, 0);
}
static void
SetupEmptyType()
{
t_type_descriptor * type;
type = &type_descriptors[EMPTY_TYPE->index];
type->name = "<EMPTY>";
type->num_pins = 0;
type->height = 1;
type->capacity = 0;
type->num_drivers = 0;
type->num_receivers = 0;
type->pinloc = NULL;
type->num_class = 0;
type->class_inf = NULL;
type->pin_class = NULL;
type->is_global_pin = NULL;
type->is_Fc_frac = TRUE;
type->is_Fc_out_full_flex = FALSE;
type->Fc_in = 0;
type->Fc_out = 0;
type->pb_type = NULL;
type->area = UNDEFINED;
/* Used as lost area filler, no definition */
type->grid_loc_def = NULL;
type->num_grid_loc_def = 0;
}
static void alloc_and_load_default_child_for_pb_type(INOUTP t_pb_type *pb_type, char *new_name, t_pb_type *copy) {
int i, j;
char *dot;
assert(pb_type->blif_model != NULL);
copy->name = my_strdup(new_name);
copy->blif_model = my_strdup(pb_type->blif_model);
copy->class_type = pb_type->class_type;
copy->depth = pb_type->depth;
copy->model = pb_type->model;
copy->models_contained = NULL;
copy->modes = NULL;
copy->num_modes = 0;
copy->num_clock_pins = pb_type->num_clock_pins;
copy->num_input_pins = pb_type->num_input_pins;
copy->num_output_pins = pb_type->num_output_pins;
copy->num_pb = 1;
copy->num_ports = pb_type->num_ports;
copy->ports = (t_port *)my_calloc(pb_type->num_ports, sizeof(t_port));
for(i = 0; i < pb_type->num_ports; i++) {
copy->ports[i].is_clock = pb_type->ports[i].is_clock;
copy->ports[i].model_port = pb_type->ports[i].model_port;
copy->ports[i].type = pb_type->ports[i].type;
copy->ports[i].num_pins = pb_type->ports[i].num_pins;
copy->ports[i].parent_pb_type = copy;
copy->ports[i].name = my_strdup(pb_type->ports[i].name);
copy->ports[i].port_class = my_strdup(pb_type->ports[i].port_class);
}
copy->max_internal_delay = pb_type->max_internal_delay;
copy->annotations = (t_pin_to_pin_annotation *)my_calloc(pb_type->num_annotations, sizeof(t_pin_to_pin_annotation));
copy->num_annotations = pb_type->num_annotations;
for(i = 0; i < copy->num_annotations; i++) {
copy->annotations[i].clock = my_strdup(pb_type->annotations[i].clock);
dot = strstr(pb_type->annotations[i].input_pins, ".");
copy->annotations[i].input_pins = (char *)my_malloc(sizeof(char)* (strlen(new_name) + strlen(dot) + 1));
copy->annotations[i].input_pins[0] = '\0';
strcat(copy->annotations[i].input_pins, new_name);
strcat(copy->annotations[i].input_pins, dot);
if(pb_type->annotations[i].output_pins != NULL) {
dot = strstr(pb_type->annotations[i].output_pins, ".");
copy->annotations[i].output_pins = (char *)my_malloc(sizeof(char)* (strlen(new_name) + strlen(dot) + 1));
copy->annotations[i].output_pins[0] = '\0';
strcat(copy->annotations[i].output_pins, new_name);
strcat(copy->annotations[i].output_pins, dot);
} else {
copy->annotations[i].output_pins = NULL;
}
copy->annotations[i].format = pb_type->annotations[i].format;
copy->annotations[i].type = pb_type->annotations[i].type;
copy->annotations[i].num_value_prop_pairs = pb_type->annotations[i].num_value_prop_pairs;
copy->annotations[i].prop = (int *)my_malloc(sizeof(int)* pb_type->annotations[i].num_value_prop_pairs);
copy->annotations[i].value = (char **)my_malloc(sizeof(char *)* pb_type->annotations[i].num_value_prop_pairs);
for(j = 0; j < pb_type->annotations[i].num_value_prop_pairs; j++) {
copy->annotations[i].prop[j] = pb_type->annotations[i].prop[j];
copy->annotations[i].value[j] = my_strdup(pb_type->annotations[i].value[j]);
}
}
}
/* populate special lut class */
void ProcessLutClass(INOUTP t_pb_type *lut_pb_type) {
char *default_name;
t_port *in_port;
t_port *out_port;
int i, j;
if(strcmp(lut_pb_type->name, "lut") != 0) {
default_name = my_strdup("lut");
} else {
default_name = my_strdup("lut_child");
}
lut_pb_type->num_modes = 2;
lut_pb_type->modes = (t_mode *)my_calloc(lut_pb_type->num_modes, sizeof(t_mode));
/* First mode, route_through */
lut_pb_type->modes[0].name = my_strdup(lut_pb_type->name);
lut_pb_type->modes[0].parent_pb_type = lut_pb_type;
lut_pb_type->modes[0].num_pb_type_children = 0;
/* Process interconnect */
/* TODO: add timing annotations to route-through */
assert(lut_pb_type->num_ports == 2);
if(strcmp(lut_pb_type->ports[0].port_class, "lut_in") == 0) {
assert(strcmp(lut_pb_type->ports[1].port_class, "lut_out") == 0);
in_port = &lut_pb_type->ports[0];
out_port = &lut_pb_type->ports[1];
} else {
assert(strcmp(lut_pb_type->ports[0].port_class, "lut_out") == 0);
assert(strcmp(lut_pb_type->ports[1].port_class, "lut_in") == 0);
out_port = &lut_pb_type->ports[0];
in_port = &lut_pb_type->ports[1];
}
lut_pb_type->modes[0].num_interconnect = 1;
lut_pb_type->modes[0].interconnect = (t_interconnect *)my_calloc(1, sizeof(t_interconnect));
lut_pb_type->modes[0].interconnect[0].name = (char *)my_calloc(
strlen(lut_pb_type->name) + 10,
sizeof(char));
sprintf(lut_pb_type->modes[0].interconnect[0].name, "complete:%s", lut_pb_type->name);
lut_pb_type->modes[0].interconnect[0].type = COMPLETE_INTERC;
lut_pb_type->modes[0].interconnect[0].input_string = (char *)my_calloc(
strlen(lut_pb_type->name) +
strlen(in_port->name) + 2,
sizeof(char));
sprintf(lut_pb_type->modes[0].interconnect[0].input_string, "%s.%s",
lut_pb_type->name, in_port->name);
lut_pb_type->modes[0].interconnect[0].output_string = (char *)my_calloc(
strlen(lut_pb_type->name) +
strlen(out_port->name) + 2,
sizeof(char));
sprintf(lut_pb_type->modes[0].interconnect[0].output_string, "%s.%s",
lut_pb_type->name, out_port->name);
/* Second mode, LUT */
lut_pb_type->modes[1].name = my_strdup(lut_pb_type->name);
lut_pb_type->modes[1].parent_pb_type = lut_pb_type;
lut_pb_type->modes[1].num_pb_type_children = 1;
lut_pb_type->modes[1].pb_type_children = (s_pb_type *)my_calloc(1, sizeof(t_pb_type));
alloc_and_load_default_child_for_pb_type(lut_pb_type, default_name, lut_pb_type->modes[1].pb_type_children);
/* moved annotations to child so delete old annotations */
for(i = 0; i < lut_pb_type->num_annotations; i++) {
for(j = 0; j < lut_pb_type->annotations[i].num_value_prop_pairs; j++) {
free(lut_pb_type->annotations[i].value[j]);
}
free(lut_pb_type->annotations[i].value);
free(lut_pb_type->annotations[i].prop);
if(lut_pb_type->annotations[i].input_pins) {
free(lut_pb_type->annotations[i].input_pins);
}
if(lut_pb_type->annotations[i].output_pins) {
free(lut_pb_type->annotations[i].output_pins);
}
if(lut_pb_type->annotations[i].clock) {
free(lut_pb_type->annotations[i].clock);
}
}
lut_pb_type->num_annotations = 0;
free(lut_pb_type->annotations);
lut_pb_type->annotations = NULL;
lut_pb_type->modes[1].pb_type_children[0].depth = lut_pb_type->depth + 1;
lut_pb_type->modes[1].pb_type_children[0].parent_mode = &lut_pb_type->modes[1];
/* Process interconnect */
lut_pb_type->modes[1].num_interconnect = 2;
lut_pb_type->modes[1].interconnect = (t_interconnect *)my_calloc(2, sizeof(t_interconnect));
lut_pb_type->modes[1].interconnect[0].name = (char *)my_calloc(
strlen(lut_pb_type->name) + 10,
sizeof(char));
sprintf(lut_pb_type->modes[1].interconnect[0].name, "complete:%s", lut_pb_type->name);
lut_pb_type->modes[1].interconnect[0].type = COMPLETE_INTERC;
lut_pb_type->modes[1].interconnect[0].input_string = (char *)my_calloc(
strlen(lut_pb_type->name) +
strlen(in_port->name) + 2,
sizeof(char));
sprintf(lut_pb_type->modes[1].interconnect[0].input_string, "%s.%s",
lut_pb_type->name, in_port->name);
lut_pb_type->modes[1].interconnect[0].output_string = (char *)my_calloc(
strlen(default_name) +
strlen(in_port->name) + 2,
sizeof(char));
sprintf(lut_pb_type->modes[1].interconnect[0].output_string, "%s.%s",
default_name, in_port->name);
lut_pb_type->modes[1].interconnect[1].name = (char *)my_calloc(
strlen(lut_pb_type->name) + 11,
sizeof(char));
sprintf(lut_pb_type->modes[1].interconnect[1].name, "complete2:%s", lut_pb_type->name);
lut_pb_type->modes[1].interconnect[1].type = COMPLETE_INTERC;
lut_pb_type->modes[1].interconnect[1].input_string = (char *)my_calloc(
strlen(default_name) +
strlen(lut_pb_type->name) +
strlen(in_port->name) +
strlen(out_port->name) + 4,
sizeof(char));
sprintf(lut_pb_type->modes[1].interconnect[1].input_string, "%s.%s %s.%s", default_name, out_port->name,
lut_pb_type->name, in_port->name);
lut_pb_type->modes[1].interconnect[1].output_string = (char *)my_calloc(
strlen(lut_pb_type->name) +
strlen(out_port->name) +
strlen(in_port->name) + 2,
sizeof(char));
sprintf(lut_pb_type->modes[1].interconnect[1].output_string, "%s.%s",
lut_pb_type->name, out_port->name);
free(default_name);
free(lut_pb_type->blif_model);
lut_pb_type->blif_model = NULL;
lut_pb_type->model = NULL;
}
/* populate special memory class */
static void ProcessMemoryClass(INOUTP t_pb_type *mem_pb_type) {
char *default_name;
char *input_name, *input_port_name, *output_name, *output_port_name;
int i, j, i_inter, num_pb;
if(strcmp(mem_pb_type->name, "memory_slice") != 0) {
default_name = my_strdup("memory_slice");
} else {
default_name = my_strdup("memory_slice_1bit");
}
mem_pb_type->modes = (t_mode *)my_calloc(1, sizeof(t_mode));
mem_pb_type->modes[0].name = my_strdup(default_name);
mem_pb_type->modes[0].parent_pb_type = mem_pb_type;
num_pb = OPEN;
for(i = 0; i < mem_pb_type->num_ports; i++) {
if(mem_pb_type->ports[i].port_class != NULL &&
strstr(mem_pb_type->ports[i].port_class, "data") == mem_pb_type->ports[i].port_class) {
if(num_pb == OPEN) {
num_pb = mem_pb_type->ports[i].num_pins;
} else if (num_pb != mem_pb_type->ports[i].num_pins) {
printf(ERRTAG "memory %s has inconsistent number of data bits %d and %d\n", mem_pb_type->name,
num_pb, mem_pb_type->ports[i].num_pins);
exit(1);
}
}
}
mem_pb_type->modes[0].num_pb_type_children = 1;
mem_pb_type->modes[0].pb_type_children = (s_pb_type *)my_calloc(1, sizeof(t_pb_type));
alloc_and_load_default_child_for_pb_type(mem_pb_type, default_name, &mem_pb_type->modes[0].pb_type_children[0]);
mem_pb_type->modes[0].pb_type_children[0].depth = mem_pb_type->depth + 1;
mem_pb_type->modes[0].pb_type_children[0].parent_mode = &mem_pb_type->modes[0];
mem_pb_type->modes[0].pb_type_children[0].num_pb = num_pb;
mem_pb_type->num_modes = 1;
free(mem_pb_type->blif_model);
mem_pb_type->blif_model = NULL;
mem_pb_type->model = NULL;
mem_pb_type->modes[0].num_interconnect = mem_pb_type->num_ports * num_pb;
mem_pb_type->modes[0].interconnect = (t_interconnect *)my_calloc(mem_pb_type->modes[0].num_interconnect, sizeof(t_interconnect));
/* Process interconnect */
i_inter = 0;
for(i = 0; i < mem_pb_type->num_ports; i++) {
mem_pb_type->modes[0].interconnect[i_inter].type = DIRECT_INTERC;
input_port_name = mem_pb_type->ports[i].name;
output_port_name = mem_pb_type->ports[i].name;
if(mem_pb_type->ports[i].type == IN_PORT) {
input_name = mem_pb_type->name;
output_name = default_name;
} else {
input_name = default_name;
output_name = mem_pb_type->name;
}
if(mem_pb_type->ports[i].port_class != NULL &&
strstr(mem_pb_type->ports[i].port_class, "data") == mem_pb_type->ports[i].port_class) {
mem_pb_type->modes[0].interconnect[i_inter].name = (char *)my_calloc(i_inter / 10 + 8, sizeof(char));
sprintf(mem_pb_type->modes[0].interconnect[i_inter].name, "direct%d", i_inter);
if(mem_pb_type->ports[i].type == IN_PORT) {
/* force data pins to be one bit wide and update stats */
mem_pb_type->modes[0].pb_type_children[0].ports[i].num_pins = 1;
mem_pb_type->modes[0].pb_type_children[0].num_input_pins -= (mem_pb_type->ports[i].num_pins - 1);
mem_pb_type->modes[0].interconnect[i_inter].input_string = (char *)my_calloc(
strlen(input_name) +
strlen(input_port_name) + 2,
sizeof(char));
sprintf(mem_pb_type->modes[0].interconnect[i_inter].input_string, "%s.%s",
input_name, input_port_name);
mem_pb_type->modes[0].interconnect[i_inter].output_string = (char *)my_calloc(
strlen(output_name) +
strlen(output_port_name) + 2*(6 + num_pb/10),
sizeof(char));
sprintf(mem_pb_type->modes[0].interconnect[i_inter].output_string, "%s[%d:0].%s",
output_name, num_pb - 1, output_port_name);
} else {
/* force data pins to be one bit wide and update stats */
mem_pb_type->modes[0].pb_type_children[0].ports[i].num_pins = 1;
mem_pb_type->modes[0].pb_type_children[0].num_output_pins -= (mem_pb_type->ports[i].num_pins - 1);
mem_pb_type->modes[0].interconnect[i_inter].input_string = (char *)my_calloc(
strlen(input_name) +
strlen(input_port_name) + 2*(6 + num_pb/10),
sizeof(char));
sprintf(mem_pb_type->modes[0].interconnect[i_inter].input_string, "%s[%d:0].%s",
input_name, num_pb - 1, input_port_name);
mem_pb_type->modes[0].interconnect[i_inter].output_string = (char *)my_calloc(
strlen(output_name) +
strlen(output_port_name) + 2,
sizeof(char));
sprintf(mem_pb_type->modes[0].interconnect[i_inter].output_string, "%s.%s",
output_name, output_port_name);
}
i_inter++;
} else {
for(j = 0; j < num_pb; j++) {
/* Anything that is not data must be an input */
mem_pb_type->modes[0].interconnect[i_inter].name = (char *)my_calloc(i_inter / 10 + j / 10 + 10, sizeof(char));
sprintf(mem_pb_type->modes[0].interconnect[i_inter].name, "direct%d_%d", i_inter, j);
if(mem_pb_type->ports[i].type == IN_PORT) {
mem_pb_type->modes[0].interconnect[i_inter].type = DIRECT_INTERC;
mem_pb_type->modes[0].interconnect[i_inter].input_string = (char *)my_calloc(
strlen(input_name) +
strlen(input_port_name) + 2,
sizeof(char));
sprintf(mem_pb_type->modes[0].interconnect[i_inter].input_string, "%s.%s",
input_name, input_port_name);
mem_pb_type->modes[0].interconnect[i_inter].output_string = (char *)my_calloc(
strlen(output_name) +
strlen(output_port_name) + 2*(6 + num_pb/10),
sizeof(char));
sprintf(mem_pb_type->modes[0].interconnect[i_inter].output_string, "%s[%d:%d].%s",
output_name, j, j, output_port_name);
} else {
mem_pb_type->modes[0].interconnect[i_inter].type = DIRECT_INTERC;
mem_pb_type->modes[0].interconnect[i_inter].input_string = (char *)my_calloc(
strlen(input_name) +
strlen(input_port_name) + 2*(6 + num_pb/10),
sizeof(char));
sprintf(mem_pb_type->modes[0].interconnect[i_inter].input_string, "%s[%d:%d].%s",
input_name, j, j, input_port_name);
mem_pb_type->modes[0].interconnect[i_inter].output_string = (char *)my_calloc(
strlen(output_name) +
strlen(output_port_name) + 2,
sizeof(char));
sprintf(mem_pb_type->modes[0].interconnect[i_inter].output_string, "%s.%s",
output_name, output_port_name);
}
i_inter++;
}
}
}
mem_pb_type->modes[0].num_interconnect = i_inter;
free(default_name);
}
/* Takes in node pointing to <typelist> and loads all the
* child type objects. Unlinks the entire <typelist> node
* when complete. */
static void
ProcessComplexBlocks(INOUTP ezxml_t Node, OUTP t_type_descriptor ** Types,
OUTP int *NumTypes, boolean timing_enabled)
{
ezxml_t CurType, Prev;
ezxml_t Cur, Cur2;
t_type_descriptor * Type;
int i;
/* Alloc the type list. Need one additional t_type_desctiptors:
* 1: empty psuedo-type
*/
*NumTypes = CountChildren(Node, "pb_type", 1) + 1;
*Types = (t_type_descriptor *) //right bake
my_malloc(sizeof(t_type_descriptor) * (*NumTypes));
type_descriptors = *Types;
EMPTY_TYPE = &type_descriptors[EMPTY_TYPE_INDEX];
IO_TYPE = &type_descriptors[IO_TYPE_INDEX];
type_descriptors[EMPTY_TYPE_INDEX].index = EMPTY_TYPE_INDEX;
type_descriptors[IO_TYPE_INDEX].index = IO_TYPE_INDEX;
SetupEmptyType();
/* Process the types */
/* TODO: I should make this more flexible but release is soon and I don't have time so assert values for empty and io types*/
assert(EMPTY_TYPE_INDEX == 0);
assert(IO_TYPE_INDEX == 1);
i = 1; /* Skip over 'empty' type */
CurType = Node->child;
while(CurType)
{
CheckElement(CurType, "pb_type");
/* Alias to current type */
Type = &(*Types)[i];
/* Parses the properties fields of the type */
ProcessComplexBlockProps(CurType, Type);
/* Load pb_type info */
Type->pb_type = (s_pb_type *)my_malloc(sizeof(t_pb_type));
Type->pb_type->name = my_strdup(Type->name);
if(i == IO_TYPE_INDEX) {
if(strcmp(Type->name, "io") != 0) {
printf("First complex block must be named \"io\" and define the inputs and outputs for the FPGA");
exit(1);
}
}
ProcessPb_Type(CurType, Type->pb_type, NULL);
Type->num_pins = Type->capacity * (Type->pb_type->num_input_pins + Type->pb_type->num_output_pins + Type->pb_type->num_clock_pins);
Type->num_receivers = Type->capacity * Type->pb_type->num_input_pins;
Type->num_drivers = Type->capacity * Type->pb_type->num_output_pins;
/* Load Fc */
Cur = FindElement(CurType, "fc_in", TRUE);
Cur2 = FindElement(CurType, "fc_out", TRUE);
Process_Fc(Cur, Cur2, Type);
FreeNode(Cur);
FreeNode(Cur2);
/* Load pin names and classes and locations */
Cur = FindElement(CurType, "pinlocations", TRUE);
SetupPinLocationsAndPinClasses(Cur, Type);
FreeNode(Cur);
Cur = FindElement(CurType, "gridlocations", TRUE);
SetupGridLocations(Cur, Type);
FreeNode(Cur);
#if 0
Cur = FindElement(CurType, "timing", timing_enabled);
if(Cur)
{
SetupTypeTiming(Cur, Type);
FreeNode(Cur);
}
#endif
Type->index = i;
/* Type fully read */
++i;
/* Free this node and get its next sibling node */
Prev = CurType;
CurType = CurType->next;
FreeNode(Prev);
}
if(FILL_TYPE == NULL)
{
printf(ERRTAG "grid location type 'fill' must be specified.\n");
exit(1);
}
}
/* Loads the given architecture file. Currently only
* handles type information */
void
XmlReadArch(INP const char *ArchFile, INP int timing_flag,
OUTP struct s_arch *arch, OUTP t_type_descriptor ** Types,
OUTP int *NumTypes)
{
boolean timing_enabled = (boolean)timing_flag;
ezxml_t Cur, Next;
const char *Prop;
/* Parse the file */
Cur = ezxml_parse_file(ArchFile);
if(NULL == Cur)
{
printf(ERRTAG "Unable to load architecture file '%s'.\n",
ArchFile);
exit(1);
}
/* Root node should be architecture */
CheckElement(Cur, "architecture");
/* TODO: do version processing properly with string delimiting on the . */
Prop = FindProperty(Cur, "version", FALSE);
if(Prop != NULL)
{
if (atof(Prop) > atof(VPR_VERSION)) {
printf(WARNTAG "This architecture version is for VPR %f while your current VPR version is " VPR_VERSION ", compatability issues may arise\n",
atof(Prop));
}
ezxml_set_attr(Cur, "version", NULL);
}
/* Process models */
Next = FindElement(Cur, "models", TRUE);
ProcessModels(Next, arch);
FreeNode(Next);
CreateModelLibrary(arch);
/* Process layout */
Next = FindElement(Cur, "layout", TRUE);
ProcessLayout(Next, arch);
FreeNode(Next);
/* Process device */
Next = FindElement(Cur, "device", TRUE);
ProcessDevice(Next, arch, timing_enabled);
FreeNode(Next);
/* Process types */
Next = FindElement(Cur, "complexblocklist", TRUE);
ProcessComplexBlocks(Next, Types, NumTypes, timing_enabled);
FreeNode(Next);
/* Process switches */
Next = FindElement(Cur, "switchlist", TRUE);
ProcessSwitches(Next, &(arch->Switches), &(arch->num_switches),
timing_enabled);
FreeNode(Next);
/* Process segments. This depends on switches */
Next = FindElement(Cur, "segmentlist", TRUE);
ProcessSegments(Next, &(arch->Segments), &(arch->num_segments),
arch->Switches, arch->num_switches, timing_enabled);
FreeNode(Next);
SyncModelsPbTypes(arch, *Types, *NumTypes);
UpdateAndCheckModels(arch);
/* Release the full XML tree */
FreeNode(Cur);
}
static void
ProcessSegments(INOUTP ezxml_t Parent, OUTP struct s_segment_inf **Segs,
OUTP int *NumSegs, INP struct s_switch_inf *Switches,
INP int NumSwitches, INP boolean timing_enabled)
{
int i, j, length;
const char *tmp;
ezxml_t SubElem;
ezxml_t Node;
/* Count the number of segs and check they are in fact
* of segment elements. */
*NumSegs = CountChildren(Parent, "segment", 1);
/* Alloc segment list */
*Segs = NULL;
if(*NumSegs > 0)
{
*Segs =
(struct s_segment_inf *)my_malloc(*NumSegs *
sizeof(struct
s_segment_inf));
memset(*Segs, 0, (*NumSegs * sizeof(struct s_segment_inf)));
}
/* Load the segments. */
for(i = 0; i < *NumSegs; ++i)
{
Node = ezxml_child(Parent, "segment");
/* Get segment length */
length = 1; /* DEFAULT */
tmp = FindProperty(Node, "length", FALSE);
if(tmp)
{
if(strcmp(tmp, "longline") == 0)
{
(*Segs)[i].longline = TRUE;
}
else
{
length = my_atoi(tmp);
}
}
(*Segs)[i].length = length;
ezxml_set_attr(Node, "length", NULL);
/* Get the frequency */
(*Segs)[i].frequency = 1; /* DEFAULT */
tmp = FindProperty(Node, "freq", FALSE);
if(tmp)
{
(*Segs)[i].frequency = (int) (atof(tmp) * MAX_CHANNEL_WIDTH);
}
ezxml_set_attr(Node, "freq", NULL);
/* Get timing info */
(*Segs)[i].Rmetal = GetFloatProperty(Node, "Rmetal", timing_enabled, 0);
(*Segs)[i].Cmetal = GetFloatProperty(Node, "Cmetal", timing_enabled, 0);
/* Get the type */
tmp = FindProperty(Node, "type", TRUE);
if(0 == strcmp(tmp, "bidir"))
{
(*Segs)[i].directionality = BI_DIRECTIONAL;
}
else if(0 == strcmp(tmp, "unidir"))
{
(*Segs)[i].directionality = UNI_DIRECTIONAL;
}
else
{
printf(ERRTAG "[LINE %d] Invalid switch type '%s'.\n", Node->line, tmp);
exit(1);
}
ezxml_set_attr(Node, "type", NULL);
/* Get the wire and opin switches, or mux switch if unidir */
if(UNI_DIRECTIONAL == (*Segs)[i].directionality)
{
SubElem = FindElement(Node, "mux", TRUE);
tmp = FindProperty(SubElem, "name", TRUE);
/* Match names */
for(j = 0; j < NumSwitches; ++j)
{
if(0 == strcmp(tmp, Switches[j].name))
{
break; /* End loop so j is where we want it */
}
}
if(j >= NumSwitches)
{
printf(ERRTAG "[LINE %d] '%s' is not a valid mux name.\n", SubElem->line,
tmp);
exit(1);
}
ezxml_set_attr(SubElem, "name", NULL);
FreeNode(SubElem);
/* Unidir muxes must have the same switch
* for wire and opin fanin since there is
* really only the mux in unidir. */
(*Segs)[i].wire_switch = j;
(*Segs)[i].opin_switch = j;
}
else
{
assert(BI_DIRECTIONAL == (*Segs)[i].directionality);
SubElem = FindElement(Node, "wire_switch", TRUE);
tmp = FindProperty(SubElem, "name", TRUE);
/* Match names */
for(j = 0; j < NumSwitches; ++j)
{
if(0 == strcmp(tmp, Switches[j].name))
{
break; /* End loop so j is where we want it */
}
}
if(j >= NumSwitches)
{
printf(ERRTAG
"[LINE %d] '%s' is not a valid wire_switch name.\n", SubElem->line,
tmp);
exit(1);
}
(*Segs)[i].wire_switch = j;
ezxml_set_attr(SubElem, "name", NULL);
FreeNode(SubElem);
SubElem = FindElement(Node, "opin_switch", TRUE);
tmp = FindProperty(SubElem, "name", TRUE);
/* Match names */
for(j = 0; j < NumSwitches; ++j)
{
if(0 == strcmp(tmp, Switches[j].name))
{
break; /* End loop so j is where we want it */
}
}
if(j >= NumSwitches)
{
printf(ERRTAG
"[LINE %d] '%s' is not a valid opin_switch name.\n", SubElem->line,
tmp);
exit(1);
}
(*Segs)[i].opin_switch = j;
ezxml_set_attr(SubElem, "name", NULL);
FreeNode(SubElem);
}
/* Setup the CB list if they give one, otherwise use full */
(*Segs)[i].cb_len = length;
(*Segs)[i].cb = (boolean *) my_malloc(length * sizeof(boolean));
for(j = 0; j < length; ++j)
{
(*Segs)[i].cb[j] = TRUE;
}
SubElem = FindElement(Node, "cb", FALSE);
if(SubElem)
{
ProcessCB_SB(SubElem, (*Segs)[i].cb, length);
FreeNode(SubElem);
}
/* Setup the SB list if they give one, otherwise use full */
(*Segs)[i].sb_len = (length + 1);
(*Segs)[i].sb =
(boolean *) my_malloc((length + 1) * sizeof(boolean));
for(j = 0; j < (length + 1); ++j)
{
(*Segs)[i].sb[j] = TRUE;
}
SubElem = FindElement(Node, "sb", FALSE);
if(SubElem)
{
ProcessCB_SB(SubElem, (*Segs)[i].sb, (length + 1));
FreeNode(SubElem);
}
FreeNode(Node);
}
}
static void
ProcessCB_SB(INOUTP ezxml_t Node, INOUTP boolean * list, INP int len)
{
const char *tmp = NULL;
int i;
/* Check the type. We only support 'pattern' for now.
* Should add frac back eventually. */
tmp = FindProperty(Node, "type", TRUE);
if(0 == strcmp(tmp, "pattern"))
{
i = 0;
/* Get the content string */
tmp = Node->txt;
while(*tmp)
{
switch (*tmp)
{
case ' ':
break;
case 'T':
case '1':
if(i >= len)
{
printf(ERRTAG
"[LINE %d] CB or SB depopulation is too long. It "
"should be (length) symbols for CBs and (length+1) "
"symbols for SBs.\n", Node->line);
exit(1);
}
list[i] = TRUE;
++i;
break;
case 'F':
case '0':
if(i >= len)
{
printf(ERRTAG
"[LINE %d] CB or SB depopulation is too long. It "
"should be (length) symbols for CBs and (length+1) "
"symbols for SBs.\n", Node->line);
exit(1);
}
list[i] = FALSE;
++i;
break;
default:
printf(ERRTAG "[LINE %d] Invalid character %c in CB or "
"SB depopulation list.\n", Node->line,
*tmp);
exit(1);
}
++tmp;
}
if(i < len)
{
printf(ERRTAG "[LINE %d] CB or SB depopulation is too short. It "
"should be (length) symbols for CBs and (length+1) "
"symbols for SBs.\n", Node->line);
exit(1);
}
/* Free content string */
ezxml_set_txt(Node, "");
}
else
{
printf(ERRTAG "[LINE %d] '%s' is not a valid type for specifying "
"cb and sb depopulation.\n", Node->line, tmp);
exit(1);
}
ezxml_set_attr(Node, "type", NULL);
}
static void
ProcessSwitches(INOUTP ezxml_t Parent, OUTP struct s_switch_inf **Switches,
OUTP int *NumSwitches, INP boolean timing_enabled)
{
int i, j;
const char *type_name;
const char *switch_name;
boolean has_buf_size;
ezxml_t Node;
has_buf_size = FALSE;
/* Count the children and check they are switches */
*NumSwitches = CountChildren(Parent, "switch", 1);
/* Alloc switch list */
*Switches = NULL;
if(*NumSwitches > 0)
{
*Switches =
(struct s_switch_inf *)my_malloc(*NumSwitches *
sizeof(struct
s_switch_inf));
memset(*Switches, 0,
(*NumSwitches * sizeof(struct s_switch_inf)));
}
/* Load the switches. */
for(i = 0; i < *NumSwitches; ++i)
{
Node = ezxml_child(Parent, "switch");
switch_name = FindProperty(Node, "name", TRUE);
type_name = FindProperty(Node, "type", TRUE);
/* Check for switch name collisions */
for(j = 0; j < i; ++j)
{
if(0 == strcmp((*Switches)[j].name, switch_name))
{
printf(ERRTAG
"[LINE %d] Two switches with the same name '%s' were "
"found.\n", Node->line, switch_name);
exit(1);
}
}
(*Switches)[i].name = my_strdup(switch_name);
ezxml_set_attr(Node, "name", NULL);
/* Figure out the type of switch. */
if(0 == strcmp(type_name, "mux"))
{
(*Switches)[i].buffered = TRUE;
has_buf_size = TRUE;
}
else if(0 == strcmp(type_name, "pass_trans"))
{
(*Switches)[i].buffered = FALSE;
}
else if(0 == strcmp(type_name, "buffer"))
{
(*Switches)[i].buffered = TRUE;
}
else
{
printf(ERRTAG "[LINE %d] Invalid switch type '%s'.\n", Node->line, type_name);
exit(1);
}
ezxml_set_attr(Node, "type", NULL);
(*Switches)[i].R = GetFloatProperty(Node, "R", timing_enabled, 0);
(*Switches)[i].Cin = GetFloatProperty(Node, "Cin", timing_enabled, 0);
(*Switches)[i].Cout = GetFloatProperty(Node, "Cout", timing_enabled, 0);
(*Switches)[i].Tdel = GetFloatProperty(Node, "Tdel", timing_enabled, 0);
(*Switches)[i].buf_size = GetFloatProperty(Node, "buf_size", has_buf_size, 0);
(*Switches)[i].mux_trans_size = GetFloatProperty(Node, "mux_trans_size", FALSE, 1);
/* Remove the switch element from parse tree */
FreeNode(Node);
}
}
static void CreateModelLibrary(OUTP struct s_arch *arch) {
t_model* model_library;
model_library = (t_model *)my_calloc(4, sizeof(t_model));
model_library[0].name = my_strdup("input");
model_library[0].index = 0;
model_library[0].inputs = NULL;
model_library[0].instances = NULL;
model_library[0].next = &model_library[1];
model_library[0].outputs = (t_model_ports *)my_calloc(1, sizeof(t_model_ports));
model_library[0].outputs->dir = OUT_PORT;
model_library[0].outputs->name = my_strdup("inpad");
model_library[0].outputs->next = NULL;
model_library[0].outputs->size = 1;
model_library[0].outputs->min_size = 1;
model_library[0].outputs->index = 0;
model_library[0].outputs->is_clock = FALSE;
model_library[1].name = my_strdup("output");
model_library[1].index = 1;
model_library[1].inputs = (t_model_ports *)my_calloc(1, sizeof(t_model_ports));
model_library[1].inputs->dir = IN_PORT;
model_library[1].inputs->name = my_strdup("outpad");
model_library[1].inputs->next = NULL;
model_library[1].inputs->size = 1;
model_library[1].inputs->min_size = 1;
model_library[1].inputs->index = 0;
model_library[1].inputs->is_clock = FALSE;
model_library[1].instances = NULL;
model_library[1].next = &model_library[2];
model_library[1].outputs = NULL;
model_library[2].name = my_strdup("latch");
model_library[2].index = 2;
model_library[2].inputs = (t_model_ports *)my_calloc(2, sizeof(t_model_ports));
model_library[2].inputs[0].dir = IN_PORT;
model_library[2].inputs[0].name = my_strdup("D");
model_library[2].inputs[0].next = &model_library[2].inputs[1];
model_library[2].inputs[0].size = 1;
model_library[2].inputs[0].min_size = 1;
model_library[2].inputs[0].index = 0;
model_library[2].inputs[0].is_clock = FALSE;
model_library[2].inputs[1].dir = IN_PORT;
model_library[2].inputs[1].name = my_strdup("clk");
model_library[2].inputs[1].next = NULL;
model_library[2].inputs[1].size = 1;
model_library[2].inputs[1].min_size = 1;
model_library[2].inputs[1].index = 0;
model_library[2].inputs[1].is_clock = TRUE;
model_library[2].instances = NULL;
model_library[2].next = &model_library[3];
model_library[2].outputs = (t_model_ports *)my_calloc(1, sizeof(t_model_ports));
model_library[2].outputs->dir = OUT_PORT;
model_library[2].outputs->name = my_strdup("Q");
model_library[2].outputs->next = NULL;
model_library[2].outputs->size = 1;
model_library[2].outputs->min_size = 1;
model_library[2].outputs->index = 0;
model_library[2].outputs->is_clock = FALSE;
model_library[3].name = my_strdup("names");
model_library[3].index = 3;
model_library[3].inputs = (t_model_ports *)my_calloc(1, sizeof(t_model_ports));
model_library[3].inputs->dir = IN_PORT;
model_library[3].inputs->name = my_strdup("in");
model_library[3].inputs->next = NULL;
model_library[3].inputs->size = 1;
model_library[3].inputs->min_size = 1;
model_library[3].inputs->index = 0;
model_library[3].inputs->is_clock = FALSE;
model_library[3].instances = NULL;
model_library[3].next = NULL;
model_library[3].outputs = (t_model_ports *)my_calloc(1, sizeof(t_model_ports));
model_library[3].outputs->dir = OUT_PORT;
model_library[3].outputs->name = my_strdup("out");
model_library[3].outputs->next = NULL;
model_library[3].outputs->size = 1;
model_library[3].outputs->min_size = 1;
model_library[3].outputs->index = 0;
model_library[3].outputs->is_clock = FALSE;
arch->model_library = model_library;
}
static void SyncModelsPbTypes(INOUTP struct s_arch *arch, INP t_type_descriptor * Types, INP int NumTypes) {
int i;
for(i = 0; i < NumTypes; i++) {
if(Types[i].pb_type != NULL) {
SyncModelsPbTypes_rec(arch, Types[i].pb_type);
}
}
for(i = 0; i < NumTypes; i++) {
if(Types[i].pb_type != NULL) {
AddModelsToPbTypes_rec(Types[i].pb_type);
}
}
}
static void SyncModelsPbTypes_rec(INOUTP struct s_arch *arch, INOUTP t_pb_type * pb_type) {
int i, j, p;
t_model *model_match_prim, *cur_model;
t_model_ports *model_port;
struct s_linked_vptr *old;
char* blif_model_name;
boolean found;
if(pb_type->blif_model != NULL) {
/* get actual name of subckt */
if(strstr(pb_type->blif_model, ".subckt ") == pb_type->blif_model) {
blif_model_name = strchr(pb_type->blif_model, ' ');
} else {
blif_model_name = strchr(pb_type->blif_model, '.');
}
if(blif_model_name) {
blif_model_name++; /* get character after the '.' or ' ' */
} else {
printf("Unknown blif model %s in pb_type %s\n", pb_type->blif_model, pb_type->name);
}
/* There are two sets of models to consider, the standard library of models and the user defined models */
if( (strcmp(blif_model_name, "input") == 0) ||
(strcmp(blif_model_name, "output") == 0) ||
(strcmp(blif_model_name, "names") == 0) ||
(strcmp(blif_model_name, "latch") == 0) ) {
cur_model = arch->model_library;
} else {
cur_model = arch->models;
}
/* Determine the logical model to use */
found = FALSE;
model_match_prim = NULL;
while(cur_model && !found) {
/* blif model always starts with .subckt so need to skip first 8 characters */
if(strcmp(blif_model_name, cur_model->name) == 0) {
found = TRUE;
model_match_prim = cur_model;
}
cur_model = cur_model->next;
}
if(found != TRUE) {
printf(ERRTAG "No matching model for pb_type %s\n", pb_type->blif_model);
exit(1);
}
pb_type->model = model_match_prim;
old = model_match_prim->pb_types;
model_match_prim->pb_types = (struct s_linked_vptr*) my_malloc(sizeof(struct s_linked_vptr));
model_match_prim->pb_types->next = old;
model_match_prim->pb_types->data_vptr = pb_type;
for(p = 0; p < pb_type->num_ports; p++) {
found = FALSE;
/* TODO: Parse error checking - check if INPUT matches INPUT and OUTPUT matches OUTPUT (not yet done) */
model_port = model_match_prim->inputs;
while(model_port && !found) {
if(strcmp(model_port->name, pb_type->ports[p].name) == 0) {
if(model_port->size < pb_type->ports[p].num_pins) {
model_port->size = pb_type->ports[p].num_pins;
}
if(model_port->min_size > pb_type->ports[p].num_pins || model_port->min_size == -1) {
model_port->min_size = pb_type->ports[p].num_pins;
}
pb_type->ports[p].model_port = model_port;
assert(pb_type->ports[p].type == model_port->dir);
assert(pb_type->ports[p].is_clock == model_port->is_clock);
found = TRUE;
}
model_port = model_port->next;
}
model_port = model_match_prim->outputs;
while(model_port && !found) {
if(strcmp(model_port->name, pb_type->ports[p].name) == 0) {
if(model_port->size < pb_type->ports[p].num_pins) {
model_port->size = pb_type->ports[p].num_pins;
}
if(model_port->min_size > pb_type->ports[p].num_pins || model_port->min_size == -1) {
model_port->min_size = pb_type->ports[p].num_pins;
}
pb_type->ports[p].model_port = model_port;
assert(pb_type->ports[p].type == model_port->dir);
found = TRUE;
}
model_port = model_port->next;
}
if(found != TRUE) {
printf(ERRTAG "No matching model port for port %s in pb_type %s\n", pb_type->ports[p].name, pb_type->name);
exit(1);
}
}
} else {
for(i = 0; i < pb_type->num_modes; i++) {
for(j = 0; j < pb_type->modes[i].num_pb_type_children; j++) {
SyncModelsPbTypes_rec(arch, &(pb_type->modes[i].pb_type_children[j]));
}
}
}
}
static void AddModelsToPbTypes_rec(INOUTP t_pb_type *pb_type) {
int i, j;
struct s_linked_vptr *child, *curr;
/* Determine all logical models contained by pb_type */
if(pb_type->num_modes == 0) {
pb_type->models_contained = (s_linked_vptr *)my_malloc(sizeof(struct s_linked_vptr));
pb_type->models_contained->data_vptr = pb_type->model;
pb_type->models_contained->next = NULL;
} else {
pb_type->models_contained = NULL;
for(i = 0; i < pb_type->num_modes; i++) {
for(j = 0; j < pb_type->modes[i].num_pb_type_children; j++) {
AddModelsToPbTypes_rec(&pb_type->modes[i].pb_type_children[j]);
child = pb_type->modes[i].pb_type_children[j].models_contained;
/* find model in parent that matches with that in child, if not, add to parent */
while(child) {
curr = pb_type->models_contained;
while(curr) {
if(curr->data_vptr == child->data_vptr) {
break;
}
curr = curr->next;
}
if(curr == NULL) {
curr = (s_linked_vptr *)my_malloc(sizeof(struct s_linked_vptr));
curr->next = pb_type->models_contained;
curr->data_vptr = child->data_vptr;
pb_type->models_contained = curr;
}
child = child->next;
}
}
}
}
}
static void UpdateAndCheckModels(INOUTP struct s_arch *arch) {
t_model * cur_model;
t_model_ports *port;
int i, j;
cur_model = arch->models;
while(cur_model) {
if(cur_model->pb_types == NULL) {
printf("No pb_type found for model %s\n", cur_model->name);
exit(1);
}
port = cur_model->inputs;
i = 0;
j = 0;
while(port) {
if(port->is_clock) {
port->index = i;
i++;
} else {
port->index = j;
j++;
}
port = port->next;
}
port = cur_model->outputs;
i = 0;
while(port) {
port->index = i;
i++;
port = port->next;
}
cur_model = cur_model->next;
}
}
/* Output the data from architecture data so user can verify it
* was interpretted correctly. */
void
EchoArch(INP const char *EchoFile, INP const t_type_descriptor * Types,
INP int NumTypes, struct s_arch *arch)
{
int i, j;
FILE * Echo;
t_model * cur_model;
t_model_ports * model_port;
struct s_linked_vptr *cur_vptr;
Echo = my_fopen(EchoFile, "w", 0);
cur_model = NULL;
for( j = 0; j < 2; j++ ) {
if(j == 0) {
fprintf(Echo, "Printing user models \n");
cur_model = arch->models;
} else if(j == 1) {
fprintf(Echo, "Printing library models \n");
cur_model = arch->model_library;
}
while(cur_model) {
fprintf(Echo, "Model: \"%s\"\n", cur_model->name);
model_port = cur_model->inputs;
while(model_port) {
fprintf(Echo, "\tInput Ports: \"%s\" \"%d\" min_size=\"%d\"\n", model_port->name, model_port->size, model_port->min_size);
model_port = model_port->next;
}
model_port = cur_model->outputs;
while(model_port) {
fprintf(Echo, "\tOutput Ports: \"%s\" \"%d\" min_size=\"%d\"\n", model_port->name, model_port->size, model_port->min_size);
model_port = model_port->next;
}
cur_vptr = cur_model->pb_types;
i = 0;
while(cur_vptr != NULL) {
fprintf(Echo, "\tpb_type %d: \"%s\"\n", i, ((t_pb_type*)cur_vptr->data_vptr)->name);
cur_vptr = cur_vptr->next;
i++;
}
cur_model = cur_model->next;
}
}
for(i = 0; i < NumTypes; ++i)
{
fprintf(Echo, "Type: \"%s\"\n", Types[i].name);
fprintf(Echo, "\tcapacity: %d\n", Types[i].capacity);
fprintf(Echo, "\theight: %d\n", Types[i].height);
fprintf(Echo, "\tis_Fc_frac: %s\n",
(Types[i].is_Fc_frac ? "TRUE" : "FALSE"));
fprintf(Echo, "\tis_Fc_out_full_flex: %s\n",
(Types[i].is_Fc_out_full_flex ? "TRUE" : "FALSE"));
fprintf(Echo, "\tFc_in: %f\n", Types[i].Fc_in);
fprintf(Echo, "\tFc_out: %f\n", Types[i].Fc_out);
fprintf(Echo, "\tnum_drivers: %d\n", Types[i].num_drivers);
fprintf(Echo, "\tnum_receivers: %d\n", Types[i].num_receivers);
fprintf(Echo, "\tindex: %d\n", Types[i].index);
if(Types[i].pb_type) {
PrintPb_types_rec(Echo, Types[i].pb_type, 2);
}
fprintf(Echo, "\n");
}
fclose(Echo);
}
static void
PrintPb_types_rec(INP FILE * Echo, INP const t_pb_type * pb_type, int level)
{
int i, j, k;
char *tabs;
tabs = (char *)my_malloc((level + 1) * sizeof(char));
for(i = 0; i < level; i++) {
tabs[i] = '\t';
}
tabs[level] = '\0';
fprintf(Echo, "%spb_type name: %s\n", tabs, pb_type->name);
fprintf(Echo, "%s\tblif_model: %s\n", tabs, pb_type->blif_model);
fprintf(Echo, "%s\tclass_type: %d\n", tabs, pb_type->class_type);
fprintf(Echo, "%s\tnum_modes: %d\n", tabs, pb_type->num_modes);
fprintf(Echo, "%s\tnum_ports: %d\n", tabs, pb_type->num_ports);
for(i = 0; i < pb_type->num_ports; i++) {
fprintf(Echo, "%s\tport %s type %d num_pins %d\n", tabs,
pb_type->ports[i].name,
pb_type->ports[i].type,
pb_type->ports[i].num_pins);
}
for(i = 0; i < pb_type->num_modes; i++) {
fprintf(Echo, "%s\tmode %s:\n", tabs, pb_type->modes[i].name);
for(j = 0; j < pb_type->modes[i].num_pb_type_children; j++) {
PrintPb_types_rec(Echo, &pb_type->modes[i].pb_type_children[j], level + 2);
}
for(j = 0; j < pb_type->modes[i].num_interconnect; j++) {
fprintf(Echo, "%s\t\tinterconnect %d %s %s\n", tabs, pb_type->modes[i].interconnect[j].type,
pb_type->modes[i].interconnect[j].input_string,
pb_type->modes[i].interconnect[j].output_string);
for(k = 0; k < pb_type->modes[i].interconnect[j].num_annotations; k++) {
fprintf(Echo, "%s\t\t\tannotation %s %s %d: %s\n", tabs, pb_type->modes[i].interconnect[j].annotations[k].input_pins,
pb_type->modes[i].interconnect[j].annotations[k].output_pins, pb_type->modes[i].interconnect[j].annotations[k].format,
pb_type->modes[i].interconnect[j].annotations[k].value[0]);
}
}
}
free(tabs);
}
|
09091f54092c22922b7f586469325829da546149 | c84a1a57ba5e4956ea57a3bc045d0f05c60fb913 | /Hmwk/Assignment_6/Gaddis_8thEd_Chapter7_Probl5_MonkeyBusiness/main.cpp | 78d09178615f47bbe9c91a0e58b4bdcf2dd63598 | [] | no_license | bradleymckenzie/McKenzie-Bradley-CSC-5-40107 | 0330dd361cf0767e933bbae436f6629fdc99d7a7 | a2ad627c6bb80681cd6ffabb5492fc6467af267c | refs/heads/master | 2021-01-20T11:21:20.984305 | 2017-02-09T21:25:56 | 2017-02-09T21:25:56 | 78,146,344 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,263 | cpp | main.cpp | /*
File: main.cpp
Author: Bradley McKenzie
Created on February 3, 2017
Purpose: Display Average, Most, and Least Amount of Food Eaten per Day.
*/
//System Libraries
#include <iostream>
#include <iomanip>
using namespace std;
//User Libraries
//Global Constants
//Such as PI, Vc, -> Math/Science Values
//as well as conversions from system of units to another
//Function Prototypes
//Executable code begins here!!!
int main(int argc, char** argv) {
//Declare Variables
int mkys = 3,days = 5,food[mkys][days];
float pounds,least,most,sum = 0;
//Input Values
cout<<" ----------------------------------------------"<<endl;
cout<<" Monkey Business"<<endl;
cout<<" ----------------------------------------------"<<endl;
cout<<" Enter the Amount of Pounds of Food Each Monkey"<<endl;
cout<<" Ate Each Day."<<endl<<endl;
for (int row = 0; row < mkys; row++){
for (int col = 0; col < days; col++){
do{
cout<<" Monkey #"<<(row + 1)<<" on day #"<<(col + 1)<<" ate: ";
cin>>pounds;
if (pounds < 0){
cout<<" Error: Number of Pounds Must be Greater Than 0."
<<endl;
}
}while (pounds < 0);
food[row][col] = pounds;
sum += pounds;
}
cout << endl;
}
least = most = food[0][0];
for (int row = 0; row < mkys; row++){
for (int col = 0; col < days; col++){
if (food[row][col] < least){
least = food[row][col];
}
if (food[row][col] > most){
most = food[row][col];
}
}
}
cout<<fixed<<setprecision(1);
cout<<" --------------------------------------------------"<<endl;
cout<<" Average Amount of Food Eaten per Day: "<<sum/15.0<<" pounds."<<endl;
cout<<" Least Amount of Food Eaten: "<<least<<" pounds."<<endl;
cout<<" Greatest Amount of Food Eaten: "<<most<<" pounds."<<endl;
cout<<" --------------------------------------------------"<<endl;
//Process by mapping inputs to outputs
//Output Values
//Exit stage right!
return 0;
}
|
263a324ec120ffcc4c9d2dd06d55e91093d49ae1 | 3fe8e3b89553f790b4ac6d0da051c2d47f785169 | /Computer Science 31 Notes/practice_increment/practice_increment/const.hpp | b94f0be817f3feace12e15186e78de4e4622c7f7 | [] | no_license | hafizaj/Dropbox | b03406863d2cfef489c84b6e7e241257922699fa | 7984e0c527338c67fc2a8b0cbbdaa8754cce0a32 | refs/heads/master | 2020-03-13T11:37:31.458486 | 2018-05-04T04:14:28 | 2018-05-04T04:14:28 | 131,104,691 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 489 | hpp | const.hpp | //
// const.hpp
// practice_increment
//
// Created by Ahmad Hafizuddin Bin Ahmad Jaafar on 3/17/18.
// Copyright © 2018 Ahmad Hafizuddin Bin Ahmad Jaafar. All rights reserved.
//
#ifndef const_hpp
#define const_hpp
#include <stdio.h>
#include <string>
class Testes
{
private:
std::string name;
int price;
public:
Testes();
std::string getName() const;
int getPrice() ;
void foo( int&) const;
void checkPrice(int);
};
#endif /* const_hpp */
|
6fd67e5ddb828984eb2b8023ac4b3299c3a6795b | a7468a371698bcc25e1422d8e173567c7ee1f653 | /Color.h | 2cf74a109c8814a1c3c55ac6d127a063ca338749 | [
"Apache-2.0"
] | permissive | RECanales/SketchM8 | c54d41c22cd476c4d688f0b7aa80cf21f5ff659f | c4a91fa654f3b1b225e441312aec99580418ebcb | refs/heads/master | 2021-01-12T02:53:38.032927 | 2017-01-07T19:05:14 | 2017-01-07T19:05:14 | 78,126,126 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 702 | h | Color.h | #pragma once
#include "glm/glm.hpp"
#include "glm/gtc/matrix_transform.hpp"
#include "glm/ext.hpp"
#include <opencv2/opencv.hpp>
#include <opencv/highgui.h>
#include "opencv2/core/opengl.hpp"
#include <vector>
#include <cmath>
class Color // begin declaration of the class
{
glm::vec3 RGBcolor;
glm::vec3 HSVcolor;
std::vector <std::string> colors = { "red", "orange", "yellow", "green", "blue", "purple", "pink" };
std::string c;
public: // begin public section
Color() {}
glm::vec3 Color::getColor(cv::Mat &image, cv::Mat &hsv, cv::Point &p); //return the enum color value of the color in the image at point (x,y);
int r, g, b;
}; |
ee397e2dc65b754e36cf5638615b06e31063724a | 4f8466c8bd624c95e51d33c3385c04804e881c3b | /t6/biscoito.cpp | 7b523aef6fc83e85991e83db77a58f9b74397792 | [] | no_license | gcmazzardo/gcmazzardo | 246f61aab1e9e50da65bca575b3ab0208d866231 | 7fd2ff33c4323c148097625df9da6737e7d7fa22 | refs/heads/master | 2021-01-17T20:25:23.813825 | 2017-07-03T03:00:51 | 2017-07-03T03:00:51 | 84,144,247 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 3,306 | cpp | biscoito.cpp | #include <iostream>
#include <string>
#include <random>
#include <ctime>
#include <algorithm>
#define PI 3,14
using namespace std;
class Biscoito{
private:
double tam, preco;
int forma;
public:
Biscoito(){
tam=0.0; forma=0; preco=0.0;
}
int getForma(){
return forma;
}
void setForma(int x){
forma = x;
}
double getTam(){
return tam;
}
double setTam(double x){
tam = x;
}
void setPreco(){
if(retPorte(tam) == "Pequeno")
preco = 0.50;
else if(retPorte(tam) == "Medio")
preco = 1.00;
else
preco = 1.50;
}
string retPorte(double area){
if(area <= 0.33)
return "Pequeno";
else if(area > 0.33 && area <= 0.66)
return "Medio";
else
return "Grande";
}
bool operator<(Biscoito& p) {
return this->tam > p.getTam();
}
};
class Retangulo: public Biscoito{
public:
double retArea(double b){
double h = static_cast <float> (rand()) / static_cast <float> (RAND_MAX)+0.1; // altura random
return b*h;
}
};
class Triangulo: public Biscoito{
public:
double retArea(double b){
double h = static_cast <float> (rand()) / static_cast <float> (RAND_MAX)+0.1; // altura random
return b*h/2;
}
};
class Circulo: public Biscoito{
public:
double retArea(double r){
return PI*(r*r);
}
};
int main(){
int n;
cout << "Digite o numero de biscoitos:" << endl;
cin >> n;
vector<Biscoito> biscoitos;
Triangulo x; Retangulo y; Circulo z;
Biscoito aux;
for(int i=0; i<n; i++){
int formato = static_cast <int> (rand()) / (static_cast <int> (RAND_MAX/3)); //formato random
double tamanho = static_cast <float> (rand()) / static_cast <float> (RAND_MAX)+0.1; // tam random
switch(formato){
case 0: aux.setTam(x.retArea(tamanho)); break; // biscoito == triangulo, seta tamanho
case 1: aux.setTam(y.retArea(tamanho)); break;// biscoito == retangulo, seta tamanho
case 2: aux.setTam(z.retArea(tamanho)); break;// biscoito == circulo, seta tamanho
}
aux.setForma(formato);
aux.setPreco();
biscoitos.push_back(aux); //adiciona o novo biscoito ao vetor, com o devido tamanho, preço e formato.
}
sort(biscoitos.begin(), biscoitos.end()); //Ordenar em relaçao ao tamanho.
cout << "Tamanhos dos biscoitos produzidos, do maior para o menor (cm2):" << endl;
for(auto it = biscoitos.begin(); it!=biscoitos.end(); it++)
cout << " " << it->getTam() << endl;
int pequenos=0, medios=0, grandes=0;
for(auto it = biscoitos.begin(); it!=biscoitos.end(); it++){ //for pra contar a quantidade de cada biscoito, pelo tamanho
auto x = it->retPorte(it->getTam());
if(x == "Pequeno") pequenos++;
if(x == "Medio") medios++;
if(x == "Grande") grandes++;
}
cout << "Biscoitos:" << endl << " Pequenos: " << pequenos << " Total arrecadado: " << pequenos*0.50 << endl << " Medios: " << medios << " Total arrecadado: " << medios*1.00 << endl << " Grandes: " << grandes << " Total arrecadado: " << grandes*1.50 << endl;
return 0;
}
|
0af3baaa95d1cfa4238d13249ff309e7b628edc0 | f5f3523ca2ffce1a11f2e32309220ced359d01f5 | /bsb/intro.ino | b2c9a084655f18941cbf188b1b427f78c3a929bd | [] | no_license | petemadsen/arduino | 11428af52c14b2af5e92b094450f40070ee9eb79 | d6fc5b7f0ac04f979e180b39e7217d49b37f8546 | refs/heads/master | 2020-06-25T00:13:17.604832 | 2020-04-18T18:36:35 | 2020-04-18T18:36:35 | 199,135,706 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 578 | ino | intro.ino | /**
* Play some intro on the display.
*/
byte intro_frame[] =
{
0b00111001,
0b00001001, 0b00001001, 0b00001001, 0b00001001, 0b00001001, 0b00001001,
0b00001111
};
void intro(const TM1638& bsb)
{
for(int i=0; i<2; ++i)
{
bsb.setLEDs(0xff);
bsb.setDisplay(intro_frame, 8);
delay(1 * 500);
bsb.setLEDs(0x00);
bsb.clearDisplay();
delay(1 * 500);
}
}
void intro_player(const TM1638& bsb, uint8_t player)
{
for(int i=0; i<2; ++i)
{
bsb.setLEDs(player ? 0xf0 : 0x0f);
delay(1 * 500);
bsb.setLEDs(0);
delay(1 * 500);
}
}
|
ad39113ff37e4bad74707b4a9349d28938d0e38b | a3f85949215fde912b781db4c53b55e5b76140d3 | /ffmpegaddbgm/src/main/cpp/native-lib.cpp | 2a0fc3f8001da8d8ed754988c3bf8b0f5caf0e13 | [] | no_license | Xiaoben336/FFmpeg | d5221cda49e995faa3359d2831a38fce2db1faf4 | a8d35e379940974b6e77cc92470514b044471ad3 | refs/heads/master | 2020-04-14T10:33:57.419131 | 2019-01-02T03:37:18 | 2019-01-02T03:37:18 | 163,790,493 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 22,431 | cpp | native-lib.cpp | #include <jni.h>
#include <string>
#include <android/log.h>
#include "com_example_zjf_ffmpeg_FFmpeg.h"
extern "C" {
#include <libavutil/log.h>
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#define TAG "FFmpegAddBgm"
#define LOGE(FORMAT,...) __android_log_print(ANDROID_LOG_ERROR, TAG, FORMAT, ##__VA_ARGS__);
#define LOGD(FORMAT,...) __android_log_print(ANDROID_LOG_DEBUG, TAG, FORMAT, ##__VA_ARGS__);
};
/*JNIEXPORT jint JNICALL Java_com_example_zjf_ffmpeg_FFmpeg_addBgm
(JNIEnv *env, jobject obj, jstring input_video, jstring input_music, jstring output_video){
AVOutputFormat *ofmt = NULL;
//Input AVFormatContext and Output AVFormatContext
AVFormatContext *ifmt_ctx_v = NULL, *ifmt_ctx_a = NULL,*ofmt_ctx = NULL;
AVPacket pkt;
int ret, i;
int videoindex_v=-1,videoindex_out=-1;
int audioindex_a=-1,audioindex_out=-1;
int frame_index=0;
int64_t cur_pts_v=0,cur_pts_a=0;
const char *in_filename_v = env->GetStringUTFChars(input_video,NULL);
const char *in_filename_a = env->GetStringUTFChars(input_music,NULL);
const char *out_filename = env->GetStringUTFChars(output_video,NULL);;//Output file URL
av_register_all();
//Input
if ((ret = avformat_open_input(&ifmt_ctx_v, in_filename_v, 0, 0)) < 0) {//打开输入的视频文件
LOGE( "Could not open input file.");
goto end;
}
if ((ret = avformat_find_stream_info(ifmt_ctx_v, 0)) < 0) {//获取视频文件信息
LOGE( "Failed to retrieve input stream information");
goto end;
}
if ((ret = avformat_open_input(&ifmt_ctx_a, in_filename_a, 0, 0)) < 0) {//打开输入的音频文件
LOGE( "Could not open input file.");
goto end;
}
if ((ret = avformat_find_stream_info(ifmt_ctx_a, 0)) < 0) {//获取音频文件信息
LOGE( "Failed to retrieve input stream information");
goto end;
}
LOGE("===========Input Information==========\n");
av_dump_format(ifmt_ctx_v, 0, in_filename_v, 0);
av_dump_format(ifmt_ctx_a, 0, in_filename_a, 0);
LOGE("======================================\n");
//Output
avformat_alloc_output_context2(&ofmt_ctx, NULL, NULL, out_filename);//初始化输出码流的AVFormatContext。
if (!ofmt_ctx) {
LOGE( "Could not create output context\n");
ret = AVERROR_UNKNOWN;
return -1;
}
ofmt = ofmt_ctx->oformat;
//从输入的AVStream中获取一个输出的out_stream
for (i = 0; i < ifmt_ctx_v->nb_streams; i++) {
if(ifmt_ctx_v->streams[i]->codecpar->codec_type ==AVMEDIA_TYPE_VIDEO){
AVStream *in_stream = ifmt_ctx_v->streams[i];
//创建输出流通道AVStream
AVCodecContext *pCodecCtx = avcodec_alloc_context3(NULL);
if (pCodecCtx == NULL)
{
printf("Could not allocate AVCodecContext\n");
return -1;
}
avcodec_parameters_to_context(pCodecCtx, in_stream->codecpar);
AVStream *out_stream = avformat_new_stream(ofmt_ctx,pCodecCtx->codec);
videoindex_v=i;
if (!out_stream) {
LOGE( "Failed allocating output stream\n");
ret = AVERROR_UNKNOWN;
break;
}
videoindex_out=out_stream->index;
//Copy the settings of AVCodecContext
if (ret = avcodec_parameters_from_context(out_stream->codecpar, pCodecCtx) < 0) {
printf("Failed to copy codec context to out_stream codecpar context\n");
goto end;
}
pCodecCtx->codec_tag = 0;
if (ofmt_ctx->oformat->flags & AVFMT_GLOBALHEADER)
pCodecCtx->flags |= CODEC_FLAG_GLOBAL_HEADER;
break;
}
}
for (i = 0; i < ifmt_ctx_a->nb_streams; i++) {
//Create output AVStream according to input AVStream
//if(ifmt_ctx_a->streams[i]->codec->codec_type==AVMEDIA_TYPE_AUDIO){
if(ifmt_ctx_a->streams[i]->codecpar->codec_type ==AVMEDIA_TYPE_AUDIO){
AVStream *in_stream = ifmt_ctx_a->streams[i];
//创建输出流通道AVStream
AVCodecContext *pCodecCtx = avcodec_alloc_context3(NULL);
if (pCodecCtx == NULL)
{
printf("Could not allocate AVCodecContext\n");
return -1;
}
avcodec_parameters_to_context(pCodecCtx, in_stream->codecpar);
AVStream *out_stream = avformat_new_stream(ofmt_ctx,pCodecCtx->codec);
audioindex_a=i;
if (!out_stream) {
LOGE( "Failed allocating output stream\n");
ret = AVERROR_UNKNOWN;
goto end;
}
audioindex_out=out_stream->index;
//Copy the settings of AVCodecContext
if (ret = avcodec_parameters_from_context(out_stream->codecpar, pCodecCtx) < 0) {
printf("Failed to copy codec context to out_stream codecpar context\n");
goto end;
}
pCodecCtx->codec_tag = 0;
if (ofmt_ctx->oformat->flags & AVFMT_GLOBALHEADER)
pCodecCtx->flags |= CODEC_FLAG_GLOBAL_HEADER;
break;
}
}
LOGE("==========Output Information==========\n");
av_dump_format(ofmt_ctx, 0, out_filename, 1);
LOGE("======================================\n");
//Open output file
if (!(ofmt->flags & AVFMT_NOFILE)) {
if (avio_open(&ofmt_ctx->pb, out_filename, AVIO_FLAG_WRITE) < 0) {//打开输出文件。
LOGE( "Could not open output file '%s'", out_filename);
return -1;
}
}
//Write file header
if (avformat_write_header(ofmt_ctx, NULL) < 0) {
LOGE( "Error occurred when opening output file\n");
return -1;
}
//FIX
#if USE_H264BSF
AVBitStreamFilterContext* h264bsfc = av_bitstream_filter_init("h264_mp4toannexb");
#endif
#if USE_AACBSF
AVBitStreamFilterContext* aacbsfc = av_bitstream_filter_init("aac_adtstoasc");
#endif
while (1) {
AVFormatContext *ifmt_ctx;
int stream_index=0;
AVStream *in_stream, *out_stream;
//Get an AVPacket . av_compare_ts是比较时间戳用的。通过该函数可以决定该写入视频还是音频。
if(av_compare_ts(cur_pts_v,ifmt_ctx_v->streams[videoindex_v]->time_base,cur_pts_a,ifmt_ctx_a->streams[audioindex_a]->time_base) <= 0){
ifmt_ctx=ifmt_ctx_v;
stream_index=videoindex_out;
if(av_read_frame(ifmt_ctx, &pkt) >= 0){
do{
in_stream = ifmt_ctx->streams[pkt.stream_index];
out_stream = ofmt_ctx->streams[stream_index];
if(pkt.stream_index==videoindex_v){
//FIX:No PTS (Example: Raw H.264) H.264裸流没有PTS,因此必须手动写入PTS
//Simple Write PTS
if(pkt.pts==AV_NOPTS_VALUE){
//Write PTS
AVRational time_base1=in_stream->time_base;
//Duration between 2 frames (us)
int64_t calc_duration=(double)AV_TIME_BASE/av_q2d(in_stream->r_frame_rate);
//Parameters
pkt.pts=(double)(frame_index*calc_duration)/(double)(av_q2d(time_base1)*AV_TIME_BASE);
pkt.dts=pkt.pts;
pkt.duration=(double)calc_duration/(double)(av_q2d(time_base1)*AV_TIME_BASE);
frame_index++;
}
cur_pts_v=pkt.pts;
break;
}
}while(av_read_frame(ifmt_ctx, &pkt) >= 0);
}else{
break;
}
}else{
LOGE("写音频数据");
ifmt_ctx=ifmt_ctx_a;
stream_index=audioindex_out;
if(av_read_frame(ifmt_ctx, &pkt) >= 0){
do{
in_stream = ifmt_ctx->streams[pkt.stream_index];
out_stream = ofmt_ctx->streams[stream_index];
if(pkt.stream_index==audioindex_a){
//FIX:No PTS
//Simple Write PTS
if(pkt.pts == AV_NOPTS_VALUE){
//Write PTS
AVRational time_base1=in_stream->time_base;
//Duration between 2 frames (us)
int64_t calc_duration=(double)AV_TIME_BASE/av_q2d(in_stream->r_frame_rate);
//Parameters
pkt.pts=(double)(frame_index*calc_duration)/(double)(av_q2d(time_base1)*AV_TIME_BASE);
pkt.dts=pkt.pts;
pkt.duration=(double)calc_duration/(double)(av_q2d(time_base1)*AV_TIME_BASE);
frame_index++;
}
cur_pts_a = pkt.pts;
LOGE("cur_pts_a === %lld",cur_pts_a);
break;
}
}while(av_read_frame(ifmt_ctx, &pkt) >= 0);
}else{
break;
}
}
//FIX:Bitstream Filter
#if USE_H264BSF
av_bitstream_filter_filter(h264bsfc, in_stream->codec, NULL, &pkt.data, &pkt.size, pkt.data, pkt.size, 0);
#endif
#if USE_AACBSF
av_bitstream_filter_filter(aacbsfc, out_stream->codec, NULL, &pkt.data, &pkt.size, pkt.data, pkt.size, 0);
#endif
LOGE("pkt.pts = %lld",pkt.pts);
//Convert PTS/DTS
pkt.pts = av_rescale_q_rnd(pkt.pts, in_stream->time_base, out_stream->time_base, (AVRounding)(AV_ROUND_NEAR_INF|AV_ROUND_PASS_MINMAX));
LOGE("pkt.pts == %lld",pkt.pts);
pkt.dts = av_rescale_q_rnd(pkt.dts, in_stream->time_base, out_stream->time_base, (AVRounding)(AV_ROUND_NEAR_INF|AV_ROUND_PASS_MINMAX));
pkt.duration = av_rescale_q(pkt.duration, in_stream->time_base, out_stream->time_base);
pkt.pos = -1;
pkt.stream_index=stream_index;
LOGE("Write 1 Packet. size:%5d\tpts:%lld\n",pkt.size,pkt.pts);
//Write AVPacket 音频或视频裸流
if (av_interleaved_write_frame(ofmt_ctx, &pkt) < 0) {
LOGE( "Error muxing packet\n");
break;
}
av_packet_unref(&pkt);
//av_free_packet(&pkt);
}
//Write file trailer
av_write_trailer(ofmt_ctx);
#if USE_H264BSF
av_bitstream_filter_close(h264bsfc);
#endif
#if USE_AACBSF
av_bitstream_filter_close(aacbsfc);
#endif
end:
avformat_close_input(&ifmt_ctx_v);
avformat_close_input(&ifmt_ctx_a);
*//* close output *//*
if (ofmt_ctx && !(ofmt->flags & AVFMT_NOFILE))
avio_close(ofmt_ctx->pb);
avformat_free_context(ofmt_ctx);
if (ret < 0 && ret != AVERROR_EOF) {
LOGE( "Error occurred.\n");
return -1;
}
return 0;
}*/
JNIEXPORT jint JNICALL Java_com_example_zjf_ffmpeg_FFmpeg_addBgm
(JNIEnv *env, jobject obj, jstring input_video, jstring input_music, jstring output_file){
AVOutputFormat *pOutputFmt = NULL;
AVFormatContext *pVideoInFmtCxt = NULL;//输入的视频的FormatContext
AVFormatContext *pAudioInFmtCxt = NULL;//输入的音频的FormatContext
AVFormatContext *pOutFmtCxt = NULL;//输出的音视频的FormatContext
AVPacket pkt;
int ret, i;
int videoindex_v = -1,videoindex_out = -1;
int audioindex_a = -1,audioindex_out = -1;
int frame_index = 0;
int64_t cur_pts_v = 0;//视频的pts
int64_t cur_pts_a = 0;//音频的pts
char errorbuf[1024] = { 0 };
const char *pVideoInFileName = env->GetStringUTFChars(input_video,NULL);
const char *pAudioInFileName = env ->GetStringUTFChars(input_music,NULL);
const char *pVideoOutFilePath = env->GetStringUTFChars(output_file,NULL);
LOGD("pVideoOutFilePath === %s",pVideoOutFilePath);
av_register_all();
//打开输入的视频文件
if ((ret = avformat_open_input(&pVideoInFmtCxt,pVideoInFileName,NULL,NULL)) < 0) {
LOGE( "Could not open input video file.");
goto end;
}
//获取视频文件信息
if ((ret = avformat_find_stream_info(pVideoInFmtCxt,NULL)) < 0) {
LOGE( "Failed to retrieve input video stream information");
goto end;
}
//打开输入的音频文件
if ((ret = avformat_open_input(&pAudioInFmtCxt,pAudioInFileName,NULL,NULL)) < 0) {
LOGE( "Could not open input audio file.");
goto end;
}
//获取音频文件信息
if ((ret = avformat_find_stream_info(pAudioInFmtCxt,NULL)) < 0) {
LOGE( "Failed to retrieve input stream information");
goto end;
}
LOGE("===========Input Information==========\n");
av_dump_format(pVideoInFmtCxt, 0, pVideoInFileName, 0);
av_dump_format(pAudioInFmtCxt, 0, pAudioInFileName, 0);
LOGE("======================================\n");
//初始化输出码流的AVFormatContext
avformat_alloc_output_context2(&pOutFmtCxt,NULL,NULL,pVideoOutFilePath);
if (!pOutFmtCxt) {
LOGE( "Could not create output context\n");
ret = AVERROR_UNKNOWN;
return -1;
}
//输出格式赋值
pOutputFmt = pOutFmtCxt->oformat;
//从输入的AVStream中获取一个输出的out_stream,视频输出流
for (i = 0;i < pVideoInFmtCxt->nb_streams;i++){
//根据输入的视频流创建一个输出的视频流
if (pVideoInFmtCxt->streams[i]->codecpar->codec_type == AVMEDIA_TYPE_VIDEO) {
AVStream *in_stream = pVideoInFmtCxt->streams[i];
//创建输出流通道AVStream
AVCodecContext *pCodecCtx = avcodec_alloc_context3(NULL);
if (pCodecCtx == NULL)
{
printf("Could not allocate AVCodecContext\n");
return -1;
}
avcodec_parameters_to_context(pCodecCtx, in_stream->codecpar);
AVStream *out_stream = avformat_new_stream(pOutFmtCxt,pCodecCtx->codec);
videoindex_v = i;
if (!out_stream) {
LOGE( "Failed allocating output stream\n");
ret = AVERROR_UNKNOWN;
break;
}
videoindex_out = out_stream->index;
//Copy the settings of AVCodecContext
if ((ret = avcodec_parameters_from_context(out_stream->codecpar, pCodecCtx)) < 0) {
printf("Failed to copy codec context to out_stream codecpar context\n");
goto end;
}
pCodecCtx->codec_tag = 0;
if (pOutFmtCxt->oformat->flags & AVFMT_GLOBALHEADER)
pCodecCtx->flags |= CODEC_FLAG_GLOBAL_HEADER;
break;
}
}
//从输入的AVStream中获取一个输出的out_stream,音频输出流
for (i = 0;i < pAudioInFmtCxt->nb_streams;i++){
if (pAudioInFmtCxt->streams[i]->codecpar->codec_type == AVMEDIA_TYPE_AUDIO){
AVStream *in_stream = pAudioInFmtCxt->streams[i];
//创建输出流通道AVStream
AVCodecContext *pCodecCtx = avcodec_alloc_context3(NULL);
if (pCodecCtx == NULL)
{
printf("Could not allocate AVCodecContext\n");
return -1;
}
avcodec_parameters_to_context(pCodecCtx, in_stream->codecpar);
AVStream *out_stream = avformat_new_stream(pOutFmtCxt,pCodecCtx->codec);
audioindex_a = i;
if (!out_stream) {
LOGE( "Failed allocating output stream\n");
ret = AVERROR_UNKNOWN;
goto end;
}
audioindex_out = out_stream->index;
if ((ret = avcodec_parameters_from_context(out_stream->codecpar, pCodecCtx)) < 0) {
printf("Failed to copy codec context to out_stream codecpar context\n");
goto end;
}
pCodecCtx->codec_tag = 0;
if (pOutFmtCxt->oformat->flags & AVFMT_GLOBALHEADER)
pCodecCtx->flags |= CODEC_FLAG_GLOBAL_HEADER;
break;
}
}
LOGE("==========Output Information==========\n");
av_dump_format(pOutFmtCxt, 0, pVideoOutFilePath, 1);
LOGE("======================================\n");
//打开输出文件
if (!(pOutputFmt->flags & AVFMT_NOFILE)) {
if (avio_open(&pOutFmtCxt->pb, pVideoOutFilePath, AVIO_FLAG_WRITE) < 0) {//打开输出文件。
LOGE( "Could not open output file '%s'", pVideoOutFilePath);
return -1;
}
}
//写文件头
if (avformat_write_header(pOutFmtCxt, NULL) < 0) {
LOGE( "Error occurred when opening output file\n");
return -1;
}
//FIX
#if USE_H264BSF
AVBitStreamFilterContext* h264bsfc = av_bitstream_filter_init("h264_mp4toannexb");
#endif
#if USE_AACBSF
AVBitStreamFilterContext* aacbsfc = av_bitstream_filter_init("aac_adtstoasc");
#endif
while(1){
AVFormatContext *pInFmtCtx;
int stream_index = 0;
AVStream *in_stream,*out_stream;
// av_compare_ts是比较时间戳用的。通过该函数可以决定该写入视频还是音频
if (av_compare_ts(cur_pts_v,pVideoInFmtCxt->streams[videoindex_v]->time_base,
cur_pts_a,pAudioInFmtCxt->streams[audioindex_a]->time_base) <= 0) {
LOGE("写视频数据");
pInFmtCtx = pVideoInFmtCxt;//视频
//这里要赋值了,注意注意
stream_index = videoindex_out;
if (av_read_frame(pInFmtCtx,&pkt) >= 0) {//读取流
do {
in_stream = pInFmtCtx->streams[pkt.stream_index];
out_stream = pOutFmtCxt->streams[stream_index];
if(pkt.stream_index == videoindex_v){
// H.264裸流没有PTS,因此必须手动写入PTS
if(pkt.pts == AV_NOPTS_VALUE){
//写PTS
AVRational time_base1 = in_stream->time_base;
//Duration between 2 frames (us)
int64_t calc_duration = (double)AV_TIME_BASE/av_q2d(in_stream->r_frame_rate);
//Parameters
pkt.pts = (double)(frame_index*calc_duration)/(double)(av_q2d(time_base1)*AV_TIME_BASE);
pkt.dts=pkt.pts;
pkt.duration = (double)calc_duration/(double)(av_q2d(time_base1)*AV_TIME_BASE);
frame_index++;
}
cur_pts_v = pkt.pts;
LOGE("cur_pts_v === %lld",cur_pts_v);
break;
}
}while (av_read_frame(pInFmtCtx,&pkt) >= 0);
} else {
break;
}
} else {
LOGE("写音频数据");
pInFmtCtx = pAudioInFmtCxt;
stream_index = audioindex_out;
if(av_read_frame(pInFmtCtx, &pkt) >= 0){
do{
in_stream = pInFmtCtx->streams[pkt.stream_index];
out_stream = pOutFmtCxt->streams[stream_index];
if(pkt.stream_index == audioindex_a){
//FIX:No PTS
//Simple Write PTS
if(pkt.pts==AV_NOPTS_VALUE){
//Write PTS
AVRational time_base1=in_stream->time_base;
//Duration between 2 frames (us)
int64_t calc_duration=(double)AV_TIME_BASE/av_q2d(in_stream->r_frame_rate);
//Parameters
pkt.pts = (double)(frame_index*calc_duration)/(double)(av_q2d(time_base1)*AV_TIME_BASE);
pkt.dts = pkt.pts;
pkt.duration=(double)calc_duration/(double)(av_q2d(time_base1)*AV_TIME_BASE);
frame_index++;
}
cur_pts_a = pkt.pts;
LOGE("cur_pts_a === %lld",cur_pts_a);
break;
}
}while(av_read_frame(pInFmtCtx, &pkt) >= 0);
} else {
break;
}
}
//FIX:Bitstream Filter
#if USE_H264BSF
av_bitstream_filter_filter(h264bsfc, in_stream->codec, NULL, &pkt.data, &pkt.size, pkt.data, pkt.size, 0);
#endif
#if USE_AACBSF
av_bitstream_filter_filter(aacbsfc, out_stream->codec, NULL, &pkt.data, &pkt.size, pkt.data, pkt.size, 0);
#endif
LOGE("pkt.pts = %lld ",pkt.pts);
//Convert PTS/DTS
pkt.pts = av_rescale_q_rnd(pkt.pts,in_stream->time_base,out_stream->time_base, (AVRounding)(AV_ROUND_NEAR_INF|AV_ROUND_PASS_MINMAX));
LOGE("pkt.pts == %lld",pkt.pts);
pkt.dts = av_rescale_q_rnd(pkt.dts, in_stream->time_base, out_stream->time_base, (AVRounding)(AV_ROUND_NEAR_INF|AV_ROUND_PASS_MINMAX));
pkt.duration = av_rescale_q(pkt.duration,in_stream->time_base, out_stream->time_base);
pkt.pos = -1;
pkt.stream_index = stream_index;
LOGE("Write 1 Packet. size:%5d\tpts:%lld\n",pkt.size,pkt.pts);
//Write AVPacket 音频或视频裸流
if ((ret = av_interleaved_write_frame(pOutFmtCxt, &pkt)) < 0) {
av_strerror(ret,errorbuf, sizeof(errorbuf));
LOGE("ERROR : %s",errorbuf);
LOGE( "Error muxing packet error code === %d\n",ret);
av_packet_unref(&pkt);
break;
}
av_packet_unref(&pkt);
}
//写文件尾
av_write_trailer(pOutFmtCxt);
#if USE_H264BSF
av_bitstream_filter_close(h264bsfc);
#endif
#if USE_AACBSF
av_bitstream_filter_close(aacbsfc);
#endif
end:
avformat_close_input(&pVideoInFmtCxt);
avformat_close_input(&pAudioInFmtCxt);
if (pOutFmtCxt && !(pOutputFmt->flags & AVFMT_NOFILE))
avio_close(pOutFmtCxt->pb);
avformat_free_context(pOutFmtCxt);
if (ret < 0 && ret != AVERROR_EOF) {
LOGE( "Error occurred.\n");
return -1;
}
return 0;
}
|
88ef95a6e30d773362ed31a985ef8f14cc211c07 | f16641091e05dc0c5cd6a63da1c64b1fb24276b4 | /TrekStar/TrekStar/SimpleFactory.cpp | 1b2ae931135e366dc68e5a4ef220cfd77de67f7e | [] | no_license | benjamindoe/SDI | ef71b7a6b18413a6f982abccf6839703413aa0a5 | a1ae53c4ec537484a4056eebba2aae681c1a9c98 | refs/heads/master | 2021-05-01T12:45:43.994514 | 2016-04-21T11:18:01 | 2016-04-21T11:18:01 | 46,410,639 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 765 | cpp | SimpleFactory.cpp | #ifndef SIMPLEFACTORY_CPP
#define SIMPLEFACTORY_CPP
#include <iostream>
#include "SimpleFactory.h"
using json = nlohmann::json;
SimpleFactory::SimpleFactory()
{
}
SimpleFactory::~SimpleFactory()
{
}
Material* SimpleFactory::create(std::string materialType, json data)
{
Material* materialPtr;
if (materialType == "VHS")
{
materialPtr = new Vhs(data);
}
else if (materialType == "BluRay" || materialType == "DVD")
{
materialPtr = new Disc(data);
}
else if (materialType == "ComboBox")
{
materialPtr = new ComboBox(data);
}
else if (materialType == "Double Sided DVD")
{
materialPtr = new DoubleSidedDvd(data);
}
else
{
std::cerr << "Invalid material type." << std::endl;
throw;
}
return materialPtr;
}
#endif // !SIMPLEFACTORY_CPP |
3a52923b1212e9de692e55e4dfe451f5b872a041 | 240de63555b826e5e43837bca0fad84aff40ab87 | /include/tiger/layers/loss/loss_layer.hpp | 8b622e4eaaec14332b951b2857b18509a9d026f7 | [] | no_license | zhangmengzxz/Tiger | b4b6995726eba5b0d80b46eca51af62d38a8b1b1 | 924885b4471fe27d74687eafe109df7d4613e938 | refs/heads/master | 2022-02-16T12:14:29.949411 | 2019-08-17T12:21:09 | 2019-08-17T12:21:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,305 | hpp | loss_layer.hpp | #ifndef TIGER_LAYERS_LOSS_LOSS_LAYER_HPP
#define TIGER_LAYERS_LOSS_LOSS_LAYER_HPP
#include "tiger/layer.hpp"
#include "tiger/tiger.pb.h"
namespace tiger{
template <typename Dtype>
class LossLayer : public Layer<Dtype>{
public:
explicit LossLayer(const LayerParameter& param) :
Layer<Dtype>(param){}
virtual void layer_setup(const vector<Blob<Dtype>* >& bottom,
const vector<Blob<Dtype>* >& top) override;
virtual void reshape(const vector<Blob<Dtype>* >& bottom,
const vector<Blob<Dtype>* >& top) override;
virtual int exact_num_bottom_blobs() const{
// bottom[0]存放的是预测值,而bottom[1]存放的是label值
return 2;
}
virtual int exact_num_top_blobs() const{
return 1;
}
protected:
inline virtual void forward_cpu(const vector<Blob<Dtype>* >& bottom,
const vector<Blob<Dtype>* >& top){}
inline virtual void forward_gpu(const vector<Blob<Dtype>* >& bottom,
const vector<Blob<Dtype>* >& top){}
inline virtual void backward_cpu(const vector<Blob<Dtype>* >& top,
const vector<bool>& propagate_down,
const vector<Blob<Dtype>* >& bottom){}
inline virtual void backward_gpu(const vector<Blob<Dtype>* >& top,
const vector<bool>& propagate_down,
const vector<Blob<Dtype>* >& bottom){}
};
}
#endif
|
8e9dcfeee8832896d65ea7eae5ea58479a89e34c | c5fb286e9adb0132f87ffecd0091f71a9907c197 | /ext/aip/src/LingProc4/Process/LPLangDetector.cpp | 16de04cb9153e4a3da20fefc662631f8f9c45f3e | [
"Apache-2.0"
] | permissive | sovaai/sova-engine | 2dc00ca554fd464cc2fd693c02c8de4acb4dcc5c | 783b04072bb243891bc332fcb0f61e938e456f4f | refs/heads/master | 2022-12-31T20:32:14.158432 | 2020-10-28T19:07:39 | 2020-10-28T19:07:39 | 289,885,115 | 50 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,117 | cpp | LPLangDetector.cpp |
#include <_include/cc_compat.h>
#include "../LingProc.h"
#include "../LingProcData.h"
#include <stdio.h>
LingProcErrors LingProc::LangDetectDoc( DocText &docText ) const
{
// check mode
if ( unlikely(shadow == 0) )
return LP_ERROR_INVALID_MODE;
// ensure word break
if ( !docText.checkWordBreak() )
{
LingProcErrors status = WordBreakDoc( docText );
if ( unlikely(status != LP_OK) )
return status;
}
return shadow->LangDetectDoc( docText, runtimeFlags );
}
LingProcErrors LingProcData::LangDetectDoc( DocText &docText, uint64_t runtimeFlags ) const
{
// clear detect lang results
docText.ResetFlagsLang();
docText.ResetFlagsDetectedLang();
LingProcErrors status;
// lang detection and adjusting
if ( (runtimeFlags & LingProc::fDetectLang) && docText.checkUseLangDetector() )
{
// process lang detection
status = LangDetectDocReal( docText );
if ( unlikely(status != LP_OK) )
return status;
}
// set and adjust langs
docText.InstallDetectedLangs();
return LP_OK;
}
LingProcErrors LingProcData::LangDetectDocReal( DocText &docText ) const
{
// getting generic charset
const UCharSet *charset = getGenericCharset();
// clear detect lang results
docText.SetDetectedLangs( LNG_UNKNOWN, LNG_UNKNOWN, false );
LingProcErrors status;
// prepare lang detectors
for ( size_t curLang = 1; curLang < langs.size(); curLang++ )
{
const LangData &ld = langs[ curLang ];
if ( unlikely(ld.detector == 0) )
continue;
status = ld.detector->reset();
if ( unlikely(status != LP_OK) )
return status;
}
// lang detection
for ( size_t curWord = 0; curWord < docText.WordsCount(); curWord++ )
{
// create local copy of a word in lower case; use generic charset for not
// to create local copy for each language
char buf[ lpMaxWordLength + 1 ];
size_t bufOffset = 0;
const char *wordText = docText.WordText( curWord );
size_t wordLen = docText.WordLength( curWord );
size_t offset = 0;
for ( ; offset < wordLen && bufOffset < lpMaxWordLength ; )
{
size_t ch;
U8_NEXT_UNSAFE( wordText, offset, ch );
if ( charset->IsWordIgnore( ch ) )
continue;
ch = charset->ToLower( ch );
ch = charset->ToLoPunct( ch );
U8_APPEND_UNSAFE( buf, bufOffset, ch );
}
buf[ bufOffset ] = '\0';
// perform incremental detection
for ( size_t curLang = 1; curLang < langs.size(); curLang++ )
{
const LangData &ld = langs[ curLang ];
if ( unlikely(ld.detector == 0) )
continue;
status = ld.detector->update( buf, bufOffset );
if ( unlikely(status != LP_OK) )
return status;
}
}
// finish lang detection and analyze results
size_t primIndex = 0;
float primProb = 0.0;
size_t suppIndex = 0;
float suppProb = 0.0;
for ( size_t curLang = 1; curLang < langs.size(); curLang++ )
{
const LangData &ld = langs[ curLang ];
if ( unlikely(ld.detector == 0) )
continue;
status = ld.detector->finish();
if ( unlikely(status != LP_OK) )
return status;
float currentProb = ld.detector->getLangProbability();
if ( currentProb > primProb )
{
suppIndex = primIndex;
suppProb = primProb;
primIndex = curLang;
primProb = currentProb;
}
else if ( currentProb > suppProb )
{
suppIndex = curLang;
suppProb = currentProb;
}
}
LangCodes langPrim = langs[ primIndex ].lang;
LangCodes langSupp = langs[ suppIndex ].lang;
// store results
docText.SetDetectedLangs( langPrim, langSupp, true );
return LP_OK;
}
|
a481d5d666053c53b1de858d787ff61da166d208 | 07f5cab068d34c88881c115e1c0b03c42a6299e8 | /src/Matrix3D.cpp | 49f3c2bbd6c0376802d124586407609d6a71d3c3 | [
"Unlicense"
] | permissive | KPO-2020-2021/zad4-Poresh2222 | 977f3003b1508cfc2c7efdf188d44ededb267cbb | 3a509256d5ee75a19b4157d2fc5c6a549eb6cb65 | refs/heads/master | 2023-05-09T15:11:20.518426 | 2021-06-07T14:01:47 | 2021-06-07T14:01:47 | 364,618,861 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,011 | cpp | Matrix3D.cpp | #include "../include/Matrix3D.hh"
Matrix3D Rotate_X(const double angle) {
Matrix3D tmp;
tmp(0, 0) = 1;
tmp(0, 1) = 0;
tmp(0, 2) = 0;
tmp(1, 0) = 0;
tmp(1, 1) = cos(angle*M_PI/180);
tmp(1, 2) = -sin(angle*M_PI/180);
tmp(2, 0) = 0;
tmp(2, 1) = sin(angle*M_PI/180);
tmp(2, 2) = cos(angle*M_PI/180);
return tmp;
}
Matrix3D Rotate_Y(const double angle) {
Matrix3D tmp;
tmp(0, 0) = cos(angle*M_PI/180);
tmp(0, 1) = 0;
tmp(0, 2) = sin(angle*M_PI/180);
tmp(1, 0) = 0;
tmp(1, 1) = 1;
tmp(1, 2) = 0;
tmp(2, 0) = -sin(angle*M_PI/180);
tmp(2, 1) = 0;
tmp(2, 2) = cos(angle*M_PI/180);
return tmp;
}
Matrix3D Rotate_Z(const double angle) {
Matrix3D tmp;
tmp(0, 0) = cos(angle*M_PI/180);
tmp(0, 1) = -sin(angle*M_PI/180);
tmp(0, 2) = 0;
tmp(1, 0) = sin(angle*M_PI/180);
tmp(1, 1) = cos(angle*M_PI/180);
tmp(1, 2) = 0;
tmp(2, 0) = 0;
tmp(2, 1) = 0;
tmp(2, 2) = 1;
return tmp;
} |
fd27d0217e73480a55c316850bfb81f3b06029ff | 39c58dbf336a18dbdc735dfd2c36eadb7effdc19 | /p047_20200826_2.cpp | 732780a767f4b9e66a58d689fd54420086428f68 | [] | no_license | SongM/HelpLeetcodeCPP | 9a6e86c002bb3d9409ba83e9562c6f4dcbb200f9 | 4a4a8a72ddcf00353869985bb92ff322fea2cc12 | refs/heads/master | 2022-12-23T22:41:10.381211 | 2020-09-26T18:32:56 | 2020-09-26T18:32:56 | 287,381,650 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 644 | cpp | p047_20200826_2.cpp | //move the current working int to the end
//compare the next one to the previous current one, if the same, skip
class Solution {
public:
vector<vector<int>> permuteUnique(vector<int>& nums) {
sort(nums.begin(),nums.end());
vector<vector<int>> res;
dfs(nums,nums.size(),res);
return res;
}
void dfs(vector<int> nums,int l,vector<vector<int>> &res){
if(l==1) res.push_back(nums);
for(int j = l-1;j>=0;j--){
if(j<l-1 && nums[l-1] == nums[j]) continue;
swap(nums[l-1],nums[j]);
dfs(nums,l-1,res);
}
}
}; |
ba5edf45f951f7f8f80e0428c9bfd0219a13f9dc | 7c436d4d9b0d6fbb45a1ff634d29dbaa2f76278f | /Codeforces_Round_688/688A.cpp | 8ea781e5128cbe9388709f827542fd65564125be | [] | no_license | rafshar95/Codeforces | 42b652986030d64b5ee629543352322197e416ba | 6de73cb480afba94e56244726764a3b2e40f5659 | refs/heads/main | 2023-03-08T14:09:16.636340 | 2021-02-23T03:11:00 | 2021-02-23T03:11:00 | 305,776,457 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 586 | cpp | 688A.cpp | #include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <cstring>
#include <set>
#include <map>
#include <queue>
#include <deque>
#include <cmath>
#include <numeric>
using namespace std;
int t, n, m;
int a[101], b[101];
int main(){
std::ios::sync_with_stdio(false);
cin>>t;
for(int i=1;i<=t;i++){
cin>>n>>m;
for(int j=1;j<=n;j++)
cin>>a[j];
for(int j=1;j<=m;j++)
cin>>b[j];
int res=0;
for(int j=1;j<=n;j++)
for(int l=1;l<=m;l++)
if(a[j]==b[l])
res++;
cout<<res<<endl;
}
return 0;
}
|
bd42d9cd1a5a1571a987efa71361af21e1afb68a | fbcb0c862aa00619679a8efb81b6c97c51a0710d | /zHighlightRemoval.h | b340b0f4e3ed2437db93ede9cadc82ef773158b0 | [] | no_license | romil611/glare_removal | 4c8aafafc1ee7512b45e136a59d5bf505624d2ea | 77fc17f958070ff3d99c2282fcdf6bc34a2a10b2 | refs/heads/master | 2021-01-10T04:23:00.135533 | 2016-02-03T03:14:56 | 2016-02-03T03:14:56 | 50,970,521 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 623 | h | zHighlightRemoval.h | #ifndef __Z_HIGHLIGHT_REMOVAL_H__
#define __Z_HIGHLIGHT_REMOVAL_H__
#include "zGlobal.h"
class zHighlightRemoval
{
protected:
int zRemoveHighlights(zArray2D<s_rgbi> &img, zArray2D<s_rgbi> &diff);
int zSpecularFreeImage(zArray2D<s_rgbi> &img, zArray2D<s_rgbi> &diff);
int zResetLabels(zArray2D<s_rgbi> &src);
int zSpecular2Diffuse(s_rgbi &iro, float maxChroma);
int zInit(zArray2D<s_rgbi> &src, zArray2D<s_rgbi> &sfi, float epsilon);
int zIteration(zArray2D<s_rgbi> &src,zArray2D<s_rgbi> &sfi, float epsilon);
public:
zHighlightRemoval(char *fname);
virtual ~zHighlightRemoval();
};
#endif
|
fb470df5053db658f7b4dd8fb5b167eb4163342d | 9d364070c646239b2efad7abbab58f4ad602ef7b | /platform/external/chromium_org/net/quic/quic_crypto_stream.h | b07e85d1f74d2f9df4605e4cd90d7ae88464a3dc | [
"BSD-3-Clause"
] | permissive | denix123/a32_ul | 4ffe304b13c1266b6c7409d790979eb8e3b0379c | b2fd25640704f37d5248da9cc147ed267d4771c2 | refs/heads/master | 2021-01-17T20:21:17.196296 | 2016-08-16T04:30:53 | 2016-08-16T04:30:53 | 65,786,970 | 0 | 2 | null | 2020-03-06T22:00:52 | 2016-08-16T04:15:54 | null | UTF-8 | C++ | false | false | 1,919 | h | quic_crypto_stream.h | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef NET_QUIC_QUIC_CRYPTO_STREAM_H_
#define NET_QUIC_QUIC_CRYPTO_STREAM_H_
#include "base/basictypes.h"
#include "net/quic/crypto/crypto_framer.h"
#include "net/quic/crypto/crypto_utils.h"
#include "net/quic/quic_config.h"
#include "net/quic/quic_protocol.h"
#include "net/quic/reliable_quic_stream.h"
namespace net {
class CryptoHandshakeMessage;
class QuicSession;
class NET_EXPORT_PRIVATE QuicCryptoStream
: public ReliableQuicStream,
public CryptoFramerVisitorInterface {
public:
explicit QuicCryptoStream(QuicSession* session);
virtual void OnError(CryptoFramer* framer) OVERRIDE;
virtual void OnHandshakeMessage(
const CryptoHandshakeMessage& message) OVERRIDE;
virtual uint32 ProcessRawData(const char* data, uint32 data_len) OVERRIDE;
virtual QuicPriority EffectivePriority() const OVERRIDE;
void SendHandshakeMessage(const CryptoHandshakeMessage& message);
void SendHandshakeMessage(const CryptoHandshakeMessage& message,
QuicAckNotifier::DelegateInterface* delegate);
bool ExportKeyingMaterial(base::StringPiece label,
base::StringPiece context,
size_t result_len,
std::string* result) const;
bool encryption_established() const { return encryption_established_; }
bool handshake_confirmed() const { return handshake_confirmed_; }
const QuicCryptoNegotiatedParameters& crypto_negotiated_params() const;
protected:
bool encryption_established_;
bool handshake_confirmed_;
QuicCryptoNegotiatedParameters crypto_negotiated_params_;
private:
CryptoFramer crypto_framer_;
DISALLOW_COPY_AND_ASSIGN(QuicCryptoStream);
};
}
#endif
|
d15160553756530969494e53972996fda165ad4c | 75f090c177c720ee0192a97cfa355abf45ad10d2 | /crsm_slam/src/crsm_slam/crsm_slam_node.cpp | 39b16ad06f36af597027985b90e7a354c5091aab | [] | no_license | sujan23/host_configure | 9cbe547f4b50e779f102399b796ff9dd3695e5ce | 15a56d0970a3288464da252d834ea85f44bc3772 | refs/heads/master | 2021-03-14T08:06:32.056725 | 2020-03-12T05:42:34 | 2020-03-12T05:42:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,292 | cpp | crsm_slam_node.cpp | /*
This file is part of CrsmSlam.
CrsmSlam 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.
CrsmSlam 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 CrsmSlam. If not, see <http://www.gnu.org/licenses/>.
Author : Manos Tsardoulias, etsardou@gmail.com
Organization : AUTH, PANDORA Robotics Team
*/
#include "crsm_slam/crsm_slam.h"
/**
@brief Main node function
@param argc [int] Number of input arguments
@param argv [char **] The input arguments
**/
int main (int argc, char **argv)
{
ros::init(argc,argv,"crsm_slam_node",ros::init_options::NoSigintHandler);
crsm_slam::CrsmSlam slam(argc,argv);
ROS_INFO("[CrsmSlam] CRSM Slam Node initialised");
// subscribe to laser
slam.startLaserSubscriber();
// publish map and trajectory
slam.startOGMPublisher();
slam.startTrajectoryPublisher();
ros::spin();
return 0;
}
|
207e49e45bc72ca75f3d4931e255a31aaaf520b8 | 51afb12493dd1001cc2952144b23bd26acf49e63 | /CryptoGuard/src/UI/PasswordSafeEditDialog.cpp | 99252a55f23b698206936e7f5f16b90a58ec46f8 | [
"MIT"
] | permissive | GitDaroth/CryptoGuard | 7dc806948a7d84d5ffdec6e97ee7812212748563 | a53391af3d1a1c6b80cb94734034825f2e1bb452 | refs/heads/master | 2022-12-23T12:30:52.412032 | 2020-10-07T18:50:34 | 2020-10-07T18:50:34 | 297,121,873 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,746 | cpp | PasswordSafeEditDialog.cpp | #include "UI/PasswordSafeEditDialog.h"
#include "Utils.h"
#include <QFileDialog>
PasswordSafeEditDialog::PasswordSafeEditDialog(PasswordSafe* passwordSafe, QWidget* parent, Qt::WindowFlags flags) :
QDialog(parent, flags),
m_passwordSafe(passwordSafe)
{
m_ui.setupUi(this);
connectUiEvents();
m_ui.nameLineEdit->setText(QString::fromStdString(m_passwordSafe->getLabel()));
}
PasswordSafeEditDialog::~PasswordSafeEditDialog()
{
}
QString PasswordSafeEditDialog::getLabel() const
{
return m_ui.nameLineEdit->text();
}
QString PasswordSafeEditDialog::getOldMasterPassword() const
{
return m_ui.oldMasterPasswordLineEdit->text();
}
QString PasswordSafeEditDialog::getNewMasterPassword() const
{
return m_ui.newMasterPasswordLineEdit->text();
}
void PasswordSafeEditDialog::onEditButtonClicked()
{
if (m_ui.nameLineEdit->text().isEmpty())
return;
if (!m_passwordSafe->isMasterPasswordCorrect(m_ui.oldMasterPasswordLineEdit->text().toStdString()))
return;
if (m_ui.newMasterPasswordLineEdit->text().isEmpty() || m_ui.newMasterPasswordLineEdit->text() != m_ui.repeatNewPasswordLineEdit->text())
return;
accept();
}
void PasswordSafeEditDialog::onCancelButtonClicked()
{
reject();
}
void PasswordSafeEditDialog::onGeneratePasswordButtonClicked()
{
std::string password = Utils::generatePassword(12);
m_ui.newMasterPasswordLineEdit->setText(QString::fromStdString(password));
m_ui.repeatNewPasswordLineEdit->setText(QString::fromStdString(password));
}
void PasswordSafeEditDialog::onOldMasterPasswordShowHideButtonToggled(bool checked)
{
if (checked)
{
m_ui.oldMasterPasswordShowHideButton->setText("hide");
m_ui.oldMasterPasswordLineEdit->setEchoMode(QLineEdit::EchoMode::Normal);
}
else
{
m_ui.oldMasterPasswordShowHideButton->setText("show");
m_ui.oldMasterPasswordLineEdit->setEchoMode(QLineEdit::EchoMode::Password);
}
}
void PasswordSafeEditDialog::onNewMasterPasswordShowHideButtonToggled(bool checked)
{
if (checked)
{
m_ui.newMasterPasswordShowHideButton->setText("hide");
m_ui.newMasterPasswordLineEdit->setEchoMode(QLineEdit::EchoMode::Normal);
}
else
{
m_ui.newMasterPasswordShowHideButton->setText("show");
m_ui.newMasterPasswordLineEdit->setEchoMode(QLineEdit::EchoMode::Password);
}
}
void PasswordSafeEditDialog::onRepeatNewMasterPasswordShowHideButtonToggled(bool checked)
{
if (checked)
{
m_ui.repeatNewPasswordShowHideButton->setText("hide");
m_ui.repeatNewPasswordLineEdit->setEchoMode(QLineEdit::EchoMode::Normal);
}
else
{
m_ui.repeatNewPasswordShowHideButton->setText("show");
m_ui.repeatNewPasswordLineEdit->setEchoMode(QLineEdit::EchoMode::Password);
}
}
void PasswordSafeEditDialog::onMasterPasswordChanged(const QString& password)
{
m_ui.passwordStrengthWidget->updatePasswordStrength(password);
}
void PasswordSafeEditDialog::connectUiEvents()
{
connect(m_ui.editButton, &QPushButton::clicked, this, &PasswordSafeEditDialog::onEditButtonClicked);
connect(m_ui.cancelButton, &QPushButton::clicked, this, &PasswordSafeEditDialog::onCancelButtonClicked);
connect(m_ui.generatePasswordButton, &QToolButton::clicked, this, &PasswordSafeEditDialog::onGeneratePasswordButtonClicked);
connect(m_ui.oldMasterPasswordShowHideButton, &QToolButton::toggled, this, &PasswordSafeEditDialog::onOldMasterPasswordShowHideButtonToggled);
connect(m_ui.newMasterPasswordShowHideButton, &QToolButton::toggled, this, &PasswordSafeEditDialog::onNewMasterPasswordShowHideButtonToggled);
connect(m_ui.repeatNewPasswordShowHideButton, &QToolButton::toggled, this, &PasswordSafeEditDialog::onRepeatNewMasterPasswordShowHideButtonToggled);
connect(m_ui.newMasterPasswordLineEdit, &QLineEdit::textChanged, this, &PasswordSafeEditDialog::onMasterPasswordChanged);
}
|
999489c7b2f871c884dc6083baab25d83ce745ec | 1093b88722bf24d65fba4c649eb6791457b6c8dc | /effects.ino | a8be77994469a6d19f5b5cdb9360a04512ea41fa | [] | no_license | billieblaze/Audino1012 | 7e4c1a37f6e68424825523defe4043a8977437a0 | ca23499a5553eeaebea6aa039bddb221bc6f2790 | refs/heads/master | 2016-09-11T03:16:59.445535 | 2013-01-03T04:51:38 | 2013-01-03T04:51:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 892 | ino | effects.ino |
// reverb
//bb=dd[icnt] ; // read the delay buffer
//iw = offset - bb ; // substract offset
//iw = iw * potVal / 255; // scale delayed sample with potentiometer
//iw1 = offset - sensorValue; // substract offset from new sample
//iw1=iw1+iw; // add delayed sample and new sample
//if (iw1 < -127) iw1=-127; // Audio limiter
//if (iw1 > 127) iw1=127; // Audio limiter
//bb= offset+iw1; // add offset
//dd[icnt]=bb; // store sample in audio buffer
//sensorValue = bb;
// phasor
/*
bb=badc1;
dd[icnt1]=bb; // write to buffer
iw1=dd[icnt2] ; // read the delay buffer
icnt1++;
icnt2= icnt1 - potVal /3;
icnt2 = icnt2 & 511; // limit index 0..
icnt1 = icnt1 & 511; // limit index 0..511
sensorValue = (iw1+bb)/2;
*/
|
58d52f06cd2bbbe5d16fc42a567123b360d56a7e | 6fee64ea325cd111f698c37abd049110f44c5972 | /mesh_renderer.cpp | b158106f9278a7004334f5f3afe57bba591ffc1b | [] | no_license | MohamedIsmailHafez/Unix_GL_Source | 0f52bc1e7b533b0cec6ac9fb0634bcefb8085cef | fc13eadf8ee6affccf707b373621979eefdc0419 | refs/heads/master | 2021-01-23T18:10:34.065463 | 2016-03-04T14:19:56 | 2016-03-04T14:19:56 | 53,139,454 | 0 | 0 | null | 2016-03-04T14:07:27 | 2016-03-04T14:07:26 | null | UTF-8 | C++ | false | false | 544 | cpp | mesh_renderer.cpp | #include "mesh_renderer.hpp"
namespace OpenGLEngine {
MeshRenderer::MeshRenderer() {}
MeshRenderer::~MeshRenderer() {
delete mesh;
delete material;
}
void MeshRenderer::update(Transform* worldTransform, Camera* mainCamera, float deltaTime) {
material->bind(worldTransform, mainCamera, deltaTime);
mesh->update();
material->unbind();
}
void MeshRenderer::setMesh(Mesh* mesh) {
this->mesh = mesh;
}
void MeshRenderer::setMaterial(Material* material) {
this->material = material;
}
}
|
dbcda3e3e2e343662a8e3957d5c56aa608327366 | 0d653408de7c08f1bef4dfba5c43431897097a4a | /cmajor/sngcm/cmnothrowparser/Enumeration.hpp | fae7984310037888d972683510fc3698559bb17a | [] | no_license | slaakko/cmajorm | 948268634b8dd3e00f86a5b5415bee894867b17c | 1f123fc367d14d3ef793eefab56ad98849ee0f25 | refs/heads/master | 2023-08-31T14:05:46.897333 | 2023-08-11T11:40:44 | 2023-08-11T11:40:44 | 166,633,055 | 7 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,287 | hpp | Enumeration.hpp | #ifndef ENUMERATION_HPP
#define ENUMERATION_HPP
#include <sngcm/cmnothrowparser/ParserApi.hpp>
#include <sngcm/ast/Enumeration.hpp>
#include <sngcm/cmnothrowparser/NothrowParsingContext.hpp>
#include <soulng/lexer/Token.hpp>
#include <soulng/parser/Match.hpp>
#include <soulng/parser/Value.hpp>
// this file has been automatically generated from 'C:/work/cmajorm/cmajor/sngcm/cmnothrowparser/Enumeration.parser' using soulng parser generator spg version 4.0.0
class CmajorNothrowLexer;
struct SNGCM_NOTHROW_PARSER_API NothrowEnumerationParser
{
static soulng::parser::Match EnumType(CmajorNothrowLexer& lexer, boost::uuids::uuid* moduleId, NothrowParsingContext* ctx);
static soulng::parser::Match DefiningEnumTypeId(CmajorNothrowLexer& lexer, boost::uuids::uuid* moduleId);
static soulng::parser::Match UnderlyingType(CmajorNothrowLexer& lexer, boost::uuids::uuid* moduleId, NothrowParsingContext* ctx);
static soulng::parser::Match EnumConstants(CmajorNothrowLexer& lexer, boost::uuids::uuid* moduleId, NothrowParsingContext* ctx, sngcm::ast::EnumTypeNode* enumType);
static soulng::parser::Match EnumConstant(CmajorNothrowLexer& lexer, boost::uuids::uuid* moduleId, NothrowParsingContext* ctx, sngcm::ast::EnumTypeNode* enumType);
};
#endif // ENUMERATION_HPP
|
0f4b6dda4a7af73e0927471d6e0a9cf6af7e6e58 | 24810639b18927451490daaf079482cb7001c0e4 | /SOFTWARE/led_FFT5/led_FFT5.ino | 7a7f098c414127a28f0960b350c7fa6cf30a19e6 | [] | no_license | KeilToso/JAK-EE-chan | 7b5d5d93798969798dd05dec968950a601494b32 | 09efbf21fd8410ed53227aa6997a0b64955f6ffc | refs/heads/master | 2021-01-10T16:44:57.199744 | 2016-05-02T22:04:39 | 2016-05-02T22:04:39 | 49,601,524 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,905 | ino | led_FFT5.ino | // EE 403
// Team JAK-EE chan
// Authors: Jeremy Doll, Ahmad Mostafa, Keil Toso
// LED library
#include "FastLED.h"
// FFT setup
#include <Audio.h>
#include <Wire.h>
#include <SPI.h>
#include <SD.h>
#include <SerialFlash.h>
// Number of total LED's
#define NUM_LEDS 16
// Data pin for writing out LED data
#define DATA_PIN 3
// Clock pin for LED's
#define CLOCK_PIN 8
// Array of LED's; one item for each LED.
CRGB leds[NUM_LEDS];
const int myInput = AUDIO_INPUT_LINEIN;
//const int myInput = AUDIO_INPUT_MIC;
// Create the Audio components. These should be created in the
// order data flows, inputs/sources -> processing -> outputs
//
AudioInputI2S audioInput; // audio shield: mic or line-in
AudioAnalyzeFFT1024 myFFT;
AudioOutputI2S audioOutput; // audio shield: headphones & line-out
// Connect either the live input or synthesized sine wave
AudioConnection patchCord1(audioInput, 0, myFFT, 0);
AudioControlSGTL5000 audioShield;
void setup()
{
// Sanity check delay
delay(2000);
//Serial.begin(38400); uncomment to read analog pins to test buttons
FastLED.addLeds<APA102, DATA_PIN, CLOCK_PIN, RGB>(leds, NUM_LEDS);
// Required audio for memory connections
AudioMemory(12);
// Enable the audio shield and set the output volume.
audioShield.enable();
audioShield.inputSelect(myInput);
audioShield.volume(0.5);
// Configure the desired window function for FFT use.
myFFT.windowFunction(AudioWindowHanning1024);
// Start-up Sequence
for(int k=0; k<8; k++)
{
// red
leds[15-k].setRGB(0,0,255);
// blue
leds[k].setRGB(255,0,0);
FastLED.show();
delay(150);
}
for(int k=0; k<16; k++)
{
// purple
leds[k].setRGB(255,0,255);
// green
leds[15-k].setRGB(0,255,0);
FastLED.show();
delay(100);
}
for(int k=0; k<16; k++)
{
// cyan
leds[k].setRGB(255,255,0);
// yellow
leds[15-k].setRGB(0,255,255);
FastLED.show();
delay(50);
}
// Turn off all LED's
for(int k=0; k<16; k++)
{
leds[k].setRGB(0,0,0);
FastLED.show();
}
}
// Button variables store voltages at analog inputs (0-1023)
int button1;
int button2;
int button3;
// Count variables keep track of LED colors
int count1 = 0;
int count2 = 0;
int count3 = 0;
// Store values corresponding to LED colors for each button
int color1 = 0;
int color2 = 0;
int color3 = 0;
// RGB values for each button
int r1 = 0;
int g1 = 0;
int b1 = 0;
int r2 = 0;
int g2 = 0;
int b2 = 0;
int r3 = 0;
int g3 = 0;
int b3 = 0;
void loop()
{
// Read voltages at analog pins to determine whether or not a button was pressed
button1 = analogRead(2);
button2 = analogRead(3);
//button3 = analogRead(6);
//////////// buttons ///////////////////////////////////////////////////
// Row 1
if ((button1 <= 500) && (count1 == 0))
{
// Green
b1 = 0;
g1 = 255;
r1 = 0;
count1 = 1;
delay(200);
}
else if ((button1 <= 500) && (count1 == 1))
{
// Blue
b1 = 255;
g1 = 0;
r1 = 0;
count1 = 2;
delay(200);
}
else if ((button1 <= 500) && (count1 == 2))
{
// Red
b1 = 0;
g1 = 0;
r1 = 255;
count1 = 3;
delay(200);
}
else if ((button1 <= 500) && (count1 == 3))
{
// Cyan
b1 = 255;
g1 = 255;
r1 = 0;
count1 = 4;
delay(200);
}
else if ((button1 <= 500) && (count1 == 4))
{
// Purple
b1 = 255;
g1 = 0;
r1 = 255;
count1 = 5;
delay(200);
}
else if ((button1 <= 500) && (count1 == 5))
{
// Yellow
b1 = 0;
g1 = 255;
r1 = 255;
count1 = 6;
delay(200);
}
else if ((button1 <= 500) && (count1 == 6))
{
// White
b1 = 255;
g1 = 255;
r1 = 255;
count1 = 7;
delay(200);
}
else if ((button1 <= 500) && (count1 == 7))
{
// Black (off)
b1 = 0;
g1 = 0;
r1 = 0;
count1 = 0;
delay(200);
}
// Row 2
if ((button2 <= 500) && (count2 == 0))
{
// Green
b2 = 0;
g2 = 255;
r2 = 0;
count2 = 1;
delay(200);
}
else if ((button2 <= 500) && (count2 == 1))
{
// Blue
b2 = 255;
g2 = 0;
r2 = 0;
count2 = 2;
delay(200);
}
else if ((button2 <= 500) && (count2 == 2))
{
// Red
b2 = 0;
g2 = 0;
r2 = 255;
count2 = 3;
delay(200);
}
else if ((button2 <= 500) && (count2 == 3))
{
// Cyan
b2 = 255;
g2 = 255;
r2 = 0;
count2 = 4;
delay(200);
}
else if ((button2 <= 500) && (count2 == 4))
{
// Purple
b2 = 255;
g2 = 0;
r2 = 255;
count2 = 5;
delay(200);
}
else if ((button2 <= 500) && (count2 == 5))
{
// Yellow
b2 = 0;
g2 = 255;
r2 = 255;
count2 = 6;
delay(200);
}
else if ((button2 <= 500) && (count2 == 6))
{
// White
b2 = 255;
g2 = 255;
r2 = 255;
count2 = 7;
delay(200);
}
else if ((button2 <= 500) && (count2 == 7))
{
// Black (off)
b2 = 0;
g2 = 0;
r2 = 0;
count2 = 0;
delay(200);
}
////////////////////////////////////////////////////////////
float n;
int i;
// Only operate if FFT data available
if (myFFT.available())
{
Serial.print("FFT: ");
// Print only FFT data that exceeds threshold (n)
// i is the FFT bin (512 total, spaced ~ 43 Hz apart)
for (i=0; i<512; i++)
{
n = myFFT.read(i);
if (n >= 0.03)
{
Serial.print(n);
Serial.print(" ");
// Bass frequencies
if ((n >= 0.05) && (i < 12))
{
for(int j=0; j<8; j++)
{
leds[j].setRGB(b1,g1,r1);
}
FastLED.show();
delay(10);
for(int j=0; j<8; j++)
{
leds[j].setRGB(0,0,0);
}
FastLED.show();
}
// Treble Frequencies
else if (i >= 22)
{
for(int j=8; j<16; j++)
{
leds[j].setRGB(b2,g2,r2);
}
FastLED.show();
delay(10);
for(int j=8; j<16; j++)
{
leds[j].setRGB(0,0,0);
}
FastLED.show();
}
/*
// Treble frequencies
else if (i >= 37)
{
for(int j=16; j<24; j++)
{
leds[j].setRGB(r3,g3,b3);
}
FastLED.show();
delay(100);
for(int j=16; j<24; j++)
{
leds[j].setRGB(0,0,0);
}
FastLED.show();
}
*/
}
else
{
Serial.print(" low ");
}
}
Serial.println();
}
}
|
e1b85fa0c7daac285c0dad7f60c3fe23f0801690 | fdfaf8e8449c5e80d93999ea665db48feaecccbe | /trunk/cg ex3/ParticleSystemLoader.h | 73db0e2b23342cd4e0eaef7e3ba014e000679a1a | [] | no_license | BackupTheBerlios/glhuji2005-svn | 879e60533f820d1bdcfa436fd27894774c27a0b7 | 3afe113b265704e385c94fabaf99a7d1ad1fdb02 | refs/heads/master | 2016-09-01T17:25:30.876585 | 2006-09-03T18:04:19 | 2006-09-03T18:04:19 | 40,673,356 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 878 | h | ParticleSystemLoader.h | #ifndef __PARTICLESYSTEM_LOADER_H__
#define __PARTICLESYSTEM_LOADER_H__
class CSimulationsParams;
class CLoadIni;
//utility class to load ParticleSystem from a file into the particle system
class CParticleSystemLoader
{
public:
//returns true if everything was loaded OK
static bool Load( CSimulationsParams &inParams, const char* inFileName );
protected:
static bool createParticleSystem( CSimulationsParams &inParams, CLoadIni &inLoader );
static bool readGlobalConstants( CSimulationsParams &inParams, CLoadIni &inLoader );
static bool readParticleDefaults( CSimulationsParams &inParams, CLoadIni &inLoader );
static bool readNewtonianParticleSystem( CSimulationsParams &inParams, CLoadIni &inLoader );
static bool readFlockParticleSystem( CSimulationsParams &inParams, CLoadIni &inLoader );
};
#endif //__PARTICLESYSTEM_LOADER_H__ |
172e24018e5e3b98ef2080d9f73b095580691c88 | 75bc948f21807a59207d510747fd5641a2dc9f59 | /modules/UnifyDLL_RF_U2416_Certification/TestProcessor/TestItem/CommonTestItem/SyncCombo.h | be470cf170b00568c77c9b0b67fbe4a602629d86 | [] | no_license | EmbeddedSystemClass/U24 | 665a7211b790cd08035d7719775c58f0bc15072b | de2ef2884ad1a8a07df3a444d1db9f13a921a774 | refs/heads/master | 2021-06-15T09:40:47.079680 | 2016-09-14T12:29:57 | 2016-09-20T06:53:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 601 | h | SyncCombo.h | #ifndef _C_SYNC_COMBO_H_
#define _C_SYNC_COMBO_H_
#include "../../../CommonUtility/BaseObject/ITestProcessor.h"
class CSyncCombo : public ITestProcessor
{
RF_DECLARE_DYNCREATE(CSyncCombo)
// Data members
public:
protected:
private:
std::string m_strErrCode ;
std::string m_strMsg ;
int m_iEFsSyncRetryCount;
// Member functions
public:
CSyncCombo() {}
~CSyncCombo() {}
virtual bool InitData(std::map<std::string, std::string>& paramMap);
virtual bool Run();
virtual bool PostRun();
protected:
private:
bool MainFunction();
};
#endif // End of #ifndef _C_SYNC_COMBO_H_
|
18850cef2a09f2c26919cd07952c84845a16d99a | afb7006e47e70c1deb2ddb205f06eaf67de3df72 | /security/sandbox/chromium/base/posix/can_lower_nice_to.h | 34b97e1121569ee984a5a861b12f44885f3344d7 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | marco-c/gecko-dev-wordified | a66383f85db33911b6312dd094c36f88c55d2e2c | 3509ec45ecc9e536d04a3f6a43a82ec09c08dff6 | refs/heads/master | 2023-08-10T16:37:56.660204 | 2023-08-01T00:39:54 | 2023-08-01T00:39:54 | 211,297,590 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 620 | h | can_lower_nice_to.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
BASE_POSIX_CAN_LOWER_NICE_TO_H_
#
define
BASE_POSIX_CAN_LOWER_NICE_TO_H_
namespace
base
{
namespace
internal
{
/
/
Returns
true
if
lowering
the
nice
value
of
a
process
or
thread
to
/
/
|
nice_value
|
using
setpriority
(
)
or
nice
(
)
should
succeed
.
Note
:
A
lower
nice
/
/
value
means
a
higher
priority
.
bool
CanLowerNiceTo
(
int
nice_value
)
;
}
/
/
namespace
internal
}
/
/
namespace
base
#
endif
/
/
BASE_POSIX_CAN_LOWER_NICE_TO_H_
|
d352b90b7a964d2be55d92f9278af48e8ff29319 | cf3eac42f1e6f75a31a64ade1d5bf1ebab244c12 | /Source/HomeBuilder/Components/BuildingComponent.h | 341b1ff8fe431092a29b29c9ed2c0ecf79b1c22f | [] | no_license | IgorSychenko/HomeBuilder | 55be11dd5536bbb80b213f13ac4fd60c6cd9d9d1 | 57cf0157677d73af03fb57c1d24944552b52a0ef | refs/heads/main | 2023-04-16T14:13:44.402731 | 2021-05-07T10:35:42 | 2021-05-07T10:35:42 | 360,820,906 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,012 | h | BuildingComponent.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Components/ActorComponent.h"
#include "BuildingComponent.generated.h"
class UBuildingGhostComponent;
DECLARE_DYNAMIC_MULTICAST_DELEGATE(FStartConstruct);
DECLARE_DYNAMIC_MULTICAST_DELEGATE(FEndConstruct);
UCLASS( ClassGroup=(Custom), meta=(BlueprintSpawnableComponent) )
class HOMEBUILDER_API UBuildingComponent : public UActorComponent
{
GENERATED_BODY()
public:
// Sets default values for this component's properties
UBuildingComponent();
virtual void BeginPlay() override;
protected:
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "BuildingComponent|Construct", meta = (ClampMin = "0", UIMin = "0"))
float ProgressCompleteTime = 4.0f;
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "BuildingComponent|Construct", meta = (ClampMin = "0", UIMin = "0"))
float OffsetConstructPosition = 100.0f;
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "BuildingComponent|Construct", meta = (ClampMin = "0", UIMin = "0"))
int32 ConstructCost = 10;
UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = "BuildingComponent|Construct")
TSubclassOf<AActor> ConstructActorClass;
UFUNCTION()
void CreateConstruct();
public:
virtual void TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override;
UFUNCTION(BlueprintPure, Category = "BuildingComponent|Construct")
FVector GetRelativeLocation() const;
UFUNCTION(BlueprintPure, Category = "BuildingComponent|Construct")
FVector GetSpawnLocation() const;
UFUNCTION(BlueprintCallable, Category = "BuildingComponent|Construct")
void StartConstruct();
UFUNCTION(BlueprintCallable, Category = "BuildingComponent|Construct")
void StopConstruct();
UFUNCTION(BlueprintPure, Category = "BuildingComponent|Construct")
FORCEINLINE float GetProgress() const { return Progress; }
UFUNCTION(BlueprintPure, Category = "BuildingComponent|Construct")
FORCEINLINE float GetProgressRatio() const { return ProgressCompleteTime > 0 ? static_cast<float>(Progress) / static_cast<float>(ProgressCompleteTime) : 1.f; }
UFUNCTION(BlueprintPure, Category = "BuildingComponent|Construct")
FORCEINLINE bool IsInProgress() const { return bIsInProgress; }
UFUNCTION(BlueprintPure, Category = "BuildingComponent|Construct")
FORCEINLINE int32 GetConstructCost() const { return ConstructCost; }
UFUNCTION(BlueprintPure, Category = "BuildingComponent|Construct")
bool CanStartConstruct() const;
UFUNCTION(BlueprintPure, Category = "BuildingComponent|Construct")
bool IsPositionValid() const;
UPROPERTY(BlueprintAssignable, Category = "ResourceComponent|Resource")
FStartConstruct OnStartConstruct;
UPROPERTY(BlueprintAssignable, Category = "ResourceComponent|Resource")
FEndConstruct OnEndConstruct;
private:
float Progress = 0.0f;
bool bIsInProgress = false;
UPROPERTY()
UBuildingGhostComponent* BuildingGhostComponent;
};
|
205271a9353edfd1262a3ace28628af30e0ba907 | 52e98bc189581d04b76b334f516f22f2be5becee | /c/FinalWork/change_person.h | dd3b65e9cd935d605b4165b13e3f60863cdf20ce | [] | no_license | dingyang666/cwork | eebbf8d3d601da4018fbf6e8cbba099bc454ead8 | 23aa31e0b6a400c4bbeec67571f4e2a5d40e510f | refs/heads/master | 2020-05-05T06:35:15.988272 | 2019-10-09T16:54:45 | 2019-10-09T16:54:45 | 179,794,157 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 525 | h | change_person.h | #ifndef CHANGE_PERSON_H
#define CHANGE_PERSON_H
#include "tesk.h"
#include "ui_change_person.h"
#include <QMainWindow>
namespace Ui {
class Change_person;
}
class Change_person : public QDialog
{
Q_OBJECT
public:
explicit Change_person(QWidget *parent = nullptr);
~Change_person();
void set(const QString &);
private slots:
void on_pushButton_exit_clicked();
void on_pushButton_enter_clicked();
private:
Ui::Change_person *ui;
QString this_staff_id;
};
#endif // CHANGE_PERSON_H
|
51401a929ea9ea125d966a9d89ecd3db50e27dbc | 1ca25100e8eed375f2f3b758dcf4748fde7aadfd | /test/rtos/esp-idf/udp-echo-dataport/main/main.cpp | cfd5babeb87e01438f4399872d610c41e0baa177 | [
"MIT"
] | permissive | malachi-iot/embr | 5ac145c94629581290443f17f16f9765ba7380d9 | e3d7aa9825ae5f196941c7b351b06dabce45da4f | refs/heads/master | 2023-07-20T03:55:42.253585 | 2020-01-27T16:47:34 | 2020-01-27T16:47:34 | 139,432,484 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 359 | cpp | main.cpp | #include <esp-helper.h>
#include "esp_system.h"
#include "esp_wifi.h"
void udp_echo_handler(void*);
extern "C" void app_main()
{
init_flash();
#ifdef FEATURE_IDF_DEFAULT_EVENT_LOOP
wifi_init_sta();
#else
wifi_init_sta(event_handler);
#endif
xTaskCreate(udp_echo_handler,
"udp_echo_handler", 4096, nullptr, 4, nullptr);
}
|
adf23559ea7faad9783ea354fc8c7fece910c299 | 2dd7a52f4163281ceb2e0f3e59254b93be654f6a | /data-structure/stack/src/stl-stack.cpp | b5a6bd137f48694ec19e1df9cb3f957774957033 | [] | no_license | and0rnot/noip | 2e27dee04c6e95d95b6990a2bc4d377b7d06414b | 8673c927b9c7af02491deed31e475a2f59b3e16e | refs/heads/master | 2020-06-17T06:17:04.520499 | 2019-09-17T13:33:58 | 2019-09-17T13:33:58 | 195,826,758 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 496 | cpp | stl-stack.cpp | #include <iostream>
#include <string>
#include <stack> // for stack<T> container
using namespace std;
int main() {
stack<string> colors;
string color;
while (cin >> color) {
if (color == "q")
break;
colors.push(color);
}
cout << colors.size() << endl;
cout << "current top: " << colors.top() << endl;
while (!colors.empty()) {
string c = colors.top();
cout << c << endl;
colors.pop();
}
return 0;
} |
3bd7b50a171d4c65538415f54ea81d1bf69c265a | 6d332fc38847d206ce9a016cd0f224fa936ee5de | /OrderManager/OrderManagerView.cpp | 8410b78e0078442a3a3b9430da899e01afaa1291 | [] | no_license | zephyrer/lingtongshen-qiyemanager | 7b56dd63c55e09f66b007d6e4900c9b5594b5d27 | ecf9d4f8476d09f8814fb238a588e51ae0ba589a | refs/heads/master | 2020-12-24T15:04:45.365063 | 2013-04-10T07:10:49 | 2013-04-10T07:10:49 | 40,067,521 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 5,776 | cpp | OrderManagerView.cpp | // OrderManagerView.cpp : COrderManagerView 类的实现
//
#include "stdafx.h"
#include "OrderManager.h"
#include "OrderManagerDoc.h"
#include "OrderManagerView.h"
#include "SelectView.h"
#include "../Global/Global.h"
#include "ShowOrderGridView.h"
#include "ShowSampleGridView.h"
#include "ShowCustomerGridView.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// COrderManagerView
IMPLEMENT_DYNCREATE(COrderManagerView, CView)
BEGIN_MESSAGE_MAP(COrderManagerView, CView)
// 标准打印命令
ON_COMMAND(ID_FILE_PRINT, &CView::OnFilePrint)
ON_COMMAND(ID_FILE_PRINT_DIRECT, &CView::OnFilePrint)
ON_COMMAND(ID_FILE_PRINT_PREVIEW, &CView::OnFilePrintPreview)
ON_MESSAGE(WM_USER_MSG_REFRESH,&COrderManagerView::OnRefresh)
ON_MESSAGE(WM_USER_MSG_LOADVIEW,&COrderManagerView::OnLoadMsg)
//ON_NOTIFY(NM_CLICK, IDC_GRID, OnGridClick)
END_MESSAGE_MAP()
// COrderManagerView 构造/析构
COrderManagerView::COrderManagerView()
{
// TODO: 在此处添加构造代码
m_pGridView=NULL;
}
COrderManagerView::~COrderManagerView()
{
if(m_pGridView)
delete m_pGridView;
if(pProgBar)
delete pProgBar;
}
LRESULT COrderManagerView::OnRefresh(WPARAM wp,LPARAM lp)
{
m_pGridView->m_GridViewData.clear();
m_pGridView->SetTitle();
BOOL rVal=m_pGridView->SetContent();
if(!rVal)
S_LOG_FATAL(L"refresh content fail!,table index:"<<m_pGridView->GetTableIndex());
m_pGridView->UpdateGridData();
return 1L;
}
LRESULT COrderManagerView::OnLoadMsg(WPARAM wp,LPARAM lp)
{
pProgBar->ShowWindow(SW_SHOW);
pProgBar->SetPos((int)wp);
return 1L;
}
BOOL COrderManagerView::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: 在此处通过修改
// CREATESTRUCT cs 来修改窗口类或样式
return CView::PreCreateWindow(cs);
}
// COrderManagerView 绘制
void COrderManagerView::OnDraw(CDC* /*pDC*/)
{
COrderManagerDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
if (!pDoc)
return;
// TODO: 在此处为本机数据添加绘制代码
}
// COrderManagerView 打印
BOOL COrderManagerView::OnPreparePrinting(CPrintInfo* pInfo)
{
// 默认准备
return DoPreparePrinting(pInfo);
}
void COrderManagerView::OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo)
{
// TODO: 添加额外的打印前进行的初始化过程
S_TRACE_FUNCTION;
if (m_pGridView)
m_pGridView->OnBeginPrinting(pDC,pInfo);
}
void COrderManagerView::OnEndPrinting(CDC* pDC, CPrintInfo* pInfo)
{
// TODO: 添加打印后进行的清除过程
S_TRACE_FUNCTION;
if (m_pGridView)
m_pGridView->OnEndPrinting(pDC,pInfo);
}
void COrderManagerView::OnPrint(CDC* pDC, CPrintInfo* pInfo)
{
S_TRACE_FUNCTION;
if (m_pGridView)
m_pGridView->OnPrint(pDC,pInfo);
}
void COrderManagerView::OnInitGrid()
{
//init grid view
S_TRACE_FUNCTION;
OnInitProgressBar();
CRect rect;
GetClientRect(rect);
if(NULL==m_pGridView)
{
switch(g_CurTableIndex)
{
case ORDER_ITEM:
m_pGridView=new CShowOrderGridView(this,rect);
break;
case SAMPLE_ITEM:
m_pGridView=new CShowSampleGridView(this,rect);
break;
case CUSTOMER_ITEM:
m_pGridView=new CShowCustomerGridView(this,rect);
break;
default:
return;
}
if(!m_pGridView->InitGrid())
{
::AfxMessageBox(L"初始化失败,请重试!");
}
}
}
void COrderManagerView::OnInitProgressBar()
{
//make it in centre
pProgBar=(CProgressCtrl*) new CProgressCtrl;
CRect wndRect, prgRect;
GetClientRect(wndRect);
prgRect.left=wndRect.left+wndRect.Width()/2-100;
prgRect.right=wndRect.right-wndRect.Width()/2+100;
prgRect.top=wndRect.top+wndRect.Height()/2-10;
prgRect.bottom=wndRect.bottom-wndRect.Height()/2+10;
//create progress bar, hide by default
pProgBar->Create(WS_CHILD|WS_VISIBLE|PBS_SMOOTH,prgRect, (CWnd*)this,IDC_LOADVIEW_PROG_BAR);
pProgBar->ShowWindow(SW_HIDE);
pProgBar->SetRange(0,MAX_RECORDS_NUM);
}
unsigned int COrderManagerView::LoadGridView(LPVOID lParam)
{
COrderManagerView* pView=(COrderManagerView*)lParam;
pView->OnInitGrid();
#if 0
SET_PB_LOAD_POS(pView,10);
if(!pView->m_pGridView->InitGrid())
{
::AfxMessageBox(L"初始化失败,请重试!");
}
SET_PB_LOAD_POS(pView,20);
pView->pProgBar->ShowWindow(SW_HIDE);
#endif
pView->RedrawWindow();
return 0;
}
void COrderManagerView::OnInitialUpdate()
{
S_TRACE_FUNCTION;
CView::OnInitialUpdate();
//init grid
OnInitGrid();
#if 0
pLoadThread=AfxBeginThread(LoadGridView,this,THREAD_PRIORITY_NORMAL,0,0,NULL);
pLoadThread->m_bAutoDelete=FALSE;
pLoadThread->ResumeThread();
#endif
}
void COrderManagerView::OnSize(UINT nType, int cx, int cy)
{
CView::OnSize(nType, cx, cy);
CRect rect;
GetClientRect(rect);
m_pGridView->OnGridViewSize(rect);
}
BOOL COrderManagerView::OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo)
{
if(m_pGridView->OnGridCMDMsg(nID,nCode,pExtra,pHandlerInfo))
return TRUE;
return CView::OnCmdMsg(nID, nCode, pExtra, pHandlerInfo);
}
void COrderManagerView::OnToggleReadonly()
{
m_pGridView->OnGridToggleReadonly();
}
BOOL COrderManagerView::OnEraseBkgnd(CDC* pDC)
{
return TRUE;
//return CView::OnEraseBkgnd(pDC);
}
// COrderManagerView 诊断
#ifdef _DEBUG
void COrderManagerView::AssertValid() const
{
CView::AssertValid();
}
void COrderManagerView::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
COrderManagerDoc* COrderManagerView::GetDocument() const // 非调试版本是内联的
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(COrderManagerDoc)));
return (COrderManagerDoc*)m_pDocument;
}
#endif //_DEBUG
// COrderManagerView 消息处理程序
|
563c03ecf6af7dac1a82c2db8c95e0665e1cbf50 | 1e1b987eba352e2857b07912011558b8840a3c6f | /bug.h | 3937384b58851372d115e863f9a9c62fc43251ae | [
"MIT"
] | permissive | juliekirwin/Bug-Game | 2c38c32c891fc6398e69b1dac6a619319c1198f0 | 531bac7807745ae303ea68569094d976ae528503 | refs/heads/master | 2021-01-01T06:54:32.951992 | 2014-03-20T23:55:24 | 2014-03-20T23:55:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,622 | h | bug.h | //bug.h
// Declares BugClass, HornetClass, KillerAnt, SpiderClass
#ifndef _BUG
#define _BUG
#include <iostream>
#include <string>
#include <cstring>
#include "gamefiles.h"
#include "dice.h"
#include "player.h"
using namespace std;
using namespace GameFiles;
class BugClass:public PlayerClass
{
public:
void Display(ostream& out) const;
// Displays the bug
protected:
BugClass(const string name, const int initSTATS[], const int initStats[]);
//the appropriate function to set the data.
//Pre: the char type and string str have already been set by the user
void Turn();
// Turns the player in a clockwise direction
BugClass * Clone() const;
// Create a clone of the object
};
//************************************************************
class HornetClass: public BugClass
{
public:
HornetClass(const string name);
// Constructor for creating a Hornet
void Display(ostream & out) const;
// Displays the object
bool Move();
// Moves the Hornet using the Hornet algorithm
// The move stops when the Hornet runs out of momentum,
// becomes inactive, cannot move in any direction
protected:
HornetClass * Clone() const;
// Create a clone of the object
private:
// Initial settings for a Hornet
static const int INIT_stats[8];
static const int INIT_STATS[5];
};
//************************************************************
class KillerAntClass: public BugClass
{
public:
KillerAntClass(const string name);
// Constructor for creating a KillerAnt
void Display(ostream & out) const;
// Displays the object
bool Move();
// Moves the KillerAnt using the KillerAnt algorithm
// The move stops when the player runs out of momentum,
// becomes inactive, cannot move in any direction
protected:
KillerAntClass * Clone() const;
// Create a clone of the object
private:
// Initial settings for a KillerAnt
static const int INIT_stats[8];
static const int INIT_STATS[5];
};
//************************************************************
class SpiderClass: public BugClass
{
public:
SpiderClass(const string name);
// Constructor to create the object
void Display(ostream & out) const;
// Displays the object
bool Move();
// Moves the Spider using the Spider algorithm
// The move stops when the player runs out of momentum,
// becomes inactive, cannot move in any direction
protected:
SpiderClass * Clone() const;
// Create a clone of the object
private:
// Initial settings for a KillerAnt
static const int INIT_stats[8];
static const int INIT_STATS[5];
};
#endif
|
2750a711526584e30ccab163e0e1fa9339516efb | 59976c7c50016c4834e6b293500223465271cbb1 | /renderer/inputstate.cpp | 5c9bea6be2efde4cdc177a80d4020b7bf2cd9399 | [] | no_license | JulioC/Scene-Renderer | 9e1c20e4058138c0a6b286431b98432b0e16a6b6 | 0ff43872cf70aac38297fbe31177e0c606d6d369 | refs/heads/master | 2016-08-04T19:54:09.792331 | 2015-04-16T04:40:54 | 2015-04-16T04:40:54 | 6,195,442 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,476 | cpp | inputstate.cpp | #include "inputstate.h"
InputState::InputState() :
_nextMouseState(MouseNone),
_mouseState(MouseNone),
_prevMouseState(MouseNone),
_nextMousePosition(0, 0),
_mousePosition(0, 0),
_prevMousePosition(0, 0)
{
}
void InputState::clearState()
{
_nextMouseState = MouseNone;
_mouseState = MouseNone;
_prevMouseState = MouseNone;
_mousePosition = QPointF(0, 0);
}
void InputState::update()
{
_prevMouseState = _mouseState;
_mouseState = _nextMouseState;
_prevMousePosition = _mousePosition;
_mousePosition = _nextMousePosition;
_mouseScroll = _nextMouseScroll;
_nextMouseScroll = 0;
}
bool InputState::mouseButton(MouseButton button) const
{
return button && (_mouseState & button);
}
void InputState::mouseButton(MouseButton button, bool state)
{
if(state) {
_nextMouseState |= button;
}
else {
_nextMouseState &= ~button;
}
}
bool InputState::mousePressed(MouseButton button) const
{
return button && (_mouseState & button) && !(_prevMouseState & button);
}
bool InputState::mouseDown(MouseButton button) const
{
return button && (_mouseState & button);
}
bool InputState::mouseUp(MouseButton button) const
{
return button && !(_mouseState & button);
}
void InputState::mousePosition(const QPointF &position)
{
_nextMousePosition = position;
}
QPointF InputState::mouseMotion() const
{
return _mousePosition - _prevMousePosition;
}
void InputState::mouseScroll(int scroll)
{
_nextMouseScroll += scroll;
}
|
99e8dde970d7122e9a66df8f842d466bf3f46442 | 2d3cbf5933567ce3c3dcb8f004f1571067742f87 | /libtsuba/src/LocalStorage.h | be27aa307e2d638e1aee0c368082cf7801929073 | [
"BSD-3-Clause",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | KatanaGraph/katana | 9de617944264873198ec7db5ed022d356b1a529a | 350b6606da9c52bc82ff80f64ffdde8c4bfdacce | refs/heads/master | 2022-06-24T02:50:16.426847 | 2022-03-29T12:23:22 | 2022-03-29T12:23:22 | 310,108,707 | 85 | 83 | NOASSERTION | 2023-08-09T00:07:55 | 2020-11-04T20:19:01 | C++ | UTF-8 | C++ | false | false | 3,301 | h | LocalStorage.h | #ifndef KATANA_LIBTSUBA_LOCALSTORAGE_H_
#define KATANA_LIBTSUBA_LOCALSTORAGE_H_
#include <sys/mman.h>
#include <cstdint>
#include <future>
#include <string>
#include <thread>
#include "katana/FileStorage.h"
#include "katana/Result.h"
namespace katana {
/// Store byte arrays to the local file system; Provided as a convenience for
/// testing only (un-optimized)
class LocalStorage : public FileStorage {
katana::Result<void> WriteFile(
const std::string&, const uint8_t* data, uint64_t size);
katana::Result<void> ReadFile(
const std::string& uri, uint64_t start, uint64_t size, uint8_t* data);
katana::Result<void> RemoteCopyFile(
const std::string& source_uri, const std::string& dest_uri,
uint64_t begin, uint64_t size);
public:
LocalStorage() : FileStorage("file://") {}
katana::Result<void> Init() override { return katana::ResultSuccess(); }
katana::Result<void> Fini() override { return katana::ResultSuccess(); }
katana::Result<void> Stat(const std::string& uri, StatBuf* s_buf) override;
uint32_t Priority() const override { return 1; }
katana::Result<void> GetMultiSync(
const std::string& uri, uint64_t start, uint64_t size,
uint8_t* result_buf) override {
return ReadFile(uri, start, size, result_buf);
}
katana::Result<void> PutMultiSync(
const std::string& uri, const uint8_t* data, uint64_t size) override {
return WriteFile(uri, data, size);
}
katana::Result<void> RemoteCopy(
const std::string& source_uri, const std::string& dest_uri,
uint64_t begin, uint64_t size) override {
return RemoteCopyFile(source_uri, dest_uri, begin, size);
}
// get on future can potentially block (bulk synchronous parallel)
std::future<katana::CopyableResult<void>> PutAsync(
const std::string& uri, const uint8_t* data, uint64_t size) override {
// No need for AsyncPut to local storage right now
if (auto write_res = WriteFile(uri, data, size); !write_res) {
katana::CopyableErrorInfo cei{write_res.error()};
return std::async(
std::launch::deferred,
[=]() -> katana::CopyableResult<void> { return cei; });
}
return std::async(
std::launch::deferred, []() -> katana::CopyableResult<void> {
return katana::CopyableResultSuccess();
});
}
std::future<katana::CopyableResult<void>> GetAsync(
const std::string& uri, uint64_t start, uint64_t size,
uint8_t* result_buf) override {
// I suppose there is no need for AsyncGet to local storage either
if (auto read_res = ReadFile(uri, start, size, result_buf); !read_res) {
katana::CopyableErrorInfo cei{read_res.error()};
return std::async(
std::launch::deferred,
[=]() -> katana::CopyableResult<void> { return cei; });
}
return std::async(
std::launch::deferred, []() -> katana::CopyableResult<void> {
return katana::CopyableResultSuccess();
});
}
std::future<katana::CopyableResult<void>> ListAsync(
const std::string& uri, std::vector<std::string>* list,
std::vector<uint64_t>* size) override;
katana::Result<void> Delete(
const std::string& directory,
const std::unordered_set<std::string>& files) override;
};
} // namespace katana
#endif
|
abb78027a938d2332db7298421cb412659ec5a7a | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/squid/gumtree/squid_repos_function_6478_squid-3.3.14.cpp | 4545a60ff00e5e8f913efae4e8c1f63d304b3a56 | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 127 | cpp | squid_repos_function_6478_squid-3.3.14.cpp | void
Mgr::CountersAction::pack(Ipc::TypedMsgHdr& msg) const
{
msg.setType(Ipc::mtCacheMgrResponse);
msg.putPod(data);
} |
20630b785836fa92db0a1344abf3eed26852e1e1 | 55c21739c917970883cee618f394b0472527dcbf | /trafff/Pavement.cc | a593d680fde0b170d86cdcf2fdee3514bc7bc768 | [] | no_license | alkuczino/Trafik-final | 3bb9e455c9be2d25bc055bbc7ee6deaaae9b94e0 | d979b484783817133b24ff3ee749767552ab89a3 | refs/heads/master | 2020-03-22T05:23:10.797601 | 2018-07-03T09:48:56 | 2018-07-03T09:48:56 | 139,561,931 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 158 | cc | Pavement.cc | #include "Pavement.h"
Pavement::Pavement(){}
Pavement::Pavement(int x, int y)
{
setPixmap(QPixmap(":/resources/Resources/pavement.png"));
setPos(x, y);
}
|
d0659bdfa438fe3f312a1b412f07a79080033eab | 131ee1a5d523ecc6e500fe2c1f8251e80ae3609f | /app/src/main/cpp/native-lib.cpp | b8813eae0f131cc7e9359a50e6730b04beba6a3f | [] | no_license | 2011conquer/AndroidGetProcesses | c3518b9a5bff6e598c00aaa9850696e5d0e063b1 | 992fade522a833379ee6ff7b3755c31baa9f0d2f | refs/heads/master | 2020-04-23T14:12:50.510423 | 2019-02-19T08:10:58 | 2019-02-19T08:10:58 | 171,223,972 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,010 | cpp | native-lib.cpp | #include <jni.h>
#include <string>
extern "C" JNIEXPORT jstring JNICALL
Java_com_testprocesses_org_getprocess_MainActivity_stringFromJNI(
JNIEnv *env,
jobject /* this */) {
std::string hello = "Hello from C++";
return env->NewStringUTF(hello.c_str());
}
extern "C" JNIEXPORT jstring JNICALL
Java_com_testprocesses_org_getprocess_MainActivity_passProcessInfos(JNIEnv *env, jobject /* this */, jobject processList)
{
jclass jListClass = env->GetObjectClass(processList);
jmethodID jListGet = env->GetMethodID(jListClass,"get","(I)Ljava/lang/Object;");
jmethodID jListSize = env->GetMethodID(jListClass,"size","()I");
jint len = env->CallIntMethod(processList,jListSize);
std::string result = "";
for (int i = 0; i < len; ++i)
{
jobject procInfo = env->CallObjectMethod(processList,jListGet,i);
jclass jProcInfoClass = env->GetObjectClass(procInfo);
jmethodID jGetAppName = env->GetMethodID(jProcInfoClass,"GetAppName","()Ljava/lang/String;");
jmethodID jGetPackageName = env->GetMethodID(jProcInfoClass,"GetPackageName","()Ljava/lang/String;");
jstring jstrAppName = (jstring)env->CallObjectMethod(procInfo,jGetAppName);
jstring jstrPackageName = (jstring)env->CallObjectMethod(procInfo,jGetPackageName);
const char* pszAppName = env->GetStringUTFChars(jstrAppName,0);
const char* pszPackageName = env->GetStringUTFChars(jstrPackageName,0);
if(pszAppName && pszPackageName)
{
std::string strAppName(pszAppName);
std::string strPackageName(pszPackageName);
result += strAppName;
result += "\n";
//result += strPackageName;
env->ReleaseStringUTFChars(jstrAppName,pszAppName);
env->ReleaseStringUTFChars(jstrPackageName,pszPackageName);
}
}
return env->NewStringUTF(result.c_str());
} |
2cb81c629acf9d781c203e1db45c9b8b4a58cac6 | d2d72032d3fa4537c0c278c199fcb447d791e48e | /libs/base/gaussian.h | 2e06a6a785c81e264e278901c63cdbb3cf0143ff | [
"MIT"
] | permissive | lineCode/gecko-1 | 28eb3b2964625e14aff7f3d20a66a9110280b573 | 6d874fbbddad65371958e6415ca07027cd1c89b8 | refs/heads/master | 2020-04-05T14:50:12.902104 | 2018-11-04T08:07:00 | 2018-11-04T08:07:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,345 | h | gaussian.h | //
// Copyright (c) 2017 Kimball Thurston
// All rights reserved.
// Copyrights licensed under the MIT License.
// See the accompanying LICENSE.txt file for terms
//
#pragma once
#include <vector>
#include <cmath>
////////////////////////////////////////
namespace base
{
template <typename T>
inline T gauss_integral( T a, T b )
{
T ca = std::min( std::max( T(-1), a ), T(1) );
T cb = std::min( std::max( T(-1), b ), T(1) );
double sa = 0.55303064330427195028 * std::erf( ca * 1.17741002251547 );
double sb = 0.55303064330427195028 * std::erf( cb * 1.17741002251547 );
return sb - sa;
}
template <typename T>
inline std::vector<T>
create_gaussian( T radius )
{
size_t kSize = static_cast<size_t>( radius * T(2) + T(1) );
if ( kSize % 2 == 0 )
++kSize;
T initValue = T(-0.5);
T nextValue = T(0.5);
std::vector<T> retval( kSize, T(0) );
size_t halfK = kSize / 2;
T sum = T(0);
for ( size_t x = 0; x <= halfK; ++x )
{
T partInt = gauss_integral( initValue / radius, nextValue / radius );
if ( x == 0 )
{
sum += partInt;
retval[halfK] = partInt;
}
else
{
retval[halfK + x] = partInt;
retval[halfK - x] = partInt;
sum += T(2) * partInt;
}
initValue = nextValue;
nextValue = std::min( radius, nextValue + T(1) );
}
for ( auto &x: retval )
x /= sum;
return retval;
}
} // namespace base
|
8529a3c17ec3d4ca9b64f8971c5aa555e8f13637 | 335ceda5c243ddb12ba3aea793777f796d144651 | /9-PalindromeNumber.cpp | 40e9035dd743e93c3b1734ffc0f66c3fa5b150fe | [] | no_license | xiangqianli/leetcode | 0cad257e5f667b996f0b35b96aa58ddac90d5f99 | ddef3c241649123c75b951eb5af5d6d1fb30faf0 | refs/heads/master | 2021-06-14T01:54:53.911836 | 2017-03-02T04:51:45 | 2017-03-02T04:51:45 | 52,338,716 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,973 | cpp | 9-PalindromeNumber.cpp | //
// 9-PalindromeNumber.cpp
// leetcode
//
// Created by lixiangqian on 16/12/11.
// Copyright © 2016年 lixiangqian. All rights reserved.
//
#include <iostream>
#include <stdio.h>
#include <string>
#include <vector>
#include <algorithm>
#include <map>
#include <set>
#include <math.h>
#include <stdlib.h>
using namespace std;
bool isPalindrome(int x) {
//处理小数
if(x<0){
return false;
//处理个位数
}else if(x==0 || x/10==0){
return true;
}else{
bool panduan = false;
//count the length of the Integer
int length = 0;
int hascountlength = 0;
int finallength = 1;
int tx = x;
int y=0, z=0, yy=0;
y=tx;
while (y/10 != 0) {
y = y/10;
length ++;
}
length +=1;
//存储总长度
int totallength = length;
while(totallength > hascountlength+1){
y = tx;
yy = tx;
//从高位向地位找
int templength = 0;
while (y/10 != 0) {
y = y/10;
templength ++;
}
if(templength < length-1){
y = 0;
}
//从低位向高位找
int t = finallength;
while(t>1){
yy = yy/10;
t -= 1;
}
z = yy%10;
if(y==z){
hascountlength +=2;
tx = tx - y*pow(10, length-1) - z*pow(10,finallength-1);
//下一步统计的个位数
finallength +=1;
panduan = true;
length --;
}else{
panduan = false;
break;
}
}
return panduan;
}
}
int main(){
int x = 121;
if(isPalindrome(x)){
cout<<"hello world!"<<endl;
}else{
cout<<"good night world!"<<endl;
}
return 0;
}
|
bf73bbe29febb2a11617b7a6b6bd012790f6368b | 2241258f751556964d29b73001957f6229c91fb5 | /Classes/AI/Monster.cpp | a7c0a57ab72ebf2be101625334e44ed9bd210728 | [] | no_license | Amu2016/RougeLike | d410a6eba06c79a46d58555ccd149a5f58a08a99 | e206fcac2907fb635fc62c01cdc4aec76aa384e5 | refs/heads/master | 2020-12-30T12:56:46.866250 | 2017-06-07T13:41:12 | 2017-06-07T13:41:12 | 91,380,920 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,486 | cpp | Monster.cpp | #include"Monster.h"
#include"Hero\Serber.h"
#include"Map\AStar.h"
#include"Map/Map2D.h"
#include"2D\Transformations.h"
Monster* Monster::create() {
Monster* sprite = new Monster();
if (sprite && sprite->init())
{
sprite->autorelease();
return sprite;
}
CC_SAFE_DELETE(sprite);
return nullptr;
}
bool Monster::init() {
if (!Sprite::init()) return false;
tileSize = MyTileMap::getInstance()->getTileSize();
mapSize = MyTileMap::getInstance()->getMapLayerSize();
winSize = Director::getInstance()->getWinSize();
mapXXSize = MyTileMap::getInstance()->getMapSize();
p_monster = Sprite::create();
addChild(p_monster, 1);
return true;
}
void Monster::update(float delta) {
}
Vec2 Monster::getHeroPos() {
return hero->getPosition();
}
bool Monster::beHurt(int damage) {
if (getActionByTag(WARM_BEHURT_TAG)) {
if (getActionByTag(WARM_BEHURT_TAG)->isDone()) {
nowHp = nowHp - damage + mDefense;
runBeHurtAnimate();
b_IsBeHurt = true;
return true;
}
}
else {
nowHp = nowHp - damage + mDefense;
runBeHurtAnimate();
b_IsBeHurt = true;
return true;
}
return false;
}
bool Monster::isBeHurt() {
if (b_IsBeHurt) {
if (getActionByTag(WARM_BEHURT_TAG)) {
if (getActionByTag(WARM_BEHURT_TAG)->isDone()) {
b_IsBeHurt = false;
}
else
return b_IsBeHurt;
}
b_IsBeHurt = false;
}
return b_IsBeHurt;
}
bool Monster::isDie() {
if (nowHp > 0) return false;
Gore* gore = Gore::create(goreType);
gore->setPosition(getPosition());
getParent()->addChild(gore, 0);
auto iter = (*p_vecWarm).begin();
while (iter != (*p_vecWarm).end()) {
if (*iter == this)
iter = (*p_vecWarm).erase(iter);
else
iter++;
}
removeFromParent();
return true;
}
bool Monster::isHaveCoollideFromHero() {
auto pos = getPosition();
auto heropos = hero->getPosition();
auto disSqu = pos.distanceSquared(hero->getPosition());
for (int i = tileSize.width / 2; i * i < disSqu - tileSize.width / 2; i += (tileSize.width / 2)) {
Vec2 testPoint = Vec2(i, 0);
Vec2 norVec = Vec2(hero->getPosition() - pos).getNormalized();
Vec2 localPos = PointToWorldSpace(
testPoint,
norVec,
norVec.getPerp(),
pos
);
Vec2 testLocalPos = tileMapPosition(localPos, MyTileMap::getInstance()->getMap());
if (tilesCollideKeys[testLocalPos]) {
return true;
}
}
return false;
}
void Monster::runBeHurtAnimate() {
//auto scale1 = ScaleTo::create(rigidityTime/2, 0.7f, 0.8f, 1.0f);
//auto scale2 = ScaleTo::create(rigidityTime/2, 1.0f);
//auto scale3 = EaseElasticOut::create(scale2);
//auto action = Sequence::create(scale1, scale2);
auto a = Vec2(-vVelocity.x, -vVelocity.y).getNormalized()*repelDistance;
auto move = MoveBy::create(rigidityTime, Vec2(-vVelocity.x, -vVelocity.y).getNormalized()*repelDistance);
auto jump = JumpBy::create(rigidityTime, Vec2(0, 0), 5.0f, 1);
//action->setTag(WARM_BEHURT_TAG);
move->setTag(WARM_BEHURT_TAG);
//p_monster->runAction(action);
runAction(move);
runAction(jump);
}
bool Monster::setPath() {
AStar* aStar = new AStar();
auto map = MyTileMap::getInstance()->getMap();
aStar->setTraget(tileMapPosition(getPosition(), map),
tileMapPosition(hero->getPosition(), map));
if (!aStar->FindPath())
return false;
auto listPath = aStar->getPathList();
path->clear();
for (auto wayPoint : listPath) {
auto a = tilePosToCenterPos(wayPoint, map);
path->addWayPoint(tilePosToCenterPos(wayPoint, map));
}
path->setCurrWayPoint();
return true;
} |
750425cc58d59b8e5c8fbedcab5848ed9109f7ba | d9090c18f1ffec3750d1af1e83f6cbfb60aae9f0 | /player.cpp | 07725ad9a942faaab3b7d8abbd91943de11d91a5 | [] | no_license | mazardoushaterial/MOSDungeon | 8066041af031b256d96f28cc60f3b1f15bcdd578 | 362248584d014b58f123232a216eb7ec3b8aec98 | refs/heads/master | 2020-04-01T11:27:07.545577 | 2018-11-14T20:59:54 | 2018-11-14T20:59:54 | 153,162,770 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,137 | cpp | player.cpp | #include "player.h"
#include "game.h"
Player::Player()
{
}
Player::Player(Game *pGame)
{
setUp(pGame);
}
void Player::setUp(Game *pGame)
{
game = pGame; //Set the pointer to the current game
//weapon = new Boomerang(game->resourceManager.weaponTextures);
weapon.loadWeapon("weapons/none.wep");
weapon.setTexture(game->resourceManager.weaponTextures);
//weapon = new Knife(game->resourceManager.weaponTextures);
//weapon = new Knife(pGame);
sprite.setTexture(game->resourceManager.rolfTextures);
sprite.setPosition(this->x,this->y);
projectile.sprite.setTexture(game->resourceManager.projectileTextures);
projectile.sprite.setTextureRect(sf::IntRect(0,0,16,16));
spriteOffset = 0;
sprite.setTextureRect(sf::IntRect(0,spriteOffset*16,16,16));
setWeaponToPlayer();
health = 1;
speed = 1;
UD = 0;
LR = 0;
steps = 0;
direction = 0;
}
void Player::input()
{}
void Player::setWeaponToPlayer() //fairly obvious
{
weapon.setPosition(this->x,this->y);
weapon.sprite.setPosition(weapon.getPositionX(),weapon.getPositionY());
}
void Player::weaponAction()
{
if (!isAlive())
{
return;
}
//URDL
//For the weapons direction vector
if (!weapon.active)
{
switch(facing)
{
case 0:
weapon.setVector(0,-1);break;
case 1:
weapon.setVector(1,0);break;
case 2:
weapon.setVector(0,1);break;
case 3:
weapon.setVector(-1,0);break;
}
}
//What the weapon does TODO: DELETE THIS AFTER DATA-CENTRIC PARADIGM
//weapon.action();
if (weapon.isMelee())
{
stabbingAction();
}
if (weapon.isThrowable())
{
throwingAction();
}
}
void Player::stabbingAction()
{
//Knife is not active...
if (!weapon.active && weapon.isMelee())
{
if (getFramesElapsed() > weapon.getDownTime()) //and we've waited for a second...
{
//THEN STAB!
weapon.setVisible(true);
weapon.active = true;
resetTime();
std::cout << "stab" << std::endl;
}
}
}
void Player::stabbingUpdate()
{
//Stabbing takes only one second, then it shuts off.
if (weapon.active && weapon.isMelee())
{
if (getFramesElapsed() > weapon.getActionTime())
{
weapon.setVisible(false);
weapon.active = false;
resetTime();
std::cout << "stop" << std::endl;
}
}
}
void Player::throwingAction()
{
//Knife is not active...
if (!weapon.active && getFramesElapsed() > weapon.getDownTime() && weapon.isThrowable())
{
//TODO: ADD A FUNCTION TO ONLY LET THE PLAYER THROW WHEN THE BOOMERANG IS IN HIS HAND [fixed]
if (collide(weapon.getPositionY()+8,weapon.getPositionY()+8,weapon.getPositionX()+8,weapon.getPositionX()+8)) //and we've waited for a 'x' time...
{
//THEN throw!
weapon.setVisible(true);
weapon.active = true;
resetTime();
//stopReturning();
std::cout << "throw" << std::endl;
}
}
}
void Player::throwingUpdate()
{
//throwing takes only 'x' time, then it shuts off.
if (weapon.active && weapon.isThrowable())
{
//It's maximum limit in the forward direction is 800ms
if (getFramesElapsed() > weapon.getActionTime())
{
//setVisible(false);
weapon.active = false;
resetTime();
//goBack();
//startReturning();
//std::cout << "go back" << std::endl;
}
else
{
//std::cout << "flying" << std::endl;
//keep it moving forward
}
}
//Put animation here:
if (weapon.getTimeElapsed()%400 > 300)
{
weapon.sprite.setTextureRect(sf::IntRect(16,weapon.spriteOffsetY*16,16,16));
}
else if (weapon.getTimeElapsed()%400 > 200)
{
weapon.sprite.setTextureRect(sf::IntRect(16*1,weapon.spriteOffsetY*16,16,16));
}
else if (weapon.getTimeElapsed()%400 > 100)
{
weapon.sprite.setTextureRect(sf::IntRect(16*2,weapon.spriteOffsetY*16,16,16));
}
else if (weapon.getTimeElapsed()%400 > 0)
{
weapon.sprite.setTextureRect(sf::IntRect(16*3,weapon.spriteOffsetY*16,16,16));
}
}
void Player::stab()
{
//std::cout << facing << std::endl;
if (weapon.isMelee() && weapon.active)
{
weapon.sprite.setTextureRect(sf::IntRect(facing*16,weapon.spriteOffsetY*16,16,16));
//0123-URDL
if (facing == 0)
{
//weapon.setTarget(getCenterX(),getCenterY()-16);
weapon.setPosition(getPositionX(),getPositionY()-16);
}
else if (facing == 1)
{
//weapon.setTarget(getCenterX()+16,getCenterY());
weapon.setPosition(getPositionX()+16,getPositionY());
}
else if (facing == 2)
{
//weapon.setTarget(getCenterX(),getCenterY()+16);
weapon.setPosition(getPositionX(),getPositionY()+16);
}
else
{
//weapon.setTarget(getCenterX()-16,getCenterY());
weapon.setPosition(getPositionX()-16,getPositionY());
}
}
}
void Player::shoot()
{
//Thrown Projectile
if (weapon.isThrowable() && weapon.active)
{
//Move weapon 'i' times per frame
for (int i = 0; i < weapon.getSpeed(); i++)
{
weapon.setPosition(weapon.getPositionX()+weapon.getVecX(),weapon.getPositionY()+weapon.getVecY());
}
}
}
void Player::catchWeapon()
{
//This weapon is throwable
if (weapon.isThrowable())
{
//UDLR
if (!weapon.active && collide(weapon.getCenterY(),weapon.getCenterY(),weapon.getCenterX(),weapon.getCenterX()))
{
weapon.setVisible(false);
setWeaponToPlayer();
}
else
{
weapon.setVisible(true);
}
}
}
int Player::collide(int top, int bottom, int left, int right)
{
if (
getTop() <= top &&
getBottom() >= bottom &&
getLeft() <= left &&
getRight() >= right
)
return true;
else
return false;
}
void Player::polymorphInto(std::string file)
{
std::ifstream getMap;
//TEST
getMap.open(file.c_str());
getMap >> health;
getMap >> speed;
getMap >> spriteOffset;
std::string temp;
getMap >> temp;
weapon.loadWeapon(temp);
getMap.close();
sprite.setTextureRect(sf::IntRect(16*2,spriteOffset*16,16,16));
//Prevent the weapon from doing weird things
setWeaponToPlayer();
weapon.active = false;
weapon.resetElapsedTime();
}
void Player::randomPolymorph()
{
std::ifstream getString;
int random;
getString.open("gameParameters/creature.table");
getString >> random;
int number = game->randInt(random);
int a;
std::string temp;
for (int i = 0; i < number; i++)
{
getString >> temp;
//std::cout << "random: " << random << std::endl;
//std::cout << "number: " << number << std::endl;
//std::cout << "number of skips: " << i+1 << std::endl;
}
getString >> temp;
//std::cout << "polymorphed into:" << temp << std::endl;
polymorphInto(temp);
}
void Player::resetTime()
{
timer = 0;
}
int Player::getFramesElapsed()
{
return timer;
}
void Player::increaseTimer()
{
timer++;
}
void Player::resetMagicDowntime()
{
magicDowntime = 0;
}
void Player::increaseMagicDowntime()
{
magicDowntime++;
}
int Player::getMagicDowntime()
{
return magicDowntime;
}
void Player::setSpeed(int i)
{
speed = i;
}
|
23ee592a42da87fcaeccd928d24744045cf3df10 | 89319570560553047d3e1d9bb07a6b8118c707be | /extension/widgets_slider.cpp | a7d80c7c0335b11210406d19aadac6ae055825f5 | [
"MIT"
] | permissive | haddock7/hlimgui | 9adb101f97ea5d0941382aaf903be3d48b3ab5c3 | 9f89772b7ab8bce54821f1d6956dc5c18a8d5faa | refs/heads/master | 2023-06-29T00:29:13.229134 | 2021-08-03T03:25:48 | 2021-08-03T03:25:48 | 271,698,591 | 39 | 7 | MIT | 2021-08-03T03:25:49 | 2020-06-12T03:20:23 | C++ | UTF-8 | C++ | false | false | 2,797 | cpp | widgets_slider.cpp | #define HL_NAME(n) hlimgui_##n
#include <hl.h>
#include "imgui/imgui.h"
#include "utils.h"
HL_PRIM bool HL_NAME(slider_float)(vstring* label, varray* v, float v_min, float v_max, vstring* format, float* power)
{
assertArraySizeRange(v, 1, 4);
switch (v->size)
{
case 1:
return ImGui::SliderFloat(convertString(label), hl_aptr(v,float), v_min, v_max, convertString(format), convertPtr(power, 1.0f));
case 2:
return ImGui::SliderFloat2(convertString(label), hl_aptr(v,float), v_min, v_max, convertString(format), convertPtr(power, 1.0f));
case 3:
return ImGui::SliderFloat3(convertString(label), hl_aptr(v,float), v_min, v_max, convertString(format), convertPtr(power, 1.0f));
default:
return ImGui::SliderFloat4(convertString(label), hl_aptr(v,float), v_min, v_max, convertString(format), convertPtr(power, 1.0f));
}
}
HL_PRIM bool HL_NAME(slider_angle)(vstring* label, float* v_rad, float* v_degrees_minf, float* v_degrees_max, vstring* format)
{
return ImGui::SliderAngle(convertString(label), v_rad, convertPtr(v_degrees_minf, -360.0f), convertPtr(v_degrees_max, +360.0f), convertString(format));
}
HL_PRIM bool HL_NAME(slider_int)(vstring* label, varray* v, int v_min, int v_max, vstring* format)
{
assertArraySizeRange(v, 1, 4);
switch (v->size)
{
case 1:
return ImGui::SliderInt(convertString(label), hl_aptr(v,int), v_min, v_max, convertString(format));
case 2:
return ImGui::SliderInt2(convertString(label), hl_aptr(v,int), v_min, v_max, convertString(format));
case 3:
return ImGui::SliderInt3(convertString(label), hl_aptr(v,int), v_min, v_max, convertString(format));
default:
return ImGui::SliderInt4(convertString(label), hl_aptr(v,int), v_min, v_max, convertString(format));
}
}
HL_PRIM bool HL_NAME(v_slider_float)(vstring* label, vdynamic* size, float* v, float v_min, float v_max, vstring* format, float* power)
{
return ImGui::VSliderFloat(convertString(label), getImVec2(size), v, v_min, v_max, convertString(format), convertPtr(power, 1.0f));
}
HL_PRIM bool HL_NAME(v_slider_int)(vstring* label, vdynamic* size, int* v, int v_min, int v_max, vstring* format)
{
return ImGui::VSliderInt(convertString(label), getImVec2(size), v, v_min, v_max, convertString(format));
}
DEFINE_PRIM(_BOOL, slider_float, _STRING _ARR _F32 _F32 _STRING _REF(_F32));
DEFINE_PRIM(_BOOL, slider_angle, _STRING _REF(_F32) _REF(_F32) _REF(_F32) _STRING);
DEFINE_PRIM(_BOOL, slider_int, _STRING _ARR _I32 _I32 _STRING);
DEFINE_PRIM(_BOOL, v_slider_float, _STRING _DYN _REF(_F32) _F32 _F32 _STRING _REF(_F32));
DEFINE_PRIM(_BOOL, v_slider_int, _STRING _DYN _REF(_I32) _I32 _I32 _STRING); |
e724647cd9e77c45691eda443fca6befc0172e0a | 53f3e8a6d4d9d722be306ffd9fb92a5166fac4f2 | /ConsumoEnergetico/Cliente.cpp | eb19e934f5ee9d2f24c5769c2060b01db959b2c1 | [] | no_license | RamonGiovane/ConsumoEnergetico | 1d682712c04edb08291e1cf0783360cb02daf142 | 93eec905084c4d44d2478a7441739c33e5485e14 | refs/heads/master | 2020-08-29T14:57:19.434426 | 2019-12-06T23:04:59 | 2019-12-06T23:04:59 | 218,068,256 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 1,402 | cpp | Cliente.cpp | #include "Cliente.h"
Cliente::Cliente()
{
}
Cliente::Cliente(string numero, string nome, string CPF, string rua, string bairro, string CEP, string cidade)
{
setNumero(numero).setNome(nome).setBairro(bairro).setRua(rua).setCidade(cidade).setCEP(CEP).setCPF(CPF);
}
Cliente & Cliente::setNome(string nome)
{
this->nome = nome;
return *this;
}
Cliente & Cliente::setRua(string rua)
{
this->rua = rua;
return *this;
}
Cliente & Cliente::setBairro(string bairro)
{
this->bairro = bairro;
return *this;
}
Cliente & Cliente::setCidade(string cidade)
{
this->cidade = cidade;
return *this;
}
Cliente & Cliente::setCEP(string CEP)
{
this->CEP = CEP;
return *this;
}
Cliente & Cliente::setNumero(string numero)
{
this->numero = numero;
return *this;
}
Cliente & Cliente::setCPF(string cpf)
{
this->cpf = cpf;
return *this;
}
string Cliente::getNome()
{
return nome;
}
string Cliente::getRua()
{
return rua;
}
string Cliente::getBairro()
{
return bairro;
}
string Cliente::getCidade()
{
return cidade;
}
string Cliente::getCEP()
{
return CEP;
}
string Cliente::getCPF()
{
return cpf;
}
string Cliente::getNumero()
{
return numero;
}
string Cliente::toString()
{
char str[200];
sprintf_s(str, 200, "Número: %s\nNome: %s\nRua: %s\nBairro: %s\nCidade: %s\nCEP: %s",
numero.c_str(), nome.c_str(), rua.c_str(), bairro.c_str(), cidade.c_str(), CEP.c_str());
return str;
}
|
7c79a8d5ca13efb28063675e17f947abd4162c12 | dce9e4f9df199c12b84317394cb58b7f6f28924f | /cocgi/cgicc_lib/FormFile.h | f7dc86f85748f070960636b3b65dbe6e4b3a3bb8 | [
"MIT"
] | permissive | ZJZT800/fastcgi-async-or-coroutine | 002c64132176fb1ab28206a9aeb96f42fe1e854a | ed451e31f872d9c63a1543f8c94cdc709992dc0c | refs/heads/master | 2021-04-03T15:13:09.585837 | 2020-04-19T06:58:00 | 2020-04-19T06:58:00 | 248,371,165 | 0 | 0 | MIT | 2020-03-19T00:09:22 | 2020-03-19T00:09:21 | null | UTF-8 | C++ | false | false | 6,621 | h | FormFile.h | /* -*-mode:c++; c-file-style: "gnu";-*- */
/*
* $Id: FormFile.h,v 1.11 2007/07/02 18:48:18 sebdiaz Exp $
*
* Copyright (C) 1996 - 2004 Stephen F. Booth <sbooth@gnu.org>
* 2007 Sebastien DIAZ <sebastien.diaz@gmail.com>
* Part of the GNU cgicc library, http://www.gnu.org/software/cgicc
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
*/
#ifndef _FORMFILE_H_
#define _FORMFILE_H_ 1
#ifdef __GNUG__
# pragma interface
#endif
/*! \file FormFile.h
* \brief Class representing a file submitted via an HTML form.
*
* FormFile is an immutable class reprenting a file uploaded via
* the HTTP file upload mechanism. If you are going to use file upload
* in your CGI application, remember to set the ENCTYPE of the form to
* \c multipart/form-data.
*/
#include <iostream>
#include <string>
namespace cgicc {
// ============================================================
// Class FormFile
// ============================================================
/*! \class FormFile FormFile.h cgicc/FormFile.h
* \brief Class representing a file submitted via an HTML form.
*
* FormFile is an immutable class reprenting a file uploaded via
* the HTTP file upload mechanism. If you are going to use file upload
* in your CGI application, remember to set the ENCTYPE of the form to
* \c multipart/form-data.
* \verbatim
<form method="post" action="http://change_this_path/cgi-bin/upload.cgi"
enctype="multipart/form-data">
\endverbatim
* \sa FormEntry
*/
class FormFile
{
public:
// ============================================================
/*! \name Constructors and Destructor */
//@{
/*!
* \brief Default constructor
*
* Shouldn't be used.
*/
inline
FormFile()
{}
/*!
* \brief Create a new FormFile.
*
* This is usually not called directly, but by Cgicc.
* \param name The \e name of the form element.
* \param filename The \e filename of the file on the remote machine.
* \param dataType The MIME content type of the data, if specified, or 0.
* \param data The file data.
*/
FormFile(const std::string& name,
const std::string& filename,
const std::string& dataType,
const std::string& data);
/*!
* \brief Copy constructor.
*
* Sets the name, filename, datatype, and data to those of \c file
* @param file The FormFile to copy.
*/
inline
FormFile(const FormFile& file)
{ operator=(file); }
/*!
* \brief Destructor
*
* Delete this FormFile object
*/
inline
~FormFile()
{}
//@}
// ============================================================
/*! \name Overloaded Operators */
//@{
/*!
* \brief Compare two FormFiles for equality.
*
* FormFiles are equal if they have the same filename.
* @param file The FormFile to compare to this one.
* @return \c true if the two FormFiles are equal, \c false otherwise.
*/
bool
operator== (const FormFile& file) const;
/*!
* \brief Compare two FormFiles for inequality.
*
* FormFiles are equal if they have the same filename.
* \param file The FormFile to compare to this one.
* \return \c false if the two FormFiles are equal, \c true otherwise.
*/
inline bool
operator!= (const FormFile& file) const
{ return ! operator==(file); }
#ifdef WIN32
/* Dummy operator for MSVC++ */
inline bool
operator< (const FormFile& file) const
{ return false; }
#endif
/*!
* \brief Assign one FormFile to another.
*
* Sets the name, filename, datatype, and data to those of \c file
* \param file The FormFile to copy.
* \return A reference to this.
*/
FormFile&
operator= (const FormFile& file);
//@}
// ============================================================
/*! \name Accessor Methods
* Information on the uploaded file
*/
//@{
/*!
* \brief Write this file data to the specified stream.
*
* This is useful for saving uploaded data to disk
* \param out The ostream to which to write.
*/
void
writeToStream(std::ostream& out) const;
/*!
* \brief Get the name of the form element.
*
* The name of the form element is specified in the HTML form that
* called the CGI application.
* \return The name of the form element.
*/
inline std::string
getName() const
{ return fName; }
/*!
* \brief Get the basename of the file on the remote machine.
*
* The filename is stripped of all leading directory information
* \return The basename of the file on the remote machine.
*/
inline std::string
getFilename() const
{ return fFilename; }
/*!
* \brief Get the MIME type of the file data.
*
* This will be of the form \c text/plain or \c image/jpeg
* \return The MIME type of the file data.
*/
inline std::string
getDataType() const
{ return fDataType; }
/*!
* \brief Get the file data.
*
* This returns the raw file data as a string
* \return The file data.
*/
inline std::string
getData() const
{ return fData; }
/*!
* \brief Get the length of the file data
*
* The length of the file data is usually measured in bytes.
* \return The length of the file data, in bytes.
*/
inline std::string::size_type
getDataLength() const
{ return fData.length(); }
//@}
private:
std::string fName;
std::string fFilename;
std::string fDataType;
std::string fData;
};
} // namespace cgicc
#endif /* ! _FORMFILE_H_ */
|
d6a75d9a6189cff9e5f8629349ecd22b9dacd559 | e8b04bef9aa1ac8e2c109dd315f133c8f4d28ae6 | /resources/projects/libraries/qt_utils/widgets/PositionSensorWidget.hpp | 1b4e1b6d26ecd898ca48af66b966a5dba4a9fc42 | [
"Apache-2.0"
] | permissive | cyberbotics/webots | f075dacf4067e8dcebbfd89e8690df8525f6d745 | 8aba6eaae76989facf3442305c8089d3cc366bcf | refs/heads/master | 2023-08-31T09:41:13.205940 | 2023-08-18T10:48:30 | 2023-08-18T10:48:30 | 156,228,018 | 2,495 | 1,525 | Apache-2.0 | 2023-08-28T16:30:33 | 2018-11-05T14:09:10 | C++ | UTF-8 | C++ | false | false | 586 | hpp | PositionSensorWidget.hpp | /*
* Description: Widget displaying a webots position sensor device
*/
#ifndef POSITION_SENSOR_WIDGET_HPP
#define POSITION_SENSOR_WIDGET_HPP
#include "ScalarSensorWidget.hpp"
namespace webotsQtUtils {
class PositionSensorWidget : public ScalarSensorWidget {
Q_OBJECT
public:
explicit PositionSensorWidget(Device *device, QWidget *parent = NULL);
virtual ~PositionSensorWidget() {}
protected slots:
void enable(bool enable) override;
protected:
bool isEnabled() const override;
double value() override;
};
} // namespace webotsQtUtils
#endif
|
2e08ee467162f040a9d656a136f8741b3895956e | b965608dbcfe04446ce9b7ae2266600105a22288 | /codes/Mini_Weather_Station/Mini_Weather_Station_Tx/Mini_Weather_Station_Tx.ino | 5295e25ed61791f46fdb4a8a9288dffb5306732f | [] | no_license | iotealab/Arduino | 2ec579d912cbaf2ea55fbae4eb9b42ca00c14b99 | f0d26de863460672773936c9a8c91fc50492edb5 | refs/heads/master | 2023-06-14T20:34:24.125108 | 2021-07-13T18:54:38 | 2021-07-13T18:54:38 | 385,703,525 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,944 | ino | Mini_Weather_Station_Tx.ino | //Declaration of pin
#define DHTPIN 5
//Rain Drop Sensor
int rain_sensor = A1;
int rain_dig_pin = 2;
//initializing variables
int rainVal;
boolean isRaining = false;
String IsRain;
//Importation of libraries
#include "DHT.h"
//DHT Object initialization
#define DHTTYPE DHT22 //DHT22
DHT dht(DHTPIN, DHTTYPE);
//RF Library
#include <SPI.h>
#include "RF24.h"
#include "Wire.h"
//Struct data:
struct Data_Package {
byte data1;
byte data2;
byte data3;
};
Data_Package data;
RF24 radio(9,10); //CE, CSN
const uint64_t pipe = 0xE8E8F0F0E1LL;
void setup() {
// put your setup code here, to run once:
//DHT22 Sensor
Serial.begin(9600);
Serial.println(F("DHTxx test!"));
dht.begin();
//Rain Sensor
pinMode(2, INPUT);
//Begin NRF module
radio.begin();
radio.openWritingPipe(pipe);
}
void loop() {
// put your main code here, to run repeatedly:
//DHT22
float h = dht.readHumidity();
float t = dht.readTemperature();
float f = dht.readTemperature(true);
if (isnan(h) || isnan(t) || isnan(f)) {
Serial.println(F("Failed to read from DHT sensor!"));
return;
}
//Rain Drop
rainVal = analogRead(rain_sensor);
rainVal = map(rainVal,0,1023,0,255);
isRaining = !(digitalRead(rain_dig_pin));
if (isRaining){
IsRain = "YES";
}
else{
IsRain = "NO";
}
//Debugging Output value via serial monitor
/*
Serial.print(F("Humidity: "));
Serial.print(h);
Serial.print(F("% Temperature: "));
Serial.print(t);
Serial.println(F("°C "));
//Rain Drop
Serial.print("Raining ");
Serial.print(IsRain);
Serial.print("Moisture level:");
Serial.println(rainVal);
delay(500);
*/
data.data1 = rainVal;
data.data2 = h;
data.data3 = t;
radio.write(&data, sizeof(Data_Package));
//Debugging NRF module values
Serial.println(data.data1);
Serial.println(data.data2);
Serial.println(data.data3);
delay(500);
}
|
1409bdcbc66ddabed166d78578aaa594d2690862 | c466c487e1d1e743d4e3bfbe7168358c0787d5f3 | /src/game/server/TriggerRespawning.h | 4e898541b3ad6886c216b02eb6d3617650d60874 | [] | no_license | jucham/rouage | 686a0905cf198cf735dcec7dc28577756e3e321f | 33160fb4c44fb1320a33d893d36397075beeb223 | refs/heads/master | 2022-11-18T09:16:25.104931 | 2020-07-10T10:18:53 | 2020-07-10T10:18:53 | 278,144,034 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 515 | h | TriggerRespawning.h | #ifndef TRIGGERRESPAWNING_H
#define TRIGGERRESPAWNING_H
#include "Trigger.h"
class GameServer;
class TriggerRespawning : public Trigger
{
public:
TriggerRespawning(TriggerSystem* pTrigSys, GameServer *pGameServer);
virtual ~TriggerRespawning();
void Desactivate();
void Update();
bool MustRespawn();
protected:
GameServer *m_pGameServer;
int m_RespawnDelay;
int m_TimeNextRespawn;
private:
};
#endif // TRIGGERRESPAWNING_H
|
8d78b4e640424b3a660c7f27246912d713ab384d | 9bd1142cb4c2cb3472a027e1f174c6009c272578 | /MPI/SendAndRecieve.cpp | eaa16adb8d73c71730993e0a8e95cb9b2b6d4369 | [] | no_license | dab2013/MPI | fe64d57dd27fdfb110c982b1a6d32d461953cd4f | 274ed7f7f0b7ba49b67bcf8d80dfb2509aec48ff | refs/heads/master | 2021-04-09T12:55:29.076825 | 2018-03-16T13:03:47 | 2018-03-16T13:03:47 | 125,517,159 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 630 | cpp | SendAndRecieve.cpp | #include "stdafx.h"
#include <iostream>
#include <stdio.h>
#include <string.h>
#include <mpi.h>
#include <cstdio>
//using namespace std;
//
//int main(int argc, char *argv[])
//{
// int ID = 0;
// int SendData = 0;
// int RecieveData = 0;
// MPI_Init(&argc, &argv);
// MPI_Comm_rank(MPI_COMM_WORLD, &ID);
//
// if (ID == 0)
// {
// SendData = 100;
// MPI_Send(&SendData, 1, MPI_INT, 1, 7, MPI_COMM_WORLD);
// }
//
// MPI_Status status;
// if (ID == 1) {
// MPI_Recv(&RecieveData, 1, MPI_INT, 0, 7, MPI_COMM_WORLD, &status);
// std::cout << "Recieved Data is: " << RecieveData;
// }
//
// MPI_Finalize();
//
// return 0;
//}
|
ec41b5415b2f26a741eff76c4a3e5504376424a0 | 36f75661e667d5e323b2189e62a20642a5c75a83 | /TimeKiller/KeyManager.h | a63f31792cfac9f5504f8affb4e7a085e54a329b | [
"Apache-2.0"
] | permissive | otryvanov/time-killer | 1a40f4598f5b5db60b6ca4646d207ac0b73f15e5 | 37c4ae9d65958adfe7fb594bdbf4d4e3dde0606d | refs/heads/master | 2020-04-11T14:28:38.429608 | 2014-04-09T15:34:18 | 2014-04-09T15:34:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 676 | h | KeyManager.h | #pragma once
#include "IUpdateable.h"
namespace TK
{
class KeyManager : public IUpdateable
{
public:
KeyManager();
~KeyManager();
KeyManager(const KeyManager &a) = default;
KeyManager &operator = (const KeyManager &a) = default;
bool IsKeyPressed(sf::Keyboard::Key key_code);
bool IsKeyDown(sf::Keyboard::Key key_code);
bool IsKeyUp(sf::Keyboard::Key key_code);
TK_STATUS OnKeyPressed(const sf::Event &event);
TK_STATUS OnKeyReleased(const sf::Event &event);
virtual TK_STATUS Update(const sf::Time &deltatime) override final;
private:
bool m_current_key_state[sf::Keyboard::KeyCount];
bool m_old_key_state[sf::Keyboard::KeyCount];
};
} |
d9bfc2f44046a614d741a9fa6feb6a4e48054841 | 0dac6250205dc785865271626e1652b9165a48a8 | /practise/meart.cpp | 939cd03fb1af3dc7f6c521a70f76274c66ea6610 | [] | no_license | vsricharan16/cp | e8e23e10f541dbacedf1dc32101eae3e1242f242 | 900442795281072c490b99ef5dbb0aa4511b42a4 | refs/heads/master | 2021-09-15T12:42:38.857093 | 2018-06-01T18:01:19 | 2018-06-01T18:01:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 489 | cpp | meart.cpp | /*I shall rise*/
#include<vector>
#include<map>
#include<bits/stdc++.h>
using namespace std;
#define charan int main()
#define vi vector< int >
#define vl vector< ll >
#define mod (1000*1000*1000+7)
#define ll long long
#define pb push_back
#define mp make_pair
#define f(i,a,b) for(int i=a;i<b;i++)
#define fd(i,a,b) for(int i=a;i>b;i--)
charan
{
int k,n,p;
cin>>n;
int total=0,mini=300;
f(i,0,n){cin>>k>>p;
if(p<mini){mini=p;total+=(p*k);}
else total+=(mini*k);
}cout<<total;
} |
a2a878aad45a659f0beed4e6684cec101c3304d7 | bc5d860401850d1d4bfb50fa7fc4b4989d7df5f8 | /Attack/Bullet.h | 58862c08438b7fe2bbd5b2f34233221ab7fd1cf7 | [] | no_license | Siyuson/soul-knight | 14af28994fc07f637cc2cbfbf9d9030a81543e0f | d14551ce6bf82017600c5710563c8a136b621213 | refs/heads/main | 2023-05-10T01:18:40.234296 | 2021-06-20T06:58:57 | 2021-06-20T06:58:57 | 360,764,603 | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 513 | h | Bullet.h | #ifndef _BULLET_H_
#define _BULLET_H_
#include "cocos2d.h"
#include "Entity2.h"
#include "Scene/Hall.h"
USING_NS_CC;
class Bullet : public Entity2 {
public:
Bullet();
~Bullet();
CREATE_FUNC(Bullet);
virtual bool init();
bool isInScreen();
Vec2 getBulletSpeed();
void setBulletSpeed(Vec2 speed);
void setAttack(INT32 attack);
void showEffect(Point, Hall*); //ÏÔʾ»÷ÖÐÌØÐ§
INT32 getAttack();
protected:
Vec2 bulletSpeed;
INT32 attack;
};
#endif;
|
423b9b4ebd0638ad95ec52670bf93492363ebc5c | ba295a69cc9888d149855df67748126ea70a5136 | /src/_paths/empty/EmptyPaths.cpp | 1c52a1963768841de3d50bc40648a540ef1a543a | [] | no_license | frauzufall/crawling-traces-projection | cb14aaddd681c26dae6d244bba2b016132e2c9ec | d2db58fb20d24cf45f7c7f8f5334ce8c8cb7395d | refs/heads/master | 2021-01-21T21:54:05.244241 | 2014-11-07T23:42:18 | 2014-11-07T23:42:18 | 15,029,765 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 934 | cpp | EmptyPaths.cpp | #include "EmptyPaths.h"
#include "Visuals.h"
#include "MappingController.h"
EmptyPaths::EmptyPaths(string name):CustomPaths(name) {}
void EmptyPaths::setup() {
name_sl1 = "";
name_sl2 = "";
name_sl3 = "";
name_rsl1 = "";
name_rsl2 = "";
name_rsl3 = "";
name_btn1_1 = "";
name_btn1_2 = "";
name_btn2_1 = "";
name_btn2_2 = "";
name_btn3_1 = "";
name_btn3_2 = "";
}
void EmptyPaths::update() {
}
void EmptyPaths::draw(int path) {
MappingQuad_ptr mq = MappingController::getInstance().getProjector(0)->getQuad(path);
ofFill();
if(mq->nature == "painting") {
ofSetColor(data.color);
}
else {
ofSetColor(0);
}
ofPolyline & line = data.outlines->at(path);
ofBeginShape();
for (uint j = 0; j < line.size(); j++){
ofVertex(line[j]);
}
ofEndShape(true);
}
void EmptyPaths::idle() {
}
void EmptyPaths::resume() {
}
|
d0524c122a33f1ccf841755f71e08cd42c4a0552 | 9f520bcbde8a70e14d5870fd9a88c0989a8fcd61 | /pitzDaily/112/Ua | 75cc60ec8f8f81aa667053bcbf813d92bd543174 | [] | no_license | asAmrita/adjoinShapOptimization | 6d47c89fb14d090941da706bd7c39004f515cfea | 079cbec87529be37f81cca3ea8b28c50b9ceb8c5 | refs/heads/master | 2020-08-06T21:32:45.429939 | 2019-10-06T09:58:20 | 2019-10-06T09:58:20 | 213,144,901 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 249,513 | Ua | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1806 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
location "112";
object Ua;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField nonuniform List<vector>
6400
(
(5.96233526911e-05 7.99739546047e-05 0)
(0.000168820590097 6.5669044704e-05 0)
(0.000250306181187 5.82156577854e-05 0)
(0.000348935982018 5.58691028534e-05 0)
(0.000419066543251 3.44739159782e-05 0)
(0.000467891135363 1.44859072803e-05 0)
(0.000481136138069 6.7279174405e-06 0)
(0.00048516152811 1.79119305454e-05 0)
(0.000552206952949 3.33310298663e-05 0)
(0.000630789459009 3.28831028547e-05 0)
(0.000640626080565 2.89167035438e-05 0)
(0.000715021550302 3.64153237177e-05 0)
(0.000778794841193 3.52282316423e-05 0)
(0.000831087810968 2.84637821787e-05 0)
(0.000862181164493 2.41495838507e-05 0)
(0.000897650633045 2.82753335214e-05 0)
(0.000952374320943 3.0494061836e-05 0)
(0.000995896031896 2.70274509073e-05 0)
(0.00101935594586 1.92338584679e-05 0)
(0.00103256482073 1.27481102678e-05 0)
(0.00105407005456 1.95858033244e-05 0)
(0.00109368045382 2.99939226507e-05 0)
(0.00114696285802 3.51955641768e-05 0)
(0.00119815645894 3.84888929401e-05 0)
(0.00125074065453 3.75651513141e-05 0)
(0.00130008022205 3.38314221385e-05 0)
(0.00135237044011 3.46531333945e-05 0)
(0.00140336617428 3.4055527656e-05 0)
(0.001445804045 3.08858137161e-05 0)
(0.00148117025791 2.78752478503e-05 0)
(0.00150821232405 2.91538776342e-05 0)
(0.00154272962305 2.9170356089e-05 0)
(0.0015779019727 2.54727813665e-05 0)
(0.00160458279724 2.64620246258e-05 0)
(0.00162617876167 2.51751643711e-05 0)
(0.00166072321916 2.52836905107e-05 0)
(0.00170047536947 2.93945837798e-05 0)
(0.00169462496388 2.65138634535e-05 0)
(0.0017230141536 2.39772653735e-05 0)
(0.001769909043 3.2070699931e-05 0)
(0.00183090654929 6.40833123356e-05 0)
(0.00189743147711 7.59679487608e-05 0)
(0.0019541466687 4.40805522175e-05 0)
(0.00198441359588 2.46255451867e-05 0)
(0.00199257249401 1.59709412105e-05 0)
(0.00199085972769 6.94885750593e-06 0)
(0.00197566726663 -4.11046901267e-07 0)
(0.00194360418442 -9.2320897801e-06 0)
(0.00189802054087 -1.41875472894e-05 0)
(0.00184821797345 -4.17596783902e-06 0)
(0.00180475371622 1.93105365131e-05 0)
(0.00183881706075 1.87347305179e-05 0)
(0.00177992904313 -4.50668349007e-05 0)
(0.00168508722211 -6.41511749026e-05 0)
(0.00154416716427 -7.38719652162e-05 0)
(0.00130999813935 -0.000100528607225 0)
(0.00109969172858 -8.05554836799e-05 0)
(0.000950627260361 -5.61644298716e-05 0)
(0.000834763972368 -6.11501312709e-05 0)
(0.000639735539002 -6.27939576702e-05 0)
(0.000490204552055 -5.5683842427e-05 0)
(0.000338967980436 -7.27040236852e-05 0)
(0.000171638875351 -9.83484803074e-05 0)
(-2.35036621568e-05 -6.83933177537e-05 0)
(-0.000118290623681 -4.08394263004e-05 0)
(-0.000175497479856 -2.81610888959e-05 0)
(-0.000219788264 -2.16712456867e-05 0)
(-0.000262144110345 -1.82985386001e-05 0)
(-0.000303758877186 -1.60686612864e-05 0)
(-0.000336708663797 -1.28207273778e-05 0)
(-0.000362839684957 -8.16631332925e-06 0)
(-0.000370806924764 -1.92754454792e-06 0)
(-0.000361457542346 6.10806581502e-06 0)
(-0.00035740960508 1.68672335388e-05 0)
(-0.00029607102968 1.90103957403e-05 0)
(-0.000279526867409 2.15665646764e-05 0)
(-0.000197390411482 1.51409835212e-05 0)
(-0.000215125299043 2.67521539277e-05 0)
(-9.54266396074e-05 2.05552659666e-05 0)
(-7.03810264985e-05 4.24141675239e-05 0)
(2.16839818702e-05 0.000109321186921 0)
(9.38007314235e-05 0.000124732597304 0)
(0.000165288267426 0.000119427702888 0)
(0.000209340961994 9.53562316244e-05 0)
(0.000315060301064 9.51124230153e-05 0)
(0.000429371628244 6.50950583279e-05 0)
(0.000500145687827 3.20990133547e-05 0)
(0.00054357254771 5.13495455306e-05 0)
(0.000588684374329 7.91098783528e-05 0)
(0.000641531079424 7.78445590167e-05 0)
(0.000693357906396 7.52110358788e-05 0)
(0.000740504800937 8.02244669748e-05 0)
(0.000783699579934 7.26738763019e-05 0)
(0.000823907290636 5.90656885853e-05 0)
(0.000867590217253 5.21747730444e-05 0)
(0.000911677207259 7.02095102079e-05 0)
(0.000956014591679 7.59606916523e-05 0)
(0.000986486025376 3.92779071297e-05 0)
(0.000949898605725 1.50967570618e-05 0)
(0.000972816641978 1.29323119136e-05 0)
(0.00101019247774 3.60579655925e-05 0)
(0.00106624093937 7.40900996008e-05 0)
(0.00114630594454 8.98777484024e-05 0)
(0.00121455446268 8.09036632591e-05 0)
(0.00123413841294 7.40311082632e-05 0)
(0.00130253507028 7.46866734181e-05 0)
(0.00136280499032 7.10110684475e-05 0)
(0.00140593503375 6.24071849532e-05 0)
(0.00144359188693 5.32428879918e-05 0)
(0.00147830060768 4.56625770843e-05 0)
(0.00151240159428 4.50764801573e-05 0)
(0.00152132609307 4.24687945702e-05 0)
(0.00155319831543 2.89509060702e-05 0)
(0.00157179632418 3.42471614973e-05 0)
(0.0015771369003 4.12950965293e-05 0)
(0.00164600289887 2.75980718974e-05 0)
(0.00165648821177 3.46933571591e-05 0)
(0.00165838162239 4.55595445501e-05 0)
(0.0017092595327 4.19974234359e-05 0)
(0.0017946678553 4.25827714585e-05 0)
(0.00186901260448 3.79038730685e-05 0)
(0.0016250875433 2.44675378942e-05 0)
(0.0015779462843 1.83522167226e-05 0)
(0.00160718878731 1.45865213597e-05 0)
(0.00162326590256 9.52445573815e-06 0)
(0.00166113538444 1.34205706036e-06 0)
(0.00170953306283 -1.23357802732e-05 0)
(0.00173112389618 -2.94623862159e-05 0)
(0.00176868556175 -4.73563597868e-05 0)
(0.0017770162712 -6.01825137356e-05 0)
(0.00171110231731 -5.88097207823e-05 0)
(0.00156113722902 -6.10548595877e-05 0)
(0.00141136859202 -7.50584330075e-05 0)
(0.00167369393377 -0.000143769039393 0)
(0.00150033906166 -0.000220451844666 0)
(0.0013753242588 -0.000258276657962 0)
(0.00136539572032 -0.000260335812277 0)
(0.00121370885897 -0.000239495786886 0)
(0.00103360573232 -0.000252702698139 0)
(0.000849663299873 -0.00027605782327 0)
(0.000656865041503 -0.000289125076368 0)
(0.000346235817628 -0.000241326873541 0)
(0.000181639896521 -0.000289538404436 0)
(-2.07953686207e-05 -0.000212503312907 0)
(-0.000116023902026 -0.00013265852636 0)
(-0.000167153970992 -8.24534419124e-05 0)
(-0.000207311022843 -6.33075864988e-05 0)
(-0.00026033865776 -5.97036858531e-05 0)
(-0.000303703291807 -5.38117042748e-05 0)
(-0.000342097318477 -4.38936477984e-05 0)
(-0.000364494327149 -2.74081082078e-05 0)
(-0.000368883661806 -6.14535493103e-06 0)
(-0.000350868568235 1.21725970045e-05 0)
(-0.000355849073354 3.20585836318e-05 0)
(-0.000336222802945 4.73349041913e-05 0)
(-0.000309317886601 5.794950536e-05 0)
(-0.000270378707113 6.04405594731e-05 0)
(-0.000224886411106 7.9100672317e-05 0)
(-0.000143824835454 9.61812360375e-05 0)
(-6.78357529669e-05 0.000167606328207 0)
(3.44128148122e-05 0.000188055297075 0)
(9.30014264258e-05 0.000209801402666 0)
(0.000140901710961 0.000204471912832 8.35747646685e-29)
(0.000258368171825 0.000220327282557 -8.27997359969e-29)
(0.000377126753882 0.00023077078715 -7.85581830179e-29)
(0.00043914158386 0.000185224948472 7.31069259092e-29)
(0.00047650096388 8.65345721456e-05 -7.50916925038e-29)
(0.000521212623634 9.8403335554e-05 7.66515496305e-29)
(0.000570744848171 0.000128526560571 0)
(0.000628303120193 0.000136561724028 0)
(0.00068628140629 0.000131794124486 0)
(0.000735503056774 0.000125144202327 0)
(0.000779263092814 0.000113615775173 0)
(0.000818242568408 0.000106426226344 0)
(0.000855352540952 9.85800986501e-05 0)
(0.000895078479634 7.62648807731e-05 0)
(0.000743494263022 4.00542631773e-05 0)
(0.0007058230278 2.05216533074e-05 0)
(0.000727326367786 2.87584258154e-05 0)
(0.000787839556437 7.24322258399e-05 0)
(0.000974884146296 0.000134131018959 0)
(0.00109920085326 0.000164766405646 0)
(0.00111660617457 0.000156084444947 0)
(0.0011855403985 0.000143901167886 0)
(0.00126044528128 0.000138740977415 0)
(0.00131077701395 0.000135288124483 0)
(0.00135332695995 0.000122104735181 0)
(0.00139567539248 0.000107331685991 0)
(0.001433249406 9.38336472053e-05 0)
(0.0014594966251 8.41270465151e-05 1.82023894176e-28)
(0.00150135531675 7.4174499537e-05 -1.77567197788e-28)
(0.00149354492063 6.63974842622e-05 0)
(0.00150699208501 5.59648610518e-05 0)
(0.00157783859691 4.2142743547e-05 0)
(0.0014857723513 6.22551330226e-05 0)
(0.00154086651871 7.5255588282e-05 0)
(0.00166061777995 6.30981274839e-05 0)
(0.00157405227979 8.03206877286e-05 0)
(0.00165790837909 0.000120283816944 0)
(0.00179291108677 0.000121967317195 0)
(0.00189036092694 5.19047935995e-05 0)
(0.00193516777945 2.72360577408e-06 0)
(0.00196985124854 2.59796777085e-05 0)
(0.00199259902897 4.2091975644e-05 0)
(0.00200255156619 4.1643689887e-05 0)
(0.00200350451334 3.38724554893e-05 0)
(0.00199665157685 1.43930324725e-05 0)
(0.00198256955323 -1.00624966448e-05 0)
(0.00196149391073 -4.04219077642e-05 0)
(0.00193469671138 -8.34880303753e-05 0)
(0.00190466522227 -0.000128450590913 0)
(0.00186527996858 -0.000150882896322 0)
(0.00179337421487 -0.000130228618567 0)
(0.00164985936152 -0.000190456926539 0)
(0.00148291326601 -0.000279245852809 0)
(0.00145623118905 -0.000327366203384 0)
(0.00135601530241 -0.000358571210213 0)
(0.00119279318812 -0.000393965001112 0)
(0.00100655255216 -0.000428383094935 0)
(0.000810332713332 -0.000463589748787 0)
(0.000607681144982 -0.000497534543178 0)
(0.000402288326411 -0.00052059791368 0)
(0.000194065394021 -0.000530724039657 0)
(1.86445240215e-06 -0.000348090423357 0)
(-9.45432430091e-05 -0.000201213992909 0)
(-0.000162656873008 -0.00014072275866 0)
(-0.000219554562755 -0.000116189391711 0)
(-0.000262833351782 -0.000101658243573 0)
(-0.000300371826178 -8.71553577168e-05 0)
(-0.000331532425091 -6.76610283603e-05 0)
(-0.000351737314039 -4.23327229485e-05 0)
(-0.000365440166079 -1.57424029192e-05 0)
(-0.000386052198938 8.28184576857e-06 0)
(-0.000391674440538 4.05642415704e-05 0)
(-0.000365104476439 7.46223129125e-05 0)
(-0.000325112429787 9.48117871524e-05 0)
(-0.000278441627294 0.000108108896357 0)
(-0.000227386288754 0.000149114730121 0)
(-0.000162028696563 0.000226109699402 0)
(-4.19203353969e-05 0.000239295428748 0)
(3.34468065958e-05 0.000288764495615 0)
(3.81597023659e-05 0.000184532846616 0)
(0.000116456368244 0.000318723374562 0)
(0.000235028456464 0.000336252362583 0)
(0.000316212831615 0.00027948536247 0)
(0.000158455282997 9.37538212918e-05 0)
(0.00019326259033 9.38692998176e-05 0)
(0.000388776010177 0.000195404394474 0)
(0.00052325709535 0.000225470147385 0)
(0.000597172107184 0.000207182480805 0)
(0.000670133871737 0.000193259709147 0)
(0.000728036310707 0.000175520511689 0)
(0.000772156560011 0.000155035060011 0)
(0.000795067172853 0.000113859632352 0)
(0.000702889007434 5.41805938172e-05 0)
(0.000641964695246 1.61648118691e-05 0)
(0.000638110261604 1.03133207399e-05 0)
(0.000688547127779 5.00480638128e-05 0)
(0.000820287600135 0.000122308977337 0)
(0.000994016418175 0.000216475829595 0)
(0.0010380749701 0.000243715924795 0)
(0.00108518604495 0.000229357758933 0)
(0.00115023905115 0.000217411950101 0)
(0.00120672231007 0.000209359071324 0)
(0.00125462140892 0.000195357166302 0)
(0.00129776208402 0.000178210010114 0)
(0.00133433776779 0.000161726788764 0)
(0.00138493099325 0.000144939687279 0)
(0.00140654562076 0.000126945483744 0)
(0.0014587425582 0.000112170025501 0)
(0.00144792920819 9.54155082979e-05 0)
(0.00150789604459 7.81795204878e-05 0)
(0.00145040760423 5.30893285942e-05 0)
(0.00146613028962 5.46235516181e-05 0)
(0.00157776171616 7.86895217551e-05 0)
(0.00150184188362 0.000110189398509 0)
(0.00160777516467 0.000129593221692 0)
(0.00175692957799 0.000159109263517 0)
(0.00181613218969 0.00020104054242 0)
(0.0018496135905 0.000187433811075 0)
(0.00188856347863 0.000123915829145 0)
(0.00193097764392 7.05996191044e-05 0)
(0.00196757453519 5.66069841624e-05 0)
(0.00199283976913 5.26513191776e-05 0)
(0.00200636066256 4.2729996353e-05 0)
(0.0020108808962 2.55864358199e-05 -1.96624230443e-28)
(0.00200786244711 7.08296831454e-07 1.97941640727e-28)
(0.001997650923 -3.02792835552e-05 0)
(0.00197997752312 -6.73791324676e-05 0)
(0.00195466439029 -0.000111160338713 0)
(0.00192046798338 -0.000156542565861 0)
(0.00187077314217 -0.000199265704551 0)
(0.00179446367331 -0.00024790791935 0)
(0.00169390051427 -0.000321857019622 0)
(0.00158767723983 -0.000383757776537 0)
(0.00147543189603 -0.000433786854808 0)
(0.00133772249794 -0.000505068853696 0)
(0.00116469178754 -0.000574999230156 -3.59759396911e-28)
(0.000963488592958 -0.000631450467067 3.98971708333e-28)
(0.000749128973759 -0.000673855995394 0)
(0.000536914032718 -0.000697684561072 0)
(0.000340821181454 -0.000701064607571 0)
(0.000185207717962 -0.000670784148609 0)
(2.91864387564e-05 -0.000498992567512 0)
(-9.70198593198e-05 -0.00031472260596 0)
(-0.000166194998028 -0.000203136704473 0)
(-0.000216916402025 -0.000159755374145 0)
(-0.000263749563914 -0.000139694942602 0)
(-0.000304202530277 -0.000120401853664 0)
(-0.000345074086458 -9.78025581314e-05 0)
(-0.000381055139371 -7.04163316567e-05 0)
(-0.000410598009515 -3.86019121101e-05 0)
(-0.000416028431219 6.24839564301e-06 0)
(-0.000376484455099 5.89385763822e-05 0)
(-0.000344303215713 0.000103671378552 0)
(-0.000311211310095 0.00014152114804 0)
(-0.00025412250639 0.000170423179978 0)
(-0.000158246771184 0.000179150598796 0)
(-0.00011876555806 0.000265410574984 0)
(-4.01827156685e-05 0.000325180663383 0)
(-4.90675933046e-08 0.000279358641507 0)
(1.62960670447e-05 0.000227439471013 0)
(0.000110959372605 0.000435035409012 0)
(0.000199257228226 0.000398369711555 0)
(0.000188638925768 0.000233110580281 0)
(0.000141785447099 0.00012231897951 0)
(0.000248006306965 0.000217932728596 0)
(0.000427100595253 0.000354031242942 0)
(0.000489901077037 0.000324984581202 0)
(0.000567422669057 0.00028602792351 0)
(0.000641421367067 0.000267218185632 0)
(0.000699536075074 0.000229048148417 0)
(0.000678002534356 0.000137755228894 0)
(0.000586832653781 5.42561774646e-05 0)
(0.000599431983375 2.39254999324e-05 0)
(0.000643207517859 3.42499568684e-05 0)
(0.000730607144581 8.31761662228e-05 0)
(0.000862509339949 0.000173266947424 0)
(0.000973490407312 0.000255021528935 0)
(0.000979005639318 0.000269085783106 0)
(0.00102370122117 0.000280435086785 0)
(0.00109394735169 0.000290358044813 0)
(0.00114695192517 0.000278776291975 0)
(0.00119680962151 0.000258972144489 0)
(0.00124084988986 0.000238525730772 0)
(0.00127702524014 0.000221005725855 0)
(0.00132980452329 0.000201884062092 0)
(0.00134130022851 0.000178916516169 0)
(0.00140928152802 0.000160083906835 0)
(0.00138488160892 0.000133945442139 0)
(0.00147298169341 0.000115398372665 1.71805158407e-28)
(0.00137940379935 8.41438710097e-05 -1.51734632145e-28)
(0.00147032549367 7.76794427415e-05 0)
(0.00154641698594 8.27110082083e-05 0)
(0.00148585769819 0.000110002474074 0)
(0.00163472344736 0.000179720777945 0)
(0.00171348738855 0.000239676535968 0)
(0.00177902953237 0.000249558243123 0)
(0.00182332849737 0.000238331226327 0)
(0.00185611959866 0.000211048927809 0)
(0.00189410799488 0.000163720358457 0)
(0.00193527877503 0.00011824341939 0)
(0.00197158416797 9.18951019637e-05 0)
(0.00199862137569 7.44706292464e-05 0)
(0.00201557781634 5.49106485619e-05 0)
(0.00202426682556 2.96891090157e-05 0)
(0.00202555553525 -2.31909774785e-06 0)
(0.0020194134863 -4.08667758694e-05 0)
(0.00200501730633 -8.6505393665e-05 0)
(0.00198096099468 -0.000139735377257 0)
(0.00194489073182 -0.00019901410399 0)
(0.00189195859037 -0.000263166725339 0)
(0.00181701169456 -0.000334147120455 0)
(0.00172125833515 -0.000414137611646 0)
(0.00161054327215 -0.000491790592467 0)
(0.00148223925776 -0.000575424497389 0)
(0.00132550705143 -0.000675313029016 0)
(0.00113377588745 -0.000774344578001 0)
(0.000911655643799 -0.000850505627373 0)
(0.00067878905547 -0.000892688877456 0)
(0.000460090727195 -0.000898397833502 0)
(0.000278574269977 -0.000872841906 0)
(0.000165340104649 -0.000797875353137 0)
(3.35998273715e-05 -0.000649826157931 0)
(-0.000106495396729 -0.000434240194809 0)
(-0.000176612180947 -0.000279578812396 0)
(-0.000228884490895 -0.000213804042746 0)
(-0.000273956500407 -0.000182104145876 0)
(-0.000314681536061 -0.000158121384741 0)
(-0.00036068235253 -0.000135671868526 0)
(-0.000412564770589 -0.000106368594358 0)
(-0.000435132461006 -4.99088434087e-05 0)
(-0.000398493912308 2.42714811681e-05 0)
(-0.00037283131872 8.68024774718e-05 0)
(-0.000348377053897 0.000142167629682 0)
(-0.000309339089108 0.000197479323311 0)
(-0.000234981748484 0.000225077105588 0)
(-0.000162305192735 0.000245859535251 0)
(-0.000114355241704 0.000350304459775 0)
(-3.12089752402e-05 0.000386055279678 0)
(-3.22834797626e-06 0.000258279479158 0)
(2.31731437476e-05 0.000279755826036 0)
(0.000115384479262 0.000494219353161 0)
(0.000153920219773 0.000384628900033 0)
(0.000106235692632 0.000173492234176 0)
(0.000142842697518 0.00017867637231 0)
(0.000340117627375 0.000385253978498 0)
(0.000419990784526 0.000429807956048 0)
(0.000467075448313 0.000391449716011 0)
(0.000529019188998 0.000357912891372 0)
(0.000592674373716 0.000304207930299 0)
(0.00051089554404 0.000180256418421 0)
(0.000454064985295 8.25948231362e-05 0)
(0.000495883252479 5.94938540149e-05 0)
(0.000549074032491 7.53855092492e-05 0)
(0.000662585895714 0.000132653399011 0)
(0.000809179733181 0.000217185160733 0)
(0.000918683161308 0.000274571930151 0)
(0.000896568268757 0.000269151776509 0)
(0.000952868820114 0.000304399960011 0)
(0.00103608248721 0.000347259856326 0)
(0.00108635576435 0.000347843660728 0)
(0.00113339894557 0.00032956364837 0)
(0.00117504505119 0.000306806920727 0)
(0.00123111056164 0.0002868943402 0)
(0.00126863966068 0.000256032101732 0)
(0.00125601346141 0.000230875888196 0)
(0.00135455681513 0.000216904755941 0)
(0.00129582115433 0.000177133100917 0)
(0.00141961169887 0.000153983093404 0)
(0.00127612582347 0.000108635407343 0)
(0.00143090481219 0.00011279631701 0)
(0.00132156438767 0.000109632574313 0)
(0.00144673851492 0.000134102581677 0)
(0.00159143078641 0.000204217907877 0)
(0.00168091126228 0.00028164497193 0)
(0.00173824123134 0.000304331559702 0)
(0.0017848833219 0.000297611663241 0)
(0.00182388568376 0.000276877226383 0)
(0.00186134898771 0.000246406751513 0)
(0.00190076917774 0.000205067773428 0)
(0.00194134419646 0.000162058143236 0)
(0.00197827508814 0.00012752630873 0)
(0.00200742491576 9.90026592111e-05 0)
(0.00202825088585 7.00798846333e-05 0)
(0.00204131364002 3.69279504083e-05 0)
(0.00204731596087 -2.32755488688e-06 0)
(0.00204563563522 -4.87901134587e-05 0)
(0.00203463143767 -0.000103788491681 0)
(0.00201234205722 -0.000168433581932 0)
(0.0019763222916 -0.00024269784526 0)
(0.00192302324373 -0.000326063814256 0)
(0.00184915566791 -0.000417638204689 0)
(0.00175394487699 -0.000515480840496 0)
(0.00163698896552 -0.000617733244218 0)
(0.00149338851575 -0.000732999175245 0)
(0.00131542477673 -0.000864246575478 0)
(0.00110153441169 -0.000992021739326 0)
(0.000861606163059 -0.00108853899019 0)
(0.000611786119337 -0.00112251016962 0)
(0.000392271652774 -0.0010924720843 0)
(0.000236537733638 -0.000994058544219 0)
(0.000117937916508 -0.000799091787041 0)
(1.2682465448e-05 -0.000825461679033 0)
(-0.000105862711003 -0.000526123059931 0)
(-0.000171054859109 -0.000341606466137 0)
(-0.000230571024425 -0.000265168530733 0)
(-0.000285304427068 -0.000226822785777 0)
(-0.000333317895151 -0.000201018709006 0)
(-0.000395857568928 -0.000183024458837 0)
(-0.000447846743156 -0.00013535350381 0)
(-0.000427473440866 -4.19211017663e-05 0)
(-0.000399815428818 4.18404408505e-05 0)
(-0.00039225626183 0.000110950366604 0)
(-0.000364663633957 0.000181093444034 0)
(-0.00032513174163 0.000254595640593 0)
(-0.000242320733055 0.000276705379307 0)
(-0.000176083992546 0.000308626493452 0)
(-0.000123753179777 0.000423400146906 0)
(-3.73763826298e-05 0.000450809772668 0)
(8.03612728977e-06 0.00028010682331 0)
(6.3575434374e-05 0.000375223151084 0)
(0.000159408663975 0.000537395014629 0)
(0.000166096412559 0.00047955046025 0)
(9.72607764706e-05 0.000213431992605 0)
(0.000218660375441 0.000334368399518 0)
(0.000372980549975 0.000491140185539 0)
(0.000401953971069 0.000477995461767 0)
(0.00044843622612 0.000437121166104 0)
(0.000463964582632 0.000388176702722 0)
(0.00054771088841 0.000313492123309 -3.43283776338e-28)
(0.000384621467627 0.000124746704825 1.76603010532e-28)
(0.000454873115519 0.000106161629765 0)
(0.00048349468595 0.000114496971322 0)
(0.000575247116423 0.000172432036151 0)
(0.000730100222905 0.000278338980976 0)
(0.000848472480786 0.00032843481008 0)
(0.000799094117317 0.000279702189341 0)
(0.000859769700899 0.00030963375188 0)
(0.00096837800339 0.000385134163405 0)
(0.00101865549796 0.000408458774083 0)
(0.0010713173924 0.0003987377537 0)
(0.00111952607176 0.000378329101347 0)
(0.00116437741913 0.000350739304097 0)
(0.0011897704492 0.000313676278902 0)
(0.0011865554064 0.0002724111674 0)
(0.00127087078584 0.000260732075964 0)
(0.00119327429743 0.000229994933933 0)
(0.0013458038576 0.000208172966524 0)
(0.00119221388596 0.000129610568439 0)
(0.00134688161517 0.000134036763923 0)
(0.00126566916397 0.000142310082421 -1.40195022366e-28)
(0.00140330038847 0.000165375743561 1.56267090278e-28)
(0.00144250260024 0.000239188012367 0)
(0.0016387360662 0.000333260775561 0)
(0.00169767859412 0.000359398333878 0)
(0.00174144451461 0.000355048192089 0)
(0.00178263522014 0.00033928512621 0)
(0.0018248794543 0.000316181638683 0)
(0.0018666398778 0.000285705697621 0)
(0.00190775651401 0.000246934940413 0)
(0.00194914334665 0.000204522832521 0)
(0.00198740974366 0.000164478850003 0)
(0.00201924916891 0.000127369330069 0)
(0.00204400235299 9.00349212517e-05 0)
(0.00206192857535 4.92679812761e-05 0)
(0.00207312671401 2.52989850889e-06 0)
(0.0020762820176 -5.24724208093e-05 0)
(0.00206920341984 -0.000117913751511 0)
(0.00204979470032 -0.000195365597581 0)
(0.00201573378376 -0.000285383935132 0)
(0.00196390688052 -0.000387444577984 0)
(0.00189118635178 -0.000500011221513 0)
(0.00179470538337 -0.000621883217822 0)
(0.00167045660238 -0.000755445134753 0)
(0.00151230344048 -0.000907233893241 0)
(0.00131476429378 -0.00107341079955 0)
(0.00107888698471 -0.00122959809553 0)
(0.000813341908722 -0.00133935492212 0)
(0.00054406299945 -0.00136091123585 0)
(0.000324918717301 -0.0012669303371 0)
(0.00019157745074 -0.00110887560692 0)
(8.99942176365e-05 -0.0010053046113 0)
(1.75486196602e-05 -0.000902367030595 0)
(-8.32761745654e-05 -0.000605042772082 0)
(-0.000166252590792 -0.000399280492186 0)
(-0.000242961826525 -0.000332538921731 0)
(-0.000314942972362 -0.000293685168036 0)
(-0.000377409165964 -0.000263624685383 0)
(-0.000437402164856 -0.000226723323637 0)
(-0.000456605458115 -0.000141123021682 0)
(-0.000430043108262 -3.41521177087e-05 0)
(-0.00043166284286 5.08800092955e-05 0)
(-0.000424480051684 0.000131353824225 0)
(-0.000400928244138 0.000221386840961 0)
(-0.000347113727756 0.000297000017297 0)
(-0.000282632761497 0.000345478205429 0)
(-0.00019930812098 0.000377512685469 0)
(-0.000137870192567 0.000493187979751 0)
(-4.52090267365e-05 0.000540438023844 0)
(1.78521401957e-05 0.000327296835748 0)
(9.67689108803e-05 0.000476541051637 0)
(0.000183973707695 0.000549682274117 0)
(9.53475043748e-05 0.000287524839447 0)
(0.000100185508862 0.000269168949043 0)
(0.000274982130524 0.000501337442572 0)
(0.000341484999993 0.000539169783654 0)
(0.000389590846445 0.000524292682236 0)
(0.000398158264867 0.000453235405511 0)
(0.000444652350081 0.00040890133845 0)
(0.000330289220199 0.000210632235738 0)
(0.000383769887356 0.000148508797598 0)
(0.000438739490203 0.000151220678819 0)
(0.000477705011171 0.000184085990075 0)
(0.000631443537009 0.000303405029079 0)
(0.000770153966789 0.000386470791304 0)
(0.000717948787241 0.000321884012953 0)
(0.00075927957319 0.000319045868564 0)
(0.000876752347499 0.000402703309656 0)
(0.000954561663238 0.000456609459029 0)
(0.00099561243922 0.000459567665774 0)
(0.00103784601755 0.000445369732442 0)
(0.00109755519154 0.000430479078296 0)
(0.0011377543174 0.000396203443217 0)
(0.00119372652684 0.00033959108243 0)
(0.00114759616221 0.000300488778673 0)
(0.00125345643941 0.000281907350896 0)
(0.00121787010081 0.000241211468247 0)
(0.00118315950156 0.000194928892665 0)
(0.00121725554381 0.000174338485577 0)
(0.00138663464643 0.000186210354283 0)
(0.00132602703533 0.000172373635406 0)
(0.0013336441701 0.000242853517552 0)
(0.00158764974435 0.000379103798338 0)
(0.00164307853038 0.000429978074149 0)
(0.00169369869044 0.000418859584974 0)
(0.00173763014102 0.000400761584322 0)
(0.0017800372618 0.000382098378827 0)
(0.00182541256867 0.000359218174882 0)
(0.00187124737085 0.000328937384952 0)
(0.00191521271755 0.000290666395438 0)
(0.00195796196798 0.000247496203858 0)
(0.00199826913751 0.000203282047499 0)
(0.00203352916245 0.000159434191234 0)
(0.00206270778305 0.000114803125299 -1.90235214906e-28)
(0.00208594980498 6.6909753546e-05 1.89792242872e-28)
(0.0021027712508 1.25989980091e-05 0)
(0.00211126492289 -5.14455901802e-05 0)
(0.00210894869409 -0.000127968554125 0)
(0.00209383475001 -0.000218818140722 0)
(0.00206363865783 -0.000324930215922 0)
(0.00201518770026 -0.000446281421879 0)
(0.00194475407886 -0.000582300638056 0)
(0.00184746596686 -0.0007336542423 0)
(0.00171668939434 -0.000903862259869 0)
(0.00154556600485 -0.0010958081404 0)
(0.00133010887293 -0.00130018299764 0)
(0.00107035694823 -0.00149011205445 0)
(0.000768257492696 -0.00162365666196 0)
(0.000454309428646 -0.00161592717644 0)
(0.000223760616881 -0.00142823954134 0)
(0.000114350045623 -0.00121410065061 0)
(5.77560228606e-05 -0.00104936345473 0)
(2.93453187977e-05 -0.00092759207722 0)
(-5.02860077164e-05 -0.000808503708017 0)
(-0.000157137913143 -0.000482663609488 0)
(-0.000254606657948 -0.000410133440345 0)
(-0.000342181691463 -0.000365068187217 0)
(-0.000407324650926 -0.000316756950365 0)
(-0.000454669705844 -0.000250426717939 0)
(-0.000462220570165 -0.000144397908039 0)
(-0.00046090852778 -3.95896591482e-05 0)
(-0.000477369586168 5.07176334577e-05 0)
(-0.000472627302893 0.000148680525041 0)
(-0.000450618734136 0.000257112885605 0)
(-0.000393659921366 0.000343233464885 0)
(-0.000338828459738 0.000421049572933 0)
(-0.000239703238029 0.000471681858888 0)
(-0.000152567329407 0.000574888080962 0)
(-5.2632542764e-05 0.000650650536061 0)
(2.6860163834e-05 0.000390216957132 0)
(0.000117768099778 0.000565642311864 0)
(0.00014943983279 0.000551471377266 0)
(9.02928039363e-05 0.00031512400359 0)
(0.000153405329832 0.000371081997759 0)
(0.000297981946763 0.000585879425487 0)
(0.000307653987056 0.000582257717431 0)
(0.000377588593371 0.000564531144765 0)
(0.000326863318786 0.000427798759107 0)
(0.000448375745694 0.00045482592542 0)
(0.000318212423273 0.000226194247682 0)
(0.000395193891762 0.000201527125752 0)
(0.000431185528599 0.00020703204755 0)
(0.000518419807484 0.000291723163529 0)
(0.000672472096691 0.000433278960994 0)
(0.000748446879704 0.00043675542085 0)
(0.000687826240077 0.000348140988236 0)
(0.000770316187291 0.000399147120967 0)
(0.000868759687321 0.000485406484599 0)
(0.000925714431858 0.000514472765596 0)
(0.000976555687991 0.000508297391427 0)
(0.00100374284199 0.00048515960471 0)
(0.0010532360508 0.000466454531006 0)
(0.0010686369964 0.000424480385539 0)
(0.00105847000919 0.000341280441059 0)
(0.00117764553793 0.000330903776226 0)
(0.0010570113444 0.000288177089936 0)
(0.00128719796343 0.000275898187608 0)
(0.00114259415504 0.000227419586173 0)
(0.00136690520022 0.000252618129109 0)
(0.00121245070312 0.000209091315465 0)
(0.00142887450646 0.000247996149503 0)
(0.00150176315946 0.000366707738287 -1.82569418805e-28)
(0.00159634326019 0.000473784327355 1.97556368046e-28)
(0.00164047599108 0.000486351464208 0)
(0.00168532582685 0.000468899205738 0)
(0.0017325048922 0.000448420327844 0)
(0.00177796716456 0.000428394029013 0)
(0.00182541898395 0.000405650725935 0)
(0.00187404714147 0.000375646630742 0)
(0.00192160610157 0.000337080945745 0)
(0.00196733060948 0.000292432537673 0)
(0.00201046044648 0.000244771834157 0)
(0.00204963573483 0.000195639377004 0)
(0.00208406489984 0.000144771303632 0)
(0.00211315600091 9.01866207697e-05 0)
(0.00213585996727 2.83373296295e-05 0)
(0.00215021756154 -4.48702994963e-05 0)
(0.00215383404791 -0.000132609382848 0)
(0.00214471428406 -0.000236880990639 0)
(0.00212058342908 -0.000359157412966 0)
(0.00207808350818 -0.00050067631473 0)
(0.00201264088068 -0.00066292602384 0)
(0.00191720169968 -0.000848488837764 0)
(0.00178249915158 -0.00106034093414 0)
(0.00160025327136 -0.0012968867232 0)
(0.00136467721789 -0.00154533007692 0)
(0.00107007915592 -0.00178199157097 0)
(0.000702816055269 -0.00195545542772 0)
(0.000315382622502 -0.0019006718075 0)
(0.000102737053786 -0.00157521739804 0)
(5.86580351681e-05 -0.0012593763903 0)
(4.11283384531e-05 -0.00107342771132 0)
(1.41496370821e-05 -0.000960633920437 0)
(-2.15973685441e-05 -0.000853871310015 0)
(-0.000132217173376 -0.000657237960411 0)
(-0.0002548879909 -0.00046796728877 0)
(-0.000376817152211 -0.000450374670644 0)
(-0.000442407344141 -0.000374477661151 0)
(-0.000473359623589 -0.000272830045978 0)
(-0.00048591914466 -0.000160295746557 0)
(-0.000511906590239 -5.90104597236e-05 0)
(-0.00053488415002 4.33646129229e-05 0)
(-0.000534091853275 0.000161534711311 0)
(-0.000508741290899 0.000285601969933 0)
(-0.000461837021504 0.000396192364538 0)
(-0.000397972977628 0.000500108805593 0)
(-0.000296343475827 0.000593396241108 0)
(-0.000175552386912 0.00068752090741 0)
(-5.46847936976e-05 0.000762928435406 0)
(3.55640789902e-05 0.000474976591146 0)
(0.000137881192116 0.00063369137853 0)
(0.000134992771885 0.000527126812666 0)
(9.11379462081e-05 0.000332768325327 0)
(0.000215670525532 0.000531920980098 0)
(0.000260131430175 0.000587272057142 0)
(0.000281672074853 0.00062079232693 0)
(0.000327987234958 0.000590332469904 0)
(0.000274037750854 0.000407569344668 0)
(0.000360898539016 0.000407126500702 0)
(0.000303382090366 0.000245858135028 0)
(0.00038686871574 0.000252874024441 0)
(0.000419135109231 0.000272333047047 0)
(0.000541965339528 0.000405846556271 0)
(0.000671301014672 0.000517115053045 0)
(0.000610124481247 0.000407391367242 0)
(0.000653286814503 0.000389314575219 0)
(0.000756699736894 0.00048161197191 0)
(0.000839582332385 0.00055697614713 0)
(0.000887897539189 0.000569826177281 0)
(0.000951716948409 0.000559323464992 0)
(0.000984602197565 0.00052588096691 0)
(0.00104275403782 0.000493868381074 0)
(0.00105468944229 0.000444014208453 0)
(0.000979061338059 0.000375451906595 0)
(0.00119210680717 0.000368767441553 0)
(0.00106501066997 0.000312191544342 0)
(0.00108690448902 0.000276892022477 0)
(0.00114214070296 0.000272362335804 0)
(0.00117069290735 0.000290845036331 0)
(0.00134276231706 0.000312056340172 0)
(0.00131075213474 0.000340050431414 0)
(0.00153530532209 0.000466947872251 0)
(0.00158328460317 0.000536584888748 0)
(0.00162656292424 0.000535602220249 0)
(0.00167645592937 0.00051840416977 0)
(0.00172685079276 0.000498604074134 0)
(0.00177594079198 0.000477898501944 0)
(0.00182541425938 0.000454952810151 0)
(0.00187580369899 0.000425493297198 0)
(0.00192644627686 0.000386796899134 0)
(0.00197607103476 0.000340531747549 0)
(0.00202324130252 0.000289863948374 0)
(0.0020670127239 0.000236507960336 0)
(0.00210708828601 0.000180391871271 0)
(0.0021428314485 0.000119583149721 0)
(0.00217217502754 5.02728102362e-05 0)
(0.00219288671006 -3.19358632624e-05 0)
(0.00220340378447 -0.000130393093223 0)
(0.00220218319572 -0.000247380687563 0)
(0.00218687646059 -0.000385264730508 0)
(0.00215409425858 -0.000547275294581 0)
(0.00209832705236 -0.000737919011391 0)
(0.00200967018036 -0.000962096519402 0)
(0.00187484905638 -0.00122155269631 0)
(0.00168109915928 -0.00150997015946 0)
(0.00141610724697 -0.001816021594 0)
(0.00105403287589 -0.00211716078011 0)
(0.000556964685009 -0.00237616703317 0)
(0.000102787960399 -0.00224261957569 0)
(2.36909911414e-05 -0.00163246903006 0)
(5.57239609563e-05 -0.0012634438784 0)
(4.71974453595e-05 -0.00110112791688 0)
(5.26831650056e-06 -0.000998910596282 0)
(-4.765473618e-05 -0.000896853818354 0)
(-0.000138749839727 -0.000815976507555 0)
(-0.000310773097047 -0.000729434292959 0)
(-0.000358983251066 -0.000465757775323 0)
(-0.000459301782648 -0.000409181046287 0)
(-0.000492207041441 -0.000302042292891 0)
(-0.000526363418173 -0.000194648065326 0)
(-0.000570768176762 -9.06121505973e-05 0)
(-0.000600820293732 2.81855646873e-05 0)
(-0.000606499585449 0.000168475478135 0)
(-0.000582710710554 0.000312988181282 0)
(-0.000541115351107 0.000452380897951 0)
(-0.000467050350319 0.000588796392925 0)
(-0.000354813889565 0.000715963892371 0)
(-0.00021365759072 0.000813441006946 0)
(-6.70852231897e-05 0.000867458676481 0)
(3.64633138589e-05 0.000565329845367 0)
(0.000132144313536 0.000680859756158 0)
(0.000106584406612 0.000442052076955 0)
(0.000120427312418 0.00039838145137 0)
(0.000230283438873 0.000635844967037 0)
(0.00020840952815 0.000613202570781 0)
(0.000263559904752 0.000661487453752 0)
(0.0002565530721 0.000571003509522 0)
(0.000288684754445 0.000491071162168 0)
(0.000294717048547 0.000369783285091 0)
(0.000311828076489 0.000298404916639 0)
(0.000381024567743 0.000313159293063 0)
(0.000411072035879 0.000343063935136 0)
(0.000552478216358 0.000511685823433 0)
(0.000651088145455 0.000564777080766 0)
(0.000566906147728 0.000426072077463 0)
(0.000641278118637 0.000459947008249 0)
(0.000734190666168 0.000563234081988 0)
(0.000802640430211 0.000622357496826 0)
(0.000851140296742 0.000625828510332 0)
(0.0008954752027 0.000602841094519 0)
(0.000966636065748 0.000587898302679 0)
(0.00102500870914 0.000525857310062 0)
(0.00105695930974 0.000452423059649 0)
(0.000984462230652 0.000402738910284 0)
(0.000981274952084 0.000343426853789 0)
(0.00114247928172 0.000347368604466 0)
(0.0010629739389 0.000332555892816 0)
(0.0012942017315 0.000357847475839 0)
(0.00115500836619 0.000326999859956 0)
(0.00118641049488 0.00034244110337 0)
(0.00130392474761 0.000450173160933 0)
(0.00152870100036 0.0005991116897 0)
(0.00155898573179 0.000601320142143 0)
(0.00160945817152 0.000586204367023 0)
(0.00166420477663 0.000570436209244 0)
(0.00171820954846 0.000551748804946 0)
(0.0017711204582 0.000530458759677 0)
(0.00182435974277 0.000506815801592 0)
(0.00187651733244 0.000477904821373 0)
(0.00192945905675 0.000440022390163 0)
(0.00198362486189 0.000392855935113 0)
(0.00203580271295 0.000339450782471 0)
(0.00208483520094 0.00028257510671 0)
(0.0021312008901 0.000222176573304 0)
(0.00217407978455 0.000155699809585 0)
(0.00221064732193 7.90726615482e-05 0)
(0.0022385994571 -1.17749113576e-05 0)
(0.00225719459887 -0.000119881734924 0)
(0.00226576902198 -0.000247942932274 0)
(0.00226247361438 -0.000399531381692 0)
(0.00224440371391 -0.000580666489077 0)
(0.00220517516475 -0.000800748926568 0)
(0.00213077418099 -0.00106838636788 0)
(0.00200060244748 -0.00138337704311 0)
(0.00179130154163 -0.0017344112213 0)
(0.00146528735552 -0.0021154224979 0)
(0.00095979977281 -0.00258777408469 0)
(0.000233657124229 -0.00304745678062 0)
(-7.78046460236e-05 -0.00240905395696 0)
(5.19922259729e-05 -0.00154827027969 0)
(0.000105481351785 -0.00124700421137 0)
(7.75178831696e-05 -0.00114217726032 0)
(3.65581252063e-06 -0.00107379629821 0)
(-9.24958417756e-05 -0.000989950806547 0)
(-0.000196727422141 -0.000897429966336 0)
(-0.000306761030847 -0.000815224863468 0)
(-0.000485023470314 -0.000703862698906 0)
(-0.00045810201731 -0.00042782295164 0)
(-0.000505655571752 -0.000327730760348 0)
(-0.000565264803929 -0.000247206453018 0)
(-0.000627760177585 -0.000136024889023 0)
(-0.000669261449331 -3.01827666761e-07 0)
(-0.000688345519025 0.00016491929194 0)
(-0.000676110485032 0.00034216581576 0)
(-0.000632908982727 0.00051188959606 0)
(-0.000551664962431 0.000683006031161 0)
(-0.00043188525113 0.000840910893028 0)
(-0.000275262916328 0.00096322932858 0)
(-8.82529379609e-05 0.00102148989872 0)
(2.71301594853e-05 0.000642566832148 0)
(8.90391037541e-05 0.000711974763319 0)
(9.45340179644e-05 0.00046684566567 0)
(0.000154986970239 0.000468019737256 0)
(0.000176903732139 0.000550633540144 0)
(0.000173062438595 0.00063786491719 0)
(0.000252505937796 0.000705654351261 0)
(0.000217603980127 0.000551470326661 0)
(0.000295389450112 0.000578975920024 0)
(0.000282172684008 0.000385911656235 0)
(0.000321947793739 0.000345879853407 0)
(0.000375220665786 0.000370172237923 0)
(0.000411521440474 0.000421535454016 0)
(0.000552360359984 0.000607189003319 0)
(0.00060623758124 0.000596517251073 0)
(0.000525362575848 0.000446603716485 0)
(0.000620275387427 0.000529663217352 0)
(0.000703998198992 0.000637295891471 0)
(0.000760722666064 0.000680162555561 0)
(0.000812952753629 0.000680563957677 0)
(0.000843241519022 0.000655206198029 0)
(0.000941138241398 0.000652990836827 0)
(0.000902397145261 0.000531266236948 0)
(0.00104368639097 0.000476649665349 0)
(0.000996295402857 0.000410491341169 0)
(0.000968264996782 0.000402938085182 0)
(0.00117580476296 0.000423777753832 0)
(0.00104891689057 0.000364430529985 0)
(0.00108902005487 0.000361674760429 0)
(0.0012545997838 0.000398713812681 0)
(0.00124660566892 0.000451956012511 0)
(0.00146030580036 0.000620458407207 0)
(0.00148739376723 0.000674019090467 0)
(0.00153936287262 0.000658259312936 0)
(0.00159197819377 0.000641330032567 0)
(0.00164701385524 0.000625042833457 0)
(0.00170457955804 0.000607688354522 0)
(0.00176174767072 0.000587624896351 0)
(0.00182173767106 0.000563528414027 0)
(0.00187845913617 0.000533503561409 0)
(0.00193188262124 0.000495845484854 0)
(0.00198793064295 0.000449042823839 0)
(0.00204621096615 0.000394401048383 0)
(0.00210211842028 0.000334738020453 0)
(0.00215540827577 0.00027066111802 0)
(0.00220582067724 0.000199057523811 0)
(0.00225016395139 0.000115453722134 0)
(0.00228619567953 1.65980474548e-05 0)
(0.00231407681382 -9.96311156149e-05 0)
(0.00233429933147 -0.000235973168902 0)
(0.00234680245113 -0.000397396659229 0)
(0.0023501700056 -0.000593854431522 0)
(0.00233644487707 -0.000842079730913 0)
(0.00228656911453 -0.00115662021581 0)
(0.0021663104878 -0.00153861813949 0)
(0.00192462206824 -0.00197229733844 0)
(0.00150630032408 -0.00256064807416 0)
(0.000672913113203 -0.00342807051474 0)
(-0.000240087345873 -0.00361330165902 0)
(-3.82690179923e-05 -0.00217358528915 0)
(0.0001692229014 -0.001418126692 0)
(0.000194474343462 -0.00126059826286 0)
(0.000129027036687 -0.00121993395874 0)
(1.02934111561e-05 -0.00119161083867 0)
(-0.00012983492236 -0.00111511499726 0)
(-0.0002636688252 -0.00101934944144 0)
(-0.000370157825492 -0.000900937230269 0)
(-0.000514175135254 -0.000793270904108 0)
(-0.000498625227701 -0.000485979871992 0)
(-0.000528143767621 -0.000372383853631 0)
(-0.000590159319267 -0.000306443565669 0)
(-0.000682321064909 -0.00019705691712 0)
(-0.000737392575386 -4.93986076933e-05 0)
(-0.000779765579408 0.000142821700287 0)
(-0.00077814412349 0.000365840631472 0)
(-0.000742212646694 0.000567667292401 0)
(-0.000663214619198 0.000779176014276 0)
(-0.00053208717899 0.000981966237051 0)
(-0.000356518290601 0.00115951624292 0)
(-0.000121098044919 0.00125318427035 0)
(1.6994288123e-05 0.000686760106614 0)
(4.46414643768e-05 0.000727330746607 0)
(8.63910437997e-05 0.000496263734615 0)
(0.000158791952789 0.00051283883233 0)
(0.000153847632438 0.000534381932675 0)
(0.000184064786488 0.000687120865849 0)
(0.000251419977882 0.000741044780858 0)
(0.000184843588781 0.000490517386808 0)
(0.000303009950566 0.000647221737227 0)
(0.000265332406276 0.000396435773053 0)
(0.000318977766972 0.000384708645591 0)
(0.000363488210509 0.000421115428815 0)
(0.000398913411243 0.000492333444668 0)
(0.00053664328852 0.000678159720154 0)
(0.000463629526273 0.00051724681748 0)
(0.000480434176202 0.000478684755921 0)
(0.000591134564282 0.000609865053429 0)
(0.000667009039367 0.000706590805477 0)
(0.000716654471836 0.000732043171806 0)
(0.00076656381877 0.000727460281315 0)
(0.00079856706704 0.000708184127875 0)
(0.000904152475127 0.000713100366255 0)
(0.000837319956091 0.000550574097974 0)
(0.000843435377591 0.000444487444231 0)
(0.00101930003899 0.000470820281516 0)
(0.000947315542034 0.000437237114567 0)
(0.000969966718516 0.000389577389 0)
(0.00105603603125 0.000395373683847 0)
(0.00106054155109 0.000432668439559 0)
(0.00109663948188 0.000441140268301 0)
(0.00116684711448 0.000530450755506 0)
(0.00143773014758 0.00072707387541 0)
(0.00145331173691 0.000731591470984 0)
(0.00151316443274 0.000714747121054 0)
(0.00157220767635 0.000699707749982 1.89029955344e-28)
(0.0016299283599 0.00068445202964 -1.8886768497e-28)
(0.00169151635152 0.000667630646947 0)
(0.00174785398147 0.000646913959724 0)
(0.00180888035591 0.000623802944408 0)
(0.00187598825188 0.000594409805775 0)
(0.001935623225 0.000555544269019 0)
(0.00199240884247 0.000508590517241 0)
(0.00205341464718 0.000454273325517 0)
(0.00211658115505 0.000393662008607 0)
(0.00217833370576 0.00032680133218 0)
(0.00223695485882 0.000250333046245 0)
(0.00228942989993 0.000159953728705 0)
(0.0023340675408 5.3926579228e-05 0)
(0.00237213586794 -6.8131582097e-05 0)
(0.00240606441451 -0.000208712222072 0)
(0.00243877457511 -0.000373563995948 0)
(0.00247107262665 -0.000577471440461 0)
(0.00249261827871 -0.000847838012221 0)
(0.00248368068715 -0.00121379932881 0)
(0.00237444059379 -0.00168340314963 0)
(0.00208454539391 -0.00223034535191 0)
(0.00144583272082 -0.00329143955816 0)
(-0.000142289158434 -0.00472798474853 0)
(-0.000403383680452 -0.00347236357517 0)
(0.000183015779785 -0.00179976827657 0)
(0.000342646631067 -0.00134145439724 0)
(0.000311342435709 -0.00132876952243 0)
(0.000202088726304 -0.00133321626166 0)
(3.23488808386e-05 -0.00137486769016 0)
(-0.000173271287467 -0.00123063248899 0)
(-0.000360382210449 -0.00108633897472 0)
(-0.000502017586417 -0.000921352096344 0)
(-0.000574066226565 -0.000723191964156 0)
(-0.000567668097771 -0.000467826991648 0)
(-0.000557372037855 -0.00037516765952 0)
(-0.00063673792896 -0.000462244975197 0)
(-0.000730171523061 -0.00025989646344 0)
(-0.000832321289099 -0.000117292738604 0)
(-0.000910499167248 0.000111955070934 0)
(-0.00091537520396 0.000400247438371 0)
(-0.000874068488142 0.000604455930559 0)
(-0.000811988252631 0.000871876458492 0)
(-0.000672913560667 0.00114743749675 0)
(-0.000457314449272 0.00138846079031 0)
(-0.000157193692521 0.00153734798448 0)
(1.86247153306e-05 0.000730391182938 0)
(6.18374897141e-05 0.000750057411188 0)
(0.00010311578395 0.000713842266904 0)
(0.00011656599432 0.000540621338071 0)
(0.000143487977636 0.000568072947372 0)
(0.000196585957499 0.000735566361543 0)
(0.000244722873252 0.000763897211692 0)
(0.000197444295996 0.00052242718326 0)
(0.000320907965156 0.00069051050202 0)
(0.000251072341029 0.000413095841209 0)
(0.000313109835078 0.000422859239104 0)
(0.000351692958219 0.000466809325114 0)
(0.00038642700999 0.000549756049509 0)
(0.000510262504021 0.000727416453128 0)
(0.000427862006543 0.000527854365826 0)
(0.000486236248766 0.000546620406557 0)
(0.000578149163132 0.000685418566463 0)
(0.000634420613286 0.00076471581917 0)
(0.000676700528142 0.000779055315785 0)
(0.000716967786814 0.000765974250061 0)
(0.000755708119497 0.000755484707241 0)
(0.000858683752202 0.000752880005881 0)
(0.000796169416798 0.000564665963916 0)
(0.000840191916745 0.000518546698919 0)
(0.00102084763472 0.000538343796865 0)
(0.000922437923438 0.000445213447838 0)
(0.000955083477922 0.000450875036333 0)
(0.001129221859 0.000477870960293 0)
(0.00104750109646 0.000436782675181 0)
(0.00110797237098 0.000527657897826 0)
(0.00136790256148 0.000753769047908 0)
(0.0013982379066 0.000804449103264 0)
(0.00143448542749 0.000783155016441 0)
(0.00149065410453 0.000771130156307 0)
(0.00155319479464 0.000761141940821 0)
(0.00160636825429 0.000743671623561 0)
(0.00166895667466 0.000728639628147 0)
(0.00173799675637 0.000712277221986 0)
(0.001797597123 0.000688386807046 0)
(0.00186343744716 0.000659049453601 0)
(0.00193253103741 0.000620294162173 0)
(0.00199562767022 0.00057246096491 0)
(0.00205931371334 0.000518691945031 0)
(0.00212752827177 0.000459152106745 0)
(0.00219799447 0.000391383716145 0)
(0.00226618137415 0.000310344195707 0)
(0.00232763319009 0.000213297857491 0)
(0.00238146528717 0.000100759260482 0)
(0.0024289789587 -2.49083233007e-05 0)
(0.00247612814963 -0.000163728060607 0)
(0.00253528349072 -0.000322340568565 0)
(0.002603089786 -0.000521656002924 0)
(0.00267288049837 -0.000801504248386 0)
(0.00272090754992 -0.00121048930543 0)
(0.00259205928779 -0.0017759711081 0)
(0.0023039418558 -0.00255633142428 0)
(0.00107650622109 -0.00440718381113 0)
(-0.00159242432264 -0.00589067088948 0)
(-5.59380778453e-05 -0.00258483754184 0)
(0.000470641276919 -0.00146180635731 0)
(0.000551981494802 -0.00131595551064 0)
(0.000441313075399 -0.00146588860807 0)
(0.000326015904798 -0.00135016084341 0)
(1.91945994792e-05 -0.00121246067198 0)
(-0.000497055229141 -0.00128078305924 0)
(-0.000875133805194 -0.0013401367929 0)
(-0.00115020773777 -0.00127766359126 0)
(-0.00127162621324 -0.00111816597323 0)
(-0.00140595546798 -0.00100243556524 0)
(-0.00087704075644 -0.000515955906171 0)
(-0.000619669394064 -0.000167480842411 0)
(-0.000893149764453 -0.000392071407088 0)
(-0.000925585961366 -0.000404312380285 0)
(-0.00110403205072 -0.000145048593281 0)
(-0.00110166099002 0.000477689448221 0)
(-0.0010268726107 0.00060990821775 0)
(-0.00102790588092 0.000962189372469 0)
(-0.000883493660441 0.00135731922675 0)
(-0.000614322332248 0.00167578503751 0)
(-0.00022322933217 0.00191592972223 0)
(1.92377440756e-05 0.00077553241366 0)
(8.81848397833e-05 0.000782643766481 0)
(6.56497937484e-05 0.000554612139443 0)
(7.37608052818e-05 0.000577352416298 0)
(0.00012700650784 0.000610171471853 0)
(0.000199351794114 0.000783894085034 0)
(0.000238322475796 0.000776390139043 0)
(0.000220773949373 0.000566029799129 0)
(0.000324119137284 0.00072076523077 0)
(0.000234665684418 0.000435790065713 0)
(0.000304388034933 0.000463057003886 0)
(0.000342406654265 0.000511241873052 0)
(0.000382628556129 0.000603547009918 0)
(0.000491477292853 0.000759389083596 0)
(0.000420108924519 0.000551195700718 0)
(0.000493152913729 0.000606373238575 0)
(0.000567522328826 0.00074425280431 0)
(0.000607744809399 0.000810357356825 0)
(0.000642027882279 0.000820253335215 0)
(0.000680695396586 0.000809568065139 0)
(0.00071819350411 0.00079801233293 0)
(0.000799829091976 0.000786347421725 0)
(0.00080165053614 0.000632156659328 0)
(0.000831375854476 0.000558730032746 0)
(0.000841500221092 0.000489945334423 0)
(0.000951244405079 0.000507417664715 0)
(0.000946638133864 0.000507804799288 0)
(0.000961637236492 0.000484792130421 0)
(0.00117364977616 0.000583659448017 0)
(0.00126302000983 0.000717429723841 0)
(0.00134922801219 0.000820699751655 0)
(0.00137761531773 0.000842759358479 0)
(0.00142381033289 0.000837040809732 0)
(0.00147475751815 0.000827855390373 0)
(0.00152495462111 0.000815050550367 0)
(0.0015848859934 0.00080552064495 1.80453313504e-28)
(0.00164796980207 0.000793741806286 -1.80554497173e-28)
(0.00171204745583 0.000776730639106 0)
(0.00178597044999 0.000757282520285 0)
(0.00185191912844 0.000728252881298 0)
(0.00192181944602 0.000689687417906 0)
(0.00199215557888 0.000641624330612 0)
(0.00206167580757 0.000587669739955 0)
(0.00213499770205 0.000530484310463 0)
(0.00221296907156 0.00046556050395 0)
(0.00229309130227 0.00038256666346 0)
(0.00236613564505 0.000276571290139 0)
(0.00242352662865 0.000153815969835 0)
(0.00247372803952 2.83177942061e-05 0)
(0.00253886338628 -9.71461996177e-05 0)
(0.00263144369448 -0.000238751505733 0)
(0.00273927715112 -0.000417535837469 0)
(0.00286668282818 -0.000679040025148 0)
(0.00299569498094 -0.00112735040357 0)
(0.00285303042963 -0.00193177055631 0)
(0.00203900327317 -0.00255872831088 0)
(-0.0014269510152 -0.0111511792905 -2.82408291476e-27)
(-0.000685877390839 -0.00430854159018 8.22048773304e-28)
(0.000652556200735 -0.00169351848918 0)
(0.00078681500073 -0.00137122973685 0)
(0.000839854398143 -0.00122772291319 0)
(0.000526724795879 -0.00101320690591 0)
(-0.000284155962421 -0.000948039481205 0)
(-0.00198120912203 -0.000899016658509 0)
(-0.0023685728561 0.00039270779321 0)
(-0.00274740131216 0.00157173911396 0)
(-0.00296515607856 0.00277752899724 0)
(-0.00316054323563 0.00417130825505 0)
(-0.00342737193648 0.00616258837823 0)
(-0.00317542617087 0.00885981356816 0)
(-0.00012809068596 0.00961600144856 0)
(-0.000128434343128 0.00171088896899 0)
(-0.000684067616253 0.00139424298431 0)
(-0.0014740900345 0.00148906606339 0)
(-0.00150897277347 0.000905152570048 0)
(-0.00119346967295 0.000250548617797 0)
(-0.00133555754673 0.000801290305566 0)
(-0.00118133919205 0.00157686333778 0)
(-0.000862387828006 0.00202420233695 0)
(-0.00033698630992 0.00247333758162 0)
(1.43432766707e-05 0.000821041784931 0)
(7.03798681539e-05 0.000823081185016 0)
(5.56207030183e-05 0.000575965500604 0)
(6.83230308421e-05 0.000625631780619 1.93463349823e-29)
(0.000125054897192 0.000679530906914 -2.06219933362e-29)
(0.000197941756468 0.000825507878233 0)
(0.000214804647904 0.000783672363015 0)
(0.00023353213321 0.000622697766521 0)
(0.000261251936259 0.000600360277065 0)
(0.000231358052847 0.000472360286642 0)
(0.000295865370715 0.000509687974961 0)
(0.000335895214155 0.00055788323023 0)
(0.000387922318201 0.000661927891183 0)
(0.000479265084132 0.000782312048158 0)
(0.000410355850066 0.000580476773479 0)
(0.00049248407378 0.000663346586789 0)
(0.00055317253039 0.00079101888362 0)
(0.000583599852791 0.000845548773051 0)
(0.000612789045765 0.000857767769326 0)
(0.000648182922993 0.000850709372561 0)
(0.000686120339121 0.000839981682993 0)
(0.000744043162018 0.000816943709765 0)
(0.000803741222171 0.000706078526987 0)
(0.000814593226122 0.000584680361172 0)
(0.000820341700293 0.000538530498024 0)
(0.00100843147464 0.000603383576913 0)
(0.000908830174151 0.00053550812977 0)
(0.000962637589341 0.000576942920868 0)
(0.000987767204578 0.000614722091152 0)
(0.00115633949248 0.00077658741014 0)
(0.00128267702382 0.000896883335969 0)
(0.00133970030856 0.000902492181873 0)
(0.00139392016311 0.000890894884422 0)
(0.00143825938949 0.000877528809278 0)
(0.00150689696917 0.000878071771814 0)
(0.00155982748421 0.000866743018027 0)
(0.00162807982478 0.000860895727197 0)
(0.00169064208 0.000845996109702 0)
(0.00176391543408 0.000827829077221 0)
(0.00183692461125 0.00080040302337 0)
(0.00190765850957 0.00076229728859 0)
(0.00198186954972 0.000716747271128 0)
(0.00206037919376 0.000665351134499 0)
(0.00214050633487 0.000609862480353 0)
(0.00222353156643 0.000547737509203 0)
(0.00230572087526 0.00046034933861 0)
(0.00238277819597 0.000341960443378 0)
(0.00243950019472 0.00021029641624 0)
(0.00250215434451 9.45926782892e-05 0)
(0.00258451263909 -8.97627397474e-06 0)
(0.0026895828737 -0.000122761761302 0)
(0.00284193174061 -0.000263333400129 0)
(0.00302929241444 -0.000444655628832 0)
(0.00328087031805 -0.000753575868648 0)
(0.00288626918783 -0.00172561242705 0)
(0.00485261284352 -0.00921423140966 0)
(0.000422200029368 -0.00969222980136 0)
(0.000919620945952 -0.00235660404104 0)
(0.00130122865057 -0.00147113741727 0)
(0.00107518801405 -0.000783411617778 0)
(0.000428536447314 -0.000385084946418 0)
(-0.000617564076055 -0.000748886015104 0)
(0.000488261826544 -0.0013856440616 0)
(0.00186375008661 -0.00206991991886 0)
(0.00405910631338 -0.00227565419608 0)
(0.00656330139722 -0.00285967590042 0)
(0.00921854961333 -0.00346680741163 0)
(0.0114301679841 -0.00372781741127 0)
(0.0129229400153 -0.00314176305979 0)
(0.0138489019897 -0.00153482947092 0)
(0.0146743979535 0.000765798013157 0)
(0.0152003798629 0.00233126073321 0)
(0.0155185924784 0.00378415837915 0)
(0.0137389114331 0.00407045820251 0)
(0.00283028506044 0.00372879043642 0)
(0.000268003156594 0.00347014888721 0)
(-0.00179328630335 0.00331811516078 0)
(-0.00183163583774 0.00211544709727 0)
(-0.00128054251066 0.0022263921441 0)
(-0.00056645011355 0.00323775886392 0)
(9.86587693866e-06 0.000857381381962 0)
(6.46054212277e-05 0.000857276274564 0)
(4.65254121418e-05 0.000541618285978 0)
(6.34177540645e-05 0.000670724615036 0)
(0.000129141069702 0.000763761197197 0)
(0.000190874632626 0.000855768784013 0)
(0.000190568482606 0.000792654469147 0)
(0.000225341587235 0.00068096535078 0)
(0.000257245948385 0.000607509886849 0)
(0.000246426086313 0.000506985478557 0)
(0.000297331286728 0.000554813394713 0)
(0.000333824901766 0.00060707152339 0)
(0.000399165649639 0.000725085777448 0)
(0.000462342951586 0.000797348586983 0)
(0.000393528995868 0.000612051548183 0)
(0.000482518479782 0.000719602588968 0)
(0.000534099298157 0.000832157185553 0)
(0.000558828063541 0.000873739833121 0)
(0.000583654481895 0.000890702801953 0)
(0.000615485275612 0.000887875305172 0)
(0.000652118521769 0.000880634522545 0)
(0.000704058761352 0.000864465151478 0)
(0.000778115554386 0.000774943838952 0)
(0.000781101042641 0.000622506207264 0)
(0.000808991069198 0.000575163362944 0)
(0.00083197864813 0.000545827895546 0)
(0.000908990271157 0.000576787837247 0)
(0.000935238466645 0.000610425884396 0)
(0.000993602175305 0.0007141024919 0)
(0.00121975508672 0.000956847246332 0)
(0.001233894199 0.000970481038096 0)
(0.00129451978841 0.000955330610907 0)
(0.0013301058067 0.000933009243485 0)
(0.00139919743313 0.000938245916664 0)
(0.00146497683394 0.000937380178164 0)
(0.00153740322816 0.00093788655112 0)
(0.00159263947829 0.000924690202908 -1.72506629904e-28)
(0.00166809832149 0.000917964305358 1.72967402282e-28)
(0.00173860045051 0.000899704562131 0)
(0.0018147839136 0.00087486738279 0)
(0.00189249679155 0.000841744039267 0)
(0.00196796246665 0.000796098732651 0)
(0.00203636626923 0.000740305080302 0)
(0.00211899884493 0.000686170697981 0)
(0.00220921871286 0.000640080303734 0)
(0.00230175808019 0.000572556401661 0)
(0.00237620382947 0.00043988558045 0)
(0.00241859201528 0.000270609484371 0)
(0.00246213425721 0.000154172373957 0)
(0.00252527108182 8.09115862978e-05 0)
(0.00262267688981 5.50757413589e-06 0)
(0.00276310357903 -7.27104836115e-05 0)
(0.0029911062515 -0.00014149294095 0)
(0.00325944668377 -0.00019999363676 0)
(0.00244524063696 -0.000891232445526 0)
(0.00677902696996 -0.0138052028508 0)
(0.00362445332766 -0.010187107056 0)
(0.00206796602146 -0.0017076628741 0)
(0.00179132966834 -4.45817530414e-05 0)
(0.00572546736482 3.51220965965e-05 0)
(0.00652383700047 -0.000362231214898 0)
(0.00900334326563 -0.00129988503035 0)
(0.0132647977958 -0.00092988747123 0)
(0.0187103157544 -0.000220090167285 0)
(0.0252252107452 0.000519826898784 0)
(0.0322645190938 0.000674905130589 0)
(0.0393824251762 0.000278135843705 0)
(0.0459123786402 -0.000718779735365 0)
(0.0513126359909 -0.0023361724574 0)
(0.0552414019136 -0.0044180546055 0)
(0.0576277049849 -0.00687986109761 0)
(0.0591450394617 -0.00995223791371 0)
(0.0579948763098 -0.0119377388783 0)
(0.0538195730468 -0.012835260431 0)
(0.0465067472486 -0.0104961712339 0)
(0.0370314719536 -0.00432645307728 0)
(0.024510986771 0.000925601761832 0)
(0.00259889251897 0.00409861040324 0)
(-0.00110558425402 0.00448113969931 0)
(-0.00126063003613 0.00518398173767 0)
(5.14580060425e-06 0.000886448747731 0)
(4.53340919106e-05 0.000887326119452 0)
(3.4575507597e-05 0.000516769702433 0)
(7.25208072617e-05 0.000710964106556 0)
(0.000140024490522 0.000828892347849 0)
(0.000185809383147 0.00087782526561 0)
(0.000174639625141 0.000784747473463 0)
(0.000233886100933 0.000773822371214 0)
(0.000248183068218 0.000600676825615 0)
(0.000252041706447 0.000532293320939 0)
(0.000295639460099 0.000594975004341 0)
(0.000326215657845 0.000655559203718 0)
(0.00040367333146 0.000783809775324 0)
(0.000407945901257 0.000752524302328 0)
(0.000380105700071 0.000655520995534 1.50376091828e-28)
(0.000463105020684 0.000774887939911 -1.75455105928e-28)
(0.000510986018481 0.000869233977704 0)
(0.000529390801096 0.000896224676425 0)
(0.000552629732115 0.000921914803172 0)
(0.000580389465062 0.000921965347393 0)
(0.000613868158636 0.000918639024869 0)
(0.000662252942929 0.000911238681608 0)
(0.000739406116757 0.000836285054559 0)
(0.000742991011107 0.000661913189206 0)
(0.000793635546044 0.000608895710468 0)
(0.000805952647554 0.000601494568021 0)
(0.000999544700769 0.000726002621477 0)
(0.000987092432949 0.000738364868913 0)
(0.0011076087989 0.000900673162118 0)
(0.00116944048217 0.00101320281759 0)
(0.00120651466966 0.00103198822521 0)
(0.00123946294002 0.00100085747368 0)
(0.00128461627193 0.000986984001578 0)
(0.00136440149135 0.00101002927026 0)
(0.00143441736105 0.00101102925089 0)
(0.0014710216339 0.000988300543383 0)
(0.00156127122416 0.00100154068862 0)
(0.00163609050217 0.000994901498862 0)
(0.00171324789914 0.00097793856864 0)
(0.00179446968905 0.000953308339801 0)
(0.0018584475301 0.000912728470119 0)
(0.00193549780039 0.000870613777158 -1.58478411739e-28)
(0.00201246707936 0.000824285871799 1.54285725207e-28)
(0.00209285724007 0.000773808815027 0)
(0.00214479085975 0.000696953883305 0)
(0.0020294485439 0.000549070976261 0)
(0.00188726184678 0.000390850977221 0)
(0.00186767566954 0.000291169165828 0)
(0.00205395749819 0.000239538734049 0)
(0.00211558286235 0.000169020809248 0)
(0.00217776126063 0.000106284019549 0)
(0.00222896571891 7.03353398917e-05 0)
(0.00231844491311 9.80733278543e-05 0)
(0.00259089761446 0.000167900074534 0)
(0.00157192813338 0.000133099474075 0)
(0.00679923455956 -0.0101336338361 0)
(0.00423468633879 -0.0071158852563 0)
(0.0108837913744 -0.00125437127992 0)
(0.0119140649285 0.00135515194432 0)
(0.0150226000039 0.00162063332845 0)
(0.0195371112969 0.00167913123111 0)
(0.026118095533 0.0028586435023 0)
(0.0343955898897 0.00502041986862 0)
(0.0441438418165 0.00718884812206 0)
(0.0548956651609 0.00894001978372 0)
(0.066100595421 0.00982425373078 0)
(0.0771937760991 0.00981110205823 0)
(0.0875542586726 0.00889926338948 0)
(0.0966658849386 0.00706324410125 0)
(0.104084835174 0.00417681066294 0)
(0.109601233818 8.52011875864e-05 0)
(0.113632316511 -0.00516790926367 0)
(0.115080798505 -0.0116886941331 0)
(0.113296826048 -0.0185497607389 0)
(0.107001217839 -0.0249624635695 0)
(0.0949255790316 -0.028938730289 0)
(0.0771590411184 -0.0284728830472 0)
(0.0560467528251 -0.0188883944496 0)
(0.0325468616521 0.00209817147626 0)
(-0.000728368923615 0.000487300341785 0)
(9.52461109205e-07 0.00090492521255 0)
(2.70846883153e-05 0.000905143015933 0)
(2.91088434113e-05 0.000543006745742 0)
(8.97171914603e-05 0.000796325800637 0)
(0.000145896779219 0.000874866357439 0)
(0.000177627405202 0.000898504060634 0)
(0.000167936208632 0.000780924793444 0)
(0.00023244696078 0.000837526632229 0)
(0.000230432927726 0.00060409954502 0)
(0.000247571467326 0.00055396363925 0)
(0.000288345479176 0.000630248684337 0)
(0.000312247804518 0.00069831059965 0)
(0.000389803175745 0.00083470709275 0)
(0.000359589037152 0.000708883005036 0)
(0.000379610189108 0.000700141349813 0)
(0.00044390163044 0.00082405133019 0)
(0.000487020407967 0.00090320655537 0)
(0.000487616512058 0.000891650505008 0)
(0.000523359671876 0.000948986638318 0)
(0.000544916812495 0.00095173427846 0)
(0.000571864578066 0.000952545205529 0)
(0.000618270330832 0.000960529652311 0)
(0.000690510468832 0.000891439826589 0)
(0.000695583084194 0.000707981233651 0)
(0.000755195391992 0.000657763635745 0)
(0.000771621826086 0.000649653916943 0)
(0.000823045473195 0.000696065666139 0)
(0.00084247420445 0.000743623381889 0)
(0.000915512340616 0.000873974641735 0)
(0.00108811167271 0.00108496136983 0)
(0.00114231460026 0.00109310446824 0)
(0.00115183072982 0.00104020526565 0)
(0.00125765862757 0.00108643786069 0)
(0.00132688567824 0.00109692056961 0)
(0.00134097349958 0.00104287382984 0)
(0.00143573432476 0.00106731783986 0)
(0.00151784340992 0.00108219521445 0)
(0.00159560009754 0.00107494701884 -1.63120354826e-28)
(0.00167413286515 0.00105635563429 1.62696696148e-28)
(0.00175338460889 0.00102815545742 0)
(0.0018400353212 0.000996998531963 0)
(0.00190576810403 0.00094971887813 0)
(0.00196092403322 0.000879347361057 0)
(0.00192011578792 0.000744003890214 0)
(0.00181213720596 0.000566540393942 0)
(0.00169924448918 0.000425309323215 0)
(0.0016660721335 0.000359758442649 0)
(0.00172855214152 0.000343235779964 0)
(0.00173069886005 0.000273803936674 0)
(0.00165095516624 0.000153992632079 0)
(0.00154990201725 5.74644391282e-05 0)
(0.00139686036359 3.27478281778e-05 0)
(0.00136394722112 0.000153530863373 0)
(0.00136224520352 0.000311465211684 0)
(0.00153063379698 0.000922406720283 0)
(0.00131489142244 -0.000965952276099 0)
(0.0161064595278 -0.00404807647506 0)
(0.018652527309 0.00292058729424 0)
(0.023961568937 0.00445931958135 0)
(0.030736361237 0.00608517263774 0)
(0.039532841116 0.00836831814653 0)
(0.0503627803506 0.0119205603818 0)
(0.0627564831469 0.015855105388 0)
(0.0762594212873 0.0194290495146 0)
(0.0902758106169 0.0222212463251 0)
(0.104239954967 0.0239304119388 0)
(0.117597088889 0.0244688500834 0)
(0.129836714737 0.0237715932261 0)
(0.140608100296 0.0217210638813 0)
(0.149761980729 0.018109812226 0)
(0.157170475917 0.0127750408451 0)
(0.162601364818 0.00569324629949 0)
(0.166891664721 -0.00291046761257 0)
(0.168365034697 -0.0125205629748 0)
(0.166010343587 -0.0229102887385 0)
(0.157693490441 -0.0335812474113 0)
(0.141982920541 -0.0432548656782 0)
(0.119687024996 -0.0480897244037 0)
(0.0882415670967 -0.0415524322861 0)
(0.0120351285996 0.00955585290467 0)
(-4.78755941617e-07 0.000918139657113 0)
(1.86705889002e-05 0.000916406262687 0)
(3.06895520583e-05 0.000576339137487 0)
(0.000100657440602 0.000870978727265 0)
(0.000133488032906 0.000899358049661 0)
(0.000154571318448 0.000919283029149 0)
(0.000159473169114 0.000786124641589 0)
(0.000223975664685 0.000872360696556 0)
(0.000211041621853 0.000620267665829 0)
(0.00023826760323 0.000577280797762 0)
(0.000279047365943 0.000663135136479 0)
(0.000299932096583 0.000734518522244 0)
(0.000369671863288 0.000874454068579 0)
(0.000352635799952 0.000736024110989 0)
(0.000382637824682 0.00073937517436 0)
(0.000433517624669 0.000864712699562 0)
(0.000464944751622 0.000932822991229 0)
(0.000463054194155 0.000911817080625 0)
(0.000497908038082 0.00097129793037 0)
(0.0005139808406 0.000973487984948 0)
(0.000527740762371 0.000975502363335 0)
(0.000575580729633 0.00101529191072 0)
(0.000633416863046 0.000939935104018 0)
(0.000644112350192 0.000755493893143 0)
(0.000713046320375 0.000707272585969 0)
(0.000730426117909 0.000682581357424 0)
(0.000776314195601 0.000738772400855 0)
(0.000822981663997 0.000842821154989 0)
(0.000996540504311 0.0010908057433 0)
(0.00102714445532 0.00114503008921 0)
(0.00105944294873 0.00112460981488 0)
(0.00107033021835 0.00107669105311 0)
(0.00113775319315 0.00109160370318 0)
(0.00121075469783 0.00111723874634 0)
(0.00128547368199 0.00112668569859 0)
(0.00140156600913 0.00116346568816 0)
(0.00147427634416 0.00116700768176 0)
(0.00154475161711 0.00114989093584 0)
(0.00162573323762 0.00113509859631 0)
(0.00170326182029 0.00110848636133 0)
(0.00178764134381 0.00106911093675 -1.5422272464e-28)
(0.00185016737842 0.000996360930627 1.48027254178e-28)
(0.00185724638134 0.00085726712768 0)
(0.00173012337667 0.000643256362909 0)
(0.00167899868368 0.000505781504935 0)
(0.00174599747864 0.000450555543971 0)
(0.00176069916539 0.000406094413208 0)
(0.00177431721917 0.000326297537471 0)
(0.00158091128009 0.000148891307333 0)
(0.00139358835555 -1.68642190289e-05 0)
(0.0011439808729 -0.000129289665997 0)
(0.000926887797405 -0.000104286464041 0)
(0.000845829807672 6.97440466638e-05 0)
(0.000631683872666 -0.000103472990306 0)
(0.00156788796697 0.00105937800265 0)
(0.00256419695833 0.00289600207194 0)
(0.0246751364609 0.0076070255451 0)
(0.0309528233154 0.00925832231501 0)
(0.0412328138007 0.0113569443732 0)
(0.0517244673826 0.0152544930517 0)
(0.064410383747 0.0200540783166 0)
(0.078525834281 0.025607294357 0)
(0.0936407011552 0.0308787431642 0)
(0.109160461625 0.0352049793588 0)
(0.124562907197 0.0381108787099 0)
(0.139418770794 0.0393179433837 0)
(0.153391697508 0.0386922916967 0)
(0.166251496526 0.0361696441641 0)
(0.177901325452 0.0317299618933 0)
(0.188372608031 0.0254026204872 0)
(0.197651853079 0.0173050194466 0)
(0.205557314619 0.00764537204994 0)
(0.21235164965 -0.00346761784196 0)
(0.217050507425 -0.0167425411139 0)
(0.218314548925 -0.0318619085431 0)
(0.214108053982 -0.0492858896731 0)
(0.201907582257 -0.0689057823112 0)
(0.180891170187 -0.0901312231659 0)
(0.151475667934 -0.114592926843 0)
(0.0914695479253 -0.147812261188 0)
(-1.50410950695e-06 0.000927431011601 0)
(1.76443125814e-05 0.00092589755326 0)
(3.97213780381e-05 0.00063206412262 0)
(0.000107489701256 0.000920131728025 0)
(0.000114183636275 0.000910263742116 0)
(0.000124850342228 0.000939091927501 0)
(0.000156293578747 0.000848331273659 0)
(0.00020068104123 0.000881453801821 0)
(0.000190865607251 0.000648525187091 0)
(0.000227709377468 0.000603255379573 0)
(0.000269999334563 0.00069463823806 0)
(0.000289301486868 0.000767742004283 0)
(0.00035287066769 0.000906270105052 0)
(0.000341187519615 0.000757288091648 0)
(0.000376068159749 0.000771964518082 0)
(0.000421353341978 0.000894220002627 0)
(0.000444654057085 0.000952854024248 0)
(0.000435991389227 0.000925776856572 0)
(0.000470597653905 0.000995439480611 0)
(0.000484693959452 0.000989851490052 0)
(0.000482702808739 0.000983066303636 0)
(0.000525625824258 0.00106115128487 0)
(0.00056641553922 0.000980945886806 0)
(0.000590273469021 0.000807120027511 0)
(0.000663034798512 0.000758918006314 0)
(0.000688839790557 0.000724168254596 0)
(0.000747687170944 0.000789650129235 0)
(0.000826844631601 0.000947215532432 0)
(0.000969764221871 0.00117726771524 0)
(0.000971731963777 0.00120003072221 0)
(0.000974822934433 0.00114462018951 0)
(0.00106960058377 0.00120667059848 0)
(0.00114069867825 0.00124149974235 0)
(0.00120133288129 0.00123175782966 0)
(0.00122479095796 0.00118645387159 0)
(0.00134884035538 0.00124125801524 0)
(0.00140952875476 0.00123793842705 0)
(0.00150074499302 0.00124145241917 0)
(0.00157856813703 0.00122036729134 0)
(0.00164654583819 0.00118196025316 0)
(0.00172356215427 0.0011326905545 0)
(0.00180174539639 0.00102994926727 0)
(0.00167276366109 0.000772743560381 0)
(0.0015788111566 0.000583580054068 0)
(0.00164728964979 0.000538630297043 0)
(0.00170804516732 0.000496569126712 0)
(0.00171267932595 0.000381268139216 0)
(0.00154244165975 0.000164096272697 0)
(0.00135178471957 -5.7233768611e-05 0)
(0.00120171110843 -0.000209450880296 0)
(0.000998737068006 -0.000331971844472 0)
(0.000826548295723 -0.000396399971587 0)
(0.00147077546468 0.000477891350882 0)
(0.00637838177144 0.00450253223941 0)
(0.0280810859223 0.0101490116561 0)
(0.0321564281849 0.0143278721182 0)
(0.0421052168528 0.0167041718254 0)
(0.0505172598974 0.0179293193164 0)
(0.0631410224121 0.0224409377995 0)
(0.0766116546482 0.0284644090943 0)
(0.0921532957961 0.0350811935089 0)
(0.108558192355 0.0416175951267 0)
(0.12551463265 0.0471191706999 0)
(0.142499880059 0.0510267018311 0)
(0.159210595373 0.0529858977448 0)
(0.175420147969 0.0528878139442 0)
(0.190987967916 0.0507704451615 0)
(0.205824016044 0.0467489628092 0)
(0.21986964941 0.0409444824792 0)
(0.233058711142 0.0334736717344 0)
(0.245277910011 0.0244077565149 0)
(0.256301123873 0.0137200705307 0)
(0.265811282221 0.00125113840839 0)
(0.274934928198 -0.013628178139 0)
(0.281977617829 -0.0320168597383 0)
(0.285925753547 -0.0540817568071 0)
(0.285650621169 -0.0807979951053 0)
(0.284468333956 -0.114594062987 0)
(0.29038455318 -0.162099929182 0)
(0.287560106114 -0.229505977238 0)
(-2.66466064923e-06 0.000935532024407 0)
(1.8260924926e-05 0.000940274673669 0)
(5.16726666371e-05 0.000694673193773 0)
(0.000110111742737 0.000945925754565 0)
(9.3095200314e-05 0.000907294360047 0)
(0.000101747823907 0.000957470753029 0)
(0.000146233047226 0.000914183453114 0)
(0.000160888654479 0.000859257243726 0)
(0.000174391041317 0.000709563888549 0)
(0.000217157010801 0.000637711794292 0)
(0.000259574798041 0.000724450332168 0)
(0.000277544804359 0.000798609491664 0)
(0.000334435151856 0.000934278318561 0)
(0.000324650601192 0.000784596153357 0)
(0.000363359363707 0.000805316785434 0)
(0.00040706310783 0.000918713472362 0)
(0.000422864205314 0.000963702734213 0)
(0.000402516243973 0.000933941683723 0)
(0.000439831291896 0.00102197649563 0)
(0.000451739894397 0.00100180102161 0)
(0.000435972466333 0.000977175488312 0)
(0.000468326587214 0.00108959625246 0)
(0.000501004049719 0.00102856439288 0)
(0.000535805090447 0.000862634301802 0)
(0.00060736046197 0.000813329951405 0)
(0.000646328952645 0.000782453286482 0)
(0.000698187342237 0.000849425259534 0)
(0.000803376695651 0.00104110015886 0)
(0.000819657900793 0.00112382455683 0)
(0.000887970904439 0.00123840482696 0)
(0.000884913131976 0.00119589208509 0)
(0.000937906635698 0.00119843353953 0)
(0.000976767486748 0.00118740532046 0)
(0.00113972214593 0.00132209190563 0)
(0.00121562003775 0.00132106452725 0)
(0.00125776306414 0.00128444220913 0)
(0.0013638923029 0.00132135880021 0)
(0.00141944788531 0.00130312309987 0)
(0.00150991428488 0.00129701105409 0)
(0.0015921455926 0.00126765180409 -1.41882986355e-28)
(0.00168033471059 0.00119709918981 1.3819238335e-28)
(0.00159629114651 0.000948372714251 0)
(0.00144491440079 0.000681426347025 0)
(0.00148152439527 0.000602703449938 0)
(0.00156956771992 0.000586341641847 0)
(0.00157197864966 0.0004773618712 0)
(0.00142246165152 0.000250120744675 0)
(0.00129076946196 2.26719950264e-05 0)
(0.00122390201582 -0.000153303644783 0)
(0.00129364208394 -0.000180016205604 0)
(0.00147840606157 -0.000251319797721 0)
(0.00263125383568 0.00237507758732 0)
(0.0238261978737 0.0121199892292 0)
(0.031644653256 0.0170079405393 0)
(0.0412973860507 0.0206731282556 0)
(0.0499005963712 0.0228174490681 0)
(0.0607626575013 0.0265147482141 0)
(0.0724651269062 0.0303223593094 0)
(0.0872524530409 0.03715684542 0)
(0.103188920455 0.0447531072004 0)
(0.120675125898 0.0524882488854 0)
(0.138604395845 0.0594823046086 0)
(0.156735746387 0.0650432334873 0)
(0.174650030771 0.068809521121 0)
(0.192166415484 0.0706413678571 0)
(0.209128955804 0.0705789457031 0)
(0.225439866701 0.068718153095 0)
(0.241025910128 0.0651407493285 0)
(0.255848524142 0.0598533599626 0)
(0.26988880712 0.0527937178678 0)
(0.283175437609 0.043858501129 0)
(0.295805889623 0.0328733978656 0)
(0.307860911774 0.0195660300313 0)
(0.31953606273 0.00375048170629 0)
(0.331443237617 -0.0148579736711 0)
(0.342053571078 -0.0364978277783 0)
(0.352531102774 -0.0616641903992 0)
(0.369493473703 -0.0927494105839 0)
(0.403207705591 -0.133396924647 0)
(0.439212940916 -0.184264931012 0)
(-3.0760693951e-06 0.00093626580378 0)
(2.01076197956e-05 0.00096056817425 0)
(6.21029488541e-05 0.000759979184159 0)
(0.000100981774287 0.000930826354478 0)
(7.66320903444e-05 0.000884615357238 0)
(8.94131009987e-05 0.000973614374221 0)
(0.000125010486521 0.000951625858622 0)
(0.000122317332022 0.000815854413802 0)
(0.000164096828752 0.000763102172018 0)
(0.000208975119211 0.000669439750232 0)
(0.000248121211936 0.000750044539022 0)
(0.000264139249686 0.000826392586464 0)
(0.000312494187127 0.000957177788143 0)
(0.000304494380206 0.000813263772228 0)
(0.000343940216098 0.000839931780816 0)
(0.000389095879586 0.000942543182794 0)
(0.000391037094667 0.000956262660464 0)
(0.000365230212706 0.000936376424744 1.37532266928e-28)
(0.000406602801794 0.00104975671794 -1.53585905703e-28)
(0.000411008619198 0.00100729827588 0)
(0.000389709562112 0.000961170118236 0)
(0.000412395211368 0.0010939482256 0)
(0.00044494943881 0.00108014304009 0)
(0.000482111701097 0.000918712203146 0)
(0.000551346179645 0.000865607543958 0)
(0.000600662661079 0.000844179475248 0)
(0.000639436066677 0.000900787605079 0)
(0.000751410447561 0.00112133725562 0)
(0.000757936689243 0.00116838266488 0)
(0.00082322180168 0.0012507616067 0)
(0.000804263316179 0.00120989737796 0)
(0.000928582804335 0.00135898668119 0)
(0.000997834783999 0.00138924034629 0)
(0.00102994529193 0.00133606322397 0)
(0.00115104401064 0.00139117526563 0)
(0.00122403329959 0.00139349603457 0)
(0.00129854610325 0.00139372556835 0)
(0.00136838936792 0.00138780653337 0)
(0.00142994507769 0.00136510871179 0)
(0.0015256608339 0.00133420155662 0)
(0.00151119468249 0.00114867716523 0)
(0.00132327255456 0.000822859164249 0)
(0.00130276801204 0.000676937827963 0)
(0.00137195973711 0.000649309507244 0)
(0.00141009459209 0.000579055062229 0)
(0.00133414949776 0.000381302334865 0)
(0.0012342996799 0.000162401103728 0)
(0.00126369469514 6.04483213203e-05 0)
(0.00158603060768 8.94820122115e-05 0)
(0.00285443389487 0.000132537069091 0)
(0.00246733139513 0.00346714148213 0)
(0.0267970615639 0.018804608996 0)
(0.0365617551072 0.0244990057112 0)
(0.0455291517493 0.0265599234552 0)
(0.0559196242773 0.0293929235672 0)
(0.0669412769785 0.0325659822502 0)
(0.0800378469876 0.0383387970212 0)
(0.0948159720064 0.0451078744925 0)
(0.111712590521 0.0539225603582 0)
(0.129517994739 0.0628073526044 0)
(0.148193782335 0.0712363758189 0)
(0.166918496427 0.0783752140331 0)
(0.185487462148 0.0837645515058 0)
(0.203577868798 0.0871518830795 0)
(0.221069409664 0.0884594244338 0)
(0.237854291066 0.0877014411208 0)
(0.253895791083 0.0849124870116 0)
(0.269200601728 0.0801254276065 0)
(0.28383653221 0.0733706998283 0)
(0.297932911595 0.0647123979326 0)
(0.311675156403 0.0542581230823 0)
(0.325345522827 0.0421142578772 0)
(0.339324580477 0.0283442856949 0)
(0.353697930433 0.012851175946 0)
(0.368447923803 -0.00449748485413 0)
(0.383556366706 -0.0241680858945 0)
(0.400550552569 -0.0467235368962 0)
(0.426924578879 -0.073612477025 0)
(0.470262003809 -0.105465032274 0)
(0.513884463162 -0.138922086112 0)
(2.41378236086e-07 0.000931730429566 0)
(2.16020743341e-05 0.000982608231083 0)
(5.73334022432e-05 0.000818185610872 0)
(8.41736810212e-05 0.000885569921112 0)
(8.13402763944e-05 0.000892948313547 1.55110272468e-29)
(9.52470081831e-05 0.000980168302235 -1.73634860843e-29)
(0.000116516968432 0.000987592362624 0)
(0.000115731314981 0.000827770474643 0)
(0.00017316531757 0.000878914826379 0)
(0.000194913320468 0.000702691028896 0)
(0.00023383574374 0.000770443817606 0)
(0.000249554532937 0.000850726391327 0)
(0.000289630484896 0.00097428130694 0)
(0.000281956114994 0.000840929935775 0)
(0.000317781504316 0.000872905784064 0)
(0.000360995841861 0.000967504805744 0)
(0.000342591638311 0.000909672501819 0)
(0.000338459453325 0.000931814829914 0)
(0.000380769408945 0.00107069525602 0)
(0.000365609797483 0.000999529158378 0)
(0.000356945023469 0.000964174452198 0)
(0.000380729144904 0.00107239490858 0)
(0.000412500894231 0.00115545004585 1.58176513063e-28)
(0.000430396620645 0.000960635617796 0)
(0.000503058748482 0.000911761515681 0)
(0.000553902683941 0.000902473485018 0)
(0.000585904637784 0.000950267255572 0)
(0.000688396589469 0.00118100997633 0)
(0.000708342129172 0.00122420786415 0)
(0.000764794867119 0.00127052003828 0)
(0.000780581164982 0.00126613586854 0)
(0.000876140275269 0.00141081771168 0)
(0.000878947632941 0.00139641252209 0)
(0.00100238955018 0.00148035268936 0)
(0.00106928634874 0.00145783473629 0)
(0.00114074547214 0.00144848551018 0)
(0.0012216626602 0.0014609668426 0)
(0.00129528182227 0.00146036168789 0)
(0.00137279045533 0.00145072919216 0)
(0.00140190070069 0.00133169142725 0)
(0.00122555782693 0.000995595397498 0)
(0.00114177461096 0.000772600043275 0)
(0.00117359365962 0.000703375665672 0)
(0.00122404525369 0.000665287907762 0)
(0.00123287700909 0.000542030570676 0)
(0.00120052347738 0.000336308225692 0)
(0.00127050761897 0.00029307143167 0)
(0.00215075126031 0.000587312727872 0)
(0.00270853418149 0.000751225413375 0)
(0.00180763151959 0.00330256816734 0)
(0.0261405770339 0.0232162011779 0)
(0.0403617309347 0.0333570473749 0)
(0.0481540660277 0.0341359793073 0)
(0.0595026063797 0.0356753977423 0)
(0.0710953526522 0.0398943400682 0)
(0.0844978687424 0.0453723113715 0)
(0.0998475058261 0.0532278831412 0)
(0.116893881842 0.0622169850403 0)
(0.135321917942 0.0723475238737 0)
(0.154260048422 0.0819909226084 0)
(0.173458806295 0.0906075236775 0)
(0.192337631548 0.0975013554207 0)
(0.210732213989 0.102376586855 0)
(0.228431106652 0.105076593714 0)
(0.245392172214 0.105601133992 0)
(0.261602032088 0.104024879931 0)
(0.277129737715 0.100468839975 0)
(0.292098364655 0.0950805139932 0)
(0.306675758157 0.0880110613797 0)
(0.321061206577 0.0794194082749 0)
(0.335493431164 0.069426864861 0)
(0.350275994577 0.0580365744901 0)
(0.365825961323 0.0452402460809 0)
(0.382346126788 0.03091816822 0)
(0.399387174621 0.0147644068306 0)
(0.417281878587 -0.00293613573675 0)
(0.438899975889 -0.0223294016419 0)
(0.470395405093 -0.0448215487438 0)
(0.516391348362 -0.0688462376933 0)
(0.559020198656 -0.0903295435062 0)
(6.77660448124e-06 0.000949681270568 0)
(2.73809990902e-05 0.000997840809939 0)
(4.32563073422e-05 0.000863152618157 0)
(7.57863565557e-05 0.000911467132018 0)
(9.56492791766e-05 0.000915413964196 0)
(0.000104731046043 0.000980304952009 0)
(0.000120497882067 0.00100430575082 0)
(0.00012317146017 0.000834927119611 0)
(0.000162958358765 0.000903928125148 0)
(0.000173588443736 0.000736544735484 0)
(0.000215529389002 0.000792282298567 0)
(0.00023388660938 0.000873461254652 0)
(0.000266560287231 0.000986184172702 0)
(0.000260713643536 0.000866373444887 0)
(0.00029328733116 0.000900609657801 0)
(0.000326918177766 0.000986264194745 0)
(0.000321106720249 0.000928420154854 0)
(0.000331832138855 0.000951872212358 0)
(0.000364221292582 0.00108015632038 0)
(0.000328604737169 0.000978268402 0)
(0.000346958167252 0.000983312724089 0)
(0.000396547373466 0.00109708377637 0)
(0.000385778318082 0.0011252219658 -1.4562594042e-28)
(0.000427956436228 0.00110909048923 0)
(0.00044444760729 0.000942906498508 0)
(0.000510499250891 0.000940811072938 0)
(0.000539282043211 0.000991420371408 0)
(0.000621744267526 0.00122673830837 0)
(0.000646754046201 0.0012749472533 0)
(0.000716007534436 0.00131870726004 0)
(0.000755312185652 0.00132036669312 0)
(0.000776445849767 0.00137592825989 0)
(0.000859554832992 0.00154692127562 0)
(0.000923587922211 0.00157520990653 0)
(0.000983798693597 0.00152994102723 0)
(0.00105613283031 0.00151288058407 0)
(0.00114257316379 0.00152389127107 0)
(0.00120154547315 0.00150923757287 0)
(0.00127566217369 0.00147803004249 0)
(0.0011472485963 0.00118377485372 0)
(0.0010261004019 0.000902396928941 0)
(0.00101553291159 0.000771375186804 0)
(0.00105973415037 0.000732890232173 0)
(0.0011151336551 0.000683996775752 0)
(0.00116878975826 0.00056023471436 0)
(0.00131856865696 0.00056398116628 0)
(0.0023789181153 0.00108489767713 0)
(0.00242368749043 0.00107280606281 0)
(0.00131065648567 0.0024293385555 0)
(0.0170015609124 0.0231474068628 0)
(0.0444075407049 0.0412830995346 0)
(0.0497781498739 0.0439941932049 0)
(0.0615386506745 0.0432810822677 0)
(0.0735205419691 0.0468592078374 0)
(0.0868629425201 0.0529430585639 0)
(0.102362066624 0.0607713506943 0)
(0.119538383822 0.0704989250131 0)
(0.138040012204 0.0810140641023 0)
(0.157290390934 0.091826809581 0)
(0.176629484667 0.101648449529 0)
(0.195745440046 0.109971661174 0)
(0.21424319346 0.116271488852 0)
(0.23201700808 0.120380727749 0)
(0.248972125334 0.122246629669 0)
(0.265152900535 0.121955354012 0)
(0.280641570623 0.119651048492 0)
(0.295589177341 0.115516173316 0)
(0.310181147559 0.109737564092 0)
(0.32462627964 0.10247415621 0)
(0.339140853871 0.0938763360767 0)
(0.353967158329 0.0840411320692 0)
(0.369438438037 0.0729823076751 0)
(0.385981199698 0.0608459082488 0)
(0.403815786909 0.0476799212216 0)
(0.4227138165 0.0333753728887 0)
(0.442796341582 0.0182950710849 0)
(0.466657507351 0.0021502060214 0)
(0.500503331646 -0.01505106024 0)
(0.54610437693 -0.0309659157197 0)
(0.585871234031 -0.0432881461454 0)
(6.74658715977e-06 0.000981873410818 0)
(2.33908668115e-05 0.00100084140295 0)
(2.592798328e-05 0.000888934346978 0)
(6.61645512374e-05 0.000935272084217 0)
(9.89991875914e-05 0.000928620628531 0)
(0.000104714838479 0.000979030396729 0)
(0.000118283983477 0.00101784486706 0)
(0.0001215541408 0.000846488370283 0)
(0.000153851653744 0.000903875103342 0)
(0.000164736788886 0.000774406137971 0)
(0.000200307306732 0.000814105231908 0)
(0.000219453857193 0.000895203262963 0)
(0.00024537869449 0.000993923063679 0)
(0.000240829823738 0.000890128629316 0)
(0.000271975737103 0.000925127716097 0)
(0.000299283534072 0.000997125274639 0)
(0.00030331643398 0.000946556577234 0)
(0.000322191799321 0.000967283527844 0)
(0.000352227375508 0.00107858262549 0)
(0.000322093455943 0.000985972537424 0)
(0.00037833163113 0.0010901286763 0)
(0.000388706805235 0.00110980701203 0)
(0.000380285890614 0.00112792455889 0)
(0.000388260001377 0.00109353212371 0)
(0.000426706244712 0.00105325955905 0)
(0.000483617076286 0.00105685558239 0)
(0.000483232506398 0.00103808639378 0)
(0.000542975844194 0.00125587724527 0)
(0.000596329086213 0.00136597311605 0)
(0.000659075689643 0.00137332995732 0)
(0.000697448237093 0.00136729810016 0)
(0.000725420710668 0.00141008386922 0)
(0.000781061770486 0.00155400510477 0)
(0.000833153143817 0.00164577739734 0)
(0.000909227844004 0.00165778799191 0)
(0.000984693045677 0.00164050628034 0)
(0.00106133256309 0.00160596439137 0)
(0.00111139987882 0.00154247416489 0)
(0.00110490273654 0.00139550836556 0)
(0.000959700888618 0.00107125314537 0)
(0.000913788326841 0.000873630105209 0)
(0.000929646168168 0.000794047392473 0)
(0.00099488300077 0.000780768769135 0)
(0.00110983612125 0.000769743192654 0)
(0.00142076192389 0.000898486572562 0)
(0.0020753015081 0.00129671209973 0)
(0.00213854863396 0.00117624842451 0)
(0.00140892832022 0.00123810283208 0)
(0.00551684390386 0.0148490608774 0)
(0.0470097336931 0.046128804933 0)
(0.0518871342888 0.0547021035764 0)
(0.0623292077216 0.0524776883019 0)
(0.0747418604229 0.0542394148529 0)
(0.0877736358637 0.0600660137859 0)
(0.102941531293 0.0681461157393 0)
(0.119993150641 0.0780235347124 0)
(0.138375479854 0.0892068610809 0)
(0.157599856339 0.100638125252 0)
(0.177043708981 0.111611717165 0)
(0.196196750519 0.121141182538 0)
(0.214776290111 0.12881053738 0)
(0.232542763213 0.134274847625 0)
(0.249465028399 0.137483644295 0)
(0.265554628274 0.138485792111 0)
(0.280929602976 0.137442659618 0)
(0.29573982335 0.134553119612 0)
(0.310178949261 0.130038429067 0)
(0.324454237658 0.124109610458 0)
(0.338779148051 0.116944400973 0)
(0.353361583456 0.108717152365 0)
(0.368431146042 0.0995600387069 0)
(0.384300723667 0.0895429970281 0)
(0.401344799343 0.0788772887043 0)
(0.419791750768 0.0676725246714 0)
(0.439498695302 0.0558761162501 0)
(0.460673834292 0.0439003610389 0)
(0.485661865056 0.0316809716774 0)
(0.519228609626 0.0192359820074 0)
(0.562124481754 0.00946527722645 0)
(0.598437249161 0.00405273857833 0)
(4.07085805102e-06 0.000999503335648 0)
(1.67673463003e-05 0.00100162740645 0)
(1.82658647409e-05 0.00090513650692 0)
(5.83501375246e-05 0.00102556739699 0)
(8.48598646217e-05 0.000944059089063 0)
(9.56516819035e-05 0.000986243929413 0)
(0.000109033737187 0.0010289845162 0)
(0.000115577467969 0.000873414008056 0)
(0.000150724451038 0.000929086273703 0)
(0.000161656025907 0.000805848638365 0)
(0.000189059417063 0.000831303762207 0)
(0.000206319185827 0.00091461819904 0)
(0.000224525573154 0.000997285399971 0)
(0.000222032888743 0.000912864727121 0)
(0.00025164740549 0.000947745711591 0)
(0.000272667910025 0.00100606911336 0)
(0.000286267973742 0.000974281271442 0)
(0.000308542849606 0.000983998321537 0)
(0.000337605221154 0.0010800749903 0)
(0.000319869624453 0.000994689646638 0)
(0.00036399878676 0.00109184156436 0)
(0.000347872514855 0.00108281988282 0)
(0.000342029227295 0.00113499601745 0)
(0.000345506089996 0.00111289787307 0)
(0.000365629174922 0.00102850529448 0)
(0.000395333077514 0.00102118480987 0)
(0.000413581603934 0.00108321415025 0)
(0.00044669306968 0.00128902680589 0)
(0.000528483051366 0.00145185897435 0)
(0.00058266253516 0.00141545295075 0)
(0.000618630407792 0.00140792978009 0)
(0.000659376439449 0.00145259491467 0)
(0.00068179828177 0.00152425811892 0)
(0.000752693602643 0.00169232129498 0)
(0.000765092632161 0.00162969973938 0)
(0.000869387914802 0.00169820259937 0)
(0.000957993472603 0.00168173863165 0)
(0.00100174473864 0.00154968771832 0)
(0.00094515709878 0.00129389914548 0)
(0.000851908202812 0.00101349661108 0)
(0.000843794151373 0.000877452421238 0)
(0.000880802463218 0.000843360169595 0)
(0.00100725286298 0.00091070231706 0)
(0.0014112697501 0.00118702194287 0)
(0.00174379142555 0.00138306166488 0)
(0.00194015782412 0.00139931141157 0)
(0.00196119469012 0.00112383270231 0)
(0.000917399966389 0.0070750139645 0)
(0.0442876967161 0.0449909091923 0)
(0.054819998308 0.0635570916553 0)
(0.0626179834284 0.0629371926703 0)
(0.0748126372058 0.0623664292227 0)
(0.0876152448776 0.067051354127 0)
(0.102163146231 0.0749597593255 0)
(0.118755237358 0.0849928999286 0)
(0.136804976516 0.0964827975764 0)
(0.155778054467 0.108614543942 0)
(0.175113792086 0.120399806689 0)
(0.194252207439 0.131104264903 0)
(0.212804445258 0.140003763273 0)
(0.230560927913 0.146803639919 0)
(0.24740919169 0.151327883214 0)
(0.263389085274 0.153631269397 0)
(0.278589897168 0.153849702958 0)
(0.293172857619 0.152198854605 0)
(0.30731659796 0.148909899688 0)
(0.321219840595 0.144217351216 0)
(0.335080424503 0.138335042384 0)
(0.349094325102 0.131439656478 0)
(0.363449729453 0.12369945264 0)
(0.378355484563 0.115250449581 0)
(0.394092013252 0.106178639005 0)
(0.410987254281 0.0966923271248 0)
(0.429248767142 0.086954307723 0)
(0.448815849922 0.0769907705668 0)
(0.469865619823 0.0672098120855 0)
(0.494349513895 0.0578374460822 0)
(0.526227873617 0.0494190800741 0)
(0.565897099174 0.0446698529126 0)
(0.599178441439 0.0441548360442 0)
(5.86990960196e-06 0.00101053941767 0)
(1.08854325106e-05 0.0010085309245 0)
(1.66491836973e-05 0.000933005352734 0)
(4.77978627902e-05 0.00103889366262 0)
(6.06565372151e-05 0.000963485139294 0)
(8.03809415271e-05 0.00100169395559 0)
(9.5834062545e-05 0.00103836105497 0)
(0.000107801163232 0.000904684408035 0)
(0.000140211167407 0.000944434020375 0)
(0.000154290620512 0.000834844533769 0)
(0.00017760443721 0.000843067875456 0)
(0.00019235575904 0.000930910370517 0)
(0.000203331788783 0.000994990453361 0)
(0.000205035276878 0.000933691534087 0)
(0.000231598925561 0.000967376478651 0)
(0.000245189616942 0.0010127787754 0)
(0.000268398495807 0.00100321762471 0)
(0.000292468025127 0.000999124692067 0)
(0.000315145037713 0.0010831362442 0)
(0.000303828648383 0.00101353340575 0)
(0.000330302310106 0.00109293993776 0)
(0.000309564249114 0.00105956161788 0)
(0.000302604807665 0.00108009908873 0)
(0.000312100356787 0.0011612583538 0)
(0.000320819220226 0.00108057641939 0)
(0.000361610624901 0.00104497635062 0)
(0.000350005098109 0.00105016027593 0)
(0.000373718766133 0.0013064838311 0)
(0.00045421421009 0.00155137474425 0)
(0.000499041982303 0.00145205699416 0)
(0.000550713464381 0.00143975126511 0)
(0.000612375239889 0.00154690199745 0)
(0.000631188102196 0.00162925647443 0)
(0.000662639113844 0.00174084100777 0)
(0.000697069488513 0.00174033498345 0)
(0.000783768393022 0.00178758028086 0)
(0.000854638815656 0.00174170912676 0)
(0.000889782096481 0.00154156648848 0)
(0.000826840390546 0.00121901948801 0)
(0.000776864346167 0.000985212631713 0)
(0.000788665059945 0.000904040399721 0)
(0.000858119056422 0.000962624167404 -5.50166345436e-29)
(0.00122669977507 0.00130893568365 0)
(0.00149325055766 0.00149793074501 0)
(0.00157814683323 0.00153228905773 0)
(0.00198709184857 0.00170915549776 0)
(-0.000301274222057 0.00407614576878 0)
(0.0255104165739 0.0395032889196 0)
(0.0573868704568 0.0676466460609 0)
(0.0620647089143 0.0735077228396 0)
(0.0740031341399 0.0714472004485 0)
(0.086416634982 0.074235937435 0)
(0.100352555074 0.0813407933687 0)
(0.116240450074 0.0912384361844 0)
(0.133762830354 0.102943826044 0)
(0.152312070622 0.115549490344 0)
(0.171352695761 0.128132210235 0)
(0.190336537932 0.139801958827 0)
(0.208812864812 0.149910697478 0)
(0.226504302018 0.157962774615 0)
(0.243287691613 0.163792827484 0)
(0.259147480012 0.167367620315 0)
(0.274178070144 0.168825359772 0)
(0.288516039556 0.168362559554 0)
(0.302340576368 0.166222577416 0)
(0.315835875347 0.162645399684 0)
(0.329191608259 0.157860043173 0)
(0.34259161723 0.15207173085 0)
(0.356217243394 0.145453480496 0)
(0.370245060449 0.138172506444 0)
(0.384868523664 0.130380928872 0)
(0.400339226329 0.122202667958 0)
(0.416943138039 0.113865891595 0)
(0.434875426266 0.105583168855 0)
(0.454105852226 0.0974373791887 0)
(0.474716210686 0.0898203298695 0)
(0.498174237018 0.0830423019002 0)
(0.527753746818 0.0777291484321 0)
(0.563853013785 0.0762274184925 0)
(0.594230792181 0.0787905534651 0)
(7.1753113983e-06 0.00102274417011 0)
(1.38890855249e-05 0.000957714589287 0)
(2.01212932829e-05 0.000968448731341 0)
(4.16564927524e-05 0.00103939398355 0)
(4.89219497804e-05 0.000980102886 0)
(6.67692499702e-05 0.00101867906082 0)
(8.11109846963e-05 0.00104817840329 0)
(9.68375782662e-05 0.000934899926506 0)
(0.000122389600173 0.000956636313419 0)
(0.000143817895304 0.00087091950501 0)
(0.000165422315857 0.000849560666301 0)
(0.0001765205166 0.000942364415608 0)
(0.000182665541386 0.000993593498063 0)
(0.000193268324564 0.000959061231136 0)
(0.000214884377067 0.000981467529786 0)
(0.000221245219943 0.00102413288483 0)
(0.000253225140078 0.00105255142696 0)
(0.000272082109325 0.0010109881444 0)
(0.000286402979923 0.00107949780323 0)
(0.00028010474007 0.00103296127666 0)
(0.00029227292541 0.00106785305353 0)
(0.000283721971605 0.00107638134966 0)
(0.000295448118027 0.00109012804468 0)
(0.000294474527189 0.00109794239951 0)
(0.000316915889234 0.00114208549116 0)
(0.000348323164215 0.00110880411999 0)
(0.000325304034941 0.00105288152998 0)
(0.000346330715572 0.00140229136068 0)
(0.000342688960811 0.00160519567977 0)
(0.000407878588914 0.00153759199553 0)
(0.000473361083937 0.0014847754181 0)
(0.000524251781133 0.0015407541028 0)
(0.000523888370391 0.00156892567593 0)
(0.000572530028558 0.00177896597064 0)
(0.000601726465034 0.00180484435912 0)
(0.000666210022694 0.00184065554355 0)
(0.000744297253925 0.0018064694031 0)
(0.000782233584545 0.00154074090562 0)
(0.00073251775316 0.0011704378472 0)
(0.000711991102618 0.000976427629119 0)
(0.000719726734413 0.000947911346375 0)
(0.0009372393512 0.00121735948153 6.1696852514e-29)
(0.00126577405555 0.00154843841323 0)
(0.00125508675949 0.00150489665431 0)
(0.00130011800017 0.00154799971712 0)
(0.000214944928648 0.00182542986481 0)
(0.00379948662404 0.0211535286059 0)
(0.0561035447384 0.0672492276855 0)
(0.0622018724106 0.0833291229732 0)
(0.0721264438191 0.081580803597 0)
(0.0846011084794 0.0821000950818 0)
(0.0975791146836 0.0876755089139 0)
(0.11276483556 0.0968833679433 0)
(0.129552797075 0.108530778701 0)
(0.147562351999 0.121472260498 -6.19172613875e-29)
(0.166174217664 0.134700190513 5.90486644219e-29)
(0.184876497915 0.147296350148 0)
(0.203189873779 0.158496938428 0)
(0.220782664081 0.167793265384 0)
(0.237479861281 0.174884981406 0)
(0.25323959965 0.179728379861 0)
(0.268115467269 0.182401794054 0)
(0.282237646263 0.183102728752 0)
(0.295766278479 0.182063924147 0)
(0.308883138301 0.179538513604 0)
(0.3217673574 0.175764723721 0)
(0.334596174146 0.170963433823 0)
(0.347539951783 0.16533420983 0)
(0.360766749913 0.159052720454 0)
(0.374440455226 0.152291860325 0)
(0.38873431466 0.145220147709 0)
(0.403862994945 0.137987955422 0)
(0.4200654964 0.130826950575 0)
(0.437511203626 0.123966431464 0)
(0.456173546471 0.117526187193 0)
(0.476030469857 0.111868984976 0)
(0.498145349447 0.107336528652 0)
(0.525274283906 0.104477199126 0)
(0.55798772499 0.105218803447 0)
(0.585670587315 0.109656427923 0)
(6.56492342815e-07 0.00103692456397 0)
(1.63361565032e-05 0.000973732748555 0)
(2.75401298128e-05 0.000985901353883 0)
(4.05066791227e-05 0.00104245421698 0)
(4.69172505721e-05 0.000991305442972 0)
(5.82467912547e-05 0.00102977201161 0)
(6.83106986009e-05 0.00105730421755 0)
(8.44961829637e-05 0.000963196828911 0)
(0.000102119034912 0.000965227847987 0)
(0.000130520025033 0.000912254109526 0)
(0.0001529309921 0.000853663683929 0)
(0.000160779997519 0.000945923528977 0)
(0.000163162221228 0.00100288001324 0)
(0.00018250818238 0.000982027927655 0)
(0.00020242899485 0.000986515876944 0)
(0.000204328188533 0.00103404184741 0)
(0.000231767636091 0.00109383015884 0)
(0.000241335084681 0.00102425075959 0)
(0.00025212978155 0.00106355884527 0)
(0.000255386800605 0.00105133355133 0)
(0.000272799534366 0.00107411736191 0)
(0.000276856821473 0.00107804679325 -9.36620492163e-29)
(0.000304585406439 0.0011560385505 1.02205112734e-28)
(0.000300888885603 0.00115292477184 0)
(0.000305502392312 0.00116684799441 0)
(0.000301678117222 0.0010784654191 0)
(0.000310341977775 0.00104940000738 0)
(0.000280628900345 0.00124489939318 0)
(0.00024688459135 0.00164166675638 0)
(0.000286147615434 0.00162643273195 0)
(0.000362895467939 0.00152754513791 0)
(0.000431874514404 0.00155545660961 0)
(0.000478574341935 0.00164259697953 0)
(0.000491744056266 0.00179340505921 0)
(0.000493419627074 0.00188713587496 0)
(0.000521922426595 0.00187046013218 0)
(0.000618258222308 0.00187457879006 0)
(0.000672062081137 0.00155940651077 0)
(0.00065188527926 0.00114691420758 0)
(0.000646431762233 0.000981170527824 0)
(0.00071409756505 0.00109353046461 0)
(0.00109348227938 0.00161320239054 0)
(0.00115580406244 0.00162302981307 0)
(0.00117695016735 0.00157895685933 0)
(0.00126144362477 0.00154322607932 0)
(-0.00136771022043 0.00744646865156 0)
(0.0435717323822 0.0569144479573 0)
(0.0638249561248 0.0892251768636 -1.65570936378e-28)
(0.0695124084933 0.0926941637684 0)
(0.0821214234598 0.0908226939452 0)
(0.0943795142319 0.0944807859665 0)
(0.10842682811 0.102307584146 0)
(0.124502087342 0.113398569792 0)
(0.141776498239 0.126407054509 0)
(0.159885308903 0.140119523405 0)
(0.17820041758 0.153526140139 0)
(0.196274445609 0.165781532611 0)
(0.213720618885 0.176268811236 0)
(0.230318630232 0.184632327301 0)
(0.245981521593 0.19073310335 0)
(0.260733961706 0.194630914829 0)
(0.274675488879 0.196485447438 0)
(0.28795632734 0.196532572899 0)
(0.300744614912 0.195023459682 0)
(0.313216491642 0.192210964779 0)
(0.325541230989 0.188327185422 0)
(0.337882241832 0.183584721864 0)
(0.35039513652 0.178177801349 0)
(0.363231613372 0.172282553272 0)
(0.376537017367 0.166072970965 0)
(0.390457727941 0.159723178683 0)
(0.405166885758 0.15339476932 0)
(0.420855739785 0.147311097262 0)
(0.437662339889 0.141703464706 0)
(0.455549462184 0.136715072893 0)
(0.474401476521 0.13268098703 0)
(0.494967213152 0.129938321509 0)
(0.519634591471 0.128943614867 0)
(0.549210499968 0.131281611339 0)
(0.574451067675 0.136991025899 0)
(-3.65568207383e-07 0.00104562961356 0)
(1.77929247199e-05 0.000987014039962 0)
(2.86380222262e-05 0.000998411433917 0)
(4.04313124609e-05 0.00105062329215 0)
(4.7516195539e-05 0.000998986601405 0)
(5.26002501305e-05 0.00103360998711 0)
(5.75640650551e-05 0.00106497545658 0)
(7.44936831506e-05 0.000987082944911 0)
(8.45400190524e-05 0.000969168525312 0)
(0.000115997079194 0.000960812428722 0)
(0.000140550637027 0.000861658106729 0)
(0.000148109524144 0.000941249612798 0)
(0.000143309042703 0.00101141609303 0)
(0.000170638800473 0.00102049069894 0)
(0.000189613478885 0.000985439630416 0)
(0.000190075385914 0.0010371067751 0)
(0.000205731541297 0.00111183606756 0)
(0.000205496985813 0.00103623359424 0)
(0.000219233311644 0.00107161770756 0)
(0.000231841361115 0.00106934726531 0)
(0.000245974672611 0.00108277948861 0)
(0.000264621468921 0.00109114164142 0)
(0.000280792341466 0.00110099687108 0)
(0.000272830412031 0.0011072820149 0)
(0.000269259504889 0.0011257302601 0)
(0.000287039880895 0.00114312653491 0)
(0.000299383627996 0.00107206866078 0)
(0.000284151929492 0.00120328914339 0)
(0.000221223027841 0.00165065409351 0)
(0.000166982506552 0.00168611765555 0)
(0.000243729793939 0.00167452069687 0)
(0.000323054771773 0.00161326536091 0)
(0.000381820056161 0.00163188974217 0)
(0.000391070760814 0.0016727617757 0)
(0.000394824309628 0.00187548443016 0)
(0.000389505524551 0.00196785597091 0)
(0.000447544281696 0.00194997369947 0)
(0.000550871695323 0.00160946314547 0)
(0.000567398748834 0.00115339104448 0)
(0.000570501665334 0.00101699284528 0)
(0.000744850981141 0.00129492822127 0)
(0.00101369618013 0.00169598659852 0)
(0.0009723623747 0.00161945745457 0)
(0.00113532511302 0.00160808182589 0)
(-0.00144046326347 0.00225651292853 0)
(0.0107882329432 0.0398660144227 0)
(0.0628828845804 0.0850775066569 0)
(0.0673059750702 0.10288219788 1.36296229634e-28)
(0.0782403406084 0.100712985542 0)
(0.0908683821869 0.101754551972 -9.0809483104e-29)
(0.103625610527 0.107976995202 0)
(0.118699521578 0.117845069616 0)
(0.135263614652 0.130514038283 0)
(0.152692692775 0.144457237329 0)
(0.170574359279 0.158517386157 0)
(0.188325299781 0.171736285055 0)
(0.205584226039 0.183388688599 0)
(0.22206161471 0.193012114292 0)
(0.237633523864 0.200396996739 0)
(0.252283608193 0.205533120181 0)
(0.266085532736 0.208561165871 0)
(0.279166488736 0.20969581292 0)
(0.291684971119 0.209194620342 0)
(0.303807402033 0.207314932911 0)
(0.315699548629 0.204303463443 0)
(0.32751754691 0.200383521255 0)
(0.339408719262 0.195758400026 0)
(0.351510810404 0.190615061525 0)
(0.363954846705 0.185125907015 0)
(0.376862518412 0.179460994797 0)
(0.390349873972 0.173792632968 0)
(0.404549157216 0.168285096578 0)
(0.419607782635 0.163150225621 0)
(0.435633964803 0.158615119689 0)
(0.452577024154 0.15483634873 0)
(0.470248176089 0.152114390359 0)
(0.489152135963 0.150754991368 0)
(0.511399714673 0.151131044183 0)
(0.53803694978 0.154570157116 0)
(0.561016533371 0.161128476045 0)
(-2.74257382503e-06 0.00105038177632 0)
(1.30131264947e-05 0.00100035997393 0)
(2.65622694888e-05 0.00100624383376 0)
(4.02085996858e-05 0.00105816874078 0)
(4.47065256631e-05 0.00100401136175 0)
(4.58719171441e-05 0.0010298406696 0)
(4.69353366512e-05 0.00107069895156 -1.30259870835e-29)
(6.77991738863e-05 0.00100609358349 1.21113892932e-29)
(8.04824638647e-05 0.000969815031526 0)
(0.000102572251054 0.00102366702775 0)
(0.000121143630088 0.000878905105832 0)
(0.000136466965529 0.000934574610687 0)
(0.000131278294698 0.00101303604829 0)
(0.000156558364784 0.0010790199361 0)
(0.000165010484689 0.00098720039848 0)
(0.000172822865139 0.00103923822335 0)
(0.000180060452897 0.00111456992523 0)
(0.000174237292811 0.00104455403491 0)
(0.000185877181278 0.00108205739407 0)
(0.000208487856954 0.00109460007166 0)
(0.000220926936022 0.00108282060371 0)
(0.00024277824641 0.00116083010942 0)
(0.000244411495064 0.00111643451547 0)
(0.000251110552515 0.00111969081783 0)
(0.000261785876609 0.00113541830993 0)
(0.000271977310602 0.00112878353911 0)
(0.000297547748461 0.00110527928221 0)
(0.000304180153272 0.00115022676174 0)
(0.000225489113254 0.00147305302624 0)
(9.67506597186e-05 0.00171344835323 0)
(0.000125647434368 0.00172895784457 0)
(0.000201064221203 0.00175982491819 0)
(0.000242193068675 0.00173285263231 0)
(0.000287995393623 0.00180061285238 0)
(0.000289460148077 0.00174691109061 0)
(0.000282855892666 0.00194705474597 0)
(0.000251022893505 0.00201027026822 0)
(0.000396354467837 0.00179852736724 0)
(0.000445051866908 0.00116574674268 0)
(0.000533836130593 0.00110042426616 0)
(0.000831131302564 0.00163454378071 0)
(0.00091061540721 0.00174348838376 0)
(0.000942956256783 0.00168804499965 0)
(0.000867055190482 0.00157253701638 0)
(-0.00251171570184 0.010258841972 0)
(0.0487602580124 0.073218716674 0)
(0.0671951310147 0.107301048888 0)
(0.0735281540962 0.111913397231 0)
(0.0864376140296 0.110067978818 0)
(0.098663367755 0.114043774909 8.29550286718e-29)
(0.112383735421 0.122354835916 0)
(0.128109622167 0.134029024758 -6.19422163112e-29)
(0.144856315313 0.14786873508 0)
(0.162162713022 0.162343213772 0)
(0.179565976697 0.17638989301 0)
(0.196575742405 0.189140863955 0)
(0.21291804558 0.200016072557 0)
(0.228396087378 0.208701553389 0)
(0.242964383135 0.215116620684 0)
(0.256659897271 0.219350244715 0)
(0.269588992562 0.221602046241 0)
(0.281892691382 0.222120607646 0)
(0.293729087067 0.221172668872 0)
(0.305256432306 0.21901344728 0)
(0.316626582666 0.21587974186 0)
(0.327979492235 0.211983807448 0)
(0.339443733662 0.207517815197 0)
(0.351136302909 0.202658767277 0)
(0.363164874428 0.197571318973 0)
(0.375625596012 0.192417581158 0)
(0.388604664585 0.187363136411 0)
(0.402197177559 0.182569468638 0)
(0.416511880632 0.178235820182 0)
(0.431630080461 0.174581943477 0)
(0.447490048713 0.171772215125 0)
(0.463852372282 0.170071643433 0)
(0.481031584706 0.169744761299 0)
(0.500909531884 0.171094564519 0)
(0.524749042401 0.175252708321 0)
(0.545575841556 0.182329996167 0)
(-2.46656605586e-06 0.00105272811788 0)
(1.22253242364e-05 0.00101225672477 0)
(2.75440437199e-05 0.00102665194975 0)
(3.78583628652e-05 0.00106175430151 0)
(3.60501455103e-05 0.00100727105558 0)
(3.74975869659e-05 0.00102317541035 0)
(3.62462772568e-05 0.00107510453931 0)
(5.86725985971e-05 0.00104278571643 0)
(7.78865239763e-05 0.000964945763814 0)
(8.40349942075e-05 0.00101898853905 0)
(0.000100453480566 0.00090720947882 0)
(0.000124036490516 0.000932037508052 0)
(0.000123475754625 0.00101288532717 0)
(0.00013204896758 0.00108659781642 0)
(0.000133761760459 0.000996663738789 0)
(0.000150262032307 0.00104463021457 0)
(0.000152410678041 0.00110770361709 0)
(0.000149997356224 0.00105185413786 0)
(0.000161633149077 0.00108701812019 0)
(0.000184041716238 0.00114992783432 0)
(0.000191513895398 0.00108418060363 0)
(0.000201914364913 0.0011441789072 0)
(0.000199505819874 0.00112318531828 0)
(0.000221178264574 0.00113832685246 0)
(0.000237113117136 0.00115408500472 0)
(0.000252864470503 0.00115646267632 0)
(0.000285118044211 0.00114128901656 0)
(0.000317756889349 0.00115784771387 0)
(0.000263286363715 0.00125267612486 0)
(0.000127408464212 0.00173981522112 0)
(3.07729221292e-05 0.00177107644379 0)
(5.02374771648e-05 0.00180978266861 0)
(8.72162019561e-05 0.0016834112711 0)
(0.000138002116963 0.00185323360115 0)
(0.000152172619394 0.00189160951181 0)
(0.0001477602086 0.0018793015827 0)
(9.69203314923e-05 0.0019142588735 0)
(6.40108916441e-05 0.00200081815183 0)
(0.00030826116537 0.00116192598627 0)
(0.000585649682154 0.00127342376877 0)
(0.00079070702103 0.00169530103796 0)
(0.000787445794872 0.00179837762959 0)
(0.000974648300254 0.00168569561374 0)
(-0.00205250369683 0.0016978262574 0)
(0.00867888204928 0.0460491244327 0)
(0.0660135680217 0.101746016227 0)
(0.0687009778052 0.121824796385 0)
(0.0808784169471 0.120147957388 0)
(0.0933945077673 0.12102071208 0)
(0.105917397246 0.127274956948 0)
(0.120490695449 0.137442368295 0)
(0.136488866426 0.150567260741 5.87565785363e-29)
(0.153178705506 0.165158292629 -4.86114373887e-29)
(0.170126744427 0.179807374615 0)
(0.186875458053 0.193547827081 0)
(0.203041673094 0.20563305479 0)
(0.2184307348 0.215631841854 0)
(0.232927965864 0.2233638044 0)
(0.246547826208 0.228855216764 0)
(0.259364972039 0.232268327832 0)
(0.271504820964 0.23384250313 0)
(0.283112043292 0.233844121677 0)
(0.294337980734 0.232539791307 0)
(0.305328252567 0.230176596231 0)
(0.316218199141 0.226978366114 0)
(0.327129427993 0.223143991642 0)
(0.338170208086 0.218852526443 0)
(0.349435653301 0.214268884366 0)
(0.361009704065 0.209547687685 0)
(0.372963465362 0.204841637323 0)
(0.38535538179 0.200308176312 0)
(0.398247207264 0.196104133098 0)
(0.411712776804 0.1924167657 0)
(0.425808216443 0.189456364727 0)
(0.440463746867 0.187390163957 0)
(0.455409631942 0.186449398116 0)
(0.470812418698 0.186856060525 0)
(0.488351640825 0.188856785684 0)
(0.509477483354 0.193426765922 0)
(0.528201166598 0.20074823505 0)
(-4.10225740724e-06 0.00105553822638 0)
(1.52510653124e-05 0.00102305281345 0)
(3.16652294403e-05 0.00105038709963 0)
(2.81306495512e-05 0.00105889775241 0)
(2.18308828904e-05 0.00101013955653 0)
(2.84925537562e-05 0.0010273468346 0)
(2.91777640469e-05 0.00107582880913 0)
(4.17301710011e-05 0.00107986058497 0)
(6.19142194419e-05 0.000976385530971 0)
(6.75444037035e-05 0.0010125769245 0)
(8.60316949495e-05 0.000951181281969 0)
(0.000109255603119 0.000931549487675 0)
(0.000109873308804 0.00101256333727 0)
(0.000105597665044 0.00107494967403 0)
(0.000107580889215 0.00101256920621 0)
(0.000123904281208 0.00105056746525 0)
(0.000122008417174 0.00109163615356 0)
(0.000130012574152 0.00106851448234 0)
(0.000143965751341 0.00108782362525 0)
(0.000147675238123 0.00114801781344 0)
(0.000150140108024 0.00109739500497 0)
(0.000161325376498 0.00113638893146 0)
(0.000166562533149 0.00113886459849 0)
(0.000188719833919 0.00117167149237 7.88704278638e-29)
(0.000192325053045 0.00115586173846 -7.54727772415e-29)
(0.000215368064456 0.00117642664196 0)
(0.000247383780792 0.00117111635873 0)
(0.000283636109233 0.00117594596415 0)
(0.000295708203411 0.00118585271057 0)
(0.000209338178172 0.00134358022874 0)
(8.48663910104e-06 0.00184567804383 0)
(-7.22516551738e-05 0.00169218576514 0)
(-4.99739800866e-05 0.0018727852935 0)
(-2.18256626506e-05 0.00175534919963 0)
(-7.87455074559e-06 0.00178466377003 0)
(7.54377812848e-06 0.00184776160529 0)
(9.31131247365e-06 0.00184131331299 0)
(-3.44782715253e-05 0.0018046206678 0)
(0.000227022364106 0.0020938840843 0)
(0.000515208701906 0.00130694874262 0)
(0.000779162577634 0.0016724445914 0)
(0.000790912936425 0.00191112242125 0)
(0.00110235062099 0.00180970867141 0)
(-0.00392903085004 0.00862757802416 0)
(0.0444813736856 0.0819112456712 0)
(0.0691547813172 0.12577855028 0)
(0.0732074583009 0.131711226192 0)
(0.0877294708013 0.129456993513 0)
(0.0993872008212 0.133070138407 0)
(0.112695192631 0.141184741417 0)
(0.127748623483 0.152997988351 0)
(0.143753426087 0.167165782077 0)
(0.160183834014 0.182139813329 4.68022955975e-29)
(0.176590404922 0.19666477983 0)
(0.192574844532 0.209877540633 3.27215142963e-29)
(0.207852097979 0.22117105771 0)
(0.222297105784 0.230252782205 0)
(0.235862856287 0.237056739751 0)
(0.248606576765 0.241693262586 0)
(0.260627296811 0.244375952224 0)
(0.272058744016 0.245368190131 0)
(0.283042017099 0.244942385264 0)
(0.29371727237 0.243358547 0)
(0.304214577016 0.240851775442 0)
(0.314651018133 0.237631185379 0)
(0.325128502931 0.23388114965 0)
(0.335734120209 0.229766794216 0)
(0.346540591001 0.225440078988 0)
(0.35760815307 0.221044292785 0)
(0.368983588253 0.216721219895 0)
(0.380699721783 0.212617655791 0)
(0.392788949809 0.208881781546 0)
(0.40529487689 0.205686119721 0)
(0.418252212941 0.203227297908 0)
(0.431587602051 0.201671428933 0)
(0.445017621448 0.201223245783 0)
(0.458592226388 0.202073214998 0)
(0.473802008872 0.204430404408 0)
(0.492250738629 0.209139733663 0)
(0.508871481195 0.216456655042 0)
(-2.06559924059e-06 0.00105915610845 0)
(2.2762918013e-05 0.00105651270194 0)
(2.9261071795e-05 0.00105220491702 0)
(1.35945177815e-05 0.0010312705847 0)
(1.07757581828e-05 0.0010141442705 0)
(2.14349618512e-05 0.00103191532598 0)
(2.33930597888e-05 0.00107197297309 0)
(2.46713315565e-05 0.00108851521716 -9.62306919179e-29)
(4.28145746661e-05 0.00100411008003 0)
(4.88801817417e-05 0.00100868381802 0)
(6.79587035267e-05 0.00098925327113 0)
(9.22045655141e-05 0.000931509013275 0)
(9.17280320632e-05 0.00100642655332 0)
(7.91727347315e-05 0.00106163043501 0)
(8.84167899246e-05 0.00102996692258 0)
(9.99922355353e-05 0.00104749082456 0)
(9.12118231926e-05 0.00109575784261 0)
(0.000106200949044 0.00108372464111 0)
(0.000120444391613 0.00108354448999 0)
(0.000112894598559 0.00113068321154 0)
(0.000116474738351 0.00111281117978 0)
(0.000123123031275 0.00113809261425 0)
(0.000134457016559 0.00115331410795 0)
(0.00014883179009 0.00115828814931 0)
(0.000152842911823 0.00117119626043 0)
(0.000174073103908 0.00123427316224 0)
(0.000188435875834 0.00121098457961 0)
(0.000219996610717 0.00122344458274 0)
(0.000259399061898 0.0012379469591 0)
(0.000253859622168 0.00122711597373 0)
(0.000144953049874 0.00139012362546 0)
(-3.8698054557e-05 0.00189545742375 0)
(-0.00014126180297 0.00181329195994 0)
(-0.000174547086564 0.00184936818042 0)
(-0.000122321952615 0.0018564081523 0)
(-6.89415876936e-05 0.00186676690396 0)
(-2.95325901592e-05 0.00191030420898 0)
(3.26740218154e-05 0.00198819372493 0)
(0.000163882334933 0.00227145100116 0)
(0.000496507909105 0.00230219022079 0)
(0.000449035774358 0.00167898162923 0)
(0.000552725603096 0.00186323793623 0)
(-0.00181452676266 0.00109275445694 0)
(-0.00157373672031 0.0376518666428 0)
(0.0662237392532 0.112232723026 0)
(0.068282520113 0.14248353049 0)
(0.0794358441758 0.140104428353 0)
(0.0933272231773 0.140101258312 0)
(0.104810999479 0.145815016819 0)
(0.118861169077 0.155600239683 0)
(0.134034913451 0.168753278625 0)
(0.149865133738 0.183576507125 0)
(0.165865568634 0.198629098373 0)
(0.181606810818 0.212793340875 0)
(0.196771041627 0.225325335221 -3.19398502274e-29)
(0.211155840089 0.235760014924 -2.45343939463e-29)
(0.224695690468 0.243927025146 0)
(0.237395515737 0.249854563269 0)
(0.249340632604 0.253715636379 0)
(0.260643388922 0.255757276001 0)
(0.271437520435 0.256254375739 0)
(0.281855305925 0.255476763711 0)
(0.292022516056 0.253673093189 0)
(0.302051678768 0.251063495861 0)
(0.312040573971 0.247840529609 0)
(0.322070935828 0.244172262772 0)
(0.332208986995 0.240208001127 0)
(0.342506179563 0.236084617674 0)
(0.353001143994 0.231931756926 0)
(0.363719340893 0.227878651529 0)
(0.374672035162 0.224061046407 0)
(0.385867017193 0.220620004967 0)
(0.397321237984 0.217719495094 0)
(0.409047947224 0.215550521406 0)
(0.420966812181 0.214285532098 0)
(0.432783988032 0.214114686087 0)
(0.444452432149 0.215202965251 0)
(0.457288657338 0.21772137785 0)
(0.473030827992 0.222375167781 0)
(0.487486964975 0.229467508858 0)
(-2.56391360252e-06 0.00106253669997 0)
(1.03208042632e-05 0.00106664788649 0)
(1.37415085595e-05 0.00100389816211 0)
(1.14607460827e-05 0.00101215463867 0)
(9.8523240811e-06 0.00101824465982 0)
(1.66111127779e-05 0.00103657300899 0)
(1.57922200438e-05 0.00106506817363 0)
(1.23138151859e-05 0.00108838686073 9.32932560031e-29)
(2.72741193087e-05 0.00102488977867 0)
(3.47982137643e-05 0.000999658290076 0)
(4.72423805787e-05 0.00104006391436 8.61955919614e-29)
(7.13462758567e-05 0.000943662056852 0)
(7.56915120912e-05 0.000991577639495 0)
(5.689922916e-05 0.00105951223611 0)
(7.00710980338e-05 0.00106030026921 0)
(8.10345172452e-05 0.00103362933701 0)
(6.88305490062e-05 0.00109133301214 0)
(7.74254554192e-05 0.00113683408242 0)
(8.51511971793e-05 0.00107934154489 0)
(7.89373336742e-05 0.00112819177269 0)
(8.77725567764e-05 0.00112345760285 0)
(9.36343904666e-05 0.00112658308688 0)
(9.52410783269e-05 0.00120526553346 0)
(9.94335290828e-05 0.00115795342669 0)
(0.000114560328867 0.00118334331476 0)
(0.000119325294856 0.00120297959473 0)
(0.000124352338562 0.00122499571933 0)
(0.000148370790191 0.00125482150843 0)
(0.000175735712694 0.00127394733539 0)
(0.000210869182852 0.00130046930072 0)
(0.00021857015928 0.00130919005522 0)
(0.000132379356715 0.00143145216415 0)
(-1.87690754042e-05 0.00170647701476 0)
(-0.000106452673122 0.00204398675381 0)
(-0.000143403767619 0.00218146989649 0)
(-0.000146871356922 0.0022597105942 0)
(-0.000116868458928 0.00219284193527 0)
(-5.37907886039e-05 0.00228425034613 0)
(-7.88768816253e-06 0.00246183983512 0)
(7.43468442824e-06 0.00212620334577 0)
(0.00015531676221 0.00178166372589 0)
(0.00121235564917 0.00206550777869 0)
(-0.00516748712931 0.00422995622348 0)
(0.0289522090067 0.0785154183249 0)
(0.071862373798 0.13968366197 0)
(0.0698484735535 0.153733752389 0)
(0.0856311783965 0.148928371295 0)
(0.0977601942154 0.151671199861 0)
(0.109796141808 0.159014736431 0)
(0.124247212525 0.170329602613 0)
(0.139303085625 0.184460611651 0)
(0.154815911853 0.199611629584 0)
(0.170255142766 0.21449704564 0)
(0.185260613068 0.228124845575 0)
(0.199589277705 0.239882111174 0)
(0.213107573593 0.249435979981 2.40930563834e-29)
(0.225798459242 0.25671993182 -1.76982689951e-29)
(0.237704028083 0.261836682798 0)
(0.248925912606 0.265003380882 0)
(0.259581108498 0.266486303358 0)
(0.269797414794 0.266562299758 0)
(0.279694950602 0.265492561749 0)
(0.289383454288 0.263511290213 0)
(0.298957428912 0.260822107955 0)
(0.308495690282 0.257600658344 0)
(0.318060663923 0.253999034272 0)
(0.327698911086 0.250151859527 0)
(0.337441742077 0.24618293107 0)
(0.347306748596 0.242211003816 0)
(0.357297505853 0.238356162463 0)
(0.367401902848 0.234746021653 0)
(0.377600371623 0.231514905898 0)
(0.387879914274 0.228815100543 0)
(0.398230204271 0.226820757912 0)
(0.408565628764 0.225689263515 0)
(0.418595956968 0.225573931578 0)
(0.428210021614 0.226604669244 0)
(0.438582911583 0.228943707051 0)
(0.45157728022 0.233219303775 0)
(0.463794094836 0.239778552601 0)
(-2.78746997334e-06 0.00106398430743 0)
(4.47604328891e-07 0.00106179632335 0)
(4.32650942149e-06 0.00105375586832 0)
(1.23564073942e-05 0.00101414735908 0)
(8.28706663188e-06 0.00102184150531 0)
(7.83055387913e-06 0.00103854823913 0)
(4.48638703428e-06 0.00105478736837 0)
(-1.28762688471e-06 0.00108755010767 0)
(1.26570688472e-05 0.00103961682474 0)
(2.74278573325e-05 0.000996990439067 0)
(2.71185811118e-05 0.0010401718527 -8.41833707968e-29)
(4.93775068311e-05 0.000975368423146 0)
(6.40839430897e-05 0.000972637332103 0)
(4.61055159864e-05 0.00104583142243 0)
(4.57860044696e-05 0.00110244971616 8.36832211021e-29)
(5.4701878346e-05 0.00103040876592 0)
(5.22308568876e-05 0.00107660035235 0)
(4.25514465425e-05 0.00113158498779 0)
(4.80296836794e-05 0.00108527498527 0)
(4.91386435884e-05 0.00112117467702 0)
(5.13856882959e-05 0.00117284521109 0)
(5.74887933887e-05 0.00111261406309 0)
(4.93523884525e-05 0.00117388522508 0)
(4.85432492687e-05 0.0011751223976 0)
(6.10400252841e-05 0.00120854439224 0)
(6.36221286098e-05 0.00120781232894 0)
(7.07834143143e-05 0.00124023639642 0)
(7.89693563761e-05 0.00127519130814 0)
(9.53307818798e-05 0.00130032847437 0)
(0.00011661369456 0.00133114189915 0)
(0.000151174259346 0.00139778527348 0)
(0.00015723616586 0.00140534000777 0)
(0.000130401560849 0.00148348125418 0)
(5.18684325125e-05 0.00162480790181 0)
(-5.38959566621e-05 0.00173817718439 0)
(-0.000130708702655 0.00180293217097 0)
(-0.000164617022488 0.00188268887244 0)
(-0.000178767754754 0.00202411345516 0)
(-0.00029268751293 0.00210968857363 0)
(-0.00033777649663 0.00193578831503 0)
(-0.000219244861861 0.00206235339326 0)
(-0.000552289278111 0.00213224596202 0)
(-0.00545116882294 0.0156043830946 0)
(0.0575772487516 0.111440391896 0)
(0.0699170776213 0.160601982391 0)
(0.0742348948061 0.162155084936 0)
(0.0906867921873 0.158829376127 0)
(0.101436234087 0.163765952669 0)
(0.114265747236 0.172532014659 0)
(0.12873868656 0.185161357195 0)
(0.143545460025 0.199919976113 0)
(0.158620622022 0.215137143353 0)
(0.173413376031 0.229663077257 0)
(0.187654760856 0.24263441335 0)
(0.201161791833 0.253569933598 0)
(0.213858540173 0.262253344936 0)
(0.225764679309 0.268703764305 1.74513889338e-29)
(0.236946874653 0.273080420659 0)
(0.247513904756 0.275629330695 -9.19913422956e-30)
(0.257580779836 0.276625129613 0)
(0.267265116761 0.276339602501 0)
(0.276672525601 0.275021198878 0)
(0.285895478796 0.272887672994 0)
(0.295009827988 0.270125136663 0)
(0.3040750195 0.266891748898 0)
(0.313133714553 0.263322749818 0)
(0.322212268924 0.259536374931 0)
(0.331321292197 0.255640079471 0)
(0.340457257368 0.251736101507 0)
(0.349603172053 0.24792708387 0)
(0.358727819433 0.244321758137 0)
(0.367792982343 0.241035892039 0)
(0.376769027781 0.23820281585 0)
(0.385637645028 0.235984426279 0)
(0.394319461622 0.234548708198 0)
(0.40251876864 0.234075142601 0)
(0.410014635408 0.234756669541 0)
(0.417771941813 0.236869020292 0)
(0.427779793128 0.240999437036 0)
(0.437510541565 0.247200963804 0)
(-4.02325085915e-06 0.00106458115011 0)
(4.05778581135e-06 0.00105943530589 0)
(2.19703454546e-06 0.00105807207821 0)
(7.60770574972e-08 0.00101834667889 0)
(-3.9643139238e-06 0.00101720730867 0)
(-6.60875868271e-06 0.00103585255326 0)
(-8.59420375705e-06 0.00104870676577 0)
(-1.4124837187e-05 0.00108514430488 0)
(-4.1795203537e-06 0.00106828828159 0)
(1.54315374515e-05 0.00100300538664 0)
(1.0412792196e-05 0.00103166921241 0)
(2.57327933565e-05 0.00101232491664 0)
(5.01825263417e-05 0.000957037290968 0)
(3.96837169091e-05 0.00102335863788 0)
(1.74779001657e-05 0.00107524693824 -7.95397401772e-29)
(2.52529294907e-05 0.00103790653989 0)
(3.06136949656e-05 0.00105935823509 0)
(9.11236953049e-06 0.00111212466691 7.62950074566e-29)
(1.53529618332e-05 0.00109381532982 0)
(2.3686993965e-05 0.00110098610449 0)
(9.39878263332e-06 0.00114943495049 0)
(1.13426206752e-05 0.00112212438701 0)
(5.4206805722e-06 0.00116200652653 0)
(2.73711510345e-06 0.0011806899669 0)
(6.29163889439e-06 0.00118788998387 0)
(8.24975173729e-06 0.00121549376441 0)
(1.22136576037e-05 0.00124138751015 0)
(7.85592561209e-06 0.00126987620385 0)
(1.6478036187e-05 0.00131177921379 0)
(2.82027647698e-05 0.00134055398879 0)
(3.45472613345e-05 0.00141975175789 0)
(4.14235552955e-05 0.00145639426743 0)
(4.28270432694e-05 0.00152969534596 0)
(2.50047031364e-06 0.00155794865276 0)
(-7.28123288941e-05 0.00167638590212 0)
(-0.000142717768953 0.0017571741616 0)
(-0.000194298527512 0.00185557262763 0)
(-0.000259607097271 0.00189342371396 0)
(-0.000364602732185 0.00188985653442 0)
(-0.000443770842219 0.00208788294042 0)
(-7.13385212516e-05 0.00214125283038 0)
(-0.0041189343635 0.00146167303859 0)
(0.00441328523491 0.0585867044755 0)
(0.072228847803 0.141355460733 0)
(0.0671376929369 0.174954177141 0)
(0.0795900735763 0.169874819749 0)
(0.0942195130107 0.169610688462 0)
(0.104632055164 0.176112749643 0)
(0.118066739703 0.186241846748 0)
(0.132295877886 0.199896313956 0)
(0.146774979313 0.214986229888 0)
(0.161316807129 0.230064331672 0)
(0.175421297692 0.244087614405 0)
(0.188900857848 0.256329573436 0)
(0.201620427566 0.266431078878 0)
(0.213551213173 0.27427554141 0)
(0.224738385847 0.279950583312 0)
(0.23526312396 0.283656236609 0)
(0.245234429074 0.285655202833 9.10209823591e-30)
(0.254760577297 0.286222238462 0)
(0.263946320838 0.285618994663 0)
(0.272881619214 0.284078395694 0)
(0.281641589502 0.281800454436 0)
(0.290284159567 0.278953201545 0)
(0.298850843064 0.275677166903 0)
(0.307366770635 0.272090898324 0)
(0.315841306974 0.268297076417 0)
(0.324268592825 0.264389119126 0)
(0.332628909034 0.260457859763 0)
(0.340889251091 0.256598656483 0)
(0.349001435971 0.252918835387 0)
(0.356904305729 0.249541276471 0)
(0.364533429303 0.246613274208 0)
(0.371824465842 0.244315915637 0)
(0.378641860209 0.242840376759 0)
(0.384606211003 0.242348991126 0)
(0.389320186306 0.242938762559 0)
(0.393608412565 0.244704247667 0)
(0.400084378708 0.247913928393 0)
(0.407805695895 0.252412884833 0)
(-3.8250851245e-06 0.00106372523385 0)
(6.83741756383e-06 0.00106025634775 0)
(5.11803301132e-07 0.00103924895496 0)
(-1.10394040918e-05 0.00100304309362 0)
(-1.55687839331e-05 0.00100671651 0)
(-1.64276226095e-05 0.00103065845634 0)
(-1.76906821117e-05 0.00104558409482 0)
(-2.29858363034e-05 0.00107919066826 0)
(-2.12913080924e-05 0.0010843016963 0)
(-1.83669071063e-06 0.00102213214219 0)
(1.17740456934e-06 0.00101426168074 0)
(-1.00151919694e-06 0.00106329899748 0)
(2.5299170052e-05 0.000976283744913 0)
(2.76637878841e-05 0.000996786619335 0)
(-3.35617483176e-06 0.00106412258756 0)
(-1.49849354176e-06 0.00107202220433 0)
(6.52400997825e-06 0.00104097092843 0)
(-1.43279233355e-05 0.00109808722929 -7.3926048732e-29)
(-2.03811521579e-05 0.00113569034894 0)
(-1.3087400158e-05 0.00109481524177 0)
(-2.90219733107e-05 0.00113803688544 0)
(-2.96682114469e-05 0.00112760070872 0)
(-3.08742095631e-05 0.00113671698222 0)
(-4.65028682359e-05 0.00121070872859 0)
(-4.54724296894e-05 0.001187303157 0)
(-5.01459652292e-05 0.00124322525595 0)
(-5.40294384461e-05 0.00122052156944 0)
(-5.89643260394e-05 0.00127402344322 0)
(-6.24980838554e-05 0.00132425229197 0)
(-6.091079798e-05 0.00134142514383 0)
(-6.70749459652e-05 0.00139024840593 0)
(-7.80774882001e-05 0.00145239367596 0)
(-9.28484716089e-05 0.00153460270333 0)
(-0.000118631442915 0.00160503583852 0)
(-0.000164693507518 0.00168952206807 0)
(-0.000229913469245 0.00178910369401 0)
(-0.000298849759598 0.00186267457673 0)
(-0.00036455558163 0.00189965546151 0)
(-0.000381107162542 0.00195243279591 0)
(-0.000375116170057 0.00227192766691 0)
(0.000668888884108 0.00245377390891 0)
(-0.00803890362664 0.00668183167432 0)
(0.0344203938487 0.095039835292 0)
(0.0734574242403 0.168127756741 0)
(0.0674089777084 0.184978641267 0)
(0.0844868396223 0.178263815517 0)
(0.0965097367148 0.180906775654 0)
(0.107397714717 0.188586583131 0)
(0.12105837167 0.200005881221 0)
(0.134925097699 0.214373479513 0)
(0.149016669292 0.229563897402 0)
(0.162962412448 0.244343183889 0)
(0.176371705044 0.257764405446 -2.31963463853e-29)
(0.189112892905 0.269240630659 2.27510923767e-29)
(0.201092121783 0.278519648783 0)
(0.212316836367 0.285568591936 0)
(0.222848184597 0.290527987847 0)
(0.232774111003 0.293625563521 0)
(0.242198786567 0.295131232324 0)
(0.251220494781 0.29531382612 2.52828549854e-30)
(0.259929477749 0.294421421056 0)
(0.268399417746 0.292669808921 0)
(0.276687998258 0.290240802245 0)
(0.284835261399 0.287284487247 0)
(0.292864474778 0.283924217985 0)
(0.300782082458 0.280262337747 0)
(0.308577882923 0.276386168073 0)
(0.316224730157 0.272374099551 0)
(0.323678703467 0.268301420644 0)
(0.330879081677 0.264245569927 0)
(0.337746738729 0.260289849681 0)
(0.344185707956 0.256520941422 0)
(0.350095744456 0.253025245393 0)
(0.355390476772 0.249888281526 0)
(0.359961611979 0.247175222879 0)
(0.363524989334 0.244900178304 0)
(0.365764616007 0.243062949714 0)
(0.367542432901 0.241954498391 0)
(0.371973359825 0.242734948466 0)
(0.379091349346 0.247480688055 0)
(-7.59281871487e-06 0.00105944856017 0)
(-4.68164742041e-06 0.00106012564155 0)
(-1.26067168788e-05 0.00101651305048 0)
(-1.56813953277e-05 0.000981809406125 0)
(-1.52487509931e-05 0.00100570402092 0)
(-1.87246843977e-05 0.00102542458898 0)
(-2.30947787644e-05 0.00104031216143 0)
(-3.1396972237e-05 0.00106871076574 0)
(-3.82960398077e-05 0.00108598800743 0)
(-2.29750735976e-05 0.0010367520075 0)
(-7.41885550689e-06 0.00100616254045 0)
(-2.08560708765e-05 0.0010347315924 0)
(-8.52880886743e-06 0.00101235750567 0)
(1.16575241987e-05 0.000962712342473 0)
(-1.15205962146e-05 0.00103478901216 0)
(-3.29317755989e-05 0.00108145395178 0)
(-2.30497615651e-05 0.00103075827239 0)
(-3.04154966351e-05 0.00106787970611 0)
(-5.65660408105e-05 0.0011154512349 0)
(-5.33699363005e-05 0.00108838386424 0)
(-6.02728035335e-05 0.0011130565284 0)
(-7.45918761542e-05 0.00115228249802 0)
(-6.95357542915e-05 0.0011217291269 0)
(-9.23737258094e-05 0.00117461169875 0)
(-9.8773596532e-05 0.00117981336571 0)
(-0.00010261156595 0.00120112613524 0)
(-0.000114982032641 0.00122626515617 -5.76556373134e-29)
(-0.000123446158408 0.00127294087794 5.7018277737e-29)
(-0.000138103283513 0.00130202125754 0)
(-0.000146039566925 0.0013461557492 0)
(-0.000156154991022 0.00139054139325 0)
(-0.000176144069161 0.00144586105598 0)
(-0.000202461107375 0.00151127824924 0)
(-0.000237632697555 0.00156481633616 0)
(-0.000280834998327 0.00163495297344 0)
(-0.000342884406453 0.00171233456612 0)
(-0.000422970159989 0.00179717490231 0)
(-0.000495713444474 0.00187370842611 0)
(-0.000518138759391 0.00197853604424 0)
(-0.00054532079828 0.00243148553125 0)
(-0.000814040042081 0.00270678194996 0)
(-0.00891202546013 0.0232664093912 0)
(0.0588832487359 0.126708547453 0)
(0.0686995097533 0.1884378518 0)
(0.0702077561962 0.192587176302 0)
(0.0879773623632 0.187605382495 0)
(0.0980068119306 0.19241199871 0)
(0.109655893208 0.201140638272 0)
(0.123176721523 0.213688418231 0)
(0.136657927143 0.228482140264 0)
(0.150308651484 0.243598075957 0)
(0.163631485329 0.257956093259 0)
(0.176363112897 0.270712429431 0)
(0.188403545869 0.281412604631 0)
(0.199696548299 0.289895309139 0)
(0.210274886365 0.296196789188 0)
(0.220208353868 0.300496757054 0)
(0.229585806813 0.30304002691 0)
(0.238503057658 0.30409646491 0)
(0.247046292615 0.303924576035 -2.510034801e-30)
(0.255290359467 0.302756497051 1.3787670371e-30)
(0.26329249109 0.300789815402 0)
(0.271093192844 0.298187694099 0)
(0.278715117443 0.295081892746 0)
(0.28616402091 0.291577872769 0)
(0.293429019668 0.287760413522 0)
(0.300483294219 0.283699317375 0)
(0.307284580111 0.279454956586 0)
(0.313776340726 0.275083601691 0)
(0.319889864928 0.270642962369 0)
(0.325546601007 0.266198136494 0)
(0.33066263619 0.261824700415 0)
(0.335157863636 0.257611671203 0)
(0.338964757997 0.253675767305 0)
(0.341957996962 0.250195662067 0)
(0.343689089521 0.247454425268 0)
(0.343193238138 0.245893607124 0)
(0.339743444162 0.246160975467 0)
(0.334157941804 0.248966218184 0)
(0.32436458804 0.254195954407 0)
(-8.66914305353e-06 0.00104961164693 0)
(-1.2307971173e-05 0.0010514648543 0)
(-2.79210464788e-05 0.00101960208852 0)
(-2.08771039056e-05 0.000993476743839 0)
(-1.08182509861e-05 0.000998401369711 0)
(-2.00483045843e-05 0.00101575748603 0)
(-2.89365604288e-05 0.00103136462089 0)
(-4.07062423093e-05 0.0010517845749 0)
(-5.37374683497e-05 0.00108071345536 0)
(-4.55532756171e-05 0.00106186222793 0)
(-2.51680994557e-05 0.00101680483193 0)
(-2.86105780745e-05 0.001014798296 0)
(-3.949145843e-05 0.00105788261576 0)
(-1.74131349014e-05 0.000978644900856 0)
(-1.89614230053e-05 0.000996097810264 0)
(-5.5139996386e-05 0.00105985786623 0)
(-5.84747588746e-05 0.00106221058776 0)
(-5.34188092367e-05 0.00104436751242 0)
(-8.36788423965e-05 0.00109609241808 0)
(-9.46534633515e-05 0.00111839764922 0)
(-9.0722604281e-05 0.00109046127883 -6.42683125337e-29)
(-0.000117052319672 0.00113395994669 0)
(-0.00012030912926 0.00111951355213 0)
(-0.000128054603801 0.00113780465599 0)
(-0.000153550256377 0.00121319819018 0)
(-0.000156027758544 0.00119415545715 0)
(-0.000169603429844 0.00121979899899 0)
(-0.000183526955217 0.00124191973497 0)
(-0.000203043265825 0.00129563155059 0)
(-0.000221553815819 0.00134568731588 0)
(-0.000236057011898 0.00135913791084 0)
(-0.00026205786684 0.00141367099688 0)
(-0.000296103905358 0.00146654143796 0)
(-0.000338625445736 0.00151740471945 0)
(-0.000397163227052 0.00159637799217 0)
(-0.000460361796712 0.0016403182927 0)
(-0.000551916498655 0.00171510337839 0)
(-0.000655921898735 0.00179088543243 0)
(-0.000755120821857 0.00192662609031 0)
(-0.000493165665721 0.0024008086254 0)
(-0.003789830003 0.00364866461515 0)
(0.00211352934646 0.0597767941625 0)
(0.0714325091437 0.15621946892 0)
(0.063415177362 0.203076924463 0)
(0.0738800412033 0.199537054664 0)
(0.0897800915596 0.197656393901 0)
(0.0989758465886 0.203934355401 0)
(0.111272984017 0.213725778457 0)
(0.12442640208 0.227171857594 0)
(0.137538078285 0.242158705902 0)
(0.15070480542 0.257065894702 0)
(0.163409276582 0.270911429976 0)
(0.175495989039 0.282968080803 0)
(0.18688207052 0.292898725474 0)
(0.197545240964 0.300618662914 0)
(0.207533736503 0.306219938158 0)
(0.216920746384 0.30990977786 0)
(0.22579169257 0.311941661867 0)
(0.2342317452 0.312579895074 0)
(0.242313756018 0.312069505118 -1.14336235073e-30)
(0.250096823229 0.310625120662 -1.3713241227e-30)
(0.25762177889 0.308425517931 0)
(0.264912122292 0.305615060199 0)
(0.27197308657 0.302307189789 0)
(0.278792263122 0.298589612612 0)
(0.285339568674 0.294530109083 0)
(0.291567470173 0.29018271493 0)
(0.297410037559 0.285593722697 0)
(0.302779777196 0.280807261548 0)
(0.307560651937 0.275871147678 0)
(0.311594953845 0.270843957841 0)
(0.314659832978 0.265797758941 0)
(0.316424274336 0.260805836325 0)
(0.316343264805 0.255920665651 0)
(0.31338430432 0.251153850317 0)
(0.305489511701 0.246394643197 0)
(0.289047031072 0.241074814467 0)
(0.258820589285 0.233696639446 0)
(0.205019212897 0.223704637967 0)
(0.0888949919463 0.222407756206 0)
(-8.98274763068e-06 0.00103607350186 0)
(-1.09948855576e-05 0.00103770658844 0)
(-2.51090004277e-05 0.00100522863757 0)
(-2.98705341174e-05 0.0010406146616 0)
(-2.27147124188e-05 0.000999796731242 0)
(-2.73241414974e-05 0.00100346704751 0)
(-3.76797097941e-05 0.00101907409772 0)
(-4.98112414032e-05 0.00103379018733 0)
(-6.53898703639e-05 0.0010711450186 0)
(-6.89560613408e-05 0.00107404400985 0)
(-5.15797401694e-05 0.00102963003678 0)
(-3.82624209694e-05 0.00100057494952 0)
(-5.46654104063e-05 0.00102052641181 0)
(-5.72077082062e-05 0.00101682941641 0)
(-3.9355238564e-05 0.000968851735987 0)
(-6.26146567394e-05 0.00102198778705 0)
(-9.53552443013e-05 0.00106466455569 0)
(-8.61372538669e-05 0.00102309415499 0)
(-9.85656909827e-05 0.00104946117162 0)
(-0.000134735075068 0.0011066523922 0)
(-0.000130117273796 0.00107055741351 6.2926119541e-29)
(-0.000143687431685 0.00109342945336 0)
(-0.000167724235554 0.00113824032622 0)
(-0.000168189407323 0.00112687148741 0)
(-0.000194411070177 0.00116380837146 0)
(-0.000213951090717 0.00118490963359 0)
(-0.000222940623247 0.00119272328529 0)
(-0.000241878339466 0.00123221307923 0)
(-0.000261368069483 0.00126651772004 0)
(-0.000285453562624 0.00130456097569 0)
(-0.000305842652277 0.00133778158622 0)
(-0.000335844428478 0.00138801225876 0)
(-0.000375529538639 0.00142864053628 0)
(-0.000420280769135 0.00146984779107 0)
(-0.000478995807877 0.00151339742108 0)
(-0.000567136321926 0.00157023267114 0)
(-0.000681427471163 0.00158983393322 0)
(-0.000840339786241 0.00160095673911 0)
(-0.00118988046552 0.00170691066881 0)
(-0.00123160915774 0.00219208641917 0)
(-0.00685937131459 0.00659022382607 0)
(0.0322008105553 0.0869441777573 0)
(0.0737297204026 0.182572039251 0)
(0.060391372505 0.213671547249 0)
(0.0772488486768 0.206966147199 0)
(0.0901467770346 0.208131835364 0)
(0.0995040560249 0.215418298458 0)
(0.112135442735 0.226280391413 0)
(0.124850715306 0.240369453722 0)
(0.137614860536 0.255375281447 0)
(0.150274076557 0.269968307187 0)
(0.162387680813 0.283236438606 0)
(0.173870610634 0.294578163941 0)
(0.184653150305 0.303755330196 0)
(0.194741591607 0.3107479536 0)
(0.204191804159 0.315691752277 0)
(0.213076710964 0.318811838374 0)
(0.221475136256 0.320363694221 1.12131721885e-30)
(0.229460204425 0.320601881231 0)
(0.237090664542 0.319755655985 1.13765219386e-30)
(0.244409581044 0.318021000602 0)
(0.251441032496 0.315557302263 0)
(0.258190693617 0.312489601385 0)
(0.264644525706 0.308912144382 0)
(0.270768290398 0.304893271418 0)
(0.276506098624 0.300480952805 0)
(0.281778742161 0.295708656702 0)
(0.286479659402 0.290600003665 0)
(0.290465145312 0.285169908845 0)
(0.293534648377 0.279420760541 0)
(0.295400558572 0.273332484176 0)
(0.295650861148 0.266837616476 0)
(0.293690401186 0.259755349693 0)
(0.288610264532 0.251651555985 0)
(0.278929795367 0.241605119615 0)
(0.262384810996 0.227772873468 0)
(0.236104956862 0.206756265146 0)
(0.195565537491 0.175204588127 0)
(0.127885105384 0.132384727458 0)
(0.0183212056477 -0.00806894407685 0)
(-6.94231052451e-06 0.00102462146425 0)
(-6.55649904658e-06 0.00102707668807 0)
(-1.15497631152e-05 0.000980800285265 0)
(-2.8575011185e-05 0.00100584578862 0)
(-3.77496463262e-05 0.000995269496371 0)
(-3.56187975008e-05 0.000992861514448 0)
(-4.63897234634e-05 0.00100535305485 0)
(-5.81816991926e-05 0.00101995266828 0)
(-7.63139680078e-05 0.00105341572201 0)
(-9.20657366889e-05 0.00107185182929 0)
(-8.48084944322e-05 0.00105207195312 0)
(-6.57227900229e-05 0.00101200368589 0)
(-6.58430077307e-05 0.000992460871279 0)
(-8.47363771283e-05 0.00101472430248 0)
(-7.47998485967e-05 0.000992490240148 0)
(-7.04762979932e-05 0.000972664610065 0)
(-0.000110389265761 0.00103293025896 0)
(-0.000130247377108 0.0010734681916 0)
(-0.000123402540865 0.00101950595484 0)
(-0.000158423893635 0.00107642845251 0)
(-0.000178865639653 0.00111221898597 0)
(-0.000174901058528 0.00107154161082 0)
(-0.000203458983307 0.00111231146221 0)
(-0.000218175401949 0.00111583902526 0)
(-0.000235467576331 0.00113878916014 0)
(-0.000265172198295 0.00118054894254 0)
(-0.000278082562146 0.00118420766956 0)
(-0.000299978719357 0.00121491086905 0)
(-0.000322677360147 0.00124045504957 0)
(-0.000346315022704 0.00129234268004 0)
(-0.00036982506364 0.00132209602457 0)
(-0.000400919950371 0.00134310841484 0)
(-0.000438670908294 0.00137491343028 0)
(-0.00048086271981 0.00141516923008 0)
(-0.000534717315181 0.0014446895046 0)
(-0.000609702799314 0.00144294244491 0)
(-0.000728115270585 0.0014336606009 0)
(-0.000925520609348 0.00136895570788 0)
(-0.00142903594555 0.00119482053239 0)
(-0.00183177472103 0.000759666968084 0)
(-0.0264808346006 0.0446499809374 0)
(0.0524091500307 0.114801757784 0)
(0.0670043729489 0.204029491121 0)
(0.0592641699905 0.22167165691 0)
(0.0792395717548 0.215230037654 0)
(0.0894890530506 0.21878879608 0)
(0.099579267414 0.226884608012 0)
(0.112207236071 0.238746958377 0)
(0.124518090254 0.253234015966 0)
(0.136946333536 0.268129993769 0)
(0.149097975594 0.282323543313 0)
(0.160661616745 0.294970307268 0)
(0.171585645761 0.305594073927 0)
(0.181816238034 0.314037999036 0)
(0.191381279372 0.320336831629 0)
(0.200338823003 0.324659070883 0)
(0.208758921099 0.327239905367 -1.39075211414e-30)
(0.216711564151 0.328331495394 -1.11540327634e-30)
(0.224256995816 0.328175405634 0)
(0.23143929838 0.326983297521 0)
(0.238285063191 0.324931386822 0)
(0.244800676893 0.322158650841 0)
(0.2509720466 0.318769295537 0)
(0.256762245575 0.314835847456 0)
(0.262109045151 0.310403155904 0)
(0.266920885378 0.305492804709 0)
(0.271072169004 0.300107412548 0)
(0.274396222641 0.294232121346 0)
(0.276671315988 0.287828241615 0)
(0.277593747169 0.280813081742 0)
(0.276739322955 0.273024942729 0)
(0.273526076872 0.264170917984 0)
(0.267193805476 0.253733230461 0)
(0.256749436826 0.240785107871 0)
(0.240837073249 0.223607497158 0)
(0.217525328108 0.199440230222 0)
(0.181871340034 0.166561816895 0)
(0.119993384258 0.125433960098 0)
(0.0313502797556 0.00431909330362 0)
(-9.35133717832e-05 -0.00114924617869 0)
(-8.69376737604e-06 0.00101730008333 0)
(-1.24704094713e-05 0.00102125919917 0)
(-1.01539350521e-05 0.000981296190585 0)
(-1.92184106483e-05 0.000968503842684 0)
(-3.93110786536e-05 0.00100319084426 0)
(-4.28674071656e-05 0.000982726431384 0)
(-5.45518886788e-05 0.000990257587559 0)
(-6.75256006051e-05 0.00100358274101 0)
(-8.6074314787e-05 0.00102513187618 0)
(-0.000108254446193 0.00105816685375 0)
(-0.000117062150905 0.00106354649479 0)
(-0.00010323102361 0.00102305848731 0)
(-8.86204767926e-05 0.000992131016685 0)
(-9.82608561775e-05 0.000984440832154 0)
(-0.000116008707029 0.00101841475638 0)
(-0.000100501932222 0.0009637133584 0)
(-0.000109710221969 0.000973324597821 0)
(-0.000154583488166 0.00103888207073 0)
(-0.000160806810243 0.00101380488744 0)
(-0.000170463549945 0.00103030873833 0)
(-0.000209937062872 0.00108175129803 0)
(-0.00021903963021 0.00106049326257 0)
(-0.000235092485398 0.00107875434239 0)
(-0.000260224793766 0.00110116981086 0)
(-0.000278393947979 0.00111718961249 0)
(-0.000301770959094 0.00113487706084 0)
(-0.000330629203281 0.00116954329374 0)
(-0.00034741872305 0.00117269907763 0)
(-0.0003755156337 0.0012216232881 0)
(-0.000408811584296 0.00127722490739 0)
(-0.000430874667055 0.00127254140776 0)
(-0.00046367041394 0.00130285093865 0)
(-0.00049221843699 0.00133693350776 0)
(-0.000529368574021 0.00138357472454 0)
(-0.000559767547775 0.00138740219709 0)
(-0.000606390052168 0.00139894666395 0)
(-0.000635762448672 0.00134807687002 0)
(-0.000686558791672 0.00120847650929 0)
(-0.000580291934587 0.000842871513053 0)
(-0.0021326551904 -0.000526173377504 0)
(-0.0178125042965 0.0541389417698 0)
(0.0621129139413 0.143296569294 0)
(0.0583694677359 0.221464049264 0)
(0.0593732534236 0.228894396595 0)
(0.0795409385074 0.224309197452 0)
(0.0881681521197 0.229493960728 0)
(0.0991406150765 0.238366601852 0)
(0.111526225648 0.251078907059 0)
(0.123511152712 0.26575287344 0)
(0.135603275076 0.280438473774 0)
(0.147267243005 0.294161611851 0)
(0.158326532757 0.306158187014 0)
(0.168736987865 0.316067388993 0)
(0.178465086521 0.323798803104 0)
(0.187552750611 0.329433000041 4.14557487848e-30)
(0.196056910852 0.333161646561 0)
(0.20404275754 0.335223678679 1.38372366939e-30)
(0.211569887208 0.335863549741 0)
(0.218685044359 0.335307129898 0)
(0.225416930635 0.333746712419 0)
(0.231774634954 0.331337177726 0)
(0.237744746611 0.328194994413 0)
(0.243289577416 0.324400150476 0)
(0.248343022305 0.319998048781 0)
(0.252805540808 0.315001878459 0)
(0.256537173743 0.309394934124 0)
(0.259350212774 0.303132207015 0)
(0.261002059303 0.296138412369 0)
(0.261186113105 0.288296372784 0)
(0.259511538872 0.279417302572 0)
(0.255464047077 0.269189574391 0)
(0.248365551246 0.257114803738 0)
(0.237375849633 0.242434958284 0)
(0.221517269457 0.223934072973 0)
(0.199312258679 0.199585681693 0)
(0.165783431373 0.167710105233 0)
(0.108032681012 0.125499182393 0)
(0.0289775967962 0.0094258336435 0)
(0.000528164813853 -0.00177045701967 0)
(-6.81497061198e-05 -0.00214956683885 0)
(-7.92354602598e-06 0.00100821433088 0)
(-1.18104020487e-05 0.00101329109919 0)
(-1.27206672778e-05 0.00100765737961 0)
(-1.10645960174e-05 0.000953905364645 0)
(-3.5043533314e-05 0.000996321259783 0)
(-5.46575565639e-05 0.000976968283315 0)
(-6.55105439267e-05 0.00097504040392 0)
(-7.94312227633e-05 0.00098678245394 0)
(-9.47106484317e-05 0.000999649971691 0)
(-0.000117994055571 0.00103560289998 0)
(-0.000136945937374 0.00104920662591 0)
(-0.000141367055145 0.00105234569945 0)
(-0.000125367114211 0.00100146024739 0)
(-0.000116057970217 0.000968965137042 0)
(-0.000135220751112 0.00098701735877 0)
(-0.000148142470465 0.00100656943063 0)
(-0.000135777621723 0.000958035499389 0)
(-0.000164486085063 0.000989184583261 0)
(-0.000200311964962 0.00102865088353 0)
(-0.000201155032372 0.00100685147231 0)
(-0.000226661490311 0.00103562257141 0)
(-0.000259916421119 0.00106146684063 0)
(-0.00027231276834 0.0010551723799 0)
(-0.000295225319821 0.0010717801757 0)
(-0.000321562899906 0.00109339198601 0)
(-0.000346469440773 0.00111635826868 0)
(-0.000371789392059 0.00113272436869 0)
(-0.000396020196912 0.00115832635881 0)
(-0.00042332825445 0.00119583053623 0)
(-0.000457801802643 0.0012245174353 -4.92439766272e-29)
(-0.000492778684126 0.00125954975913 4.80179000482e-29)
(-0.000524608298723 0.00129603574914 0)
(-0.00055160282714 0.00133118316288 0)
(-0.000572618177115 0.00136006315659 0)
(-0.000583481813611 0.00137228391131 0)
(-0.00056503072781 0.00135654924522 0)
(-0.000528141319105 0.00137463123415 0)
(-0.000436662605192 0.00126717689275 0)
(0.000270265496719 0.00112170789659 0)
(-0.00414299793172 6.34014653912e-05 0)
(-0.010328488115 0.076063577691 0)
(0.0646383550791 0.17026109112 0)
(0.0502598262137 0.236025925422 0)
(0.0597183955453 0.236530888067 0)
(0.0784255085808 0.234059435276 0)
(0.0864428674106 0.240239999638 0)
(0.0981501802199 0.249886167425 0)
(0.110181023251 0.263243853494 0)
(0.121918232982 0.277934787513 0)
(0.13366876826 0.29232544439 0)
(0.144877705747 0.305518788426 1.41895375788e-29)
(0.155476607462 0.316846319568 -1.39417491788e-29)
(0.165416729229 0.326046787368 0)
(0.174687415799 0.333084564322 -4.65801140748e-30)
(0.18333763056 0.338077584327 -4.12342790532e-30)
(0.191421385459 0.341232346664 0)
(0.198997342396 0.342786279055 0)
(0.206113586383 0.342972344227 0)
(0.212802721572 0.3419982045 0)
(0.219077062592 0.340034686631 0)
(0.224926567568 0.337212907071 0)
(0.230315078113 0.333623277393 0)
(0.235176549608 0.329316117691 0)
(0.239408870024 0.32430189474 0)
(0.242866728829 0.318552043406 0)
(0.245352995658 0.312000062397 0)
(0.246610567489 0.304542065929 0)
(0.246317496814 0.296035048581 0)
(0.244085806186 0.286288950643 0)
(0.239452542487 0.275040486084 0)
(0.231835962905 0.26189248278 0)
(0.220446869696 0.246199090713 0)
(0.204242332705 0.226809829801 0)
(0.18181569898 0.201781333878 0)
(0.149669059636 0.168797908954 0)
(0.0992649466219 0.123027044474 0)
(0.0350522457702 0.0231203547271 0)
(0.000944400490344 -0.00184767500487 0)
(0.00041396915921 -0.00223393447429 0)
(8.32518293113e-05 -0.00226049961724 0)
(-9.41910365029e-06 0.000993866406341 0)
(-1.15925630499e-05 0.00100075557908 0)
(-2.0268247063e-05 0.00100051534598 0)
(-1.73199980602e-05 0.000941262627143 0)
(-2.78762682122e-05 0.000932349279187 9.31701336264e-30)
(-5.28217312115e-05 0.00095460143712 -1.51451635103e-33)
(-7.10772063134e-05 0.000957921966412 -9.71573617302e-30)
(-8.93826494297e-05 0.000970005617658 0)
(-0.00010356612831 0.000982162245168 0)
(-0.00012464647615 0.00100562289687 0)
(-0.000148546514153 0.00103129826307 0)
(-0.000164971946403 0.00103338384738 0)
(-0.000165859845644 0.00101636588961 0)
(-0.000148848739942 0.000976382142234 0)
(-0.000145818705556 0.00095397632723 0)
(-0.00017100613803 0.000982477206238 0)
(-0.000178145432749 0.000968366046439 0)
(-0.000182543118488 0.000953398012098 0)
(-0.000217376085387 0.000982604766986 0)
(-0.000249748051505 0.00102148842036 0)
(-0.000255886813664 0.00100051973365 0)
(-0.000281228149169 0.00101656654073 0)
(-0.000314424898763 0.00104652571423 0)
(-0.000333312337812 0.00104555436744 0)
(-0.000358254982913 0.0010631375708 0)
(-0.000389471053011 0.00109149993732 0)
(-0.000415990865565 0.00111195061686 0)
(-0.000446098596718 0.00114123980717 0)
(-0.000470125171846 0.00115534470009 0)
(-0.000508097290219 0.00119869431621 0)
(-0.000537217604946 0.00121909045597 0)
(-0.000558277951276 0.00123351141787 0)
(-0.000589252811861 0.00128071775383 0)
(-0.000610923117773 0.00132537681235 0)
(-0.000608622604266 0.00135476635948 0)
(-0.000581725970393 0.00141178024729 0)
(-0.000509585959968 0.0014718254156 0)
(-0.000409246378867 0.00145743636758 0)
(0.000687508188033 0.00162525852903 0)
(-0.00762346189075 0.00144754923916 0)
(-0.00287046752252 0.0966991907637 0)
(0.0627887500206 0.195201710598 0)
(0.0432001144808 0.249085005176 0)
(0.0598311504942 0.244975965673 0)
(0.0763563141645 0.244291250903 0)
(0.0844690645845 0.251067608928 0)
(0.0966312416582 0.26144423656 0)
(0.108289717472 0.275224003541 0)
(0.119831033312 0.289797992987 0)
(0.131234923985 0.303818116472 0)
(0.142026010128 0.316432494257 0)
(0.152203074792 0.327078269579 0)
(0.161712108952 0.33557600318 0)
(0.170564621519 0.341935902041 4.63331598548e-30)
(0.178810975816 0.346305042458 0)
(0.186501273119 0.34889761149 0)
(0.193686124879 0.349944984065 0)
(0.200401195272 0.349665151308 0)
(0.206664071145 0.348244928096 0)
(0.21246920958 0.345830931026 0)
(0.217785047909 0.34252695406 0)
(0.222548722195 0.338392167178 0)
(0.226659895963 0.333439783362 0)
(0.229972360415 0.327635499485 0)
(0.232285306197 0.320897554583 0)
(0.233334349982 0.313098187001 0)
(0.232783814763 0.304064785954 0)
(0.230222483787 0.293578049635 0)
(0.22516703988 0.281363351944 0)
(0.217068337674 0.267063589603 0)
(0.205298286276 0.250150754853 0)
(0.189121837478 0.229640708699 0)
(0.167541135169 0.203583841205 0)
(0.13820909327 0.169149738724 0)
(0.0970320737802 0.122820525937 0)
(0.0455337450971 0.0536016376795 0)
(0.00183750816239 -0.00248360180909 0)
(0.000168709595035 -0.00289177587567 0)
(0.000143184364418 -0.00255619205461 0)
(4.72697161466e-05 -0.00240453211343 0)
(-1.02718124061e-05 0.000976187142652 0)
(-1.46877267278e-05 0.000987172483454 0)
(-2.98845985784e-05 0.0009780610403 0)
(-3.04693918754e-05 0.000946653561352 0)
(-2.27921807699e-05 0.00092433811498 0)
(-3.61136302309e-05 0.000929548782041 0)
(-6.50637953704e-05 0.0009307656221 0)
(-9.2739431541e-05 0.000949115020715 0)
(-0.000110993034407 0.000963763501653 0)
(-0.000128700710632 0.000974568655433 0)
(-0.000156764025385 0.00100709452666 0)
(-0.000177816913035 0.00101196927724 0)
(-0.00019566115278 0.00102178230604 0)
(-0.000191242340613 0.00098733014347 0)
(-0.000176111176068 0.000955982571026 0)
(-0.000181440236567 0.000941785448823 0)
(-0.000209155070136 0.000961368042697 0)
(-0.000215812023301 0.000938206887027 0)
(-0.000231463970741 0.000942936678945 0)
(-0.000268564719586 0.000971309301609 0)
(-0.00030684849298 0.00101213759049 0)
(-0.000314104906893 0.000987524873226 0)
(-0.000340606570699 0.00100244586363 0)
(-0.000373169325668 0.00102451896908 0)
(-0.000398569943079 0.00103876928896 0)
(-0.000424507934446 0.00105101826418 0)
(-0.000462013103338 0.001084787536 0)
(-0.000486691743649 0.00109103054052 0)
(-0.000525431414953 0.00112791859353 0)
(-0.000550670358223 0.00113977154129 0)
(-0.000588659559076 0.00117952912896 -4.37812837952e-29)
(-0.000614136547939 0.00121509494803 4.26198031931e-29)
(-0.000644912853722 0.00126619525714 0)
(-0.00066700159301 0.00131730049106 0)
(-0.000671909675163 0.00138785854853 0)
(-0.000664207936556 0.00147555034537 0)
(-0.000600153943594 0.00151571842194 0)
(-0.000637437873599 0.00164364551693 0)
(0.000802401051927 0.00196838096059 0)
(-0.015522326291 0.00330723246517 0)
(0.00689333542358 0.117871229872 0)
(0.0573898113222 0.218444918078 0)
(0.0373668699375 0.261298062398 0)
(0.0595691708891 0.254134175763 0)
(0.0737367525998 0.254824658191 0)
(0.0823363304015 0.26199605102 0)
(0.0946625645253 0.273015543806 0)
(0.10597998856 0.287008912324 0)
(0.117343317588 0.301360517363 0)
(0.128397919044 0.314941511243 1.31776572676e-29)
(0.138805802228 0.326937262666 0)
(0.148592470232 0.336892397606 0)
(0.157704399718 0.344692655394 0)
(0.16617144774 0.350386910018 0)
(0.174041371573 0.354143458196 0)
(0.181359592478 0.356178077631 0)
(0.188167219951 0.356711958289 0)
(0.19448661373 0.355944714768 0)
(0.200319168499 0.354039292329 0)
(0.205639614858 0.351114521947 0)
(0.21039201561 0.347242084827 0)
(0.214482593079 0.342443244517 0)
(0.217771246975 0.336685250031 0)
(0.220061572661 0.329878477082 0)
(0.221092244728 0.321877192747 0)
(0.220531133699 0.312483912175 0)
(0.217973770681 0.301454059852 0)
(0.212946877075 0.288495676812 0)
(0.204920851567 0.27326096343 0)
(0.193349031303 0.255324897494 0)
(0.177768051622 0.23409391366 0)
(0.157908300311 0.208503982275 0)
(0.132982670054 0.176734132803 0)
(0.0991481180596 0.136415602561 0)
(0.0535199228004 0.0842667208772 0)
(0.00335719355057 -0.00157737703565 0)
(-0.00177647193739 -0.0032205853004 0)
(-0.000454924718707 -0.00274184747015 0)
(-0.000196355378799 -0.00252757823547 0)
(-4.20684542884e-05 -0.00239981267306 0)
(-1.45404280631e-05 0.000956690296567 0)
(-2.55987040248e-05 0.000974065723413 0)
(-3.75141218213e-05 0.000960203128697 0)
(-4.01231371572e-05 0.000958201720971 0)
(-3.00202965035e-05 0.000926232320772 0)
(-2.99742337155e-05 0.000894917643919 0)
(-5.2848350515e-05 0.000882786948238 0)
(-8.481435506e-05 0.00091504585852 0)
(-0.000110404565596 0.000939558724319 0)
(-0.000130689806112 0.000952806152225 0)
(-0.000155994336339 0.000968776189473 0)
(-0.000185117770849 0.000996358749069 0)
(-0.000205376398131 0.000989782606417 0)
(-0.000226405302234 0.0010047119124 0)
(-0.000223126805301 0.000975794105718 0)
(-0.000212544845659 0.000933538372697 0)
(-0.000223948954342 0.000920893377296 0)
(-0.000253429289591 0.0009411814485 0)
(-0.000263075160224 0.000923034315593 0)
(-0.000284274009318 0.000929779782371 0)
(-0.000323953317792 0.000954630201129 0)
(-0.000365791327329 0.000991566217525 0)
(-0.000376798911144 0.000971543064525 0)
(-0.000405678527827 0.000987974452612 0)
(-0.00044151920987 0.00100945757942 0)
(-0.000471965845887 0.00102087353537 0)
(-0.00050428977337 0.00103663055535 0)
(-0.000541035306818 0.00106192728601 0)
(-0.000574595846391 0.00108177169098 0)
(-0.000613428653441 0.00111970953192 0)
(-0.000655033206295 0.00116950951895 0)
(-0.000688714593178 0.00120514424856 0)
(-0.000707182970607 0.00123241501338 0)
(-0.000727286315281 0.00129402167836 0)
(-0.000756262476978 0.00139531808039 0)
(-0.000745603472266 0.00143774433913 0)
(-0.000741309810402 0.00157090843224 0)
(-0.000935796003795 0.00172714843115 0)
(0.000860015272906 0.00189984694391 0)
(-0.0248631036053 0.00333112446995 0)
(0.0168125911937 0.139420471434 0)
(0.0495355487745 0.240555764884 0)
(0.032814169877 0.272974237475 0)
(0.0589606176117 0.263789329103 0)
(0.0708381566257 0.265521301231 0)
(0.0800951608799 0.273002988576 0)
(0.092346494509 0.28455219856 0)
(0.103370073457 0.298586282724 0)
(0.114546086372 0.312633267575 -1.44087638182e-29)
(0.125251633925 0.325715162995 -2.30492814057e-29)
(0.135304310694 0.337061972922 9.78621412542e-30)
(0.144724836374 0.346320472841 0)
(0.153467830431 0.353427783994 0)
(0.161575638147 0.358465284341 0)
(0.169090899243 0.361615069553 0)
(0.176053457795 0.363089268191 0)
(0.182493507926 0.363094969166 0)
(0.188419121543 0.361809913446 0)
(0.193814004516 0.359369644018 0)
(0.198630938505 0.355860758818 0)
(0.20278638976 0.35131694909 0)
(0.206151327215 0.345713792128 0)
(0.208540902903 0.33896306406 0)
(0.209704097185 0.330909730908 0)
(0.209317301178 0.321335531272 0)
(0.206984752058 0.30996890805 0)
(0.202248588987 0.296497048648 0)
(0.194605910915 0.280572896796 0)
(0.183532170015 0.261810668992 0)
(0.168548952245 0.239766189339 0)
(0.149418138612 0.213820290746 0)
(0.126171632213 0.182874439982 0)
(0.0977381387176 0.145459748009 0)
(0.0592550475227 0.0984587462432 0)
(0.00887991972592 0.00390149375746 0)
(-0.00255722586075 -0.000910412108238 0)
(-0.00124760559801 -0.00224878475487 0)
(-0.000668272945489 -0.00225968199037 0)
(-0.000348134665519 -0.00229397478695 0)
(-9.62845504321e-05 -0.0022434461777 0)
(-1.62119668652e-05 0.000932129395399 0)
(-3.1104033919e-05 0.00095976144224 0)
(-4.2367335559e-05 0.000959534625687 0)
(-4.83122690302e-05 0.000953758137785 0)
(-4.92467367494e-05 0.000941289819878 -7.54519231119e-29)
(-4.38740509786e-05 0.000894716905341 0)
(-4.69434257296e-05 0.000853603738413 0)
(-7.09028964092e-05 0.000882395606964 0)
(-0.000102847300513 0.000908790995142 0)
(-0.000129781305437 0.000926553748334 0)
(-0.000153780032749 0.000937449434962 0)
(-0.000186891643428 0.000963039921708 0)
(-0.000210666750165 0.000961415081344 0)
(-0.00023427712733 0.000968157952951 0)
(-0.000252988288496 0.000965116708621 0)
(-0.000259621061773 0.000955953420421 0)
(-0.000253581632043 0.000904308337271 0)
(-0.000269782839258 0.000896173243403 0)
(-0.000301181755753 0.000917744309201 0)
(-0.000316624567478 0.000906435485835 0)
(-0.000342752640006 0.000913662214994 0)
(-0.000382304555115 0.000934800268449 0)
(-0.00042668220232 0.000967143165237 0)
(-0.000446450163293 0.000956967999824 0)
(-0.000479239524558 0.000965756038029 0)
(-0.000520793311659 0.00098696757133 0)
(-0.000557526106326 0.00100811800431 0)
(-0.000597205115834 0.0010319846471 0)
(-0.000631694584098 0.00105232782057 0)
(-0.000679134500996 0.00109616779179 0)
(-0.000703498891902 0.00110683947948 0)
(-0.000743524178682 0.00114721262044 0)
(-0.000776325181342 0.00120284451618 0)
(-0.000809152450122 0.00128157130235 0)
(-0.0008301000674 0.00135700607535 0)
(-0.000851568509004 0.00147017010022 0)
(-0.000833245865571 0.00161240644533 0)
(-0.000948521679946 0.00171907250703 0)
(0.00122565750618 0.00189610249193 0)
(-0.0208635102352 0.00254348282095 0)
(0.025136508805 0.161799607154 0)
(0.0408022002389 0.261400664529 0)
(0.0297432034713 0.284168575799 0)
(0.0580801804432 0.273762599056 0)
(0.0678355574694 0.276290249875 0)
(0.0777861920198 0.284040250142 0)
(0.0897849537564 0.295997830247 0)
(0.100558320201 0.309939546983 0)
(0.111521985829 0.323618405944 1.43001060854e-29)
(0.1218816412 0.336152039556 0)
(0.131599495562 0.346828755106 0)
(0.140672042259 0.355387422035 0)
(0.149068660551 0.361806042005 0)
(0.156837604575 0.366192838497 0)
(0.164015048551 0.368736965958 0)
(0.170634088841 0.369642327082 0)
(0.176712638624 0.369098068763 0)
(0.182243334924 0.367256364502 0)
(0.18719046304 0.364221241371 0)
(0.1914824926 0.360041817444 0)
(0.195005214956 0.354707080636 0)
(0.197590918976 0.348138658006 0)
(0.199007619414 0.340183981587 0)
(0.198951036313 0.330615718237 0)
(0.197044613838 0.319142214136 0)
(0.192851491171 0.305427937842 0)
(0.185901903167 0.289119785892 0)
(0.175733368429 0.269874202074 0)
(0.161936899269 0.247372243574 0)
(0.144272335379 0.221283894114 0)
(0.122943984069 0.191123860621 0)
(0.0980493903168 0.156174061104 0)
(0.06669177284 0.115252979237 0)
(0.0289348033993 0.06451414709 0)
(0.000494487415397 0.000303612191045 0)
(-0.000687287403454 -0.0012984051462 0)
(-0.000914706011471 -0.00176401756421 0)
(-0.000667569623354 -0.00193448718424 0)
(-0.000400774675963 -0.00201519407505 0)
(-0.000126507250488 -0.0020133608627 0)
(-1.72560102699e-05 0.000901689705724 0)
(-3.37504891103e-05 0.000943202823884 0)
(-4.68484376971e-05 0.000946770272248 -7.91144724274e-29)
(-5.600643478e-05 0.000942824715741 0)
(-6.41088063409e-05 0.000933170204434 7.7276739865e-29)
(-6.3788171026e-05 0.000902670993156 0)
(-5.47694510211e-05 0.000859548006788 0)
(-6.47528542379e-05 0.000850275359723 0)
(-9.665661136e-05 0.000876118442661 0)
(-0.00012763581573 0.000895446635191 0)
(-0.000155247749261 0.000909256601028 0)
(-0.000184370466229 0.000918954252937 0)
(-0.000220531797808 0.000947639758485 0)
(-0.000240883406169 0.000937488967302 0)
(-0.000270654050289 0.000949499088874 0)
(-0.000285687952199 0.000921115488026 0)
(-0.000296626055684 0.000910954228448 0)
(-0.000297087735205 0.00087538782081 0)
(-0.000316354076136 0.00086932443796 0)
(-0.000349400224861 0.000888464070555 0)
(-0.000375956172368 0.000887498275959 0)
(-0.000404592615329 0.000892260322832 0)
(-0.000442533886611 0.000905743875569 0)
(-0.000490724881322 0.000932658959389 0)
(-0.000519865372106 0.000930162195891 0)
(-0.000554876639341 0.00093864061072 0)
(-0.000605982443119 0.000973765537715 0)
(-0.000638075748701 0.000981534150096 0)
(-0.000689506932672 0.00101697601372 0)
(-0.000718137929916 0.00102541973596 0)
(-0.000768862439966 0.00107251100729 0)
(-0.000812823043331 0.00112223823911 0)
(-0.000859895993558 0.00118430648302 0)
(-0.000902095828518 0.00125741596007 0)
(-0.000938907372863 0.00134240244225 0)
(-0.000966641596392 0.00143392110159 0)
(-0.000964588259419 0.00155544453172 0)
(-0.00118793784398 0.0017381042814 0)
(0.00112531279869 0.00214656317265 0)
(-0.0249497974923 0.00371658397565 0)
(0.0331650621608 0.182372224139 0)
(0.0314081610045 0.280668747457 0)
(0.0278473823282 0.29485089654 0)
(0.0569293293629 0.283909536434 0)
(0.0648432240106 0.28705578275 -2.43711521305e-29)
(0.0754494466765 0.295048271876 0)
(0.0870670252524 0.307299757811 0)
(0.0976221628991 0.321050436872 0)
(0.108342398782 0.334312080579 0)
(0.118361659981 0.346259795887 0)
(0.127758423532 0.356253619351 0)
(0.136496668318 0.364112094471 0)
(0.144564616406 0.36984645385 0)
(0.152010242825 0.373586305394 0)
(0.158862666518 0.375521879598 0)
(0.165146820418 0.375844727984 0)
(0.170867032864 0.37472221047 0)
(0.175999218953 0.37227699302 0)
(0.180486403343 0.368576988272 0)
(0.18423045876 0.363628114579 0)
(0.18708384507 0.357367875958 0)
(0.188837878195 0.349656637695 0)
(0.189213221024 0.340271711746 0)
(0.187856975393 0.328913321541 0)
(0.184352640065 0.315227281478 0)
(0.178245582585 0.298840674657 0)
(0.169084078346 0.279403854564 0)
(0.156474658164 0.256636022942 0)
(0.140163542769 0.23035553563 0)
(0.120187679337 0.20038594969 0)
(0.0970281868959 0.16625422527 0)
(0.0707943687758 0.127381515608 0)
(0.0391629113163 0.0820662132557 0)
(0.00495799114254 0.0024401132478 0)
(-0.00331000906439 -0.00187803864398 0)
(-0.0015752997645 -0.00146296940652 0)
(-0.00118987169729 -0.00153504128256 0)
(-0.000798879560536 -0.00161581213818 0)
(-0.000490712199657 -0.0017542841761 0)
(-0.000150594907078 -0.00171513623417 0)
(-1.21232118749e-05 0.000868406587961 0)
(-2.77665069362e-05 0.000922148902406 0)
(-4.71414437346e-05 0.000929315919217 7.9790993685e-29)
(-6.12392581771e-05 0.000929483887746 0)
(-7.34572896574e-05 0.000922090178537 0)
(-7.99606482489e-05 0.000901980300293 0)
(-7.20208426907e-05 0.000860217490754 0)
(-6.80267681584e-05 0.000823532834576 0)
(-9.13292967828e-05 0.000840447726898 0)
(-0.000125024383147 0.000861377372411 0)
(-0.000156500817244 0.000876807259244 0)
(-0.000185576646943 0.000888289943185 0)
(-0.000217991425831 0.00089778363729 0)
(-0.00025438610205 0.000921735373872 0)
(-0.000278815587872 0.000904757634091 0)
(-0.000316486767206 0.000922481084176 0)
(-0.000324600766153 0.000886562611775 0)
(-0.000340853939173 0.000878450308564 0)
(-0.000349233140016 0.000850323698953 0)
(-0.000369142801271 0.00084194769942 0)
(-0.000399239412926 0.000846123323388 0)
(-0.000447155738198 0.000875727730898 0)
(-0.000471465429605 0.000865109380345 0)
(-0.000514623308625 0.000878104408161 0)
(-0.000557743074776 0.000892227842412 0)
(-0.000594475686096 0.000900031219615 0)
(-0.000636778565 0.000916056051039 0)
(-0.000688739181666 0.000942444366728 0)
(-0.000722553834885 0.000948427156406 0)
(-0.000774398920794 0.000988408942432 0)
(-0.000833828899308 0.00104052040237 0)
(-0.000871133671787 0.00106726370774 0)
(-0.000921569150549 0.00111961067575 0)
(-0.000975811462382 0.00118833695726 0)
(-0.00103434651684 0.00126950700305 0)
(-0.00110956272312 0.00138453079429 0)
(-0.00118242307019 0.00153347747687 0)
(-0.00153037668628 0.00168298621272 0)
(0.000998616399275 0.00204503889154 0)
(-0.0313613945411 0.00372614598529 0)
(0.0417074816884 0.202246650599 0)
(0.0213045318332 0.298839649805 0)
(0.0269124214817 0.305091515428 0)
(0.0554916858626 0.294128371456 0)
(0.0619303459046 0.297745375263 2.39515859832e-29)
(0.0731138673828 0.305966429931 0)
(0.0842621301144 0.318413137458 0)
(0.0946206427406 0.331901070995 0)
(0.105066746564 0.344707803282 0)
(0.11475259984 0.356042847445 0)
(0.123837034823 0.365348007207 0)
(0.132251691788 0.372508614206 0)
(0.14000482481 0.377563525801 0)
(0.147138991734 0.380658330998 0)
(0.153676057741 0.38197905346 0)
(0.159631210858 0.38170103695 0)
(0.164993962896 0.379965947278 0)
(0.16972209074 0.376862769759 0)
(0.173735489803 0.372418347952 0)
(0.176907297592 0.366589517526 0)
(0.179054544663 0.359255920918 0)
(0.179926758455 0.350210889506 0)
(0.179200216122 0.339159370424 0)
(0.176483909943 0.325735235601 0)
(0.171344608352 0.309541641693 0)
(0.163352264313 0.290206198622 0)
(0.152137888032 0.267439443074 0)
(0.137462641997 0.241093089316 0)
(0.119363987534 0.211213666487 0)
(0.0984402662247 0.177990329654 0)
(0.0755728471366 0.141458643452 0)
(0.0492733562123 0.101939419989 0)
(0.0180557924331 0.0610824713843 0)
(-0.000603122990373 0.000836292618511 0)
(-0.00218273589252 -0.000854088994487 0)
(-0.00186876091552 -0.000934798075195 0)
(-0.00146881547552 -0.00114270456383 0)
(-0.000956129143094 -0.00124174517247 0)
(-0.00059924144654 -0.00139293346574 0)
(-0.000191282709663 -0.00140102049318 0)
(-8.58701169694e-06 0.000851418731233 0)
(-2.28403504115e-05 0.000895710285558 0)
(-4.64310699169e-05 0.000908130570772 0)
(-6.36600984136e-05 0.000909222132254 0)
(-7.97307518642e-05 0.000907084011562 0)
(-9.01330236033e-05 0.000893321653891 0)
(-9.38117030651e-05 0.000878723052271 0)
(-8.43219266051e-05 0.000821648779739 0)
(-8.98388605566e-05 0.000804123242276 0)
(-0.000120049226351 0.000823433437808 0)
(-0.000155039608594 0.000840347150652 0)
(-0.000188517752507 0.000853478384131 0)
(-0.000219884028892 0.000862846449319 0)
(-0.000258115051893 0.0008751334887 0)
(-0.000287725049046 0.000870219801211 0)
(-0.000319496690492 0.000872777409319 0)
(-0.000356848914893 0.000886321987139 0)
(-0.000367947110727 0.000847331741488 0)
(-0.00039049001001 0.00083998363368 0)
(-0.000413249968919 0.000837840280739 0)
(-0.000424803710147 0.000804544798187 0)
(-0.000466753960709 0.000815801527306 0)
(-0.000513195808165 0.000834866154067 0)
(-0.000547943491848 0.000837519051171 0)
(-0.000588863065908 0.000844527551719 0)
(-0.000635330781575 0.000858467018055 0)
(-0.000681256153266 0.00087025579484 0)
(-0.000725377766997 0.000880947466167 0)
(-0.000777059355174 0.000910698059997 0)
(-0.000841774333243 0.000956380637312 0)
(-0.000876393176048 0.0009688189769 0)
(-0.000938110092047 0.0010164069366 0)
(-0.000997172561558 0.00107052418856 0)
(-0.0010624371879 0.00113420042443 0)
(-0.00113940344924 0.00121368589425 0)
(-0.00121602621939 0.00129812767747 0)
(-0.00131688438965 0.0014326453162 0)
(-0.00169611850518 0.00154680739069 0)
(0.00112595430652 0.00174408056844 0)
(-0.0320191599148 0.00274110180249 0)
(0.0494811075745 0.222052148098 0)
(0.0110419508147 0.316058348723 2.32475427704e-29)
(0.0269342811173 0.314975164084 0)
(0.053786005149 0.304359661906 0)
(0.059151667599 0.308301137325 0)
(0.0707963261185 0.316743885691 0)
(0.081420807999 0.329301925576 0)
(0.0915974732831 0.342475249386 0)
(0.101742679958 0.354798879028 0)
(0.111103108541 0.365504118032 0)
(0.119880800528 0.374120440061 0)
(0.127980848259 0.380587830362 0)
(0.135430180722 0.384968451176 0)
(0.142262133461 0.387418493024 0)
(0.148491205214 0.388115069165 0)
(0.154121203478 0.387213551112 0)
(0.159125661778 0.384825900196 0)
(0.163442773766 0.381003026969 0)
(0.166967613802 0.375725583972 0)
(0.169542979601 0.368895718474 0)
(0.170949626137 0.36033015647 0)
(0.1708971214 0.349752755691 0)
(0.169025053361 0.33680078191 0)
(0.164921495457 0.321059971152 0)
(0.158166194662 0.302128711324 0)
(0.148396939369 0.279697387349 0)
(0.135381314206 0.253624685181 0)
(0.119074315848 0.223995481667 0)
(0.0997434313407 0.191142082951 0)
(0.0783073505929 0.155594307538 0)
(0.0558104434632 0.117945462037 0)
(0.029662247682 0.07708032006 0)
(0.00614123139898 0.0105412621642 0)
(-0.00360706346882 -0.000338907392855 0)
(-0.00273241327261 -0.000399878482385 0)
(-0.00223362164165 -0.000481799140333 0)
(-0.00177861740956 -0.000621744758755 0)
(-0.00127031148441 -0.000841898587464 0)
(-0.000705535011228 -0.000964544720592 0)
(-0.000220138768555 -0.000938082103803 0)
(-7.70780828288e-06 0.000839454057686 0)
(-2.00850427786e-05 0.000866070512812 0)
(-4.50235251788e-05 0.000882914527789 0)
(-6.44810180525e-05 0.000885831524227 0)
(-8.20940150693e-05 0.000885655723843 0)
(-9.61644145629e-05 0.000880912957411 0)
(-0.000104376994193 0.000857282085346 0)
(-0.00010696032835 0.000836715907831 0)
(-0.000100890891997 0.000789073737062 0)
(-0.000115367928992 0.000785525264453 0)
(-0.000150673385911 0.000800710906237 0)
(-0.000188745235697 0.000814794515165 0)
(-0.000224990148714 0.000825735174313 0)
(-0.000261242495386 0.000832481224011 0)
(-0.000301419858614 0.000847137652977 0)
(-0.000325935908051 0.000834556178529 0)
(-0.000365017810324 0.000839557269604 0)
(-0.000393066473814 0.000824147317757 0)
(-0.000415853602167 0.000809881301213 0)
(-0.000440597871067 0.00079638215768 0)
(-0.000468785782458 0.000788279426608 0)
(-0.000494916922003 0.000773742651385 0)
(-0.000541189568982 0.000784783359426 0)
(-0.000581811273582 0.000793154901478 0)
(-0.000627761677945 0.000804064949106 0)
(-0.000665298740966 0.000800318613566 0)
(-0.000722365415942 0.000818871563178 0)
(-0.000770108562664 0.000834705787223 0)
(-0.000834991091242 0.000870236580489 0)
(-0.000872278131121 0.000880868480307 0)
(-0.000937151296235 0.000921893250512 0)
(-0.000991310439189 0.000955010115376 0)
(-0.00105296267481 0.000998221901018 0)
(-0.00112282382135 0.00105006393386 0)
(-0.00119179996734 0.00110871926094 0)
(-0.00130647437088 0.00120879520712 0)
(-0.00136073300887 0.00128330458381 0)
(-0.00180185697219 0.00143023858774 0)
(0.00115483016259 0.00158163670223 0)
(-0.0319889270404 0.00262279447967 0)
(0.0562758693348 0.240800544544 0)
(0.000915424956179 0.332141089991 -2.22870263707e-29)
(0.027751415467 0.324530630267 0)
(0.0518358065186 0.314541896255 0)
(0.0565527942412 0.318678412299 0)
(0.068505741156 0.327342675522 0)
(0.0785804523775 0.339938648129 -6.63235602334e-30)
(0.0885845026825 0.352759748406 6.51133976183e-30)
(0.0984071642847 0.364579956038 0)
(0.107450936285 0.374646221428 0)
(0.115925826613 0.382577817235 0)
(0.123719409231 0.38835852945 0)
(0.13087403545 0.392070177022 0)
(0.137411341921 0.393874244535 0)
(0.143338260472 0.393934657825 0)
(0.148645626987 0.392383050834 0)
(0.153289924523 0.389297580744 0)
(0.157188356993 0.384686613434 0)
(0.160209721977 0.378479660721 0)
(0.162165293239 0.370519453423 0)
(0.162799494728 0.360556885138 0)
(0.161785179147 0.348247991368 0)
(0.15873495392 0.333173818687 0)
(0.153234997113 0.314899023404 0)
(0.144906775186 0.293062329091 0)
(0.133491509316 0.267476589208 0)
(0.118933633585 0.238213554157 0)
(0.10143563607 0.205641474507 0)
(0.0815295575664 0.170364002605 0)
(0.0601801413369 0.133094160883 0)
(0.0381022175841 0.0949456932082 0)
(0.01465840573 0.0569651029151 0)
(0.00023345894665 0.00137204831317 0)
(-0.00261804594588 0.000238147172331 0)
(-0.00258888400536 0.000113143757522 0)
(-0.00225585241609 -3.93751651877e-05 0)
(-0.00189177733911 -0.000139341848519 0)
(-0.00150845931933 -0.000264739926484 0)
(-0.000918224825861 -0.000462615892616 0)
(-0.000242797536833 -0.000458466201741 0)
(-1.24428754175e-05 0.000820252951736 0)
(-2.55616305926e-05 0.000842392704285 0)
(-4.61150110765e-05 0.000855737725552 0)
(-6.57840869543e-05 0.000862610561268 0)
(-8.32173651896e-05 0.000862998716806 0)
(-0.000100256577127 0.000861510478296 0)
(-0.000112388956568 0.000852132253335 0)
(-0.000116866927089 0.000817899441675 0)
(-0.000120433372733 0.000798976439543 0)
(-0.000120614445765 0.000757455764579 0)
(-0.000143999829341 0.000757305529012 0)
(-0.000184544671706 0.000771990044018 0)
(-0.000225232671539 0.000783901076519 0)
(-0.00026414431813 0.000792290273904 0)
(-0.000303736504676 0.000798337060018 0)
(-0.000346347262618 0.000811471892202 0)
(-0.000373225636756 0.000793312308244 0)
(-0.000414204199287 0.000797314144261 0)
(-0.000438629833357 0.000778335748566 0)
(-0.000475837375498 0.000779062987011 0)
(-0.000497939839877 0.000747776630027 0)
(-0.000529175265151 0.000734862395232 0)
(-0.00057043895577 0.000739179210458 0)
(-0.000616158669268 0.000749205439078 0)
(-0.000660896406667 0.000755244417391 0)
(-0.000708624702989 0.000759449380848 0)
(-0.000746642513804 0.000756467869533 0)
(-0.000813577967479 0.000786169492578 0)
(-0.000855029061763 0.000797215645694 0)
(-0.000920621581096 0.000831372204881 0)
(-0.000972044217337 0.00085137520049 0)
(-0.00104322442584 0.000891464099734 0)
(-0.0011146906849 0.000933247971778 0)
(-0.00119231941013 0.000979786946712 0)
(-0.00127793735348 0.00103817009545 -3.14978287257e-29)
(-0.00138895671512 0.00111831087087 3.14446528519e-29)
(-0.00147312449483 0.00118985830365 0)
(-0.0018630036655 0.00124000059031 -2.76206065831e-29)
(0.00108225753313 0.00139683098985 0)
(-0.0348301380391 0.0025628405707 0)
(0.0631511807048 0.258489017409 0)
(-0.00924348400126 0.347273718863 0)
(0.0291569635734 0.333783804703 0)
(0.0496592289478 0.324611738056 0)
(0.0541563231115 0.328842969077 0)
(0.0662437157683 0.337733968978 0)
(0.0757693822018 0.350302724531 0)
(0.0856044735014 0.362744958694 0)
(0.0950881600762 0.3740478193 0)
(0.103824655147 0.383472214831 0)
(0.112000106666 0.390726374854 0)
(0.119495139477 0.395828363675 0)
(0.126362990432 0.398876280281 0)
(0.132612283009 0.400031699652 0)
(0.138241980765 0.399441368866 0)
(0.143228463729 0.397209330608 0)
(0.147510150692 0.393375742293 0)
(0.150981952095 0.387901910685 0)
(0.153485300903 0.380661555358 0)
(0.154799540936 0.371434374881 0)
(0.154634557517 0.359905132397 0)
(0.152633579928 0.345668833744 0)
(0.148398508413 0.328270890539 0)
(0.141541772455 0.307295920177 0)
(0.131765852772 0.282486181046 0)
(0.118958596322 0.253856773289 0)
(0.103280048327 0.221775952712 0)
(0.085221458824 0.186967429071 0)
(0.0656443360938 0.150369898791 0)
(0.0455840711412 0.112916956664 0)
(0.0251584454047 0.0755344118559 0)
(0.00555929397433 0.0387442241049 0)
(-0.00221879920117 0.000430958911397 0)
(-0.00303719495681 0.000475490935375 0)
(-0.00275224128546 0.000438283192166 0)
(-0.00230590396731 0.000320025866839 0)
(-0.00192856378021 0.000239742328176 0)
(-0.00158543150137 0.000240622320402 0)
(-0.00117879446039 0.000250473927788 0)
(-0.000230659204481 4.12848440497e-05 0)
(-1.40019882029e-05 0.00079314259492 0)
(-2.86746459211e-05 0.000823026793377 0)
(-4.65007936115e-05 0.000830139742628 0)
(-6.50830252399e-05 0.000838814481608 0)
(-8.2686130236e-05 0.00084036245415 0)
(-0.000100000839289 0.000839465616636 0)
(-0.000117474416479 0.000835513254218 0)
(-0.000126593942322 0.000815653178776 0)
(-0.000132882153706 0.000781064140074 0)
(-0.000140883495316 0.000759087681791 0)
(-0.00014573360666 0.000717849314945 0)
(-0.000176122453165 0.000723188330933 0)
(-0.000218978972982 0.000737574442716 0)
(-0.000262420659384 0.00074679274886 0)
(-0.000304851473081 0.000753942477352 0)
(-0.000347633691673 0.000757606086789 0)
(-0.000393620920917 0.000768071131495 0)
(-0.000422149600868 0.000748921318415 0)
(-0.000463938089033 0.000751340236641 0)
(-0.00049198983347 0.000728754560106 0)
(-0.000532495668607 0.000720054287657 0)
(-0.000559432794852 0.00069603182582 0)
(-0.000599013147539 0.000693454784594 0)
(-0.000646295924155 0.000701963404716 0)
(-0.000692859038769 0.000706884861422 0)
(-0.000733672588011 0.00070274104985 0)
(-0.000787551480954 0.000713643433616 0)
(-0.000830029833844 0.000718590343291 0)
(-0.000893687535753 0.000746086613212 0)
(-0.000947030531625 0.000763142119114 0)
(-0.00101694851567 0.000794139382671 0)
(-0.00107851281964 0.000819314392387 0)
(-0.00114972629342 0.000851185040998 0)
(-0.0012250734801 0.000886694966833 0)
(-0.00131891526704 0.000940480543019 0)
(-0.00141523626497 0.00100287152296 -2.94985250058e-29)
(-0.00151064904895 0.00105733881022 0)
(-0.0018600302408 0.00105813905625 2.67308618522e-29)
(0.00130445205643 0.00115952896262 0)
(-0.0360666219431 0.00185781476604 0)
(0.0698571429159 0.275813575334 0)
(-0.0193383729569 0.361659844658 0)
(0.0311229740389 0.342758391732 0)
(0.047281467013 0.334530629071 0)
(0.0519694909444 0.338772478174 0)
(0.0640081670486 0.34789503172 3.86047890365e-30)
(0.0730086420343 0.360378862368 -3.79274287835e-30)
(0.0826727616022 0.37242466213 0)
(0.0918062933305 0.383201445219 0)
(0.100245325621 0.39198596445 0)
(0.108124779717 0.398572298282 0)
(0.115329327081 0.403004509813 0)
(0.121917779053 0.405393639338 0)
(0.127885369284 0.405896297921 0)
(0.133222492615 0.404638228437 0)
(0.137889789467 0.401691958252 0)
(0.141806772032 0.397055471792 0)
(0.144845082079 0.390638790658 0)
(0.146818312302 0.38225615116 0)
(0.147474256043 0.371622884281 0)
(0.146491289165 0.358361679229 0)
(0.143491404726 0.342020309464 0)
(0.138081277562 0.322138028425 0)
(0.129921424967 0.298366295641 0)
(0.118819259932 0.270607426604 0)
(0.104829376579 0.239125278089 0)
(0.0883454604608 0.20459374128 0)
(0.0701832371804 0.168040758354 0)
(0.0516112871102 0.130608945675 0)
(0.0340595288674 0.0932554961058 0)
(0.0179564273075 0.0563516062561 0)
(0.00159983398487 0.00419477329137 0)
(-0.00363067090013 0.00161630615884 0)
(-0.00308211240302 0.00112734002057 0)
(-0.00272927378423 0.000913111029569 0)
(-0.00223567243105 0.000728629387493 0)
(-0.00183885259481 0.000609890847744 0)
(-0.00147308167645 0.000628703429687 0)
(-0.00106853960666 0.00083473395021 0)
(-0.00048519160221 0.00123810968917 0)
(-1.42301680859e-05 0.000758695872517 0)
(-2.99850054027e-05 0.000798506533447 0)
(-4.50616992813e-05 0.00080581065901 0)
(-6.09535073496e-05 0.000813152066952 0)
(-7.95027931002e-05 0.000816892435234 0)
(-9.80988471728e-05 0.000815768384523 0)
(-0.000117883097251 0.000811815044199 0)
(-0.00013615980069 0.000802319828199 0)
(-0.00014413198835 0.000765927311771 0)
(-0.000158368281564 0.00074501760979 0)
(-0.000167759832771 0.000713590919216 0)
(-0.000178862016556 0.000683103938243 0)
(-0.000210738220504 0.000686639624314 0)
(-0.000254115354727 0.000695125197018 0)
(-0.00030154816478 0.000705199151778 0)
(-0.000347262388451 0.000710305094818 0)
(-0.000392641088268 0.000711362940132 0)
(-0.000440961790573 0.000718868698379 0)
(-0.000472166808882 0.000699780886252 0)
(-0.000517059339599 0.000697883717061 0)
(-0.000549078111777 0.000673726325341 0)
(-0.000587512411365 0.000659518847382 0)
(-0.000626906502201 0.000651446654642 0)
(-0.000668510040704 0.000649981104612 0)
(-0.000718217620276 0.000656528188608 0)
(-0.000766294096706 0.000658150641396 0)
(-0.00080628415465 0.000653444476375 0)
(-0.000863884507845 0.00066864981268 0)
(-0.00091488957261 0.000680599956563 0)
(-0.00098160962771 0.00070400324141 0)
(-0.00103530781444 0.000717271577633 0)
(-0.0011110872876 0.000748289789865 0)
(-0.00118750047671 0.000779276168106 0)
(-0.00126430763482 0.000810574129027 0)
(-0.00134414053701 0.000852810903678 0)
(-0.0014178198326 0.000892363704739 2.79960288969e-29)
(-0.00151914749392 0.000955408016748 0)
(-0.00185982920842 0.000980322060888 0)
(0.00163333021737 0.00111763842247 0)
(-0.0344596639845 0.0015745186306 0)
(0.0756076247993 0.292295465437 0)
(-0.0290696985772 0.375146515009 0)
(0.0335896319503 0.351448319086 0)
(0.0447207720715 0.344268824866 0)
(0.0499979741849 0.34844902112 0)
(0.0617967739561 0.357807334315 0)
(0.0703132705821 0.370156055043 0)
(0.0797987847892 0.381795438148 0)
(0.0885762265986 0.392041710432 0)
(0.0967278474068 0.400192245712 0)
(0.104315227212 0.406122085245 0)
(0.111237734347 0.409894121455 0)
(0.117554055599 0.411628957172 0)
(0.123246375859 0.411473341127 0)
(0.128295708935 0.409528277995 0)
(0.132645847689 0.405830775158 0)
(0.136196609933 0.400332513525 0)
(0.138795545648 0.392888269717 0)
(0.140228210105 0.3832498573 0)
(0.140211660133 0.371068453581 0)
(0.138397835022 0.355911408911 0)
(0.134401515684 0.337297396202 0)
(0.127861993253 0.314795267555 0)
(0.118533394762 0.288179056188 0)
(0.106395828897 0.25758656765 0)
(0.0917644135891 0.223629730971 0)
(0.0753877040336 0.187423038741 0)
(0.0585582133678 0.150506315382 0)
(0.0429896948145 0.114597598694 0)
(0.0292279326238 0.0808894784046 0)
(0.01458985704 0.0488506785012 0)
(-0.00160810384433 0.00369361469839 0)
(-0.00285074700316 0.00202295593267 0)
(-0.00273994319403 0.00158196253551 0)
(-0.00245887206192 0.0013568821635 0)
(-0.00200927859829 0.00114200978874 0)
(-0.00160568386976 0.00100110817726 0)
(-0.00124725273418 0.00104392142396 0)
(-0.000944148713811 0.00157779405682 -4.53134778649e-29)
(-0.000169418607376 0.00131880424107 0)
(-1.28330422149e-05 0.000732777448942 0)
(-2.47412040103e-05 0.000772715457175 0)
(-3.82217060586e-05 0.000786847451359 0)
(-5.50305771907e-05 0.000789658950146 0)
(-7.564848659e-05 0.000791865570707 0)
(-9.72935178743e-05 0.000790528727298 0)
(-0.000119355116162 0.000785592849922 0)
(-0.000142747593608 0.000777785177671 0)
(-0.000158026908137 0.000755851823294 0)
(-0.000169317844731 0.000719588159588 0)
(-0.000190753758242 0.000701466836454 0)
(-0.000204510512867 0.000668285044418 0)
(-0.000217579261196 0.000645890806915 0)
(-0.000246584163556 0.000642148884297 0)
(-0.000293286576524 0.000650185936326 0)
(-0.000343205358306 0.000657877159447 0)
(-0.000392317888887 0.00066127003032 0)
(-0.000439987617568 0.000661636610066 0)
(-0.000490195396606 0.000664780236953 0)
(-0.000525050671428 0.000645889310753 0)
(-0.000569703313877 0.000636003269699 0)
(-0.000603195285802 0.000613012300038 0)
(-0.000643910341766 0.000601826494842 0)
(-0.0006895928646 0.000601691686931 0)
(-0.000738055727371 0.000603787300536 0)
(-0.000782068041502 0.000600424542566 0)
(-0.000839826407524 0.00060816768409 0)
(-0.000881842487076 0.000607178639137 0)
(-0.00094613958434 0.000624408214322 0)
(-0.000998640432968 0.000634580012423 0)
(-0.00107097088239 0.000657266575018 0)
(-0.00113095759803 0.000674086232738 0)
(-0.00120953760313 0.000701442807998 0)
(-0.00127708314794 0.000728652342529 0)
(-0.00134701466276 0.0007645550801 0)
(-0.00145810029164 0.000820399437751 0)
(-0.00150856676014 0.000861412974101 0)
(-0.00184217717248 0.000904945538757 0)
(0.00158341558926 0.00111079641946 0)
(-0.0354200994163 0.00183832286369 0)
(0.0813291165333 0.307463508463 0)
(-0.0386350219413 0.387779273203 0)
(0.036358235881 0.359868710396 0)
(0.0419826834399 0.353791826706 0)
(0.0482392554453 0.357855330091 0)
(0.0596041259562 0.367455791976 0)
(0.0676927756261 0.379626798403 0)
(0.0769871203682 0.390856154219 0)
(0.085407695497 0.400571120286 0)
(0.0932820068272 0.408096763741 0)
(0.100582000049 0.413382744149 0)
(0.107231449272 0.416504640821 0)
(0.11328316003 0.41758915472 0)
(0.118707166619 0.416768454288 0)
(0.123474176199 0.414115120876 0)
(0.127510345538 0.409626655272 0)
(0.130695387957 0.403204573576 0)
(0.132852793158 0.3946452959 0)
(0.13374142562 0.38363732931 0)
(0.133050756553 0.369772308871 0)
(0.130415823984 0.352577567899 0)
(0.12546393446 0.331576294153 0)
(0.117896781507 0.306426099157 0)
(0.107593236732 0.27710409417 0)
(0.0947191357121 0.24406457209 0)
(0.0798211919754 0.208316116702 0)
(0.063893453701 0.17136135526 0)
(0.0484117519556 0.134876211348 0)
(0.0352083698953 0.100134233716 0)
(0.0238094202081 0.0671741554309 0)
(0.00256677074932 0.00529666680071 0)
(-0.00326291776764 0.00299984650373 0)
(-0.00263626454391 0.00227469927853 0)
(-0.00242210018823 0.00190793486703 0)
(-0.00210647233859 0.00174526024256 0)
(-0.00174025151934 0.00165316415795 0)
(-0.00118301816675 0.00141828339371 0)
(-0.000760514487985 0.0013198766068 0)
(-0.000616103767454 0.0021278846724 3.43771948266e-29)
(-0.000118746105875 0.00234695186518 0)
(-1.14664548374e-05 0.000715660383997 0)
(-2.28856123546e-05 0.000775523851631 0)
(-3.76896402802e-05 0.000773442135953 0)
(-5.52914063338e-05 0.000768333393091 0)
(-7.67151560344e-05 0.000765884913269 0)
(-0.000100555156333 0.000762623590979 0)
(-0.000124936810278 0.000757116385046 0)
(-0.000149727416524 0.000749001748673 0)
(-0.000173861233731 0.000737266155862 0)
(-0.00018363279857 0.000695392938892 0)
(-0.000198899958336 0.000666882181288 0)
(-0.000222297920658 0.00064982353383 0)
(-0.000253630635934 0.000652667757248 0)
(-0.000261843595461 0.000603053984848 0)
(-0.000294066572849 0.000597980750088 0)
(-0.000335827572146 0.000598036431465 0)
(-0.00038867565748 0.000605350509437 0)
(-0.000440376062306 0.000609510669822 0)
(-0.00049020644852 0.000607053229192 0)
(-0.000542198607834 0.000606491450278 0)
(-0.000579250870899 0.000586456261448 0)
(-0.000624556005112 0.000573320850752 0)
(-0.000662810155403 0.000556915801104 0)
(-0.000707135498044 0.000551350845415 0)
(-0.00075881080377 0.000554128152299 0)
(-0.000806601713781 0.00055162226357 0)
(-0.000851044611475 0.000546754292017 0)
(-0.000909639746518 0.000554663793004 0)
(-0.000959611742042 0.000559761888428 0)
(-0.00102599500307 0.000574469962373 -3.44746274797e-29)
(-0.00107717137534 0.00058141519693 0)
(-0.00115130166062 0.000606154141307 0)
(-0.00122248332554 0.00063325193098 0)
(-0.00126370291973 0.000649074354933 0)
(-0.00135082261845 0.000685885924413 0)
(-0.00142329823612 0.000719430836449 0)
(-0.00148555153081 0.000754890028691 0)
(-0.00184992842516 0.000792991697318 2.30525954882e-29)
(0.00162374994947 0.000969459305083 -2.64703939775e-29)
(-0.0377872344247 0.00183542272567 0)
(0.087669606904 0.3218946194 0)
(-0.0482167807076 0.399914810405 0)
(0.0393810393667 0.368064848942 0)
(0.0390926347109 0.363081844234 0)
(0.0466823716405 0.366983409307 0)
(0.0574220994133 0.376830197417 0)
(0.0651520731361 0.388786961688 0)
(0.0742384043585 0.399607785141 0)
(0.0823063253813 0.408793707588 0)
(0.0899133215549 0.415706183102 0)
(0.0969315823835 0.420361944958 0)
(0.103317587742 0.422844036477 0)
(0.109112719115 0.423281708638 0)
(0.11427616814 0.421788004568 0)
(0.118767311443 0.41840345699 0)
(0.122494083564 0.413082156402 0)
(0.125315721349 0.405671956956 0)
(0.127031672952 0.395908645883 0)
(0.127375003876 0.383418041064 0)
(0.126009090908 0.367738981192 0)
(0.122560443737 0.3483759979 0)
(0.116688842514 0.324889821261 0)
(0.108196963349 0.297077244169 0)
(0.0971570794392 0.265173205907 0)
(0.0840310612792 0.229986133939 0)
(0.0697685630971 0.192942159152 0)
(0.0559218626588 0.156026173548 0)
(0.0444871593425 0.121319732677 0)
(0.0358020869134 0.0898183814987 0)
(0.0248603277488 0.0602948233135 0)
(-0.000921573892592 0.00430821331619 0)
(-0.00205117049435 0.00301104794933 0)
(-0.00209669439907 0.00247501293048 0)
(-0.00197116622975 0.0022053381285 0)
(-0.00169321089752 0.00210311887234 0)
(-0.00135553035071 0.00207836876769 1.62258537842e-29)
(-0.000857747011837 0.00184869314605 0)
(-0.000381253071745 0.00142583957717 0)
(-0.000304051925859 0.00220514427965 0)
(-6.47074073669e-05 0.00163782859353 0)
(-5.75622396014e-06 0.000697952006706 0)
(-1.70883534388e-05 0.000748046524865 0)
(-3.93320619968e-05 0.000749289298425 0)
(-5.84062095265e-05 0.000743317981833 0)
(-8.1611350221e-05 0.00073687210966 0)
(-0.000107274573776 0.000731976077561 0)
(-0.000133218819813 0.000725748524333 0)
(-0.000159006455655 0.000717642882282 1.12014417455e-29)
(-0.000185651669402 0.000707095237637 -1.09735138309e-29)
(-0.000206798565512 0.000691065696786 0)
(-0.000212718520862 0.000646530630179 0)
(-0.000222009113228 0.000607201625868 0)
(-0.000256789629897 0.000601179395551 0)
(-0.000293952839759 0.000594062720382 0)
(-0.00031806460436 0.000572773392544 0)
(-0.000344609352973 0.000551768199671 0)
(-0.000383876858362 0.000545741405327 0)
(-0.000437784627775 0.000553320384333 0)
(-0.000488400229547 0.000551895846177 0)
(-0.000541719158854 0.000549556406602 0)
(-0.000593235666902 0.000543191702091 0)
(-0.000632380862321 0.000523315490158 0)
(-0.000673479699158 0.000506955965504 0)
(-0.000720840613796 0.000501020341927 0)
(-0.000770899443911 0.000498852517699 0)
(-0.000817152865483 0.000493420841122 0)
(-0.000876550116669 0.000496334656786 0)
(-0.000920579707369 0.000492410581481 0)
(-0.00098542626171 0.00050198126162 0)
(-0.00104004804098 0.000507005370266 3.3781074243e-29)
(-0.00110839601596 0.000524280702517 0)
(-0.00116257006251 0.000542002524606 0)
(-0.00121276487803 0.000562396705178 0)
(-0.00128058018839 0.000588433693164 0)
(-0.00134975136055 0.00061402432148 0)
(-0.00140941661245 0.000631667133394 0)
(-0.00151284765723 0.000658186544058 0)
(-0.0018633268258 0.000648290580023 0)
(0.00184081957141 0.000728766742987 0)
(-0.0394782158682 0.00151909287946 0)
(0.0942288473042 0.336023064636 0)
(-0.0577469873839 0.411675784067 0)
(0.0427474267381 0.37603198925 0)
(0.0360859640596 0.372134892669 0)
(0.0453198954328 0.375832623085 0)
(0.0552453852554 0.385924474371 0)
(0.0626934403517 0.397635547521 0)
(0.0715504142193 0.408053298909 0)
(0.0792744229687 0.416714955239 0)
(0.0866237780582 0.423028149413 0)
(0.0933670414919 0.427068112578 0)
(0.0994998869373 0.428920982228 0)
(0.105047182008 0.428714901441 0)
(0.109958894409 0.426539434151 0)
(0.114182073085 0.422399496336 0)
(0.117606254331 0.416202064869 0)
(0.120070447234 0.407738427968 0)
(0.121351628605 0.396682960702 0)
(0.121161279858 0.382602758059 0)
(0.119144974411 0.364998021381 0)
(0.114945522714 0.343383634188 0)
(0.108302035942 0.317424747425 0)
(0.0991913704819 0.287172358606 0)
(0.0879704755462 0.253286640971 0)
(0.0754493651048 0.217124240595 0)
(0.0628244391093 0.18059346647 0)
(0.0516227177853 0.145735377036 0)
(0.0431707798903 0.114326551 0)
(0.0323102711618 0.0872006492366 0)
(0.0017585547302 0.00466316119953 0)
(-0.00309139072371 0.00328316388849 0)
(-0.00206617654007 0.00299328446876 0)
(-0.00181052252414 0.00262400059689 0)
(-0.00160216762533 0.00246077932362 0)
(-0.0013437863416 0.00240191838075 1.36055635025e-29)
(-0.00108011959559 0.00240231881833 -1.52679317521e-29)
(-0.00080332734171 0.00237395298619 0)
(-0.000355770831988 0.00175600756263 0)
(-0.000310975285481 0.00216188600102 0)
(-0.00017366794054 0.0025406325014 0)
(-1.63110375501e-06 0.000676782306295 0)
(-9.47895916729e-06 0.000712224837466 0)
(-3.41433335013e-05 0.000719367747829 0)
(-5.72039545029e-05 0.000711429756698 0)
(-8.47727529098e-05 0.000703039304553 0)
(-0.00011287376139 0.00069771705406 0)
(-0.000140348537883 0.000692195150721 0)
(-0.000166909869201 0.000684361430188 0)
(-0.000193101650464 0.000674352895741 0)
(-0.000219315654716 0.00066147660174 0)
(-0.000238575272138 0.000640939367232 0)
(-0.000242338112382 0.000595581563355 0)
(-0.000249486504434 0.000550358453221 0)
(-0.00028716865782 0.000541396455251 0)
(-0.000330299695492 0.000536095276659 0)
(-0.000365346938137 0.000522536683977 0)
(-0.00039458189067 0.000503895310872 0)
(-0.00043480670277 0.000495691633629 0)
(-0.000477975293307 0.000488081638167 0)
(-0.00053714460436 0.000492601400147 0)
(-0.000590123810371 0.000486817937861 0)
(-0.000640366502385 0.000475774231561 0)
(-0.000681939168355 0.000457580569968 0)
(-0.00073001009041 0.000447986549258 0)
(-0.000785196453028 0.000446044144645 0)
(-0.000836226563398 0.000440551223879 -4.17577932238e-29)
(-0.000883310879643 0.000433785287626 0)
(-0.000946341867621 0.000437798230388 0)
(-0.000997893520128 0.000437363368296 0)
(-0.00106764848561 0.000449366010188 0)
(-0.0011053172915 0.000460703081395 0)
(-0.00116745440886 0.000486088282701 0)
(-0.0012142589633 0.000502448338686 0)
(-0.00127727034469 0.000522876310649 0)
(-0.00132852297671 0.000541020212119 0)
(-0.00141619686718 0.000558236166482 0)
(-0.0014571514092 0.000549310056643 0)
(-0.00178305846854 0.000504622503443 0)
(0.00216177758411 0.000496243430622 0)
(-0.0403273978231 0.00119791282193 0)
(0.100526739919 0.349756519524 -5.68753025203e-30)
(-0.0671061263813 0.422899147106 4.644287578e-30)
(0.0464799416565 0.383707766658 0)
(0.0329667755652 0.380935741388 0)
(0.0441458379048 0.384395827018 0)
(0.0530701554516 0.394732612065 0)
(0.0603168080232 0.406173307519 0)
(0.0689188381907 0.416197092305 0)
(0.0763116423289 0.424341567263 0)
(0.0834124554421 0.430071220321 0)
(0.0898885634568 0.433510466289 0)
(0.0957791795468 0.434744972637 0)
(0.101088223356 0.433898043344 0)
(0.105758267782 0.431031608396 0)
(0.109723094804 0.42611154153 0)
(0.112853925341 0.418994364531 0)
(0.114969860019 0.409412814811 0)
(0.115826685965 0.396980972535 0)
(0.115116592229 0.38121458359 0)
(0.112469219136 0.361594317987 0)
(0.107556377696 0.337682481394 0)
(0.100212180609 0.309307735439 0)
(0.090602128466 0.276836010893 0)
(0.0793988475096 0.241348010314 0)
(0.0679156631429 0.204559718418 0)
(0.0580614319529 0.168269006964 0)
(0.0515305862801 0.133296026274 0)
(0.0463065947862 0.0998481501146 0)
(0.0360905591724 0.0594734879179 0)
(-0.000764369591131 0.00468443890218 0)
(-0.00110435413208 0.00345338162228 0)
(-0.00143591141927 0.00315780353484 0)
(-0.0013601899792 0.00281289524017 1.09720892727e-29)
(-0.00122025729494 0.00268597646829 0)
(-0.00102817930444 0.00263927683403 -1.31682330336e-29)
(-0.000836146537874 0.00263466540191 0)
(-0.000683313062366 0.00264171048148 0)
(-0.000386413027099 0.00214682333304 0)
(-0.000234449520913 0.00233732228946 0)
(-8.14328777443e-05 0.00271589190138 0)
(1.90760993042e-06 0.000675883275486 0)
(5.53982287653e-07 0.000682226159218 0)
(-2.45430865262e-05 0.000688487465007 0)
(-5.32398404113e-05 0.000673847976839 0)
(-8.42704630995e-05 0.000664457131819 0)
(-0.000113657543392 0.00066035554927 0)
(-0.000142524942894 0.000656098974561 0)
(-0.000170636031287 0.000649804823893 0)
(-0.000197795559828 0.000640206738591 0)
(-0.000224807511717 0.000628086679688 0)
(-0.000251496025835 0.000612681090908 0)
(-0.000270728686379 0.000588023622113 0)
(-0.000276245787512 0.000544185365001 0)
(-0.000281378464885 0.000491584236728 0)
(-0.000316865104158 0.000477720283887 0)
(-0.000364705034856 0.000474284362661 0)
(-0.000406404693417 0.000464884920248 0)
(-0.000445715045493 0.000453884370028 0)
(-0.000485084396127 0.000441431071891 0)
(-0.000529553276107 0.000431212116957 0)
(-0.000577583264146 0.000422557378691 0)
(-0.000640199239565 0.000420527091857 0)
(-0.000685898730762 0.000405052578192 0)
(-0.000735460450532 0.000392961093765 0)
(-0.000790596052076 0.000387036306685 0)
(-0.000842279097741 0.000380431478818 4.11550986018e-29)
(-0.000902556516317 0.000379010037921 0)
(-0.000948373475672 0.000372705797794 0)
(-0.00102052146959 0.000381781089642 0)
(-0.00105831888699 0.000392092523989 0)
(-0.00109613303944 0.00040518026142 0)
(-0.00115842109022 0.000425295372629 0)
(-0.00121874203244 0.000447164294283 0)
(-0.00125586270798 0.000461214235307 0)
(-0.00131723586529 0.000481023945927 0)
(-0.00136362398656 0.000493705442727 0)
(-0.00136728224196 0.000484165569613 0)
(-0.00164174660157 0.000425865734909 0)
(0.00267267212411 0.000409668779054 0)
(-0.0404724003682 0.00096166050366 0)
(0.106391720664 0.362908307164 0)
(-0.0762406296281 0.433424573715 0)
(0.0504916352569 0.391051529988 0)
(0.0297055294023 0.38946217782 0)
(0.0431472431454 0.392658611943 0)
(0.0508874224897 0.403248106402 0)
(0.0580183096731 0.414401794899 0)
(0.0663372520184 0.424044431782 0)
(0.073415281097 0.431681183497 0)
(0.0802759602678 0.436844734693 0)
(0.0864938604704 0.439698972732 0)
(0.0921537438622 0.440326365663 0)
(0.0972350090585 0.438841589946 0)
(0.10167478885 0.43527501702 0)
(0.105392795435 0.42955018883 0)
(0.108242409082 0.421470242934 0)
(0.11002378446 0.410708286975 0)
(0.110474644773 0.396821194299 0)
(0.109275210096 0.379284834594 0)
(0.106055191505 0.357588669103 0)
(0.100571532595 0.331400575528 0)
(0.0928616264257 0.30082456162 0)
(0.0834834513518 0.266735913072 0)
(0.0737749820756 0.230951583483 0)
(0.0660641997638 0.196066181916 0)
(0.0632583928251 0.1647586446 0)
(0.0642492974912 0.13791857735 0)
(0.0508331474846 0.112402469462 0)
(0.000707945182713 0.00354191141085 0)
(-0.00255871814888 0.00316368094449 0)
(-0.00139135042294 0.00327557711063 0)
(-0.00122453347319 0.00320646467401 0)
(-0.00104713108401 0.00295297099153 -1.09154522519e-29)
(-0.000903862198229 0.0028545490045 -1.07989570248e-29)
(-0.000752197123061 0.002807256372 0)
(-0.000609964048696 0.00278611675206 0)
(-0.000515897945603 0.00277164728997 0)
(-0.000322803337597 0.00231557578047 0)
(-0.00014599301516 0.00247391201154 0)
(1.93149560289e-06 0.00284146749488 0)
(-4.57935458921e-06 0.000682278070742 0)
(-5.37819995086e-06 0.00066653546543 0)
(-2.63749901687e-05 0.000654618374464 0)
(-5.43385509471e-05 0.000629215915297 0)
(-8.20201066811e-05 0.00062316604825 0)
(-0.000109179455366 0.000620182026858 0)
(-0.000138476540058 0.000617808047475 0)
(-0.00016867670626 0.000612660246615 0)
(-0.000198384874266 0.000604638054467 0)
(-0.000227108484199 0.00059279095809 0)
(-0.00025576347968 0.000578214533282 0)
(-0.000284174369032 0.000560181811095 0)
(-0.000304423228579 0.000529988494262 0)
(-0.000314915950846 0.0004879655656 0)
(-0.000322182977674 0.000439049249417 0)
(-0.000358669942161 0.00042139481525 0)
(-0.000400823165875 0.000410333006111 0)
(-0.000449891409384 0.000405242130041 0)
(-0.000493295061233 0.000394356229827 0)
(-0.000539439162254 0.000384650284743 0)
(-0.00058212090202 0.000370071935197 0)
(-0.000632871195527 0.000359022948733 0)
(-0.000687924240246 0.000348772255361 4.80994243686e-29)
(-0.000738205650413 0.000336302868448 0)
(-0.000794098863772 0.000327977515336 0)
(-0.000850601086392 0.000322333566528 0)
(-0.000898345825311 0.000315971775747 0)
(-0.000968243013241 0.000320315281834 0)
(-0.00100488933654 0.000325033025397 0)
(-0.00103969793611 0.000335950483043 0)
(-0.00111286810983 0.000353486326018 0)
(-0.001160943845 0.000365463157129 0)
(-0.00121487594501 0.00038678509465 0)
(-0.00126938706279 0.000412643212854 0)
(-0.00131674139167 0.000440724775154 0)
(-0.00131790239031 0.000458913144791 0)
(-0.00132962292997 0.000478008311413 0)
(-0.00152615234606 0.000458723048008 0)
(0.00319267655395 0.000593943035357 0)
(-0.039903225093 0.000981019654042 0)
(0.111818664049 0.37514774583 0)
(-0.0851351567791 0.443207964534 0)
(0.0546430856681 0.39808535675 0)
(0.0262741879984 0.397703164181 0)
(0.0423067391267 0.400611422949 0)
(0.0486820268285 0.411468433049 0)
(0.0557905425802 0.422324265208 0)
(0.0637972062267 0.431601601589 0)
(0.0705804968674 0.438742293471 0)
(0.0772087816896 0.44335866279 0)
(0.0831784871226 0.445644222646 0)
(0.0886195636178 0.445676311256 0)
(0.0934844048494 0.443557177613 0)
(0.0977067648164 0.439281964431 0)
(0.101191739234 0.432728855397 0)
(0.103775795959 0.423645371522 0)
(0.105241594075 0.411645622705 0)
(0.10531220637 0.396236098336 0)
(0.103661232259 0.37687210705 0)
(0.0999249838366 0.353095526806 0)
(0.0939732928243 0.324760467422 0)
(0.0860353858919 0.2923669181 0)
(0.0769431040047 0.257413613765 0)
(0.0683366412083 0.222371645689 0)
(0.0625733340704 0.189645441976 0)
(0.0614758317813 0.159280025221 0)
(0.056344384134 0.126127919598 0)
(0.0109381814448 0.0137791580099 0)
(-0.0021676738976 0.0057462374244 0)
(-0.00113562171408 0.00405824795243 0)
(-0.000961686926516 0.00364069941975 0)
(-0.000841741110694 0.00334351631641 0)
(-0.000737368087723 0.003090402342 0)
(-0.000627003908568 0.00298034788298 1.04061266755e-29)
(-0.000519783388392 0.00292344870123 0)
(-0.000422420797867 0.0028868706642 1.04799815069e-29)
(-0.000373615237404 0.00282573336046 0)
(-0.000247181057774 0.00250263382078 0)
(-6.66701965004e-05 0.00268511027153 0)
(3.99987027905e-05 0.00274111391015 0)
(-1.05586131318e-05 0.000658513050467 0)
(-1.82077828159e-05 0.000649144005009 0)
(-3.53364053539e-05 0.000616924623021 0)
(-5.75568019818e-05 0.000598811915758 0)
(-8.16000774368e-05 0.000593312881586 0)
(-0.000106470893256 0.000586828176524 0)
(-0.000133199144334 0.000578480901691 0)
(-0.000162997627225 0.000572940399158 0)
(-0.000194395745522 0.000565844616257 0)
(-0.00022575570485 0.000555421109706 0)
(-0.000256106700374 0.000541144313048 0)
(-0.000286377905653 0.000523799724753 0)
(-0.000316844737875 0.000502508513317 0)
(-0.00033456484464 0.000463771438832 0)
(-0.000354667081485 0.00042895527091 0)
(-0.000367631274057 0.000384333110906 0)
(-0.000401568424386 0.000362608719606 0)
(-0.000444815838269 0.000351532403865 0)
(-0.000488614695431 0.000340681687301 0)
(-0.000537971116394 0.000330753531954 0)
(-0.000582698371345 0.000316231108688 0)
(-0.000632873163643 0.000303222804653 0)
(-0.000683704374014 0.000289953781108 -4.75560283057e-29)
(-0.000736744465723 0.000277680304591 0)
(-0.000793298463661 0.000268750469851 0)
(-0.00084007522039 0.000261329602078 0)
(-0.000903831030574 0.000260049145603 0)
(-0.000948094084002 0.000260437109754 0)
(-0.000994523883865 0.000269596610595 0)
(-0.00106243547403 0.000280617448072 0)
(-0.0011200035156 0.000288489745365 0)
(-0.00118323622039 0.000308367654524 0)
(-0.00122827470236 0.000332152933362 0)
(-0.00127857660365 0.000366663851607 0)
(-0.0012997317175 0.000406888727244 0)
(-0.00132326438349 0.00044461028006 0)
(-0.00130523349916 0.000500344682077 0)
(-0.00146711000923 0.000566643491112 0)
(0.00345255614322 0.00106161221233 0)
(-0.0411037528936 0.00127576316384 0)
(0.117501023485 0.38635242157 0)
(-0.0940351625706 0.452416203406 0)
(0.0587862734654 0.404892944423 0)
(0.022669442753 0.405662804398 0)
(0.0416074049456 0.408257979954 0)
(0.0464369474348 0.419398491727 0)
(0.0536251837638 0.429947003808 0)
(0.0612890582354 0.438876573445 0)
(0.0678008260596 0.445534383365 0)
(0.0742037156238 0.449623521959 0)
(0.0799361277462 0.451357294181 0)
(0.0851704833616 0.450806661982 0)
(0.0898309627703 0.448057619577 0)
(0.0938500068478 0.443066678587 0)
(0.0971177411775 0.435663867175 0)
(0.0994547845042 0.425539475419 0)
(0.100627733384 0.412250525537 0)
(0.100348518828 0.395262100928 0)
(0.0982903757168 0.374031099959 0)
(0.0941128521662 0.348198829835 0)
(0.0878816588734 0.317887553317 0)
(0.0801354331574 0.284096090834 0)
(0.0722109993194 0.249018088121 0)
(0.0667578700435 0.215927580611 0)
(0.0673023177806 0.187644656759 0)
(0.071072027174 0.162633301549 0)
(0.0500491514012 0.136621804517 0)
(0.00194309061582 0.00615277081957 0)
(0.00077734166233 0.0044772317552 0)
(-0.000120094472532 0.00391558900618 0)
(-0.000358122134011 0.00361770236434 0)
(-0.000450851081512 0.00335115786526 0)
(-0.000454039917683 0.00316335713488 0)
(-0.000396966815067 0.00305340655418 0)
(-0.000334640528979 0.00299088586188 0)
(-0.00026754404492 0.00293647310111 -9.91923587058e-30)
(-0.00023723772055 0.00285235521611 0)
(-0.00016978756807 0.00268478954774 9.09928756352e-30)
(-3.14858795675e-05 0.00282930778242 0)
(4.04733142073e-05 0.00273521097016 0)
(-1.4202684968e-05 0.000627858143142 0)
(-2.93641989917e-05 0.000624924814907 0)
(-4.27029593205e-05 0.000595880842131 0)
(-5.85764354896e-05 0.000569497599693 0)
(-8.29760788725e-05 0.000561814635398 0)
(-0.000107535978621 0.00055433574267 0)
(-0.000132836826601 0.00054549929016 0)
(-0.000159389594518 0.000534931519251 0)
(-0.000188568501487 0.000524768104916 0)
(-0.000220609430079 0.000515156408184 0)
(-0.000252881424577 0.000501986390125 0)
(-0.000284407453901 0.000484960354856 0)
(-0.000315713056572 0.000464286671088 0)
(-0.000346102317536 0.000439059100649 0)
(-0.000362120743756 0.000393169987347 0)
(-0.000375363840758 0.000349310767124 0)
(-0.000411570990779 0.000326927809684 0)
(-0.000443931131805 0.000305212985226 0)
(-0.000481846171745 0.000287498928718 0)
(-0.000531218696927 0.000275639301054 -5.45882987131e-29)
(-0.000580412000262 0.000263870307508 0)
(-0.000629250890633 0.000248752661767 0)
(-0.000674421281298 0.000231255391341 0)
(-0.000732220595641 0.000219197792972 0)
(-0.000779213316882 0.000209950450498 0)
(-0.000835646794511 0.000203109648444 0)
(-0.000890922227659 0.000198708317712 0)
(-0.000947626583646 0.000202899838756 0)
(-0.0010078929976 0.000207556413366 0)
(-0.00106982996786 0.00021144782994 0)
(-0.00114441226218 0.000226065454709 0)
(-0.00118435698749 0.000248781101208 0)
(-0.00124389430176 0.000283448267279 0)
(-0.00126789638955 0.000321381078478 0)
(-0.00131289600902 0.000367824153742 0)
(-0.00137305916735 0.000428050425627 0)
(-0.00133708431523 0.000516098845676 0)
(-0.00163227320545 0.000674475897019 0)
(0.00306545746462 0.00131349959582 0)
(-0.0434247988941 0.00184478107796 0)
(0.123899334232 0.396533628904 0)
(-0.103132341859 0.461406376839 0)
(0.0629064270991 0.411552547217 0)
(0.018936204043 0.413347451054 0)
(0.0410354090413 0.415613874205 0)
(0.0441388827012 0.427048242404 0)
(0.0515156956284 0.437278732614 0)
(0.0588030610515 0.445878971244 0)
(0.0650690340233 0.45206767261 0)
(0.0712524314376 0.455649991658 0)
(0.0767588711271 0.456849321232 0)
(0.0817983011075 0.455729534331 0)
(0.0862669012188 0.452356526919 0)
(0.0900979211802 0.44664504745 0)
(0.093166646308 0.43837446091 0)
(0.0952796410031 0.427177053904 0)
(0.0961904077227 0.412556869393 0)
(0.0956066129812 0.393951776164 0)
(0.093211481232 0.370853844398 0)
(0.0887054251211 0.343076251403 0)
(0.0824244902261 0.311144302471 0)
(0.0751844663178 0.276733556351 0)
(0.0683601871008 0.242744545603 0)
(0.0640732481624 0.212638907702 0)
(0.0643390309276 0.18794278767 0)
(0.0567675929027 0.159174006386 0)
(0.0131430716277 0.0162284791635 0)
(-0.00166485124732 0.00399864173055 0)
(0.000285660105349 0.00385229998177 0)
(0.000127611147157 0.00368406829507 0)
(-1.1325615558e-05 0.00346404697807 0)
(-0.000149608060608 0.00324148870106 0)
(-0.000208121849724 0.00318154613071 0)
(-0.000204157774804 0.00309160566055 0)
(-0.000186898646766 0.00303740136776 0)
(-0.000163707804072 0.00298032306466 0)
(-0.000122709508891 0.00276951192138 0)
(-6.19643853254e-05 0.00269522044667 -9.07486838099e-30)
(2.08127391871e-05 0.002941700194 0)
(4.62213391041e-05 0.0027011880506 0)
(-1.30944478525e-05 0.000597373490029 0)
(-3.02464810694e-05 0.00059869842323 0)
(-4.57085805618e-05 0.000580061495099 0)
(-5.99015310934e-05 0.000538519207744 0)
(-8.50620121499e-05 0.000528970646428 0)
(-0.000109386259296 0.000520852986938 0)
(-0.000134268685436 0.000511588764637 0)
(-0.000159586074631 0.000500707441326 0)
(-0.000186044129596 0.000487840381032 0)
(-0.000214282448746 0.000473103198368 0)
(-0.000246565982907 0.000460440916348 0)
(-0.000279681517814 0.000444177509284 0)
(-0.000312873419556 0.000424101023219 0)
(-0.000346325040271 0.000400430272709 0)
(-0.000377390658744 0.000372469326419 0)
(-0.000396313682614 0.000329036159059 0)
(-0.000407824966731 0.000283479380435 0)
(-0.000442268662965 0.000260754840971 0)
(-0.000487708190359 0.000244711932634 0)
(-0.00052122395535 0.000224414226928 5.39338234323e-29)
(-0.000562831007472 0.000206679699169 0)
(-0.000614425382034 0.000190378436509 0)
(-0.000670388310557 0.000176606142639 0)
(-0.000714648480104 0.000163520902385 0)
(-0.000761174065176 0.000149939876048 0)
(-0.000828850826507 0.000140642362666 0)
(-0.000884930719938 0.000138050164652 0)
(-0.000938913637287 0.000135955300478 0)
(-0.001004781033 0.000135050478122 0)
(-0.00108676982904 0.000143253028615 0)
(-0.00113714355348 0.00016332957924 0)
(-0.00118819802419 0.000191948107508 0)
(-0.00124665698436 0.000227642033159 0)
(-0.00129164522582 0.000267805224022 0)
(-0.00137584929449 0.000319748174557 0)
(-0.00141442716049 0.000384555836682 0)
(-0.00142931500585 0.000469857532752 0)
(-0.00189004978005 0.000584611327054 0)
(0.00252199243626 0.000915641383422 0)
(-0.0502155991197 0.00205616027531 0)
(0.132206752268 0.406562850717 0)
(-0.112829864786 0.470602689108 0)
(0.0671640156592 0.418048683877 0)
(0.0151254747924 0.42076261776 0)
(0.0405741685618 0.422697562945 0)
(0.0417813967858 0.43442642612 0)
(0.0494574659794 0.444329081856 0)
(0.0563297600578 0.452619417097 0)
(0.0623778713103 0.458352556556 0)
(0.0683459850383 0.461448509216 0)
(0.0736375014776 0.462131190129 0)
(0.0784928418882 0.460457137108 0)
(0.0827819036358 0.45646833949 0)
(0.0864408340592 0.450034937465 0)
(0.0893305114131 0.440883398976 0)
(0.0912450138845 0.428587936355 0)
(0.0919262921418 0.412605313056 0)
(0.0910804614971 0.392362700227 0)
(0.0883976390498 0.367420311793 0)
(0.0836033437758 0.33781709136 0)
(0.077328561647 0.30453592709 0)
(0.0706090242925 0.269850783316 0)
(0.0648098414917 0.236784199566 0)
(0.0612149259561 0.207330237208 0)
(0.0587686886676 0.180269217551 0)
(0.0350631217259 0.155854864575 0)
(0.00364974988408 0.00621437680546 0)
(0.00214679496836 0.00379839654552 0)
(0.00104316361493 0.00358281738781 0)
(0.000596418816076 0.00350401718464 0)
(0.000309083642409 0.00325384693944 0)
(0.000131167177771 0.00317326946489 0)
(3.19813307595e-05 0.00315944508378 0)
(-1.69632008957e-06 0.00310885242971 0)
(-1.49306023471e-05 0.00307877617686 0)
(-2.52056505393e-05 0.00305920799855 0)
(-1.00437493248e-05 0.00303384176384 0)
(1.33275209019e-05 0.002916106253 0)
(1.63359811393e-05 0.00304390637561 0)
(2.23107500815e-05 0.00264771222193 0)
(-1.31642271942e-05 0.000567549382654 0)
(-3.04718014477e-05 0.000570103608766 0)
(-4.87529039642e-05 0.000559583976123 0)
(-6.31972136391e-05 0.000507010165513 0)
(-8.74301747926e-05 0.000495700250285 0)
(-0.000111201461968 0.000487245152655 0)
(-0.000135403982367 0.00047770521066 0)
(-0.000159990765795 0.000466333230026 0)
(-0.000185333018818 0.000452801037432 0)
(-0.000211786674719 0.000437019023664 0)
(-0.000240172302692 0.000418889565199 0)
(-0.000272211372247 0.000400800976468 0)
(-0.000306797291871 0.000381371622684 0)
(-0.000341842042337 0.000358753517827 0)
(-0.00037635023585 0.000332353860895 0)
(-0.000408821713051 0.000301789070068 0)
(-0.000423709025054 0.000259400669085 0)
(-0.000441167408063 0.000220778404041 0)
(-0.000478081015524 0.000197979820069 0)
(-0.000508536920634 0.000176903992971 0)
(-0.000561303461781 0.000159035281735 0)
(-0.000599581044939 0.000137691591537 0)
(-0.000638501063863 0.000121703991319 0)
(-0.000684463278704 0.000105561464913 0)
(-0.000754127990471 8.81717892777e-05 0)
(-0.000802710197831 7.73956825186e-05 0)
(-0.000855663369714 7.14325333375e-05 0)
(-0.000932513940077 6.42010781714e-05 0)
(-0.00100281357048 6.22153485593e-05 0)
(-0.00106644762798 7.27537757507e-05 0)
(-0.0011259471094 9.461386085e-05 0)
(-0.00121185209871 0.000124883609579 0)
(-0.00126712478215 0.000161241354788 0)
(-0.00134514613995 0.000206105307159 0)
(-0.00138931894024 0.000262226592508 0)
(-0.00143028545501 0.000330698764712 0)
(-0.00145293237021 0.000379519323911 0)
(-0.0018693268864 0.000365282319586 0)
(0.00316826993462 0.000236678662949 0)
(-0.0541185024471 0.00121915636979 0)
(0.141133902827 0.417294640201 0)
(-0.122698512992 0.4798640671 0)
(0.0719254377891 0.42424179258 0)
(0.0112401186347 0.427913956605 0)
(0.0402103075923 0.429514359483 0)
(0.0393630638159 0.441536018448 0)
(0.0474450577356 0.451107503287 0)
(0.0538601411431 0.459108011588 0)
(0.059720619834 0.464398181684 0)
(0.0654750772059 0.467027898456 0)
(0.0705615042239 0.467212047341 0)
(0.0752416989123 0.465000162783 0)
(0.0793625942109 0.460406643848 0)
(0.0828654397552 0.453254456141 0)
(0.0855978969827 0.443215131549 0)
(0.087343985272 0.429805217724 0)
(0.0878378728289 0.412441131097 0)
(0.0867947120555 0.390558857472 0)
(0.0839301961184 0.363825548331 0)
(0.0790344837667 0.332575874618 0)
(0.0732064051319 0.298364173274 0)
(0.0679003895357 0.264179932991 0)
(0.0649746836886 0.233275994193 0)
(0.0651637562424 0.20674860096 0)
(0.0614658542147 0.178348425203 0)
(0.0525328424841 0.115072980562 0)
(0.00122533023492 0.0018998481611 0)
(0.00154206015446 0.00261839243013 0)
(0.00108500445034 0.00305376501143 0)
(0.000766338089682 0.00314251927592 0)
(0.000531832857036 0.00308374800546 0)
(0.000369590927394 0.00298719788968 0)
(0.000279119809622 0.00310646998923 0)
(0.000221051060991 0.00308859307021 0)
(0.000184261728061 0.00306150009466 0)
(0.000155447086493 0.00302106769488 0)
(0.000118928871707 0.00293378648343 0)
(5.42528958027e-05 0.00278797396841 0)
(-4.35023067915e-05 0.00299358340985 0)
(-3.02184150989e-05 0.00262224109275 0)
(-1.0555560619e-05 0.000537191990728 0)
(-2.84881766873e-05 0.000539119872901 0)
(-5.25565524282e-05 0.000533618783116 0)
(-6.63202429798e-05 0.00047534415513 0)
(-8.89402523236e-05 0.000462427291673 0)
(-0.000112720558749 0.00045393614345 0)
(-0.000135925854699 0.000444425530691 0)
(-0.000159281191756 0.000432615703753 0)
(-0.000183462911519 0.000418099819832 0)
(-0.000209085104042 0.00040091119195 0)
(-0.000236423897535 0.000381418582367 0)
(-0.000266077716667 0.000359753309309 0)
(-0.000297783951779 0.000336272458364 0)
(-0.000332960816956 0.000313327822917 8.45257238833e-29)
(-0.00036947041508 0.000289059125684 0)
(-0.00040441128439 0.000262881842276 0)
(-0.000436235442263 0.000233308142369 0)
(-0.000452054650225 0.000194169022562 0)
(-0.000467229301918 0.000159407250488 0)
(-0.000501799307092 0.000134311755873 0)
(-0.00053685266618 0.000111167845323 0)
(-0.000571123665884 9.12984301176e-05 0)
(-0.000608263599406 6.96998875821e-05 0)
(-0.00067475476405 4.48510040304e-05 0)
(-0.00072015834735 2.60856295411e-05 0)
(-0.000770525200739 1.66605190571e-05 0)
(-0.000840905872677 1.19878939937e-06 0)
(-0.000910107573819 -1.32064659916e-05 0)
(-0.000977323491582 -1.53550228119e-05 0)
(-0.00106685899893 -5.47854915217e-06 0)
(-0.0011429838928 1.49430267352e-05 0)
(-0.00121923770113 4.42885000847e-05 0)
(-0.00129482499989 8.48170176769e-05 0)
(-0.00136683478811 0.000141374382049 0)
(-0.00141611588308 0.000216332248875 0)
(-0.00144392577911 0.000291567411805 0)
(-0.0014150720221 0.000338124565399 0)
(-0.0017244685233 0.000268464931563 0)
(0.00441401875376 2.47420162844e-05 0)
(-0.0546694817132 0.000618653718537 0)
(0.149235807202 0.427804569002 0)
(-0.132253071205 0.488364300927 0)
(0.0771953563562 0.429930203927 0)
(0.00718353133695 0.434768619131 0)
(0.0399339897274 0.436041864161 0)
(0.0368761576152 0.448377252719 0)
(0.0454696777758 0.457624261939 0)
(0.0513864628493 0.465354241421 0)
(0.0570916984531 0.47021256926 0)
(0.0626306053096 0.472395606663 0)
(0.0675195643835 0.47209973659 0)
(0.0720304814123 0.469368605176 0)
(0.0759924558258 0.464185618013 0)
(0.0793542539613 0.456324243877 0)
(0.0819523082342 0.445399256771 0)
(0.0835632132387 0.430870536773 0)
(0.0839156001244 0.412122744988 0)
(0.0827386772439 0.388624699483 0)
(0.0797688527564 0.360196839784 0)
(0.0748229082008 0.327535804887 0)
(0.0694497724655 0.292841001713 0)
(0.0652329029596 0.259727819443 0)
(0.0640048275099 0.230598822668 0)
(0.0664907610268 0.203015425236 0)
(0.0599363366771 0.16997594535 0)
(0.00468999242481 0.0048129146343 0)
(-0.00199853142296 0.00250626757374 0)
(0.000580157255935 0.00274373198176 0)
(0.00086724325321 0.00294365202128 0)
(0.000835519420497 0.00297790679412 0)
(0.000698750252596 0.0029075917964 0)
(0.000599282222516 0.00290915600486 0)
(0.000534593329906 0.00303450111082 0)
(0.000443357385117 0.00303980997613 0)
(0.000367357100783 0.00302027812705 0)
(0.000297311721317 0.00298532640306 0)
(0.000206425727778 0.00286760814339 0)
(0.000112969474918 0.00270238776497 0)
(1.79734346117e-05 0.00286220923579 0)
(-4.85220041092e-06 0.00288634788264 0)
(-1.00188234673e-05 0.000507872607496 0)
(-2.9462763613e-05 0.000501370401017 0)
(-5.65704610566e-05 0.000503433141981 0)
(-7.02662145681e-05 0.000449193843515 0)
(-9.13790129556e-05 0.000429221721312 0)
(-0.000115117569693 0.000421586632689 0)
(-0.000136240401367 0.000412471565867 0)
(-0.000157330712794 0.000399934522703 0)
(-0.000179734653381 0.000383800325534 0)
(-0.000204352736242 0.000364532526537 0)
(-0.00023146948221 0.000342833082274 0)
(-0.00026088184432 0.000319430823923 0)
(-0.000292090743935 0.000294832657326 0)
(-0.000324835777612 0.000269261082628 -8.57470026276e-29)
(-0.000358323737178 0.000243214405226 0)
(-0.00039188820247 0.000218330665228 0)
(-0.000425978480688 0.000194507656938 0)
(-0.000456435725408 0.000167828979508 0)
(-0.000473443354858 0.000133827566613 0)
(-0.000489182377083 9.91662844288e-05 0)
(-0.000517922040094 7.17206668995e-05 0)
(-0.00054975850407 4.60539754109e-05 0)
(-0.000596035520222 1.59560446217e-05 0)
(-0.000643777146215 -1.18873553532e-05 0)
(-0.000681639301462 -2.980878593e-05 0)
(-0.000739499257012 -5.06884186752e-05 0)
(-0.000816607272301 -7.60403822332e-05 0)
(-0.000887596708949 -9.31376095942e-05 0)
(-0.000967434835589 -9.90792364856e-05 0)
(-0.00104269694212 -9.35427113387e-05 0)
(-0.00113435758267 -7.8958709686e-05 0)
(-0.00124245465448 -4.92236662588e-05 0)
(-0.00132797124149 2.2082065776e-06 0)
(-0.00140510750461 7.39979301268e-05 0)
(-0.00146119114439 0.000170294830241 0)
(-0.00147385995215 0.000283729095012 0)
(-0.00138010880445 0.000388780695762 0)
(-0.00159915404972 0.000441178833586 0)
(0.00540333841008 0.00062824649192 0)
(-0.0547727107061 0.000744013763807 0)
(0.156469019819 0.437074827461 0)
(-0.14158669683 0.495670571182 0)
(0.0825589620525 0.435066555548 0)
(0.00278430691996 0.441287824642 0)
(0.0397038916539 0.442262869181 0)
(0.0342898606522 0.454961915531 0)
(0.0435197435231 0.463891810376 0)
(0.0489033128567 0.471365375894 0)
(0.0544869150757 0.475799709347 0)
(0.059803629887 0.477553628854 0)
(0.0644990176089 0.476795570194 0)
(0.0688415959016 0.473565636817 0)
(0.0726498904954 0.46781286995 0)
(0.0758830748022 0.459259279351 0)
(0.07836940433 0.447461264446 0)
(0.0798814894663 0.431823455963 0)
(0.080145210819 0.411707634594 0)
(0.0789138901471 0.38663978949 0)
(0.0759749426265 0.356646180013 0)
(0.0712574267261 0.322868340521 0)
(0.0671483846909 0.288273263307 0)
(0.0665166970863 0.257514473844 0)
(0.0737392481084 0.23355791426 0)
(0.0844240958477 0.210651214381 0)
(0.0654006181317 0.174184777847 0)
(0.00180516446907 0.00605088814343 0)
(0.00175047379922 0.00336311485317 0)
(0.00128718488595 0.00307455433942 0)
(0.001172508469 0.00294472725525 0)
(0.00103588149847 0.00282293242002 0)
(0.000934297440528 0.00283055195744 0)
(0.000848042460342 0.00286946968949 0)
(0.000765103402306 0.00294093094349 0)
(0.000643711625096 0.00294980623715 0)
(0.000530872109399 0.00293531029078 0)
(0.000421681615663 0.00291333782299 0)
(0.000270852688604 0.0027782205333 0)
(0.000165020505303 0.00267028399003 0)
(0.000116731141934 0.0027948657765 0)
(5.54970615424e-05 0.00270303602415 0)
(-9.24012034682e-06 0.000478473926145 0)
(-2.85258758703e-05 0.000458782554398 0)
(-5.67338807706e-05 0.000472699705085 0)
(-7.57171605037e-05 0.000421657322021 0)
(-9.88394948858e-05 0.00039274489189 0)
(-0.000120727454949 0.000385949445887 0)
(-0.00013861387824 0.000376293919008 0)
(-0.000156807110478 0.000361883065922 0)
(-0.00017773697424 0.000343389537651 0)
(-0.000202218354964 0.000322022697892 0)
(-0.00022994982647 0.000298942666449 0)
(-0.000259950270462 0.000274946636909 0)
(-0.000291034077225 0.000250533732262 0)
(-0.000322195728247 0.00022601585523 0)
(-0.000352447322013 0.000201831892522 0)
(-0.00038084774091 0.000178709627325 0)
(-0.000407983058985 0.00015554111674 0)
(-0.000434842239091 0.0001304245156 0)
(-0.000463491348279 0.000102673862242 0)
(-0.000492112213626 7.12591260758e-05 0)
(-0.000510432830675 3.81800235158e-05 0)
(-0.000534529152613 3.93864550317e-06 0)
(-0.000571552818078 -3.177839494e-05 0)
(-0.000607503936248 -6.04975080569e-05 0)
(-0.000648115625447 -8.68524709571e-05 0)
(-0.000705468089122 -0.000118836355499 0)
(-0.000772120167613 -0.00015041344875 0)
(-0.000841798608911 -0.000173779824178 0)
(-0.000921972922595 -0.000188709029493 0)
(-0.00103710070964 -0.000199488729 0)
(-0.00114181985159 -0.000189935395593 0)
(-0.0012393898265 -0.000154150260739 0)
(-0.00134573260903 -9.93806988453e-05 0)
(-0.00147479643899 -1.61921745458e-05 0)
(-0.00154356085691 0.000117049284696 0)
(-0.00157752321614 0.000289777937617 0)
(-0.00147713900869 0.000518128090756 0)
(-0.00169043406445 0.000818915023531 0)
(0.00541643188932 0.00148827107744 0)
(-0.0565805031267 0.00160375432812 0)
(0.163820483389 0.444630970037 0)
(-0.151021722468 0.501930836021 0)
(0.0876314650529 0.43973918859 0)
(-0.00207824555963 0.447492190791 0)
(0.0394650500057 0.448222830448 0)
(0.0315701185498 0.461331647118 0)
(0.0415938201815 0.469932307291 0)
(0.0464125508816 0.477152683263 0)
(0.0519065046748 0.481165347254 0)
(0.0569882254023 0.482504055137 0)
(0.061488379483 0.481301407109 0)
(0.0656564267492 0.477596467853 0)
(0.0693102095394 0.471301229467 0)
(0.0724224867391 0.462084169642 0)
(0.0748176897823 0.44944170825 0)
(0.0762694548101 0.43272473705 0)
(0.0765055576379 0.411283146809 0)
(0.0753108079064 0.384733120113 0)
(0.0725429433957 0.353401030977 0)
(0.068304343845 0.31909746939 0)
(0.0656434771519 0.285842554124 0)
(0.0669660046587 0.259026315829 0)
(0.0760710703808 0.241161322657 0)
(0.0718022321142 0.218821597336 0)
(0.0097662526975 0.0111970259198 0)
(-0.00233585880836 0.00414124499584 0)
(0.0010461723671 0.00336267353129 0)
(0.00133459244552 0.00304841507081 0)
(0.00133319728243 0.00283308094573 0)
(0.00127614040587 0.00278830327639 0)
(0.00114126514302 0.00267610846625 0)
(0.00108191000185 0.00279403182725 0)
(0.000940958820474 0.00280276043778 0)
(0.000793896456466 0.00280869653069 0)
(0.000646730390661 0.00279453006616 0)
(0.000491920310561 0.00273211863675 0)
(0.000315445942102 0.00252893175092 0)
(0.000234685941878 0.0026165965283 0)
(0.000188255760639 0.00274629957901 0)
(9.12525261213e-05 0.00267253052034 0)
(-1.53176014223e-05 0.000447633285195 0)
(-3.19221378689e-05 0.000417636396858 0)
(-5.72762206674e-05 0.000439526667845 0)
(-8.29900117957e-05 0.000375413875642 0)
(-0.000110342369966 0.000356359030783 0)
(-0.000130125472762 0.000357528041872 0)
(-0.000149428748424 0.000353292072251 0)
(-0.000170494850603 0.000339345717967 0)
(-0.000196176134513 0.000318617903901 0)
(-0.000225144171591 0.000294158808872 0)
(-0.000255031112198 0.000268184728716 0)
(-0.000283640369688 0.000242178476047 0)
(-0.000309586813315 0.000217012629886 0)
(-0.000332331379793 0.000192346273177 0)
(-0.000350742977862 0.000167563414845 0)
(-0.000368111217706 0.000144083732947 0)
(-0.000390955633258 0.000121467326292 0)
(-0.000414433584795 9.54310770507e-05 0)
(-0.000439335307788 6.60268391127e-05 0)
(-0.000463508393061 3.65741472225e-05 0)
(-0.000489406704749 5.44694110234e-06 0)
(-0.000516872815015 -3.16755884237e-05 0)
(-0.000542658772087 -6.89316915684e-05 0)
(-0.000564752096603 -0.00010159753705 0)
(-0.000601350120106 -0.000137575333164 0)
(-0.000648009083254 -0.00017931746821 0)
(-0.000725036973834 -0.000227669150758 0)
(-0.000802740601908 -0.000265964543975 0)
(-0.000896439573356 -0.000297965497317 0)
(-0.000992936118682 -0.000311773650114 0)
(-0.00109453749125 -0.000300448131705 0)
(-0.00122061907428 -0.000280945619829 0)
(-0.00140014939113 -0.000246796278712 0)
(-0.00154664374271 -0.000143846555209 0)
(-0.00167082264671 2.34984020494e-05 0)
(-0.00178911904174 0.000262475547394 0)
(-0.00172372676575 0.000621646788146 0)
(-0.00200097270093 0.00119210857212 0)
(0.00504801584353 0.00227170021593 0)
(-0.0608173748653 0.00306198831507 0)
(0.172952348378 0.450979985114 0)
(-0.161200561444 0.507654595356 0)
(0.0921230207683 0.444187570397 0)
(-0.00753042876258 0.453583140736 0)
(0.0391596882204 0.454062559802 0)
(0.0287112858503 0.467555897956 0)
(0.0397124403817 0.47576853142 0)
(0.0439258699147 0.482720982162 0)
(0.0493560629633 0.486301386658 0)
(0.0541802567048 0.487230858014 0)
(0.0584736701478 0.48559610926 0)
(0.0624496577033 0.481439985469 0)
(0.0659375624317 0.474633044148 0)
(0.0689282460595 0.46478956952 0)
(0.0712480688438 0.451344564572 0)
(0.0726772521545 0.433598589197 0)
(0.0729470434829 0.410904460819 0)
(0.071857630831 0.383001855765 0)
(0.0692732202301 0.350567364608 0)
(0.0654627292301 0.31615104673 0)
(0.0642917969814 0.2846426266 0)
(0.0666543456893 0.259744207118 0)
(0.0717879421063 0.237634414376 0)
(0.0386606638039 0.215993139229 0)
(0.00503762705966 0.00706219054142 0)
(0.00430162727375 0.00401058920169 0)
(0.00243622831492 0.00334962380107 0)
(0.0019195570733 0.00291467982282 0)
(0.00166702302875 0.00269371900644 0)
(0.00151569315048 0.0026217473221 0)
(0.00139296533513 0.0026311015678 0)
(0.00125625480364 0.00263199416107 0)
(0.00108347572908 0.0026324130625 0)
(0.000907433946787 0.00263440930712 0)
(0.00072776330468 0.00261664321015 0)
(0.000538067432391 0.00254841722948 0)
(0.000386810236728 0.00245197819806 0)
(0.000313693898055 0.00256509562995 0)
(0.000235878085086 0.00264015682221 0)
(0.00010196589866 0.00239714776932 0)
(-2.29749396038e-05 0.000409493298285 0)
(-3.9569630158e-05 0.000393070850927 0)
(-5.87104940698e-05 0.000404045683209 0)
(-8.6492775237e-05 0.000335678318593 0)
(-0.000124537827381 0.000337549370018 0)
(-0.000141657270738 0.000333471587799 0)
(-0.000159828168393 0.000323484928206 0)
(-0.000182444497413 0.000301569230171 0)
(-0.000210042935255 0.000274440418817 0)
(-0.000238386340985 0.000247707044151 0)
(-0.000264607385548 0.000222940525454 0)
(-0.000287658068817 0.000200681083787 0)
(-0.0003077109696 0.000180478024626 0)
(-0.000325853068994 0.000160685975917 0)
(-0.000343006074945 0.00014047461806 0)
(-0.000360339389263 0.000118278296544 0)
(-0.00037802459223 9.34006494496e-05 0)
(-0.000395431932933 6.65471731835e-05 0)
(-0.000411105690032 3.79325623052e-05 0)
(-0.000423936108233 7.58622699627e-06 0)
(-0.000444168024982 -2.63170036327e-05 0)
(-0.000466356836923 -6.31856270079e-05 0)
(-0.000491651816564 -0.000100872810094 0)
(-0.000519729133126 -0.000140799495132 0)
(-0.000555910067125 -0.000188314218568 0)
(-0.000607274147604 -0.000248080994259 0)
(-0.000670600808574 -0.000308232510316 0)
(-0.000732139884666 -0.000352943926767 0)
(-0.000815930890132 -0.000392833345461 0)
(-0.000908083087425 -0.00041609666945 0)
(-0.00102990548297 -0.000435716436308 0)
(-0.00121890519325 -0.000463028632251 0)
(-0.00141439293116 -0.000435819177178 0)
(-0.00161529707703 -0.000334050549955 0)
(-0.00187845896324 -0.000169873395962 0)
(-0.00214139533178 0.00012428689023 0)
(-0.0022539035518 0.000628160800054 0)
(-0.00265423941962 0.00148457561191 0)
(0.00435662458686 0.00297533618149 0)
(-0.0673120407536 0.00520926934602 0)
(0.18513670975 0.45470614684 0)
(-0.172206398217 0.512466036028 0)
(0.0959590808276 0.448618937736 0)
(-0.0135988419123 0.459839107136 0)
(0.0388656964601 0.459959105038 0)
(0.0257955598333 0.473697944286 0)
(0.0379386325361 0.481433531669 0)
(0.041475963646 0.488084413051 0)
(0.046857149582 0.491212224091 0)
(0.0513880419605 0.491731137871 0)
(0.0554509556797 0.489680279686 0)
(0.0592034603963 0.485104867851 0)
(0.0625019754902 0.477834847298 0)
(0.06535852989 0.467427499307 0)
(0.0676083169368 0.453255516766 0)
(0.0690429362782 0.434565806685 0)
(0.0694042555336 0.410716666338 0)
(0.068534401314 0.381584652293 0)
(0.0663430889812 0.348216702714 0)
(0.0634831259711 0.313912664594 0)
(0.0660004703925 0.284840720218 0)
(0.0752811971551 0.264474509627 0)
(0.0823167904695 0.240243840792 0)
(0.0662556923987 0.17208547113 0)
(0.00267118767688 0.00114240983528 0)
(0.00280857967462 0.00239126478532 0)
(0.0024659567023 0.00268288561052 0)
(0.00213878666728 0.00261427478716 0)
(0.00196553625566 0.00257057282538 0)
(0.00172862520109 0.00243562959451 0)
(0.00160595025076 0.0024709379414 0)
(0.00141262017664 0.00245787628342 0)
(0.00122244883024 0.00244980510449 0)
(0.00102292719933 0.00245186904394 0)
(0.000815547216566 0.0024465340048 0)
(0.000604754811906 0.00237172412072 0)
(0.000463478198826 0.00236749955173 0)
(0.000356400471893 0.00244534456037 0)
(0.000243595575855 0.00255280321611 0)
(9.03821724598e-05 0.00224255664604 0)
(-2.64730083271e-05 0.000354080489319 0)
(-5.11459217347e-05 0.000377108434141 0)
(-6.51543881568e-05 0.000368907746218 0)
(-8.03812631682e-05 0.000279841438301 0)
(-0.000116982233038 0.000287008747363 0)
(-0.000140027108939 0.000294682199299 0)
(-0.000159514663 0.000282775953198 0)
(-0.000186551918433 0.000255961643819 -2.12214303738e-29)
(-0.000214671975818 0.000229176538104 1.93382076996e-29)
(-0.000239507765566 0.000207363625994 0)
(-0.000260498087103 0.000188635362259 0)
(-0.000277961889279 0.000171674797925 0)
(-0.000292695488273 0.000154436386444 0)
(-0.000305885439915 0.000135096431026 0)
(-0.000317956257071 0.000113646557251 0)
(-0.000333228581304 9.14901655386e-05 0)
(-0.00034742651513 6.77548761039e-05 0)
(-0.000360386025972 4.25948297218e-05 0)
(-0.000372487864661 1.54597898593e-05 0)
(-0.00038578161386 -1.58909470733e-05 0)
(-0.000400100199044 -5.19813205161e-05 0)
(-0.00041461165274 -9.08558487799e-05 0)
(-0.000433223622876 -0.000132669778445 0)
(-0.000456590618192 -0.000179677102625 0)
(-0.000490576157334 -0.000237942108633 0)
(-0.000532932370424 -0.000305805483956 0)
(-0.000579521759498 -0.000370529944241 0)
(-0.000634790123071 -0.000427770726838 0)
(-0.000705592119255 -0.000481388254637 0)
(-0.000806188786455 -0.000538544800203 0)
(-0.000951211746988 -0.000608550330423 0)
(-0.00115378209348 -0.000671827775844 0)
(-0.00137857528389 -0.000672419908628 0)
(-0.00168068445753 -0.000634910359697 0)
(-0.00210600324866 -0.000529276442797 0)
(-0.0025851010475 -0.000225360624996 0)
(-0.0030207143041 0.000409325022702 0)
(-0.00359172125027 0.00160435422106 0)
(0.0030066821764 0.00391097288903 0)
(-0.0763665934979 0.0101817570658 0)
(0.201069422063 0.455954768035 0)
(-0.186152727128 0.517293451718 0)
(0.098218695258 0.454031856737 0)
(-0.0203890036165 0.466888294697 0)
(0.0387363566073 0.466047298877 0)
(0.0229555557621 0.479816513354 0)
(0.0363406147392 0.486926846682 0)
(0.0391028154962 0.493225943236 0)
(0.0444332726547 0.495845751803 0)
(0.0486133939319 0.495936315654 0)
(0.0523987162255 0.493462321102 0)
(0.0558730271091 0.488486931258 0)
(0.0589334182405 0.480786298201 0)
(0.0616219466228 0.469867260279 0)
(0.0637952763551 0.455037239785 0)
(0.0652753368783 0.435497553889 0)
(0.0658347847829 0.410629844213 0)
(0.0653859107666 0.380520438888 0)
(0.0639117728102 0.346759404292 0)
(0.0621737564391 0.313550738617 0)
(0.0670230848325 0.287988099678 0)
(0.0787917389988 0.273331526005 0)
(0.0724098225865 0.251563710011 0)
(0.00831507314277 0.00832778201024 0)
(-0.00193519289735 0.00331878404617 0)
(0.00193154118808 0.00286183895953 0)
(0.00228680693723 0.00261281613504 0)
(0.0022766163872 0.00244060677423 0)
(0.00216473578346 0.00236301930289 0)
(0.00200553960306 0.00233137493698 0)
(0.0017961704536 0.002285182058 0)
(0.00157998596014 0.00226570456676 -2.72179703987e-31)
(0.00136277473613 0.00225287597474 0)
(0.00112507134522 0.00222250363917 0)
(0.000892292826 0.0021950171537 0)
(0.000693479126577 0.00217049750932 0)
(0.000550718884196 0.00223861438329 0)
(0.00041480605324 0.00233762486273 0)
(0.000261020159521 0.0024242729751 0)
(8.00264266296e-05 0.00208698189866 0)
(-1.92804271985e-05 0.000283709498383 0)
(-5.25104061295e-05 0.000336035195063 0)
(-8.22163781877e-05 0.000330972230212 -2.49464014197e-29)
(-7.86743301873e-05 0.000229249888504 0)
(-9.05707396906e-05 0.000226654630478 0)
(-0.000126432248019 0.000261212358285 0)
(-0.000156799655748 0.000239131706645 0)
(-0.000186819045757 0.000212950893178 0)
(-0.000210919548193 0.000192753682819 0)
(-0.000228821559511 0.000176302372023 0)
(-0.000241344384199 0.000159002573347 0)
(-0.000253085376938 0.000142673098187 0)
(-0.000269153747239 0.000128265370358 0)
(-0.000283743404944 0.000111327695294 0)
(-0.000297353200548 9.15719905035e-05 0)
(-0.000309226603389 6.99248811555e-05 0)
(-0.000319083458688 4.72932118844e-05 0)
(-0.000327439471796 2.30730687464e-05 0)
(-0.000335038815671 -4.20342829146e-06 0)
(-0.000342766027547 -3.58612933666e-05 0)
(-0.000350743809258 -7.19820369463e-05 0)
(-0.00035972909303 -0.000112657058447 0)
(-0.000370176897649 -0.000158042435744 0)
(-0.000384503087248 -0.000210561285376 0)
(-0.000402151968442 -0.000272290205284 0)
(-0.000430393590361 -0.000345855163951 0)
(-0.000460698219825 -0.000417197173798 0)
(-0.000505950285298 -0.000492102123312 0)
(-0.000573555992122 -0.000576884393415 0)
(-0.000667429504135 -0.000669851300018 0)
(-0.00080628892254 -0.000779909497141 0)
(-0.00100601404349 -0.00089206855534 0)
(-0.0012752618116 -0.000982384498918 0)
(-0.00168763317897 -0.0010774684534 0)
(-0.00228438544246 -0.00110919138912 0)
(-0.0030785121481 -0.000924371608233 0)
(-0.00406794467738 -0.000315315839687 0)
(-0.00532422943437 0.00110134766978 0)
(-0.00050041082918 0.00427588638839 0)
(-0.0912310260268 0.0162239238134 0)
(0.224595553144 0.447215980538 0)
(-0.203762219206 0.522894083106 0)
(0.0991311030357 0.461683832084 0)
(-0.027090236549 0.474555069852 0)
(0.0394066642532 0.472263858949 0)
(0.02040013495 0.48579032639 0)
(0.035054964826 0.492255972409 0)
(0.0368900507726 0.498118911784 0)
(0.0421582634733 0.50020797268 0)
(0.0459065220448 0.499858025188 0)
(0.0493530739044 0.497000454407 0)
(0.0524763009428 0.491681248365 0)
(0.055238341448 0.48365471052 0)
(0.0577066741091 0.472363339212 0)
(0.0597711564014 0.457063768664 0)
(0.0612871330427 0.436900860039 0)
(0.0620406691747 0.411269418177 0)
(0.0619541867459 0.380395609693 0)
(0.0611153763283 0.346389660189 0)
(0.0609153316772 0.314300444127 0)
(0.0680461709072 0.290478197281 2.52357389812e-30)
(0.076563833094 0.270721941158 0)
(0.0376898423893 0.249840489361 0)
(0.00581816797576 0.00767084626558 0)
(0.00504131774525 0.00383963206303 0)
(0.00335856808831 0.00297101168736 0)
(0.00290669583349 0.00254757854629 0)
(0.00262950401697 0.00229323511381 0)
(0.00242421289978 0.00216458136873 0)
(0.00222364981854 0.00210069664767 0)
(0.00198389976996 0.00206201049419 0)
(0.00173951439005 0.00204153863972 2.7016614011e-31)
(0.00148847011631 0.00201152687761 0)
(0.00123904225332 0.00197756252766 0)
(0.00105269316129 0.00205399035956 3.97106741399e-31)
(0.000841268234968 0.00207631622733 0)
(0.000644619912334 0.0021172185715 0)
(0.000473902419554 0.00218934441705 0)
(0.000280497286869 0.002223271728 0)
(7.33791917787e-05 0.00193054766775 0)
(-9.56799159351e-06 0.000232601601916 0)
(-3.94984886411e-05 0.000282713968948 0)
(-7.82838168409e-05 0.000289164105802 2.75285486644e-29)
(-8.63344986786e-05 0.000247953074583 0)
(-9.48269019703e-05 0.000231524330656 0)
(-0.000122192513286 0.000211617452979 0)
(-0.000153829332679 0.00019126744316 0)
(-0.000176143348784 0.000172378788179 0)
(-0.000188714308594 0.000153550421497 0)
(-0.000208436887317 0.000144628580617 0)
(-0.000225830441589 0.000134289083539 1.28674719785e-29)
(-0.000241518292441 0.000120753526883 0)
(-0.000255331362364 0.000105400965739 0)
(-0.000267225610408 8.87977380844e-05 0)
(-0.000277006502635 7.07903123601e-05 0)
(-0.000284177848676 5.16156664944e-05 0)
(-0.000289093249256 3.11794500849e-05 0)
(-0.00029252779761 8.40777975519e-06 0)
(-0.000295052011907 -1.78655873612e-05 0)
(-0.000297043876351 -4.89558557404e-05 0)
(-0.000298222843069 -8.46337903804e-05 0)
(-0.000298808715075 -0.000125219834335 0)
(-0.000299598768446 -0.000171534128489 0)
(-0.000303380013769 -0.000227438301435 0)
(-0.000309865830668 -0.0002952874803 0)
(-0.000318411763351 -0.000372065879805 0)
(-0.000331508136678 -0.000453564356876 0)
(-0.000355959269047 -0.000543990382856 0)
(-0.000397821475078 -0.000647414535691 3.30084459409e-30)
(-0.000469304022729 -0.000776547549423 0)
(-0.000593233925876 -0.000951462383863 0)
(-0.000778635539047 -0.00114146085575 0)
(-0.00104176784903 -0.00133378734683 0)
(-0.00152412064637 -0.00163804920364 0)
(-0.00225563908547 -0.00192478102152 0)
(-0.00337432646576 -0.00208404792358 0)
(-0.00503150793756 -0.00191018568687 0)
(-0.00765621352808 -0.00100477564813 0)
(-0.00415206949371 0.00174652011766 0)
(-0.135063696025 0.014865074422 0)
(0.258434066787 0.445535578236 0)
(-0.235867134323 0.540358645232 0)
(0.0986747773297 0.473072286251 0)
(-0.0325326851427 0.483747546516 0)
(0.0409636168636 0.478469308243 0)
(0.0181849759663 0.491974243469 0)
(0.0340558147471 0.497384242262 0)
(0.0348803640223 0.502760362771 0)
(0.0400210345091 0.504137164147 0)
(0.0432230358977 0.503292422539 0)
(0.0462183790108 0.499951466453 0)
(0.0488727241339 0.494256047464 0)
(0.0512053089815 0.485851279963 0)
(0.0533368705352 0.474173326422 0)
(0.055204638295 0.458398981416 0)
(0.0567578934286 0.437665741212 0)
(0.0579132528867 0.411421999064 0)
(0.0587011725324 0.380187058645 0)
(0.0593595656813 0.346733925416 0)
(0.0630186100859 0.317724655205 0)
(0.0792546253643 0.299820064748 -2.66510146671e-30)
(0.0913698339763 0.277354935156 0)
(0.077511273819 0.202039894475 0)
(0.00349260895526 0.00143693688681 0)
(0.00356845207696 0.00223422305089 0)
(0.00338890205349 0.00238264471774 0)
(0.00317284133951 0.00227604113268 0)
(0.00295168898322 0.00210332303819 0)
(0.00268352539392 0.00194322890834 0)
(0.00242451383677 0.00184579787369 0)
(0.00216619851379 0.00179808507794 0)
(0.00189989991248 0.0017798758976 0)
(0.00163923556249 0.00177818272591 0)
(0.0013890789019 0.0017699301066 0)
(0.00115723029547 0.00177712993094 -3.8931841086e-31)
(0.00092550181644 0.00178987798269 0)
(0.000709036552217 0.00188141189366 0)
(0.000531690622684 0.00203536870687 0)
(0.000302421828564 0.00194873709995 0)
(8.43456873976e-05 0.00177475986761 0)
(-1.6771555171e-06 0.000211110935399 0)
(-2.13669901123e-05 0.000232382751313 0)
(-5.62217879567e-05 0.000244941512116 -3.13333684118e-29)
(-6.71788135062e-05 0.000213788472388 0)
(-8.36806282238e-05 0.000170452496389 0)
(-0.000112108851333 0.000150540408236 0)
(-0.00013515708957 0.000139135265644 0)
(-0.00016175839849 0.000137042714747 0)
(-0.000182586127016 0.000130126178931 0)
(-0.00020061001301 0.000119652089236 0)
(-0.000216427603199 0.000108375205486 -1.25960183523e-29)
(-0.000229881845885 9.62617279775e-05 0)
(-0.000240600942952 8.36350384768e-05 0)
(-0.00024873751344 6.99540454045e-05 0)
(-0.000254069430316 5.51836876781e-05 0)
(-0.000256570390738 3.9063489494e-05 0)
(-0.000257111129423 2.03721079122e-05 0)
(-0.000256754803741 -1.52871263245e-06 0)
(-0.000256644134443 -2.69904444679e-05 0)
(-0.00025407018674 -5.65293176071e-05 0)
(-0.000249100555841 -9.050196496e-05 -4.89643989341e-29)
(-0.000242001557352 -0.000130049781066 4.59952630438e-29)
(-0.000233624763262 -0.000177213395872 0)
(-0.000224166437273 -0.000233769628764 5.04411201233e-30)
(-0.000213185828556 -0.000300723924177 0)
(-0.000200852880771 -0.000378098921619 0)
(-0.000190167056412 -0.000465244342275 0)
(-0.000185498550841 -0.000565952357033 0)
(-0.0001934221036 -0.000691398634102 -3.24545107954e-30)
(-0.000226009848468 -0.000862062900627 0)
(-0.000295716484071 -0.00107997954686 0)
(-0.000415410964233 -0.00132831823636 0)
(-0.000650763597536 -0.00169907686091 0)
(-0.00109098903246 -0.0022396770617 0)
(-0.0018357214549 -0.00288391380942 0)
(-0.00308991021078 -0.00359975044093 0)
(-0.00514858930627 -0.00426763973058 0)
(-0.00872574036749 -0.00465541855534 0)
(-0.00489348400756 -0.00390434313875 0)
(-0.155883956193 -0.00713834150713 0)
(0.29374793459 0.456315298488 0)
(-0.269579933542 0.566386201608 0)
(0.107107626554 0.486955560703 0)
(-0.0343348256836 0.490082153843 0)
(0.0445872693592 0.484644319623 0)
(0.0164138312771 0.497118907998 0)
(0.0338381299111 0.502164246626 0)
(0.0332834350116 0.506735496929 0)
(0.038298538918 0.507638077995 0)
(0.0407988634587 0.506320383537 0)
(0.0432646393853 0.502749717686 0)
(0.0453343080551 0.49685657994 0)
(0.0471626579953 0.48844093972 0)
(0.0488622709237 0.476798757101 0)
(0.0504425990443 0.461156301682 0)
(0.0519024454517 0.440570305119 0)
(0.0532147195937 0.414572186821 0)
(0.0544630809343 0.383662834938 0)
(0.0557271815403 0.350794669756 0)
(0.0628032606648 0.322904913599 0)
(0.0871873862147 0.31228619638 0)
(0.0808684173437 0.299548940686 0)
(0.0101035348425 0.0100320878058 0)
(-0.00151164092365 0.00383761639634 0)
(0.00268870724946 0.00284185678593 0)
(0.00327033415588 0.00244144112634 0)
(0.00329460267839 0.00211342454815 2.45344817367e-31)
(0.00312664532654 0.00185715551522 0)
(0.00289605062086 0.00168481461365 0)
(0.00263052884932 0.00158352165618 0)
(0.00235606854309 0.0015302374485 0)
(0.00209279675294 0.00152026515739 0)
(0.00182345413549 0.00153370218703 0)
(0.00154804927331 0.00153873596209 0)
(0.00130673995571 0.00157479861009 0)
(0.00106406747544 0.00160268745416 0)
(0.000800313129501 0.00162970177524 0)
(0.000628923318942 0.00188293378531 0)
(0.000348172917635 0.00168313981935 0)
(0.000125104530347 0.00159736687827 0)
(2.3775501567e-07 0.00019396983966 0)
(-1.48246617984e-05 0.000185624551078 0)
(-4.42790248736e-05 0.000202039275447 3.42412606653e-29)
(-6.39342299082e-05 0.0001820090454 0)
(-8.04777408773e-05 0.000121619113066 0)
(-0.000110455804895 0.000115109366086 0)
(-0.000135137802309 0.000112928819554 0)
(-0.000156332459357 0.00010698667321 0)
(-0.000175647916121 9.94266202212e-05 0)
(-0.000192009720201 9.20250132702e-05 0)
(-0.000205592447405 8.40177832994e-05 0)
(-0.000216381352229 7.55530982973e-05 0)
(-0.00022430384621 6.59708438661e-05 0)
(-0.000229493305368 5.56514839145e-05 0)
(-0.00023150552312 4.3512454515e-05 0)
(-0.000232196205394 2.92441536587e-05 0)
(-0.000233227080813 1.1371683879e-05 0)
(-0.000231565741378 -9.32526500243e-06 5.81393260218e-29)
(-0.000226842259871 -3.28281879787e-05 -5.49418145593e-29)
(-0.000218451140552 -5.89881105265e-05 0)
(-0.000206239770779 -8.97617529012e-05 0)
(-0.000190211325552 -0.000126107623667 4.58196253519e-29)
(-0.000170502752869 -0.000170400465406 -4.30624016743e-29)
(-0.000146662624005 -0.00022325481288 -5.03232801004e-30)
(-0.000117550342621 -0.000286347831137 0)
(-8.28428838701e-05 -0.000361160869908 0)
(-4.4509555098e-05 -0.000449494106482 0)
(-5.22051656264e-06 -0.000554543607621 0)
(3.18440036812e-05 -0.000693247015539 0)
(6.21001880505e-05 -0.000883773268306 0)
(7.4230403812e-05 -0.00113423632107 0)
(4.73366594776e-05 -0.00145490153279 0)
(-6.3880863647e-05 -0.00197494732739 0)
(-0.000336926304847 -0.00274164435371 0)
(-0.000893598187356 -0.00378611385489 0)
(-0.00199011752588 -0.0051869305111 0)
(-0.00402945676991 -0.00698919893572 0)
(-0.00850829993965 -0.00911301708338 0)
(-0.00416368735581 -0.0102607714995 0)
(-0.16960999699 -0.0239064089383 0)
(0.324780669118 0.502425802971 0)
(-0.309832870194 0.609197327759 0)
(0.125406055092 0.496549370555 -5.94231876516e-30)
(-0.0325823446054 0.502828317796 0)
(0.0472512920816 0.490221738643 0)
(0.0152775208918 0.504835217865 0)
(0.0335511590569 0.506791854552 0)
(0.0319998074161 0.511097448773 0)
(0.0364990618825 0.510580571339 0)
(0.0381780262592 0.508622053768 0)
(0.0398563340319 0.504124396615 0)
(0.0411231874929 0.497665214021 0)
(0.0420876360613 0.488520224731 0)
(0.0430155267463 0.476273353924 0)
(0.0439427151757 0.459910044089 0)
(0.0450856776789 0.43868708268 0)
(0.0468642011699 0.412228931278 0)
(0.0501367732155 0.3821607426 0)
(0.0561076179868 0.353023509429 0)
(0.0668975741907 0.333479307713 0)
(0.0824188568065 0.322489350139 0)
(0.0377135257636 0.295318160648 0)
(0.008283832496 0.00963778130477 0)
(0.00658828745412 0.00434693223196 0)
(0.0044878555749 0.00296825153075 0)
(0.00398559939448 0.00232298987116 0)
(0.00367530760816 0.00192017809337 -2.28447157299e-31)
(0.00337420282251 0.00161550524103 0)
(0.00310731262912 0.00142032235222 1.30605983456e-31)
(0.00283084013853 0.00130992393391 0)
(0.00253778377865 0.00125421739991 0)
(0.00224561263751 0.00123242871892 0)
(0.00199359018495 0.00126145838996 0)
(0.00170274767503 0.00127937288509 0)
(0.00146797955201 0.00132942117185 0)
(0.00121206142739 0.00136581244625 0)
(0.000921544724445 0.00138629066071 0)
(0.000737764073618 0.00159978039198 0)
(0.000435834435314 0.00149518642736 0)
(0.000150554425629 0.00133669092697 0)
(-3.54429729339e-06 0.000156185506021 0)
(-8.33716458952e-06 0.000122265687741 0)
(-2.88236693199e-05 0.00015273061292 -3.66158855032e-29)
(-7.01879460768e-05 0.000146926988995 0)
(-7.9619758429e-05 8.49281710506e-05 0)
(-0.000110234997586 8.25572119871e-05 0)
(-0.000130052241925 7.86103243369e-05 0)
(-0.000149434610224 7.5561866574e-05 0)
(-0.000166421736893 7.18923299405e-05 0)
(-0.000180931914153 6.77089982625e-05 0)
(-0.000193083567169 6.29601055759e-05 0)
(-0.000202694379296 5.7427076559e-05 0)
(-0.000209856583763 5.12345068075e-05 0)
(-0.000213855731588 4.34390915519e-05 0)
(-0.000215929033229 3.33518943559e-05 0)
(-0.000216953438503 1.98506594143e-05 0)
(-0.000215003498299 3.51952485642e-06 0)
(-0.000209777235339 -1.40895523777e-05 0)
(-0.000200576081743 -3.30183538248e-05 0)
(-0.000186814297571 -5.48063506588e-05 0)
(-0.000168135909777 -8.06201241797e-05 0)
(-0.000143711539636 -0.000112027271605 0)
(-0.000113194508859 -0.000150587644386 0)
(-7.57052057851e-05 -0.000196711598235 0)
(-2.90691585957e-05 -0.000251642141467 0)
(2.8451923957e-05 -0.000319129932226 0)
(9.62345189851e-05 -0.000400880966361 0)
(0.000173148673549 -0.000500601431101 0)
(0.000263671112164 -0.000635634021866 0)
(0.000369539290129 -0.000825959991113 0)
(0.000483419611158 -0.00108438655011 0)
(0.000584205425642 -0.00143358693727 0)
(0.000684654597625 -0.00204868360284 0)
(0.000723087128078 -0.00297263454498 0)
(0.00060944962978 -0.00434415914811 0)
(0.000111528595982 -0.00642149138746 0)
(-0.00124088820729 -0.00964545724716 2.69004702868e-30)
(-0.00564183832839 -0.014669344233 0)
(-0.00286399884415 -0.0252002093988 0)
(-0.173005215957 -0.0396231330225 0)
(0.324421936908 0.494722628904 0)
(-0.313367494845 0.607783177666 0)
(0.162771403143 0.503703594013 5.95117052834e-30)
(-0.0310678210106 0.491652123785 0)
(0.0558274925456 0.497554964737 0)
(0.0141192056165 0.503835443441 0)
(0.0362535633345 0.509904279748 0)
(0.0315679903459 0.511618022153 0)
(0.0362721303018 0.512146805551 0)
(0.0367362338546 0.509754026963 0)
(0.0377564034004 0.506125324428 0)
(0.0381350706152 0.50003686294 0)
(0.0384425954509 0.492206473873 0)
(0.0386482236755 0.481324441615 0)
(0.0389879518184 0.467152098084 0)
(0.0395919117076 0.448544493323 0)
(0.0404497111344 0.425766414716 0)
(0.0418465611938 0.39904136617 0)
(0.0447432625203 0.37185413848 0)
(0.0659478656427 0.341212012589 0)
(0.112069213251 0.31042997204 0)
(0.0893917093035 0.265677377522 0)
(0.00480378186169 0.00107795122191 0)
(0.00515441018204 0.00229917841195 0)
(0.00468495023659 0.00224305513821 0)
(0.00430578134448 0.00192681907939 0)
(0.00394267264501 0.00158935452629 0)
(0.00360598364542 0.00131386961972 0)
(0.00327693030595 0.00111193094596 -1.24038621553e-31)
(0.00296970662787 0.00100157783528 0)
(0.00267706299861 0.000961282168302 0)
(0.00237331553449 0.0009520290587 -6.14196939851e-32)
(0.00216127655862 0.000999598314062 0)
(0.00191191877113 0.00104552560318 0)
(0.0016115925711 0.00105965137218 0)
(0.00139073293142 0.00112525488203 0)
(0.00113948808457 0.00122681260472 0)
(0.000891407127696 0.00141649124054 0)
(0.000424662204258 0.00119592368216 0)
(0.000107301146386 0.000952971965352 0)
(-7.31156784665e-06 0.000141568257954 0)
(-1.62583149408e-05 0.000121186327528 0)
(-3.80343982764e-05 0.000108486110131 4.09843939003e-29)
(-6.74927717947e-05 8.63587759571e-05 0)
(-7.61893780219e-05 5.46019194311e-05 0)
(-0.000101533247287 5.07361368488e-05 0)
(-0.000119645839633 4.88675790093e-05 0)
(-0.000137201648114 4.84342512546e-05 0)
(-0.000152125256228 4.73209704147e-05 0)
(-0.00016557951558 4.52454584109e-05 0)
(-0.000177558709031 4.2543269827e-05 0)
(-0.000188258603035 3.91997569109e-05 0)
(-0.000196336120563 3.55326257331e-05 0)
(-0.000202636509651 3.02702844597e-05 0)
(-0.000204851239152 2.28516493195e-05 0)
(-0.000203690915907 1.18351852658e-05 0)
(-0.000199455751013 -1.05994034993e-06 0)
(-0.000191630837039 -1.44780123863e-05 0)
(-0.000178976528992 -2.83362357829e-05 0)
(-0.000161203837418 -4.50582328726e-05 0)
(-0.000137189368825 -6.4241088979e-05 0)
(-0.00010578883645 -8.81858052272e-05 0)
(-6.62696761614e-05 -0.000118937909306 0)
(-1.68292893549e-05 -0.000155979142031 0)
(4.5747003985e-05 -0.000198643780152 0)
(0.000124847627263 -0.000252896428074 0)
(0.000222729095916 -0.000321990016025 0)
(0.000337522460489 -0.000404551536274 0)
(0.000472810667978 -0.000509896840824 0)
(0.000657289352019 -0.000677409983092 0)
(0.000879388990866 -0.000907059138917 0)
(0.00112697217288 -0.0012343410844 0)
(0.0014968212536 -0.00182602260131 0)
(0.00196116049404 -0.00273878851697 0)
(0.00255995589908 -0.00417263131345 0)
(0.00332278914843 -0.00649516528828 0)
(0.00420075710556 -0.0103346472559 -2.70445909966e-30)
(0.00615337016526 -0.0167803449754 0)
(0.00234342098681 -0.0231231747836 0)
(-0.170059393995 -0.0356278453035 0)
(0.330019808944 0.63926408932 0)
(-0.375035489509 0.661105833135 0)
(0.189585819162 0.45626362135 0)
(-0.0302546010941 0.544758996895 0)
(0.0482469393372 0.489598848913 0)
(0.0168727653015 0.527415545902 0)
(0.0340576508961 0.512679662077 0)
(0.031384742298 0.521290339149 0)
(0.0333907424026 0.51482486622 0)
(0.0332065730104 0.512120791801 0)
(0.0326078656879 0.504389394342 0)
(0.0316724233451 0.496557666291 0)
(0.0299843651234 0.484776008786 0)
(0.0283246317188 0.470776193758 0)
(0.0265025235051 0.45205359757 0)
(0.0251304670392 0.429172369134 0)
(0.0260062428544 0.401305024704 0)
(0.0324893063226 0.373885771753 0)
(0.0592307645521 0.35596166781 0)
(0.116998551998 0.385754782742 0)
(0.0901269564172 0.436582029359 0)
(0.0183569777631 0.0191693903117 0)
(-0.00103533464973 0.00526594801852 0)
(0.00480644445173 0.00295566999338 0)
(0.00489086750654 0.00205269148731 0)
(0.00456772284358 0.00155652517867 0)
(0.00418950859025 0.00121349252235 0)
(0.003787619459 0.000963105272724 0)
(0.00345943134637 0.000792637550623 0)
(0.00316894043887 0.000690935939568 0)
(0.00280860282139 0.00066858667931 0)
(0.00255544419491 0.000724440390662 6.31273708125e-32)
(0.00235132503886 0.000775858827954 0)
(0.00210278612133 0.000797417549272 0)
(0.00180534678794 0.000826854334424 0)
(0.00148321897866 0.000848863976591 0)
(0.00114050219542 0.000859203142728 0)
(0.000766171910823 0.000861698993861 0)
(0.000332719873849 0.000736058649122 0)
(9.23507617606e-05 0.000773722204055 0)
(-7.0752043183e-06 7.78447157104e-05 0)
(-3.89429161723e-05 6.51545677262e-05 0)
(-5.13053063458e-05 5.58893583714e-05 3.35489085378e-29)
(-9.23957747768e-05 6.98838726218e-05 0)
(-7.22471869338e-05 3.20051647602e-05 0)
(-9.1954329276e-05 2.14713372014e-05 0)
(-0.000107562606221 1.96473241712e-05 0)
(-0.000124365684491 2.28600745725e-05 0)
(-0.000137839658878 2.27175039033e-05 0)
(-0.00015342951568 2.19703810289e-05 0)
(-0.000167367985331 2.06930277064e-05 0)
(-0.000179442504044 2.00016072671e-05 0)
(-0.000188446481342 1.93827254211e-05 0)
(-0.000193455173857 1.83172118387e-05 0)
(-0.000193691344691 1.51061198336e-05 0)
(-0.000191290966213 7.50109781792e-06 0)
(-0.00018549859683 -3.47634005398e-06 0)
(-0.000176993347882 -1.27700392063e-05 0)
(-0.00016429920213 -2.12206618548e-05 0)
(-0.000144533780922 -3.11201905071e-05 0)
(-0.000117422693049 -4.316978555e-05 0)
(-8.16274567116e-05 -5.91572202826e-05 0)
(-3.34425587155e-05 -8.10737454705e-05 0)
(2.77383901596e-05 -0.000103415786506 0)
(0.000101429241818 -0.000128268741674 0)
(0.000196671572192 -0.000162957951981 0)
(0.000319369933277 -0.000209772867525 0)
(0.000470391190634 -0.000267008652233 0)
(0.000651666548998 -0.000339826704562 0)
(0.000882198900865 -0.000445149593632 0)
(0.00119465313695 -0.000606139821965 0)
(0.00158280540151 -0.000843466572424 0)
(0.00219599881158 -0.00127593102254 0)
(0.00307006614022 -0.0019631771412 0)
(0.00436687483021 -0.00309532737056 0)
(0.00627702181459 -0.00500682931969 0)
(0.00876831311557 -0.00858956278254 0)
(0.00762807316787 -0.0123199899108 0)
(0.0583578265606 -0.153797899042 0)
(-0.190538675044 -0.108401524467 0)
(0.269482905661 0.432787615573 0)
(-0.197456704995 0.486856637716 0)
(0.229949800166 0.512246187397 0)
(-0.071828635568 0.465355147137 0)
(0.0878774055549 0.500344235125 0)
(0.00361918359456 0.495412024 0)
(0.0506314455773 0.504469369336 0)
(0.0302388096079 0.505042949594 0)
(0.0399278193097 0.506759577303 0)
(0.0354935543059 0.506095384465 0)
(0.0356758939374 0.505630363303 0)
(0.0336278737217 0.502412771696 0)
(0.0325195192925 0.499824704792 0)
(0.0305777437021 0.49493188738 0)
(0.0290353114007 0.489397351575 0)
(0.0277334724743 0.481695539 0)
(0.0250387279619 0.475259964477 0)
(0.0199684683255 0.469999222504 0)
(-0.0116239196079 0.462976847682 0)
(-0.0278576433369 0.380209000405 0)
(0.0467809346537 0.171297375589 0)
(0.0247365090158 0.00434281575373 0)
(0.0154089147787 0.00241473751215 0)
(0.00838499511628 0.0016396527393 0)
(0.00612883858152 0.00124055868324 0)
(0.00499375774132 0.000962859247259 0)
(0.00442196739306 0.000753280308004 0)
(0.00398839613938 0.000596739660881 0)
(0.00361277789468 0.00045993632393 0)
(0.00327522597227 0.000342088048164 0)
(0.00300320419577 0.000369681966876 0)
(0.00265884472367 0.000461569405162 0)
(0.0023555263763 0.000494460121418 0)
(0.00208133127544 0.000484531758207 0)
(0.00177310144673 0.000481018169276 0)
(0.0014259809477 0.000488138925021 0)
(0.0010992221384 0.000504650015374 0)
(0.000784097757153 0.000523808934889 0)
(0.000425365501953 0.000481858358451 0)
(0.000170052521627 0.000605685221645 0)
(-2.12644531295e-05 2.46138033364e-05 0)
(-3.3961359711e-05 1.00222680692e-05 0)
(-6.52640884862e-05 2.03566073126e-05 -3.29457912551e-29)
(-0.000104443765413 2.71784817778e-05 0)
(-0.000139814603146 2.43139259256e-05 0)
(-0.000152611046494 5.90229795466e-06 0)
(-0.000145240438869 3.17502024629e-06 0)
(-0.000159514513921 6.23041225456e-06 0)
(-0.000167116045348 5.73202571396e-06 0)
(-0.000174365517278 4.65308489363e-06 0)
(-0.00018032616854 3.96301759807e-06 0)
(-0.000185668115493 4.27974522415e-06 0)
(-0.000191818198106 5.04690906885e-06 0)
(-0.000198579577604 6.14783572801e-06 0)
(-0.000204780079721 5.84416842464e-06 0)
(-0.000209764240354 2.38503393055e-06 0)
(-0.000203375835688 -3.83523162453e-06 0)
(-0.000187282529878 -7.89276614907e-06 0)
(-0.000168338873142 -1.04449782642e-05 0)
(-0.000143562023334 -1.33107041056e-05 0)
(-0.000111476658521 -1.74694101598e-05 0)
(-7.03477465372e-05 -2.26187357451e-05 0)
(-1.61800231491e-05 -2.87134442106e-05 0)
(5.14612140308e-05 -3.563780223e-05 0)
(0.000131720244996 -4.405225182e-05 0)
(0.000233646043151 -5.54741548454e-05 0)
(0.000368076341024 -7.15509473034e-05 0)
(0.000537551348382 -9.11664192017e-05 0)
(0.000742421522801 -0.000116231317969 0)
(0.00100682567632 -0.000153820912307 0)
(0.00137961165888 -0.000211976829558 0)
(0.00184691269888 -0.000296927419311 0)
(0.00261636211263 -0.000454536578259 0)
(0.00377405664138 -0.000714000553723 0)
(0.00559191854641 -0.00115567128737 0)
(0.00879635662439 -0.00193750692432 0)
(0.0100533790118 -0.00373622712419 0)
(0.0289839326056 -0.00857753747863 0)
(0.0808439521569 -0.00737321624327 0)
(-0.219361848944 -0.0998468624394 0)
(1.44316616517 1.21585241975 0)
(-2.41682665941 0.635937497805 0)
(2.29946322204 0.0712742213862 0)
(-1.68282533338 0.892192567237 0)
(0.98309905808 0.305535468212 0)
(-0.606365841606 0.678027274737 0)
(0.228608315556 0.472877166667 0)
(-0.221771039252 0.576781329718 0)
(-0.0350672555011 0.514606086944 0)
(-0.137094292333 0.529449835622 0)
(-0.114199364827 0.501603230764 0)
(-0.119754502016 0.493221359116 0)
(-0.123905781442 0.465644392026 0)
(-0.0842291530456 0.443367226147 0)
(-0.08421104229 0.407704226275 0)
(0.00258730582899 0.369762854615 0)
(0.0214454433887 0.316291653424 0)
(0.183602623217 0.266547762831 0)
(0.20594847306 0.214461793908 0)
(0.562575772711 0.415190913341 0)
(0.0914247628572 0.967729753241 0)
(0.0169934840556 0.01104490446 0)
(0.00160056742073 -0.0020184049471 0)
(0.00596407480032 -0.000320273085007 0)
(0.00556487995395 0.000182151047277 0)
(0.00496078769793 0.000264931673182 0)
(0.00440651159544 0.000233496486303 0)
(0.00403085712838 0.000186361909301 0)
(0.00361380882338 0.000128306487266 0)
(0.00338611822777 7.34611652356e-05 0)
(0.00337826076306 9.43658216668e-05 0)
(0.0030552280315 0.000159216135485 0)
(0.00264214042176 0.00018260827696 0)
(0.00230720361801 0.000173394671095 0)
(0.00198846605656 0.000169504248155 0)
(0.00164467957426 0.000180672472064 0)
(0.0012843665905 0.000194284734805 0)
(0.000924854391324 0.000193408279418 0)
(0.000522626733367 0.000162094784174 0)
(0.000265272225956 0.000235216677987 0)
)
;
boundaryField
{
frontAndBack
{
type empty;
}
upperWall
{
type noSlip;
}
lowerWall
{
type noSlip;
}
inlet
{
type fixedValue;
value uniform (0 0.5 0);
}
outlet
{
type adjointOutletVelocityPower;
value nonuniform List<vector>
20
(
(0.207814638896 -0.286489383319 0)
(0.415449359819 -0.2305860459 0)
(0.506341565289 -0.16404100037 0)
(0.557323466809 -0.104045760687 0)
(0.586382738723 -0.0501532883774 0)
(0.599546895873 0.00232374139834 0)
(0.600648229027 0.0459246126488 0)
(0.59542407441 0.0831675417418 0)
(0.586348988808 0.115519293054 0)
(0.57453989518 0.143838674553 0)
(0.560476189869 0.168619744234 0)
(0.544384841626 0.190191323676 0)
(0.526342314579 0.208739845491 0)
(0.506321814605 0.22436165828 0)
(0.484204354317 0.237074155576 0)
(0.459713030884 0.24676918079 0)
(0.432463896702 0.253168056933 0)
(0.402231595343 0.256399137864 0)
(0.370913753221 0.257517030669 0)
(0.30096146297 0.248627668333 0)
)
;
}
}
// ************************************************************************* //
| |
a9fe98c7ee88c1e1e0b99f0c48cdc902457a8762 | a51f2693e411771dc089fe2fffe5656c92166f6b | /gui/actions/datenpopup.cpp | 89700073e751a72f2f7f559021f00dbccc0913ca | [] | no_license | mdirks/stundenplaner | d4921b70772aee85f0ce84e9b8cbf1ca2f8620f1 | ef8bd04d15941672669ee9732817e2cbe0d112f9 | refs/heads/master | 2021-09-11T14:36:57.387004 | 2021-09-05T12:49:56 | 2021-09-05T12:49:56 | 82,451,937 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,212 | cpp | datenpopup.cpp | /***************************************************************************
* Copyright (C) 2008 by Marcus Dirks *
* m-dirks@web.de *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#include "datenpopup.h"
#include "orm/repository/repository.h"
#include "orm/mapping/mappingcontroler.h"
#include "gui/forms/pobjectdialog.h"
#include "gui/guirepository.h"
#include "gui/forms/teilleistungeditor.h"
#include "orm/transactions/transactions.h"
#include "gui/forms/stundenbewertungeneditor.h"
#include <qmessagebox.h>
DatenPopup::DatenPopup(PObject *o, QWidget *parent)
: QMenu(parent)
{
setTitle("Daten");
RepositoryEntry *re = Repository::getInstance() ->getRepositoryEntry( o );
if(re){
list<RepositoryProperty*> *list_rp = re->getAllProperties( true );
for(list<RepositoryProperty*>::iterator it = list_rp->begin(); it != list_rp->end(); it++){
RepositoryProperty *rp = *it;
if(rp->isCollection()){
QAction *ac = new ShowCollectionAction(o,rp,this);
addAction(ac);
} else if(rp->isPObject()){
QAction *ac = new ShowObjectAction(o,rp,this);
addAction(ac);
} else {
QAction *ac = new ShowPropertyAction(o,rp,this);
addAction(ac);
}
}
}
}
ShowCollectionAction::ShowCollectionAction(PObject *o, RepositoryProperty *rp, QObject *parent)
: QAction(rp->getName().c_str(), parent)
{
this->o=o;
this->rp = rp;
connect(this, SIGNAL(triggered(bool)) , this, SLOT( showCollection() ) );
}
ShowCollectionAction::~ShowCollectionAction(){}
void ShowCollectionAction::showCollection()
{
//QMessageBox::about(GuiRepository::getInstance()->getMainFrame(), QString("ShowCollection"),QString("ShowCollectionAction::showCollection()"));
list<PObject*> *list_objects = 0;
if(list_objects = rp->asCollection(o)){
PObjectDialog::choosePObject(list_objects);
}
}
ShowObjectAction::ShowObjectAction(PObject *o, RepositoryProperty *rp, QObject *parent)
: QAction(rp->getName().c_str(),parent)
{
this->o=o;
this->rp = rp;
connect(this, SIGNAL(triggered(bool)) , this, SLOT( showObject() ) );
}
ShowObjectAction::~ShowObjectAction(){}
void ShowObjectAction::showObject()
{
//QMessageBox::about(GuiRepository::getInstance()->getMainFrame(), QString("ShowObject"),QString("ShowObjectAction::showCollection()"));
PObject *po;
if(po = rp->asPObject(o)){
if(po){
GuiRepository::getInstance()->showFormForObject(po);
//GuiRepository::getInstance()->showDialogForObject(po);
} else {
QMessageBox::information(GuiRepository::getInstance()->getMainFrame(),"Kein Objekt","Kein Objekt","OK");
}
} else {
string className = rp->getType();
po = PObjectDialog::choosePObject(MappingControler::getInstance()->getMapperByName( className ) );
Transactions::getCurrentTransaction()->add(o);
rp->set(po,o);
}
}
ShowPropertyAction::ShowPropertyAction(PObject *o, RepositoryProperty *rp, QObject *parent)
: QAction(rp->getName().c_str(), parent)
{
this->o=o;
this->rp = rp;
connect(this, SIGNAL(triggered(bool)), this, SLOT( showProperty() ) );
}
ShowPropertyAction::~ShowPropertyAction(){}
void ShowPropertyAction::showProperty()
{
//QMessageBox::about(GuiRepository::getInstance()->getMainFrame(), QString("ShowObject"),QString("ShowObjectAction::showCollection()"));
GuiRepository::getInstance()->showEditorForProperty(o,rp);
}
ShowTeilleistungenAction::ShowTeilleistungenAction(klasse *kl)
: QAction("Teilleistungen", 0)
{
this->kl = kl;
connect(this,SIGNAL(triggered(bool)),this,SLOT(showTeilleistungen()));
}
void ShowTeilleistungenAction::showTeilleistungen()
{
TeilleistungEditorDialog::edit(kl);
}
EditBewertungenAction::EditBewertungenAction(stundenplaneintrag *se)
: QAction("Bewertungen", 0)
{
this->se=se;
connect(this,SIGNAL(triggered(bool)),this,SLOT(editBewertungen()));
}
void EditBewertungenAction::editBewertungen()
{
StundenbewertungenEditorDialog::edit(se);
}
DatenPopup::~DatenPopup()
{
}
|
47225f046d051a4cae82976260f17fc207441911 | f11cba7f9546c9842e2e6feee6ab4420b96131ee | /src/labels/ndatetimelabel.h | 81868a4d0fe9ff1e82d7f2263ec8c593c79ef0b0 | [] | no_license | neuros/lib-widgets | 3e6efb069e0eb0b4fe63263044fe54a859d55708 | d38299b9d512343e7aacce95deae6d2cc52696f2 | refs/heads/master | 2016-09-03T07:14:08.509484 | 2008-09-11T08:32:09 | 2008-09-11T08:32:09 | 51,813 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,479 | h | ndatetimelabel.h | #ifndef _NDATETIMELABEL_H_
#define _NDATETIMELABEL_H_
/*
* Copyright(C) 2007 Neuros Technology International LLC.
* <www.neurostechnology.com>
*
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 2 of the License.
*
*
* This program is distributed in the hope that, in addition to its
* original purpose to support Neuros hardware, it will be useful
* otherwise, but WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
****************************************************************************
*
* NDateTimeLabel header
*
* REVISION:
*
* 1) Initial creation. ----------------------------------- 2008-07-08 WX
*
*/
#include <QLabel>
#include <QColor>
#include <QTimer>
#include <QDateTime>
class NDateTimeLabelPrivate;
#if defined(DESIGNER)
#include <QtDesigner/QDesignerExportWidget>
class QDESIGNER_WIDGET_EXPORT NDateTimeLabel : public QLabel
#else
class NDateTimeLabel : public QLabel
#endif
{
Q_OBJECT
Q_ENUMS(DisplayRole)
Q_PROPERTY(DisplayRole role READ displayRole WRITE setDisplayRole)
Q_PROPERTY(int refreshInterval READ refreshInterval WRITE setRefreshInterval)
Q_PROPERTY(Qt::DateFormat dateTimeFormat READ format WRITE setFormat)
public:
enum DisplayRole
{
DateAndTime = 0,
TimeOnly,
DateOnly
};
explicit NDateTimeLabel(QWidget *parent = NULL, Qt::WindowFlags f = 0);
~NDateTimeLabel();
void refresh();
void setRefreshInterval(int msec);
int refreshInterval() const;
void setFormat(Qt::DateFormat format);
Qt::DateFormat format() const;
void setDisplayRole(DisplayRole r);
DisplayRole displayRole() const;
Q_SIGNALS:
void datetimeUpdated(const QDateTime ¤t);
public Q_SLOTS:
void start();
void stop();
private Q_SLOTS:
void OnRefreshTimerOut();
protected:
void resizeEvent(QResizeEvent *event);
void paintEvent(QPaintEvent *event);
private:
NDateTimeLabelPrivate *d;
};
#endif // _NDATETIMELABEL_H_
|
6a8ae25f25ad4df9bed142b223575ac950192b7a | c9986c5f791a362dc10d966b4174b1c44a20c017 | /DAY6/projection_area.cpp | 70a29204165257b86a943b5a9c045123c9de53ea | [] | no_license | viditrastogi11/DSA | 4ee574f4baec20ce28b87204931d64ed3a5dfbfe | b2f8ea5ac577852c16b66e004de66ec7095721b9 | refs/heads/main | 2023-08-12T01:02:47.432896 | 2021-10-08T09:12:38 | 2021-10-08T09:12:38 | 381,125,553 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 629 | cpp | projection_area.cpp | //https://leetcode.com/problems/projection-area-of-3d-shapes/submissions/
class Solution {
public:
int projectionArea(vector<vector<int>>& grid) {
int n=grid.size();
int sum=0;
int zero=0;
for(int j=0;j<n;j++)
{
int maxe=INT_MIN;
sum=sum+*max_element(grid[j].begin(),grid[j].end());
for(int i=0;i<n;i++)
{
if(grid[i][j]==0)
{
zero++;
}
maxe=max(grid[i][j],maxe);
}
sum=maxe+sum;
}
return sum+(n*n)-zero;
}
};
|
f328c3795632e003b2fe3394df21284251d28f5c | 28e021c89f21899eca8ee39fd2621b8b3aac1a19 | /Items/EquippableItem.h | c3deea95c9374ae1fd82207c840b393bb7b66caf | [] | no_license | FieryElectron/Survival-Game | 8c2ca3e65e5a51c7c37a302f16b8ef4d6d84f3a5 | 8a7df08973b9508954ea8322f42088e13b45196d | refs/heads/master | 2023-06-24T14:50:39.463805 | 2021-07-28T19:44:32 | 2021-07-28T19:44:32 | 390,480,940 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,922 | h | EquippableItem.h | #pragma once
#include "CoreMinimal.h"
#include "Items/Item.h"
#include "EquippableItem.generated.h"
UENUM(BlueprintType)
enum class EEquippableSlot : uint8 {
EIS_None UMETA(DisplayName = "None"),
EIS_Face UMETA(DisplayName = "Face"),
EIS_Eyes UMETA(DisplayName = "Eyes"),
EIS_Head UMETA(DisplayName = "Head"),
EIS_ChestArmor UMETA(DisplayName = "ChestArmor"),
EIS_Chest UMETA(DisplayName = "Chest"),
EIS_Back UMETA(DisplayName = "Back"),
EIS_Belt UMETA(DisplayName = "Belt"),
EIS_Hands UMETA(DisplayName = "Hands"),
EIS_Legs UMETA(DisplayName = "Legs"),
EIS_Feet UMETA(DisplayName = "Feet"),
EIS_Weapon UMETA(DisplayName = "Weapon"),
EIS_PrimaryWeapon UMETA(DisplayName = "PrimaryWeapon"),
EIS_SecondaryWeapon UMETA(DisplayName = "SecondaryWeapon"),
EIS_TertiaryWeapon UMETA(DisplayName = "TertiaryWeapon"),
EIS_Item1 UMETA(DisplayName = "Item1"),
EIS_Item2 UMETA(DisplayName = "Item2"),
EIS_Throwable UMETA(DisplayName = "Throwable"),
EIS_Equipments UMETA(DisplayName = "Equipments")
};
UCLASS(Abstract, NotBlueprintable)
class SURVIVALGAME_API UEquippableItem : public UItem
{
GENERATED_BODY()
private:
UPROPERTY(Replicated, EditDefaultsOnly)
EEquippableSlot Slot;
protected:
virtual void GetLifetimeReplicatedProps(TArray<class FLifetimeProperty>& OutLifetimeProps) const override;
public:
UEquippableItem();
//-- Gets --
UFUNCTION(BlueprintCallable, Category = "EquippableItem")
FORCEINLINE EEquippableSlot GetSlot() const { return Slot; }
//-- Sets --
UFUNCTION(BlueprintCallable, Category = "EquippableItem")
void SetSlot(EEquippableSlot NewSlot) { Slot = NewSlot; }
virtual void Use(class ASurvivalCharacter* Character) override;
UFUNCTION(BlueprintCallable, Category = "EquippableItem")
virtual bool Equip(class ASurvivalCharacter* Character);
UFUNCTION(BlueprintCallable, Category = "EquippableItem")
virtual bool UnEquip(class ASurvivalCharacter* Character);
virtual bool Pre_AddItemQuantityToInventory(UInventoryComponent* DestinationInventory, int32 ExpectAddQuantity) override;
virtual bool Post_AddItemQuantityToInventory(UInventoryComponent* DestinationInventory, int32 ExpectAddQuantity) override;
virtual bool Pre_EquipToEquipmentComponent(UEquipmentComponent* EquipmentComponent, EEquippableSlot TargetSlot);
virtual bool Post_EquipToEquipmentComponent(UEquipmentComponent* EquipmentComponent);
virtual bool Pre_UnEquipFromEquipmentComponent(UEquipmentComponent* EquipmentComponent);
virtual bool Post_UnEquipFromEquipmentComponent(UEquipmentComponent* EquipmentComponent);
virtual bool Pre_DropFromEquipmentComponent(UEquipmentComponent* EquipmentComponent);
virtual bool Post_DropFromEquipmentComponent(UEquipmentComponent* EquipmentComponent);
void PreProcessWeaponItem(UEquipmentComponent* EquipmentComponent);
};
|
57751660138802dd2ecf559084301aa343e57ef6 | 64b3490d2725fdd5aa9a485803a619195d4aa7af | /Dialoge/dialog_fraeser.h | 0b5b56fea5567f764283de1b10eed8de78cdbc75 | [] | no_license | 15831944/postprozessor | 48019cd2ab8566dc99d4188ed476d6a4506fe0ce | 0e61ed4491cc3f59a12748a9a4186a9619b42c59 | refs/heads/master | 2022-11-07T04:22:47.605604 | 2020-04-13T12:00:49 | 2020-04-13T12:00:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 691 | h | dialog_fraeser.h | #ifndef DIALOG_FRAESER_H
#define DIALOG_FRAESER_H
#include <QDialog>
#include "Klassen/text_zeilenweise.h"
#include "Defines/werkzeug.h"
namespace Ui {
class Dialog_fraeser;
}
class Dialog_fraeser : public QDialog
{
Q_OBJECT
public:
explicit Dialog_fraeser(QWidget *parent = 0);
~Dialog_fraeser();
private:
Ui::Dialog_fraeser *ui;
void clear();
void setup();
bool wkz_ist_neu;
public slots:
void getData(text_zeilenweise msg);
void neuerFraeser();
signals:
void sendData(text_zeilenweise wkz, bool ist_neues_wkz);
private slots:
void on_pushButton_abbrechen_clicked();
void on_pushButton_ok_clicked();
};
#endif // DIALOG_FRAESER_H
|
6f08f2063136d4e73701b36a787af4674f5cd0a0 | a85a1e6c776e0433c30aa5830aa353a82f4c8833 | /multiplayer/multiplayer_download.h | 6c0e71856fc42c0bf07bc1ce6d2b7a07a6b66c23 | [] | no_license | IceCube-22/darkreign2 | fe97ccb194b9eacf849d97b2657e7bd1c52d2916 | 9ce9da5f21604310a997f0c41e9cd383f5e292c3 | refs/heads/master | 2023-03-20T02:27:03.321950 | 2018-10-04T10:06:38 | 2018-10-04T10:06:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,691 | h | multiplayer_download.h | ///////////////////////////////////////////////////////////////////////////////
//
// Copyright 1997-1999 Pandemic Studios, Dark Reign II
//
// MultiPlayer Stuff
//
#ifndef __MULTIPLAYER_DOWNLOAD_H
#define __MULTIPLAYER_DOWNLOAD_H
///////////////////////////////////////////////////////////////////////////////
//
// Includes
//
#include "utiltypes.h"
#include "file.h"
///////////////////////////////////////////////////////////////////////////////
//
// NameSpace MultiPlayer
//
namespace MultiPlayer
{
///////////////////////////////////////////////////////////////////////////////
//
// NameSpace Download
//
namespace Download
{
///////////////////////////////////////////////////////////////////////////////
//
// Type definitions
//
typedef StrBuf<256> HostName;
///////////////////////////////////////////////////////////////////////////////
//
// Struct Context
//
struct Context
{
// Download type
U32 type;
// Download handle
U32 handle;
// Name of the host to download from
HostName name;
// Resolved name of the host to download from
HostName host;
// Port on the host to download from
U16 port;
// Has the transfer been aborted
Bool aborted;
// Path on host to download from
FilePath path;
// Name of the file to download
FileName file;
// Size of the file
U32 size;
// Amount transfered
U32 transferred;
// Constructor
Context()
: type(0),
handle(0)
{
Reset();
}
// Reset
void Reset()
{
size = 0;
transferred = 0;
aborted = FALSE;
}
};
///////////////////////////////////////////////////////////////////////////////
//
// Struct Extra
//
struct Extra
{
NList<Extra>::Node node;
GameIdent name;
GameIdent author;
U32 size;
FilePath file;
HostName sourceHost;
U32 sourcePort;
FilePath sourcePath;
// Constructor
Extra(FScope *fScope);
};
// Initialization and Shutdown
void Init();
void Done();
// Abort
void Abort();
// Download the latest update file
void GetUpdates();
// Download the message of the day
void GetMotd();
// Check the version
Bool CheckVersion();
// Get the list of extras
const NList<Extra> & GetExtras();
// Abort download
void AbortDownload();
// Get the download context
const Context & GetDownloadContext();
// Message
void Message(U32 message, void *data);
}
}
#endif
|
e27837a492ecf29f3171f2c18a53bbf03c504264 | ed5c04f35f736f356c848966f51d5e4f8ed8d46c | /Texture/sphericalmap.cpp | 3322d6110dd32e37acbb9b6e16dc78fcd7658970 | [] | no_license | howitwork/QtRaytracing | 1781d910fa808191010acaca47fb1ab32fc4ba46 | 18dfd7ab00c1840163723cb6f1613c84a2df34e5 | refs/heads/master | 2020-05-20T21:48:28.393211 | 2018-10-09T09:52:09 | 2018-10-09T09:52:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 456 | cpp | sphericalmap.cpp | #include "sphericalmap.h"
#include "Utilities/Constants.h"
SphericalMap::SphericalMap()
{}
void SphericalMap::getTexelCoordinates(const Point3D &hit_point, const int xres, const int yres, int &row, int &column) const
{
float theta=acos(hit_point.y);
float phi=atan2(hit_point.x,hit_point.z);
if(phi<0.0)
phi+=TWO_PI;
float u=phi*invTWO_PI;
float v=1-theta*invPI;
column=(int)((xres-1)*u);
row=(int)((yres-1)*v);
}
|
0586b6f4a74fcf468d839a5499b2fe8c3ddccdc8 | d754ba23c8ff391ce9dcefcfae3b90cef16ecde0 | /CCC/ccc04s4.cpp | af8eba8dee7db7bfdc6931f6573631c811233976 | [] | no_license | TruVortex/Competitive-Programming | 3edc0838aef41128a27fdc7f47d704adbf2c3f38 | 3812ff630488d7589754ff25a3eefd8898226301 | refs/heads/master | 2023-05-10T01:48:00.996120 | 2021-06-02T03:36:35 | 2021-06-02T03:36:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,022 | cpp | ccc04s4.cpp | #include <bits/stdc++.h>
using namespace std;
int main()
{
long long sx, sy, sz, tx, ty, tz;
int d;
char t;
scanf("%lli%lli%lli%lli%lli%lli", &sx, &sy, &sz, &tx, &ty, &tz);
tx -= sx;
ty -= sy;
tz -= sz;
long long ans = tx * tx + ty * ty + tz * tz;
while (1)
{
scanf("%i %c", &d, &t);
if ((tx - d < 0 && tx > 0) || (tx - d > 0 && tx < 0))
ans = min(ans, ty * ty + tz * tz);
tx -= d;
ans = min(ans, tx * tx + ty * ty + tz * tz);
if (t == 'E')
return 0 * printf("%.2lf\n", sqrt(ans));
switch(t)
{
case 'R':
swap(tx, ty);
tx = -tx;
break;
case 'L':
swap(tx, ty);
ty = -ty;
break;
case 'U':
swap(tx, tz);
tz = -tz;
break;
case 'D':
swap(tx, tz);
tx = -tx;
break;
}
}
}
|
e8e6e2c63c5e36e39e37ce116a65e36d2676a09e | 2c621b11a4345b78599befa98ed04328e3edc45e | /partie6/src/Utility/MutableColor.cpp | d3824c3e37c230c0b3d7556ee0b8a1234564812d | [] | no_license | jadetherras/Bacteria-simulator | 50025a5d4f8f2f22c0b6d3566b1067b08e89191a | 8636864f1434de22b0e32b3519cc13ead9b4a28c | refs/heads/main | 2023-07-18T23:59:04.229460 | 2021-09-16T08:52:21 | 2021-09-16T08:52:21 | 407,085,790 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 625 | cpp | MutableColor.cpp | #include<iostream>
#include"MutableColor.hpp"
#include"Random/Random.hpp"
#include"MutableNumber.hpp"
using namespace std;
MutableColor::MutableColor(j::Value const& config)
:RGBA ({config["r"], config["g"], config["b"], config["a"]})
{}
void MutableColor::mutate()
{
for (unsigned int i(0); i<=4; ++i) {
RGBA[i].mutate();
}
}
sf::Color MutableColor::get() const
{
return { static_cast<sf::Uint8>(RGBA[0].get() * 255),
static_cast<sf::Uint8>(RGBA[1].get() * 255),
static_cast<sf::Uint8>(RGBA[2].get() * 255),
static_cast<sf::Uint8>(RGBA[3].get() * 255) };
}
|
acd015c76545f1fd96bc9c18d54a8c5e7ed566a4 | 73af1757daf67d2ed644754f44e59e6a3d51a80d | /passbyaddress.cpp | 85fdbaff6e2a93cb631510c523cd2659f703d1cf | [] | no_license | bhanuprathap2000/C-plus-plus | b1fabaa8ecf73b36ddf6133f6d92fa094397fca1 | ba4758b51c514d61950612e4f7e36ce56be2479e | refs/heads/main | 2023-06-26T20:32:54.552130 | 2021-08-01T16:42:08 | 2021-08-01T16:42:08 | 351,765,447 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 251 | cpp | passbyaddress.cpp | #include <iostream>
using namespace std;
int swap(int *a,int *b){
int temp;
temp=*a;
*a=*b;
*b=temp;
return 0;
}
int main(){
int a =5,b=10;
swap(&a,&b);
cout<<a<<endl;
cout<<b<<endl;
return 0;
} |
0a7e1ba8c18edb325fa4f0118ddd1e0435640a2b | 972cb3650c9cf8bfa4755927fbc1c966df3867ce | /VLN1_Pizza/src/ui/SalesUI.cpp | df569ef508b719925d86868fc59e9ef718dfd42a | [] | no_license | baldur17/Pizzaplace | dff0c01cf74aaf593691d0b15b680a8266b8364a | 1e0271f60d6f272c0b45e8b4edd3ea3373ee2fb6 | refs/heads/master | 2021-08-30T01:19:58.234995 | 2017-12-15T14:17:30 | 2017-12-15T14:17:30 | 112,735,251 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,420 | cpp | SalesUI.cpp | #include "SalesUI.h"
void SalesUI::startUI()
{
char input = '0';
while(input != '3')
{
cout << endl;
cout << "\tSALES MENU" << endl << endl;
cout << "\t01. PLACE ORDER" << endl << endl;
cout << "\t02. BACK" << endl << endl;
cout << "\t03. EXIT" << endl << endl;
cout << "\tSelect Your Option <1-3> ";
cin >> input;
system("cls");
validate_user_input(input);
}
}
char SalesUI::validate_user_input(char input)
{
if (input == '1'){
create_order();
return '1';
}
if (input == '2'){
MainUI mainui;
mainui.startUI();
return '2';
}
if (input == '3'){
exit(0);
}
else{
///throw exception, invalid input;
return '0';
}
}
void SalesUI::create_order()
{
char flag = 'n';
int total_price;
string phone_number;
Pizza p;
Drinks d;
Locations l;
p = add_base_pizza();
total_price = add_topping();
d = add_drinks();
l = add_location();
cout << endl;
cout << "\tEnter Customers Phone Number : ";
cin >> phone_number;
cout << endl;
Order o(p, d, l, flag, phone_number);
total_price = total_price + p.getPrice() + d.getPrice();
cout << "\tOrder Total Price: " << total_price;
order_service.add_order_to_file(o);
}
int SalesUI::add_topping()
{
int input;
char loop;
int topping_total_price = 0;
vector<Topping> t_vector;
vector<Topping> to_file;
Topping_service t_service;
t_vector = t_service.fetch_toppings();
system("cls");
cout << "\tTopping Options" << endl;
do{
for (unsigned int i = 0; i < t_vector.size(); i++)
{
cout << "\tNr." << (i + 1) << endl;
cout << "\tTopping Name : " << t_vector[i].getName() << endl;
cout << "\tTopping Price : " << t_vector[i].getPrice() << endl << endl;
}
cout << "\tAdd Topping Nr.";
cin >> input;
to_file.push_back(t_vector[input - 1]);
cout << "\tAdd Another Topping(y/n)? ";
cin >> loop;
}while(loop == 'y');
for(unsigned int j = 0; j < to_file.size(); j++)
{
topping_total_price = topping_total_price + to_file[j].getPrice();
}
order_service.add_topping_to_file(to_file);
return topping_total_price;
}
Pizza SalesUI::add_base_pizza()
{
vector<Pizza> pizza_vector;
Pizza_service p_service;
int input;
system("cls");
cout << "\tPizza Size Options" << endl;
pizza_vector = p_service.fetch_base_pizza();
for (unsigned int i = 0; i < pizza_vector.size(); i++)
{
cout << "\tNr." << (i + 1) << endl;
cout << "\tPizza Size: " << pizza_vector[i].getPizza_size() << endl;
cout << "\tPizza Price: " << pizza_vector[i].getPrice() << endl << endl;
}
cout << "\tChoose Pizza Size Option: ";
cin >> input;
Pizza p(pizza_vector[input - 1]);
return p;
}
Drinks SalesUI::add_drinks()
{
DrinksService d_service;
int input;
vector<Drinks> d_vector;
cout << endl;
system("cls");
cout << "\tDrink Options" << endl << endl;
d_vector = d_service.fetch_drinks();
for (unsigned int i = 0; i < d_vector.size(); i++)
{
cout << "\tNr." << (i + 1) << endl;
cout << "\tDrink Brand : " << d_vector[i].getBrand() << endl;
cout << "\tDrink Size : " << d_vector[i].getSize() << endl;
cout << "\tDrink Price : " << d_vector[i].getPrice() << endl << endl;
}
cout << "\tChoose Drink Option: ";
cin >> input;
Drinks d(d_vector[input - 1]);
return d;
}
Locations SalesUI::add_location()
{
LocationsService l_service;
int input;
string city;
string street;
vector<Locations> l_vector;
l_vector = l_service.fetch_location();
system("cls");
cout << endl;
cout << "\tFranchise Locations" << endl << endl;
for (unsigned int i = 0; i < l_vector.size(); i++)
{
cout << "\tOption " << (i + 1) << endl;
cout << "\tFranchise City : " << l_vector[i].getCity() << endl;
cout << "\tFranchise Street Name : " << l_vector[i].getStreet() << endl << endl;
}
cout << "\tChoose Franchise Location: ";
cin >> input;
Locations l = l_vector[input - 1];
return l;
}
/*string SalesUI::pizza_size_string(char size)
{
}*/
|
226d4db24c944f3b7a65314470a4983565ce9822 | b0a18173b29cc0c33a7ba532830092c665bd04d0 | /Project1/NewGame.cpp | 598dd1068f6f703958864444357e18541ff0ec5f | [] | no_license | haaseben/Project-1 | abf2e3fd4433f752228022320ee9a7edb3d52e10 | 7b4c385f397e4883e531b5ff5f86301827b40814 | refs/heads/master | 2021-07-26T17:52:05.244486 | 2017-10-20T21:27:27 | 2017-10-20T21:27:27 | 110,015,510 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 415 | cpp | NewGame.cpp | /**
* \file NewGame.cpp
*
* \author Team Jorge
*/
#include "stdafx.h"
#include <string>
#include "NewGame.h"
#include "Game.h"
using namespace std;
/// Gru filename
const wstring NewGameImageName = L"images/new-game.png";
/** Constructor
* \param game The game this is a member of
*/
CNewGame::CNewGame(CGame *game) :
CGamePiece(game, NewGameImageName)
{
}
/** destructor
*/
CNewGame::~CNewGame()
{
}
|
f16296d64e7fc1f97b0f2d3099e78fd60cc3f183 | f06394eb49f055ce3a51c93eb56249350d64ddbb | /tests/generation-tests/kdm/kdm/fwd.hpp | c1f273cbe215f0c9928c9a43ff1402ad54bbd8c9 | [] | no_license | happyj/e4c | a3c6eb523cf1d346a73b138c45a6cdfc83766710 | 59646a43d50749ddfc983e9a1f3a3c70fc5eb218 | refs/heads/master | 2020-03-26T05:15:09.814976 | 2014-02-22T11:20:12 | 2014-02-22T11:20:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,646 | hpp | fwd.hpp | #ifndef EMF_CPP_KDM_KDM_FWD_HPP
#define EMF_CPP_KDM_KDM_FWD_HPP
#include <e4c/mapping.hpp>
namespace kdm
{
namespace kdm
{
class KdmPackage;
typedef KdmPackage * KdmPackage_ptr;
class KdmFactory;
typedef KdmFactory * KdmFactory_ptr;
// Data types
// Classes
class KDMFramework;
typedef KDMFramework* KDMFramework_ptr;
class KDMModel;
typedef KDMModel* KDMModel_ptr;
class Audit;
typedef Audit* Audit_ptr;
class Segment;
typedef Segment* Segment_ptr;
class Attribute;
typedef Attribute* Attribute_ptr;
class Annotation;
typedef Annotation* Annotation_ptr;
class TagDefinition;
typedef TagDefinition* TagDefinition_ptr;
class ExtendedValue;
typedef ExtendedValue* ExtendedValue_ptr;
class Stereotype;
typedef Stereotype* Stereotype_ptr;
class ExtensionFamily;
typedef ExtensionFamily* ExtensionFamily_ptr;
class TaggedRef;
typedef TaggedRef* TaggedRef_ptr;
class TaggedValue;
typedef TaggedValue* TaggedValue_ptr;
// Structural features
struct KDMFramework__audit_tag;
struct KDMFramework__extensionFamily_tag;
struct KDMFramework__name_tag;
struct Audit__description_tag;
struct Audit__author_tag;
struct Audit__date_tag;
struct Segment__segment_tag;
struct Segment__model_tag;
struct Attribute__tag_tag;
struct Attribute__value_tag;
struct Annotation__text_tag;
struct TagDefinition__tag_tag;
struct TagDefinition__type_tag;
struct ExtendedValue__tag_tag;
struct Stereotype__tag_tag;
struct Stereotype__name_tag;
struct Stereotype__type_tag;
struct ExtensionFamily__stereotype_tag;
struct ExtensionFamily__name_tag;
struct TaggedRef__reference_tag;
struct TaggedValue__value_tag;
} // kdm
} // kdm
#endif // EMF_CPP_KDM_KDM_FWD_HPP
|
5a89ffb9500bc8f57a17b094ee2b6bf5005506eb | b717f8efa4aaeab501f16afd5b9905f0f30ddd91 | /EntryTask/XMLParser.cpp | e698ca99a66ca87e45542aa60fdc45acdc17dd8c | [] | no_license | leuri397/CPP-SEKTA | 22ab148a30b28f2189a7770737dc56a7cafd422a | 1a0886a34372f00643047ce3aff2adcef3e6a1e8 | refs/heads/master | 2022-12-03T06:43:07.852298 | 2020-08-19T18:47:32 | 2020-08-19T18:47:32 | 288,807,580 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,891 | cpp | XMLParser.cpp | #include "XMLParser.h"
XMLParser::XMLParser(std::ifstream& input): _input(&input)
{
}
const std::vector<Parameter>& XMLParser::getParameters()
{
static std::vector<Parameter> output;
Parameter single;
output.clear();
std::string rawInput;
char buffer[100];
*_input >> rawInput;
while (!(*_input).eof())
{
(*_input).getline(buffer, 100);
rawInput += buffer;
}
while (rawInput.find_first_of("\t") != std::string::npos)
{
rawInput.erase(rawInput.find_first_of("\t"), 1);
}
if ((rawInput.find("<report>") == std::string::npos) || (rawInput.find("</report>") == std::string::npos))
{
throw std::exception("Error reading XML. ");
}
rawInput = rawInput.substr(rawInput.find("<report>") + 8, rawInput.find("</report>") - rawInput.find("<report>") - 8);
while (!rawInput.empty())
{
if ((rawInput.find("<") > rawInput.find(">")) || (rawInput.find("<") == std::string::npos) || (rawInput.find(">") == std::string::npos))
throw std::exception("Error reading XML. ");
std::string name = rawInput.substr(rawInput.find("<") + 1, rawInput.find(">") - rawInput.find("<") - 1);
single.name = name;
if ((rawInput.find("<" + name + ">") > rawInput.find("</" + name + ">")) || (rawInput.find("</" + name + ">") == std::string::npos) || (rawInput.find("<" + name + ">") == std::string::npos))
throw std::exception("Error reading XML. ");
std::string value = rawInput.substr(rawInput.find("<" + name + ">") + name.size() + 2, rawInput.find("</" + name + ">") - rawInput.find("<" + name + ">") - name.size() - 2);
single.value = value;
rawInput.erase(rawInput.find("<" + name + ">"), value.size() + 2*name.size() + 5);
output.push_back(single);
}
return output;
}
|
4214b1b70d176981b95d9052cd01e946d745989f | c1819070bed22f0195b037ddd8627de330608a0e | /ServerSocket/Server/Server.cpp | e394df8f3e898581ef6f588f05442ce68eb83765 | [] | no_license | PabloNaranjo78/TECFileSystem | 92b3441ba40efacfef700602284aa8595b0a1702 | d803808d388248ae6645b7ffbbabec6f237b34ec | refs/heads/main | 2023-06-05T00:48:56.848864 | 2021-06-25T15:28:59 | 2021-06-25T15:28:59 | 376,983,932 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,038 | cpp | Server.cpp | //
// Created by pablo on 24/6/21.
//
#include "Server.h"
using json = nlohmann::json;
Server::Server() {
startServer();
}
void Server::startServer() {
server_sockaddr.sin_family = AF_INET;
server_sockaddr.sin_port = htons(port);
server_sockaddr.sin_addr.s_addr = htonl(INADDR_ANY);
if (bind(server,(struct sockaddr*)&server_sockaddr, sizeof(server_sockaddr))==-1){
cout<<"Error conectando"<<endl;
return;
}
if (listen(server,queue)==-1){
cout<<"Error escuchando cliente"<<endl;
return;
}
struct sockaddr_in client_addr;
socklen_t socklen = sizeof(client_addr);
conection = accept(server, (struct sockaddr *) &client_addr, &socklen);
if (conection < 0) {
cout << "Error de conexión" << endl;
return;
}
}
string Server::sendData(string sendDataOut) {
cout << "Esperando conexión..." << endl;
char inData[10000];
memset(inData,'\0', strlen(inData));
cout << inData << "---------" << endl;
recv(conection, inData, sizeof(inData), 0);
cout << "Nueva conexión" << endl;
cout << inData << "---------" << endl;
json inDataJson = json::parse(inData);
string codeIN = inDataJson["code"];
string keyIN = inDataJson["key"];
HCBinaryTree* huffmanCodeIn = new HCBinaryTree;
string inDataResult = huffmanCodeIn->decodeString(codeIN,keyIN);
HCBinaryTree* huffmanCodeOut = new HCBinaryTree;
CharacterList characterListOut;
// string tempS;
// tempS = sendDataOut;
characterListOut.addCharacters(sendDataOut);
string outKey = huffmanCodeOut->createTree(characterListOut);
string outDataResult = huffmanCodeOut->encodeString(sendDataOut,outKey);
json outJson;
outJson["code"] = outDataResult;
outJson["key"] = outKey;
string outDataFinal = outJson.dump();
char outChar[10000];
memset(outChar,'\0', strlen(outChar));
strcpy(outChar,outDataFinal.c_str());
send(conection, outChar, sizeof (outChar), 0);
return inDataResult;
}
|
f3403fd967a8dbc4b3b01caef8fda8771e7dd4f9 | 45daa5d1757d6c4aec89c4feb68b49c2bb19aa93 | /百练刷题/1091/容斥原理.cpp | 09a3f5328938c164f72bd681cf96b88bb0ca42fa | [] | no_license | LQNew/Openjudge | 74dbddb14d52ccf501f4873352ff00bdaa0cae59 | 9df795f74b8344ec3a98f4af7c2916907e3eece0 | refs/heads/master | 2020-03-22T14:10:17.866092 | 2019-01-02T06:56:43 | 2019-01-02T06:56:43 | 140,158,190 | 5 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,937 | cpp | 容斥原理.cpp | //题意:n+1个自然数,其中m是确定的,其他n个数都不超过m,有多少种方案使得 a1*x1+a2*x2+...+an*xn+M*xn+1 = 1 有解,
//即:gcd (a1, a2, ..., an, M) = 1,接下来对M进行素因子分解,然后排除公因子非1的情况即可
/*详析:
根据数论的知识,n个数的最大公约数规定为这n个数线性和的最小自然数,所以此题就是要求最大公约数为1的数列的个数,步骤如下:
1)求出m的所有质约数,假设有k个如果这n + 1个数的最大公约数不是1,m至少含有一个质约数,这个质约数也是前n个数的约数
2)序列的总个数为 m ^ n;
3)设t(n)表示 能够整除任意n个m的质约数且<=m的数的个数
利用容斥原理可知公约数不为1的数列的个数为 f = t(1) - t(2) + t(3) - ... + (-1) ^ (k - 1) t(k) (容斥原理,奇加偶减)
4) 符合要求的序列个数为 m ^ n - f
*/
#include<iostream>
using namespace std;
typedef long long ll; //对于M^n,因为输入数据M允许为较大值,故需要定义长整型数据类型为八字节
int M; //卡片的最大数M
int N; //卡片最大数前有N张数值<=M的卡片
int factor[65]; //用于存储分解出的质因数
int factor_for_dfs[65]; //用于在dfs搜索中存储质因数
int total_cnt; //用于记录M一共有多少个质因数
ll part_num;//用于计数有num个共同质因子时的组合数
ll f; //用于计数 f = t(1) - t(2) + t(3) - ... + (-1) ^ (k - 1) t(k)
void Divide(int M) //计算得到M所有的质因数
{
total_cnt=0; //用于记录
for(int i=2;i*i<=M;i++)
{
if(M%i==0)
factor[total_cnt++]=i;
while(M%i==0)
M=M/i;
}
if (M>1) factor[total_cnt++]=M;
//如果剩下的除后的最后一个数为>1的数,那么它便是最后一个质因数! i.e: 30=2*3*5 ,而当未除至最后一个数之前,i^2肯定会小于当前M,只有可能除至最后一个因子时i^2>当前M
}
ll Power(int a,int b) //求解 a^b的值
{
ll res = 1;
while (b--) res *= a;
return res;
}
void dfs(int pos ,int cnt , int num) //深度优先搜索,搜索 M加上前n个数一共n+1个数中有num个共同质因子 的组合数
{
int x;
if(cnt == num)
{
x=M;
for(int i=0;i<num;i++)
x=x/factor_for_dfs[i];
part_num+=Power(x,N);
}
else //dfs 递归思想想不到...
{
for(int i=pos;i<total_cnt;i++)
{
factor_for_dfs[cnt]=factor[i];
dfs(i+1,cnt+1,num);
}
}
}
int main()
{
while(cin>>N>>M)
{
Divide(M);
f=Power(M,N); //计算 M^N
for(int i=1;i<=total_cnt;i++) //计算 M^N-t(1)+t(2)-t(3)+.....
{
part_num=0;
dfs(0,0,i);
if(i%2==0)
f+=part_num;
else
f-=part_num;
}
cout<<f<<endl;
}
return 0;
}
|
6b16f88acd3583d1752fdadeb4c1d3a24a68a2fa | 771204e2e52db6c1c80d285b23dea2ba5982d42e | /Sphere Online Judge 250 Most Solved Marathon With No Overlapping Problem/AnakRantauMenderita/Setyo/9-ACPC10A.cpp | e7a5815c7c447ccfbf80e3984a1e0cd374350a7d | [] | no_license | pamungkaski/competitive-programming-2017 | e1911868aa6b2bc3319c3347fa3fac3a6f25c58b | cf6d5b4d8a30059b61eac52c2a0eb54fe5a9ee24 | refs/heads/master | 2021-01-23T03:21:49.289121 | 2017-10-15T09:03:16 | 2017-10-15T09:05:45 | 86,073,476 | 0 | 0 | null | 2017-05-31T16:19:00 | 2017-03-24T13:53:40 | Java | UTF-8 | C++ | false | false | 573 | cpp | 9-ACPC10A.cpp | /**
* Problem Name: What’s Next
* Problem URL: http://www.spoj.com/problems/ACPC10A
*/
#include<iostream>
using namespace std;
int main(){
long long a, b, c;
cin >> a >> b >> c;
while((a != 0) || (b != 0) || (c != 0)){
//Is Arithmetic
if((b-a) == (c-b)){
cout << "AP " << c + (b-a) << endl;
}else{
if((a == 0) || (b == 0) || (c == 0)){
cout << "GP 0" << endl;
}else{
cout << "GP " << c * (b/a) << endl;
}
}
cin >> a >> b >> c;
}
}
|
dd7d7676f7b23cc425b346c44f9583f0b92c9113 | 2ea984ee5114382724502f2667b236f2e1136560 | /制作ゲーム/FMSTG01/project/src/BaseObject/IBaseSingleton.h | 5beee28b5e2b82ffe6559bbc13e494a758ac5835 | [] | no_license | s-kosugi/FMGameBase | 06cce9670025769e0a41b45cfc295372d72817e5 | 595a845135b1b5691bd22274fa0496fb97df76bf | refs/heads/master | 2022-12-30T07:10:42.897526 | 2020-10-05T23:40:01 | 2020-10-05T23:40:01 | 292,718,517 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 1,803 | h | IBaseSingleton.h | #pragma once
/*==============================================================================*/
/* */
/* @file title : IBaseSingleton.h */
/* @brief : シングルトンオブジェクト */
/* @written : s.kosugi */
/* @create : 2018/11/24 */
/* */
/*==============================================================================*/
#include "IBaseObject.h"
// シングルトンオブジェクトクラス
template<class T> class IBaseSingleton : public IBaseObject
{
protected:
IBaseSingleton(void) { IBaseObject::IBaseObject(); }; // 他からの生成を禁止
IBaseSingleton(IBaseObject* parent) { IBaseObject::IBaseObject( parent, "None" );};
IBaseSingleton(IBaseObject* parent, const std::string& name) { IBaseObject::IBaseObject(parent, name); };
virtual ~IBaseSingleton(void) {}; // 他からの削除を禁止(デストラクタをprivateにする事で外部削除不可)
IBaseSingleton(const T& t) {}; // オブジェクトの複製禁止(コピーコンストラクタのオーバライド)
T& operator = (const T& t) {}; // オブジェクトの複製禁止(代入演算子のオーバーロード)
public:
// シングルトンオブジェクトにはDELETEアクセスをさせない。
virtual IBaseObject* Finalize(void) { IBaseObject::Finalize(); return nullptr; };
static T& GetInstance(void) {
static T instance; // 唯一の実体であるオブジェクト、static変数を使用する事で1つの共有の変数となる
return instance; // 常に共通のインスタンスを返す
}; // 静的メンバ関数、GetInstanceをする事で生成されていない自分のクラスの関数を呼び出す事が可能
}; |
10c0491aed92c6e22bdc1f12e8e98df5e5a20be2 | be85fffb3da2b14d36461ba46879385a004a0240 | /SPOJ/CAM5/a.cpp | 143364eed826171d2c1ed201cd906b54e319dd8d | [] | no_license | r0ck1n70sh/competitive | d46d6d37cb6e55fa5ff1a68b2d9ffbf769b91216 | 2ce731ef5eec096760cf4bee50339f570a58edb3 | refs/heads/master | 2022-11-23T11:37:47.822087 | 2022-11-09T16:56:39 | 2022-11-09T16:56:39 | 226,349,977 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 580 | cpp | a.cpp | #include <bits/stdc++.h>
using namespace std;
const int maxl= (int)(1e5+3);
vector<int> v[maxl];
bool vis[maxl];
int dfs(int root){
if(vis[root]) return 0;
vis[root]=1;
for(int i=0; i<v[root].size(); i++) dfs(v[root][i]);
return 1;
}
int main(){
int t;
scanf("%d", &t);
while(t--){
int n, e;
scanf("%d%d", &n, &e);
for(int i=0,x,y; i<e; i++){
scanf("%d%d", &x, &y); v[x].push_back(y); v[y].push_back(x);
}
memset(vis, 0, sizeof(vis)); int res=0;
for(int i=0; i<n; i++) res+=dfs(i);
printf("%d\n", res); for(int i=0; i<n; i++) v[i].clear();
}
return 0;
}
|
f7c1da3cde0328ec6d62d7777c6b35400f367677 | caacaaddbbd7a9caf31dd74b342268f43ef797e8 | /Gladiator/specs.cpp | b22cec358d22524780e038c5b1e6e14b575a2c78 | [] | no_license | OscarAraya18/GladiatorCE2103 | 4c8c0c278b26381ca3eca81da35a66ca49b4b0a5 | 49673c0e393dd18452d5e0ede859db4a1362d6cb | refs/heads/master | 2021-07-14T10:39:59.656237 | 2019-05-29T03:30:47 | 2019-05-29T03:30:47 | 180,243,289 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,666 | cpp | specs.cpp | #include "game.h"
#include "specs.h"
#include <QBrush>
#include <QPen>
extern Game *game;
Specs::Specs(QGraphicsItem *parent){
setRect(0,0,300,275);
QBrush brush;
brush.setStyle(Qt::SolidPattern);
brush.setColor(Qt::black);
setBrush(brush);
QPen pen;
pen.setStyle(Qt::SolidLine);
pen.setWidth(1.5);
setPen(pen);
}
void Specs::crearSpecs()
{
QBrush brush;
brush.setStyle(Qt::SolidPattern);
brush.setColor(Qt::gray);
//para el ID
Id = new QGraphicsRectItem();
Id->setRect(x()+5,y()+5,290, 30);
Id->setBrush(brush);
IdT = new QGraphicsTextItem();
IdT->setPlainText("ID");
IdT->setPos(x() +10, y() +10);
game->scene->addItem(Id);
game->scene->addItem(IdT);
//Para la edad
edad = new QGraphicsRectItem();
edad->setRect(x() +5, y() + 30, 290,30);
edad->setBrush(brush);
edadT = new QGraphicsTextItem();
edadT->setPlainText("EDAD");
edadT->setPos(x()+10, y() + 35);
game->scene->addItem(edad);
game->scene->addItem(edadT);
//Para la probabilidad de supervivencia
probSuper = new QGraphicsRectItem();
probSuper->setRect(x() +5, y() + 60, 290, 30);
probSuper->setBrush(brush);
probSuperT = new QGraphicsTextItem();
probSuperT->setPlainText("PROBABILIDAD SUPER");
probSuperT->setPos(x()+10, y() + 65);
game->scene->addItem(probSuper);
game->scene->addItem(probSuperT);
//para las generaciones esperadas
genEsperadas = new QGraphicsRectItem();
genEsperadas->setRect(x()+5, y()+ 90, 290, 30);
genEsperadas->setBrush(brush);
genEsperadasT = new QGraphicsTextItem();
genEsperadasT->setPlainText("GEN ESPERADAS");
genEsperadasT->setPos(x()+10, y()+ 95);
game->scene->addItem(genEsperadas);
game->scene->addItem(genEsperadasT);
//para la inteligencia emocional
iEmocional = new QGraphicsRectItem();
iEmocional->setRect(x()+5, y()+ 120, 290, 30);
iEmocional->setBrush(brush);
iEmocionalT = new QGraphicsTextItem();
iEmocionalT->setPlainText("I EMOCIONAL");
iEmocionalT->setPos(x()+10, y()+ 125);
game->scene->addItem(iEmocional);
game->scene->addItem(iEmocionalT);
//para la condicion fisica
condFisica = new QGraphicsRectItem();
condFisica->setRect(x()+5, y() + 150, 290, 30);
condFisica->setBrush(brush);
condFisicaT = new QGraphicsTextItem();
condFisicaT->setPlainText("COND FISICA");
condFisicaT->setPos(x()+10, y() + 155);
game->scene->addItem(condFisica);
game->scene->addItem(condFisicaT);
//para la fuerza en tronco superior
fTroncoSup = new QGraphicsRectItem();
fTroncoSup->setRect(x()+5, y()+ 180, 290, 30);
fTroncoSup->setBrush(brush);
fTroncoSupT = new QGraphicsTextItem();
fTroncoSupT->setPlainText("TRONCO SUPERIOR");
fTroncoSupT->setPos(x()+10, y()+ 185);
game->scene->addItem(fTroncoSup);
game->scene->addItem(fTroncoSupT);
//para el tronco inferior
fTroncoInf = new QGraphicsRectItem();
fTroncoInf->setRect(x()+5, y() + 210, 290,30);
fTroncoInf->setBrush(brush);
fTroncoInfT = new QGraphicsTextItem();
fTroncoInfT->setPlainText("TRONCO INFERIOR");
fTroncoInfT->setPos(x()+10 ,y() + 215);
game->scene->addItem(fTroncoInf);
game->scene->addItem(fTroncoInfT);
//para la resistencia
resistencia = new QGraphicsRectItem();
resistencia->setRect(x()+5, y() + 240, 290,30);
resistencia->setBrush(brush);
resistenciaT = new QGraphicsTextItem();
resistenciaT->setPlainText("RESISTENCIA");
resistenciaT->setPos(x()+10, y() + 245);
game->scene->addItem(resistencia);
game->scene->addItem(resistenciaT);
}
void Specs::setFTroncoInfT(QString value)
{
fTroncoInfT->setPlainText("TRONCO INFERIOR "+ value);
}
void Specs::setFTroncoSupT(QString value)
{
fTroncoSupT->setPlainText("TRONCO SUPERIOR " +value);
}
void Specs::setCondFisicaT(QString value)
{
condFisicaT->setPlainText("COND FISICA "+ value);
}
void Specs::setIEmocionalT(QString value)
{
iEmocionalT->setPlainText("I EMOCIONAL "+ value);
}
void Specs::setGenEsperadasT(QString value)
{
genEsperadasT->setPlainText("GEN ESPERADAS "+ value);
}
void Specs::setProbSuperT(QString value)
{
probSuperT->setPlainText("PROBABILIDAD SUPER "+ value);
}
void Specs::setEdadT(QString value)
{
edadT->setPlainText("EDAD "+ value);
}
void Specs::setIdT(QString value)
{
IdT->setPlainText("ID "+ value);
}
void Specs::setResistenciaT(QString value)
{
resistenciaT->setPlainText("RESISTENCIA "+ value);
}
void Specs::setVida(QString vida)
{
resistenciaT->setPlainText("Resistencia: " + vida);
}
|
82733576120160bcf3b7e65b7a836d7166f21078 | b8f96479a5bfc4df5417efa1001bc153062c3e89 | /test/test/filesystem.h | 01e6a65a0cc849aaa0305eb93291b142c98186e9 | [] | no_license | wangwyForNewTime/RemovingRainwaterForVideo | 0108a24a4d8d4d4bee771dff03da7e34443cf5cf | 67ff2de77e96f5c212c84c058a58eaa824e446b6 | refs/heads/master | 2022-11-16T23:00:58.805327 | 2020-07-08T10:05:20 | 2020-07-08T10:05:20 | 278,052,039 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,588 | h | filesystem.h | /****************************************************************************\
* --- Practical Course: GPU Programming in Computer Vision ---
*
* time: winter term 2012/13 / March 11-18, 2013
*
* project: superresolution
* file: filesystem.h
*
*
* !THIS FILE IS SUPPOSED TO REMAIN UNCHANGED!
\****************************************************************************/
/*
* filesystem.h
*
* Created on: Feb 29, 2012
* Author: steinbrf
*/
#ifndef FILESYSTEM_H_
#define FILESYSTEM_H_
#include <dirent.h>
#include <string>
#include <vector>
#include <list>
/*!
* Class for computing and storing information about a folder in the file system
*/
class Folder
{
public:
//! Constructor
Folder();
//! Constructor for a specified path
Folder(std::string p_path);
//! Destructor
~Folder();
//! Loads the folder contents a specified folder
bool load(std::string p_path);
//! Number of files in the folder
size_t size();
//! Returns all filenames with a specified ending in the folder as a list
std::list<std::string> getFilesWithEndingList(std::string ending);
//! Returns all filenames with a specified ending in the folder as a vector
std::vector<std::string> getFilesWithEndingVector(std::string ending);
//! Returns whether a folder exists
bool is_valid();
//! Returns whether a file in the folder exists
bool fileExists(std::string filename, std::string prefix = "");
//! Stores the path to the folder
std::string path;
//! Stores all files in the folder
std::vector<std::string> files;
private:
};
#endif /* FILESYSTEM_H_ */
|
b37e6828f7f8f9f6d278724c805c907fd7b1733e | 0c58bacf9f89a3553a6e1b9f3d3d769b3aef21e6 | /ArduinoInvaders.cpp | 2222bc5e68cfe267e5e8c0023fb34d810a255fb4 | [] | no_license | AdityaHarvi/Arduino-Invaders | ac03c714e4a50333cfd5f739b8e685053fe02075 | c39d9bad0e988319dac5b3316c873e24ff2a6c0e | refs/heads/master | 2022-05-01T17:37:02.540135 | 2022-04-01T17:18:10 | 2022-04-01T17:18:10 | 173,616,469 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 23,423 | cpp | ArduinoInvaders.cpp | /*
Final Project: Arduino Asteroids
Name: Aditya Harvi
Student ID: 1532770
Name: Micheal Antifaoff
Student ID: 1542254
CMPUT 274, Fall 2018
Sources:
Used this to learn how to make sound using the speaker:
https://learn.adafruit.com/adafruit-arduino-lesson-10-making-sounds/overview
Went through this guide to understand how concurrency or "multi-tasking" on
the Arduino is possible using the millis() function:
https://forum.arduino.cc/index.php?topic=503368.0
*/
#include <Arduino.h>
// Initializes all required outputs and variables.
int cols[4] = {2, 3, 4, 5};
int colPin[20] = {53, 52, 51, 50, 49, 48, 47, 46, 45, 44, 43, 42, 41, 40, \
A0, A1, A2, A3, A4, A5};
int ButtonRight = {9};
int ButtonLeft = {8};
int speaker = {31};
int tones[11] = {261, 277, 294, 311, 330, 349, 370, 392, 415, 440, 500};
int ButtonStateRight = 0;
int ButtonStateLeft = 0;
int RightState, LeftState;
int Life[3] = {13 , 12, 11};
int counter = -16;
unsigned long startMillis;
unsigned long currentMillis;
int deathComparison[4] = {};
int dropTime = 2000;
int endFlag = 0;
bool AandM = false;
/*
Sets the initial conditions for the game. It will turn all LED's to OUTPUT
and set them to be initially off. 'Life' will be turned on to represent
three lives of the player.
This will be the first function that is called in main().
*/
void setup() {
// Sets all green LED's to be the OUTPUT and be initially LOW.
// The player will move on these LED's
for (int i = 0; i < 4; i++) {
pinMode(cols[i], OUTPUT);
digitalWrite(cols[i], LOW);
}
// Sets al lred LED's to be OUTPUT and initially LOW.
// The asteroids will fall from these LED's.
for (int i = 0; i < 20; i++) {
pinMode(colPin[i], OUTPUT);
digitalWrite(colPin[i], LOW);
}
// Sets the buttons to be the trigger whenever they are pressed.
pinMode(ButtonRight, INPUT_PULLUP);
pinMode(ButtonLeft, INPUT_PULLUP);
// Sets the inital conditions for the Right and left button states.
RightState = digitalRead(ButtonRight);
LeftState = digitalRead(ButtonLeft);
// Sets the player in the middle of the board.
digitalWrite(cols[2], HIGH);
// All lives will be turned on.
for (int i = 0; i < 3; i++) {
pinMode(Life[i], OUTPUT);
digitalWrite(Life[i], HIGH);
}
}
/*
This is going to immitate the setup. It will turn off all red led's and
place the player in the starting position.
It will be called whenver the player hits an asteroid.
*/
void immitatesetup() {
// Turns off all red LED's.
for (int i = 0; i < 20; i++) {
digitalWrite(colPin[i], LOW);
}
// Turns off all green LED's.
for (int i = 0; i < 4; i++) {
digitalWrite(cols[i], LOW);
}
// Sets player back to initial position.
digitalWrite(cols[2], HIGH);
}
/*
This will play a death sounds when the player is hit.
*/
void deathsound() {
startMillis = millis();
while (currentMillis - startMillis <= 100) {
currentMillis = millis();
tone(speaker, tones[10]);
}
startMillis = millis();
while (currentMillis - startMillis <= 100) {
currentMillis = millis();
tone(speaker, tones[8]);
}
startMillis = millis();
while (currentMillis - startMillis <= 300) {
currentMillis = millis();
tone(speaker, tones[6]);
}
noTone(speaker);
}
/*
This will play a reset sound letting the player know the game is about
to reset.
*/
void resetsound() {
tone(speaker, tones[4]);
startMillis = millis();
while (currentMillis - startMillis <= 100) {
currentMillis = millis();
}
tone(speaker, tones[10]);
startMillis = millis();
while (currentMillis - startMillis <= 100) {
currentMillis = millis();
}
noTone(speaker);
}
/*
This function is going to be called in movement(). It will turn the current
green LED off and turn on the one to the right.
*/
void moveRight() {
// This is a check to make sure the player does not exit the bounds.
if (digitalRead(cols[3]) == HIGH) {
digitalWrite(cols[3], HIGH);
} else {
// This chunk of code will allow the player to move one LED over to the
// right through the use of Flag variable.
int Flag = 0;
for (int i = 0; i < 4; i++) {
if (Flag == 1) {
digitalWrite(cols[i], HIGH);
Flag = 0;
break;
}
// Turns off current LED and turns on Flag. This allows the next
// LED to be turned on in the next itteration of the loop.
if (digitalRead(cols[i]) == HIGH) {
digitalWrite(cols[i], LOW);
Flag = 1;
}
}
}
}
/*
This function is going to be called in movement(). It will turn the current
green LED off and turn on the one to the left.
*/
void moveLeft() {
// The following code is near identical to moveright() function.
if (digitalRead(cols[0]) == HIGH) {
digitalWrite(cols[0], HIGH);
} else {
int Flag = 0;
for (int i = 3; i >= 0; i--) {
if (Flag == 1) {
digitalWrite(cols[i], HIGH);
Flag = 0;
break;
}
if (digitalRead(cols[i]) == HIGH) {
digitalWrite(cols[i], LOW);
Flag = 1;
}
}
}
}
/*
If this function is called and lostLife equals true, it will:
- reduce the number of lives by one.
- call immitatesetup()
- flash red on the screen
- if the player is out of lives, it will turn the game off allowing for
the final score to be seen.
If lostLife equals false, it will:
- activate the Easter Egg
- call immitatesetup()
- restore all of the user's lives
- flash red on the screen.
*/
void death(bool lostLife) {
deathsound();
// Resets the board.
immitatesetup();
// Will recude number of lives by one.
if (lostLife){
for (int i = 0; i < 3; i++) {
if (digitalRead(Life[i]) == HIGH) {
digitalWrite(Life[i], LOW);
break;
}
}
}
//If the Easter Egg was found, reset all the lives and play sounds
if (lostLife == false){
digitalWrite(Life[2], HIGH);
deathsound();
digitalWrite(Life[1], HIGH);
deathsound();
digitalWrite(Life[0], HIGH);
}
startMillis = millis();
while (currentMillis - startMillis >= 100) {
currentMillis = millis();
}
resetsound();
// The following code will make the board flash red to give a
// visual code that the game will recommence soon.
for (int i = 0; i < 6; i ++) {
digitalWrite(colPin[i], HIGH);
}
for (int i = 14; i < 20; i++) {
digitalWrite(colPin[i], HIGH);
}
digitalWrite(colPin[10], HIGH);
digitalWrite(colPin[9], HIGH);
delay(100);
for (int i = 0; i < 6; i ++) {
digitalWrite(colPin[i], LOW);
}
for (int i = 14; i < 20; i++) {
digitalWrite(colPin[i], LOW);
}
digitalWrite(colPin[10], LOW);
digitalWrite(colPin[9], LOW);
// Will pause the game for 3 seconds to give the player.
startMillis = millis();
while (true) {
currentMillis = millis();
// Once 3 seconds have elapsed, it will run the following code.
if (currentMillis - startMillis >= 3000) {
// Calls immitatesetup() to reset the board.
immitatesetup();
break;
}
}
// If the number of lives are depleated, then it will end the game
// allowing for the final score to be displayed.
if (digitalRead(Life[2]) == LOW) {
endFlag = 1;
}
}
/*
This function wil randomly pick a number from 0-4 and turn on the top 4 LED
depending on the number chosen.
*/
void randomizer() {
//Easter Egg - lights up four lights in a row
//This code will only be run if the counter is between 96 and 99 inclusive,
//otherwise the main code in randomizer will be run
if (counter == 96 or counter == 97 or counter == 98 or counter == 99){
digitalWrite(colPin[0], HIGH);
}
else{
// This will pick a random number from 0-4
int randnum;
randnum = random(0, 4);
// If 0 is chosed, the top left LED is turned on.
if (randnum == 0) {
digitalWrite(colPin[0], HIGH);
// If 1 is chosed, then the top left-middle LED is turned on.
} else if (randnum == 1) {
digitalWrite(colPin[5], HIGH);
// If 2 is chosen, the top right-middle LED is turned on.
} else if (randnum == 2) {
digitalWrite(colPin[10], HIGH);
// If 3 is chosen, the top right LED is turned on.
} else if (randnum == 3) {
digitalWrite(colPin[15], HIGH);
}
}
}
/*
This function will:
- Compare the state of the last asteroid and the player to determine if
they will lose a life
- Shift all the red LED's down by one
- Calls randomizer()
*/
void chainreaction() {
// This will set the death comparison variable to the value of the LED
// right above the green LED's.
deathComparison[0] = digitalRead(colPin[4]);
deathComparison[1] = digitalRead(colPin[9]);
deathComparison[2] = digitalRead(colPin[14]);
deathComparison[3] = digitalRead(colPin[19]);
// Increase the score of the player.
counter++;
// It will compare the values of the players position and the asteroids
// to determine whether or not a player will lose lives. Also resets the
// speed of the asteroids.
// The Easter Egg in the code occurs if the user is on their last life
// and they die on the fourth light in a row in the same column
for (int i = 0; i < 4; i++) {
if (digitalRead(cols[i]) == HIGH && deathComparison[i] == HIGH) {
// If the user is on their last life and they die on the fourth light in a row,
// call death with the Easter Egg condition and set AandM to true so that it
// displays A and M after the score
if (counter == 104 and digitalRead(Life[1]) == LOW){
death(false);
AandM = true;
dropTime = 2000;
}
else{
death(true);
dropTime = 2000;
}
}
}
// This is a check to see if the game is still going on.
if (endFlag == 0) {
// All this code will simply cascade the red LED's downward.
int scrapnum[20] = {};
// Saves the state of current red LED's in a column.
for (int i = 0; i < 4; i++) {
if (digitalRead(colPin[i]) == HIGH) {
scrapnum[i] = 1;
} else {
scrapnum[i] = 0;
}
}
// Copies the saved states to the next LED down.
for (int i = 1; i < 5; i++) {
if (scrapnum[i-1] == 1) {
digitalWrite(colPin[i], HIGH);
} else {
digitalWrite(colPin[i], LOW);
}
}
// Repeat of before. Now for column 2.
for (int i = 5; i < 9; i++) {
if (digitalRead(colPin[i]) == HIGH) {
scrapnum[i] = 1;
} else {
scrapnum[i] = 0;
}
}
for (int i = 6; i < 10; i++) {
if (scrapnum[i-1] == 1) {
digitalWrite(colPin[i], HIGH);
} else {
digitalWrite(colPin[i], LOW);
}
}
// Repeat of before. Now for column 3.
for (int i = 10; i < 14; i++) {
if (digitalRead(colPin[i]) == HIGH) {
scrapnum[i] = 1;
} else {
scrapnum[i] = 0;
}
}
for (int i = 11; i < 15; i++) {
if (scrapnum[i-1] == 1) {
digitalWrite(colPin[i], HIGH);
} else {
digitalWrite(colPin[i], LOW);
}
}
// Repeat of before. Now column 4.
for (int i = 15; i < 19; i++) {
if (digitalRead(colPin[i]) == HIGH) {
scrapnum[i] = 1;
} else {
scrapnum[i] = 0;
}
}
for (int i = 16; i < 20; i++) {
if (scrapnum[i-1] == 1) {
digitalWrite(colPin[i], HIGH);
} else {
digitalWrite(colPin[i], LOW);
}
}
// Turns off all top red LED's
for (int i = 0; i < 20; i += 5) {
digitalWrite(colPin[i], LOW);
}
// Calls randomizer for a new red LED to be chosen.
randomizer();
}
}
/*
This function will allow the user to move left-right to avoid the asteroids.
Calls the moveRight and moveLeft functions.
Only allows the button to be pressed once to trigger an event.
*/
void movement() {
// Reads the state of the button.
RightState = digitalRead(ButtonRight);
// If the state is different from the previous state then call moveRight().
if (RightState != ButtonStateRight) {
if (RightState == LOW) {
moveRight();
}
}
// Resets the state to a new state so this doesn't repeat.
ButtonStateRight = RightState;
// Similar to above.
LeftState = digitalRead(ButtonLeft);
if (LeftState != ButtonStateLeft) {
if (LeftState == LOW) {
moveLeft();
}
}
ButtonStateLeft = LeftState;
// Delay for bouncing.
delay(5);
}
/*
If called, it will display the number '1' in a 7-seg display.
*/
void number1() {
for (int i = 19; i >= 15; i--) {
digitalWrite(colPin[i], HIGH);
}
}
/*
If called, it will display the number '2' in a 7-seg display.
*/
void number2() {
for (int i = 19; i >= 15; i -= 2) {
digitalWrite(colPin[i], HIGH);
}
for (int i = 14; i >= 10; i -= 2) {
digitalWrite(colPin[i], HIGH);
}
for (int i = 9; i >= 5; i -= 2) {
digitalWrite(colPin[i], HIGH);
}
digitalWrite(colPin[8], HIGH);
digitalWrite(colPin[16], HIGH);
}
/*
If called, it will display the number '3' in a 7-seg display.
*/
void number3() {
for (int i = 19; i >= 15; i--) {
digitalWrite(colPin[i], HIGH);
}
for (int i = 14; i >= 10; i -= 2) {
digitalWrite(colPin[i], HIGH);
}
for (int i = 9; i >= 5; i -= 2) {
digitalWrite(colPin[i], HIGH);
}
}
/*
If called, it will display the number '4' in a 7-seg display.
*/
void number4() {
for (int i = 19; i >= 15; i--) {
digitalWrite(colPin[i], HIGH);
}
for (int i = 5; i < 8; i++) {
digitalWrite(colPin[i], HIGH);
}
digitalWrite(colPin[12], HIGH);
}
/*
If called, it will display the number '5' in a 7-seg display.
*/
void number5() {
for (int i = 17; i < 20; i++) {
digitalWrite(colPin[i], HIGH);
}
digitalWrite(colPin[15], HIGH);
for (int i = 10; i < 15; i += 2) {
digitalWrite(colPin[i], HIGH);
}
digitalWrite(colPin[14], HIGH);
for (int i = 5; i < 8; i++) {
digitalWrite(colPin[i], HIGH);
}
digitalWrite(colPin[9], HIGH);
digitalWrite(colPin[15], HIGH);
}
/*
If called, it will display the number '6' in a 7-seg display.
*/
void number6() {
for (int i = 5; i < 10; i++) {
digitalWrite(colPin[i], HIGH);
}
for (int i = 17; i < 20; i++) {
digitalWrite(colPin[i], HIGH);
}
digitalWrite(colPin[15], HIGH);
digitalWrite(colPin[10], HIGH);
digitalWrite(colPin[12], HIGH);
digitalWrite(colPin[14], HIGH);
}
/*
If called, it will display the number '7' in a 7-seg display.
*/
void number7() {
for (int i = 19; i >= 15; i--) {
digitalWrite(colPin[i], HIGH);
}
digitalWrite(colPin[5], HIGH);
digitalWrite(colPin[10], HIGH);
}
/*
If called, it will display the number '8' in a 7-seg display.
*/
void number8() {
for (int i = 19; i >= 15; i--) {
digitalWrite(colPin[i], HIGH);
}
for (int i = 5; i < 10; i++) {
digitalWrite(colPin[i], HIGH);
}
digitalWrite(colPin[10], HIGH);
digitalWrite(colPin[12], HIGH);
digitalWrite(colPin[14], HIGH);
}
/*
If called, it will display the number '9' in a 7-seg display.
*/
void number9() {
for (int i = 19; i >= 15; i--) {
digitalWrite(colPin[i], HIGH);
}
for (int i = 5; i < 8; i++) {
digitalWrite(colPin[i], HIGH);
}
digitalWrite(colPin[10], HIGH);
digitalWrite(colPin[12], HIGH);
}
/*
If called, it will display the number '0' in a 7-seg display.
*/
void number0() {
for (int i = 19; i >= 14; i--) {
digitalWrite(colPin[i], HIGH);
}
for (int i = 5; i < 11; i++) {
digitalWrite(colPin[i], HIGH);
}
}
/*
If called, it will display the number from 0-9 in a 7-seg display.
It will call the previous 'number' functions in order to do this.
Will display a number based off the score of the player.
*/
void displaynumber(int input) {
// Turns off all the LEDS- prepairs to display the numbers.
for (int i = 0; i < 20; i++) {
digitalWrite(colPin[i], LOW);
}
delay(100);
// Calls the proper number function.
if (input == 1) {
number1();
} else if (input == 2) {
number2();
} else if (input == 3) {
number3();
} else if (input == 4) {
number4();
} else if (input == 5) {
number5();
} else if (input == 6) {
number6();
} else if (input == 7) {
number7();
} else if (input == 8) {
number8();
} else if (input == 9) {
number9();
} else if (input == 0) {
number0();
}
}
/*
Display "A" (for Aditya) in morse code, symbolic "and",
and "M" (for Micheal) in morse code
Easter Egg to be found by user!
*/
void displayAandM(){
//A is .-
for (int i = 0; i < 20; i++) {
digitalWrite(colPin[i], HIGH);
}
delay(700);
for (int i = 0; i < 20; i++) {
digitalWrite(colPin[i], LOW);
}
delay(500);
for (int i = 0; i < 20; i++) {
digitalWrite(colPin[i], HIGH);
}
delay(2100);
for (int i = 0; i < 20; i++) {
digitalWrite(colPin[i], LOW);
}
delay(1500);
//"and" character
for (int i = 1; i < 4; i++){
digitalWrite(colPin[i], HIGH);
}
digitalWrite(colPin[6], HIGH);
digitalWrite(colPin[8], HIGH);
for (int i = 10; i < 15; i++){
digitalWrite(colPin[i], HIGH);
}
digitalWrite(colPin[16], HIGH);
digitalWrite(colPin[18], HIGH);
delay(2000);
for (int i = 0; i < 20; i++) {
digitalWrite(colPin[i], LOW);
}
delay(1000);
//M is --
for (int i = 0; i < 20; i++) {
digitalWrite(colPin[i], HIGH);
}
delay(2100);
for (int i = 0; i < 20; i++) {
digitalWrite(colPin[i], LOW);
}
delay(500);
for (int i = 0; i < 20; i++) {
digitalWrite(colPin[i], HIGH);
}
delay(2100);
for (int i = 0; i < 20; i++) {
digitalWrite(colPin[i], LOW);
}
delay(2000);
}
/*
This function will be called in main. Once both buttons are pushed down for
3 seconds, the game will start.
*/
void start() {
// This loop is run forever until the player chooses to start the game.
bool loopBreaker = true;
while (true) {
// This will wait until both right and left buttons are pressed for 3
// seconds before allowing for game to begin.
startMillis = millis();
while (digitalRead(ButtonLeft) == LOW &&\
digitalRead(ButtonRight) == LOW) {
currentMillis = millis();
// This will show the number 3 and play a sound.
if (currentMillis - startMillis <= 500) {
tone(speaker, tones[0]);
number3();
// Turns off everything.
} else if (currentMillis - startMillis <= 1000) {
noTone(speaker);
immitatesetup();
// Displays number 2 and plays a sound.
} else if (currentMillis - startMillis <= 1500) {
tone(speaker, tones[5]);
number2();
// Turns everything off.
} else if (currentMillis - startMillis <=2000) {
noTone(speaker);
immitatesetup();
// Displays number 1 and plays a sound.
} else if (currentMillis - startMillis < 2500) {
tone(speaker, tones[10]);
number1();
// Turns everything off. Prepares to start the game.
} else if (currentMillis - startMillis >= 3000) {
noTone(speaker);
immitatesetup();
loopBreaker = false;
break;
}
}
// If the buttons are ever let go, this will reset the board.
while (digitalRead(ButtonLeft) == HIGH &&\
digitalRead(ButtonRight) == HIGH) {
immitatesetup();
noTone(speaker);
}
if (loopBreaker == false)
break;
}
}
/*
This is the first function which will be called. It will start and end the
game.
*/
int main() {
init();
setup();
start();
// This loop here is the essence of the game. It will run forever until the
// player is out of lives.
while (true) {
// Calls chainreaction().
chainreaction();
startMillis = millis();
// Allows 3 seconds for the player to be moving before calling the next
// itteration of chainreaction.
while (true) {
movement();
currentMillis = millis();
if (currentMillis - startMillis >= dropTime) {
// Increase in difficulty every few asteroids
if (dropTime > 1000) {
dropTime -= 50;
} else if (dropTime > 750) {
dropTime -= 25;
} else if (dropTime > 500) {
dropTime -= 10;
} else {
dropTime -= 5;
}
startMillis = currentMillis;
break;
}
}
// This break will be triggered if the player is out of lives.
if (endFlag == 1) {
break;
}
}
// This is going to display the final score for the player.
while (true) {
// Calls the display number based off 3 digits. So if you have a score
// of 3, the number 003 will be displayed.
displaynumber(counter / 100 % 10);
delay(1000);
displaynumber(counter / 10 % 10);
delay(1000);
displaynumber(counter % 10);
delay(1000);
// Turns off the board.
for (int i = 0; i < 20; i++) {
digitalWrite(colPin[i], LOW);
}
delay(1500);
//If the Easter Egg condition was met, display our first initials after the score
if (AandM == true){
displayAandM();
for (int i = 0; i < 20; i++) {
digitalWrite(colPin[i], LOW);
}
delay(1500);
}
// Turns off the board.
}
return 0;
}
|
e130fc077623431e2428f856ab75fe5b3e4295e8 | 32778129d2a249a2c1169cfb418520cb5906f83f | /TAEvalClient/QuitDialog.cpp | 00f36ba7abd1c4fa19ba43307f30606a3955cb03 | [] | no_license | stevenwu4/COMP3004 | c3023d9141bcc869327995d311c02abcf9bb8092 | 7c3d751e3093427e2f47f6216bac3f64c1f74b5a | refs/heads/master | 2021-05-27T23:16:49.786891 | 2013-12-10T10:48:04 | 2013-12-10T10:48:04 | 13,019,870 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 417 | cpp | QuitDialog.cpp | #include "QuitDialog.h"
#include "ui_QuitDialog.h"
QuitDialog::QuitDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::QuitDialog)
{
ui->setupUi(this);
this->setWindowTitle("TAEval");
p = parent;
}
QuitDialog::~QuitDialog()
{
delete ui;
}
void QuitDialog::on_quitButton_clicked()
{
this->close();
p->close();
}
void QuitDialog::on_cancelButton_clicked()
{
this->close();
}
|
d77de6eb5847b73b7604980f3dd1d0fc9250c893 | a97a53c58ae7eb110eab7aa6fde382eaada4d63d | /GE/ScaleDlg.h | a30e06145bff3ea2a79142fe9a671f4e51d947f2 | [] | no_license | meintjesbekker/GE | 8d7a0f40110fd87a58870d9ce7390cc1f2d05f45 | 821323f42657763c03d30c4fadd607b758417c8a | refs/heads/master | 2021-12-08T10:56:51.533338 | 2019-08-08T19:39:56 | 2019-08-08T19:39:56 | 153,671,097 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,814 | h | ScaleDlg.h | /*--------------------------------------------------------------------------*/
/* ScaleDlg.h */
/* */
/* Purpose : Member variables and functions for Scale dialog box. */
/* Author : Meintjes Bekker */
/* Date : Copyright 2000 */
/* Project : Groundwater Explorer */
/* Version : 1 */
/* Notes : User's Guide, section 2.1.3 "Interact". */
/*--------------------------------------------------------------------------*/
#if !defined(AFX_SCALEDLG_H__1BB63D11_D551_11D3_B176_0060084B410C__INCLUDED_)
#define AFX_SCALEDLG_H__1BB63D11_D551_11D3_B176_0060084B410C__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#include "Model.h"
#endif // _MSC_VER > 1000
class CScaleDlg : public CDialog
{
// public operations
public:
CScaleDlg( CWnd* pParent = NULL,
CModel* pcModel = NULL);
float GetXScale() const {return m_fXScale;};
float GetYScale() const {return m_fYScale;};
float GetZScale() const {return m_fZScale;};
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CScaleDlg)
public:
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// protected operations
protected:
// Generated message map functions
//{{AFX_MSG(CScaleDlg)
virtual BOOL OnInitDialog();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
// public attributes
public:
//{{AFX_DATA(CScaleDlg)
enum { IDD = IDD_SCALE };
float m_fXScale;
float m_fYScale;
float m_fZScale;
//}}AFX_DATA
// private attributes
private:
CModel* m_pModel;
};
//{{AFX_INSERT_LOCATION}}
#endif // !defined(AFX_SCALEDLG_H__1BB63D11_D551_11D3_B176_0060084B410C__INCLUDED_) |
c0313347095f08099c31d57f6f8929ad654bad4f | 39dab1db401759a5303947d6de01bf35afe5666b | /md/FlyFormatSource/RGradTime.h | 69ea3a8d016baeb899bf0d55fd8a57c755240a64 | [] | no_license | SoyuzDeveloperTeam/model_and_control | 036fb71693670ca35ced0cca4e6d4a511d0fc653 | 9ddc2063f285ca1de05248449f45028d209cb028 | refs/heads/master | 2022-07-25T10:50:23.677414 | 2022-07-09T16:56:11 | 2022-07-09T16:56:11 | 252,282,509 | 7 | 4 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 1,072 | h | RGradTime.h | // RGradTime.h: interface for the CRGradTime class.
//
//////////////////////////////////////////////////////////////////////
#ifndef GRADTIME_CLASS_H
#define GRADTIME_CLASS_H
//
/*
#define SCALE_MILLIS 14
#define SCALE_SECOND 2
#define SCALE_MINUTE 3
#define SCALE_HOUR 4
#define SCALE_SSS 5
#define SCALE_DEGREE 9
#define SCALE_RADIAN 10
#define SCALE_CENTURE 6
#define SCALE_DEFAULT 2 //Используется по умолчанию
*/
class FLYFORMAT_API CRGradTime {
friend class CRMoment;
public:
CRGradTime ( const double Value=0, const int measure = EDF_DEFAULT ) ;
~CRGradTime( ) ;
//
operator double();
//
void fromDouble(const double Value, const int measure = EDF_DEFAULT ) ;
double toDouble (const int measure = EDF_DEFAULT) const;
bool fromString(const char* stroka);
bool toString ( char* stroka ) const;
bool SetFields (const int h=0,const int m=0, const int s=0,const double millis=0);
bool GetFields (int* h,int* m,int*s,double* millis = 0 ) const;
protected:
double m_Value;
};
#endif // #ifndef GRADTIME_CLASS_H
|
2a7d6c236e98f5e316f327c5b2afe34826b83984 | 8b6ca0f7ef066212a8765bd1b5ce3c815027df26 | /main.cpp | fa2412a3b3cb3200d4c0c94e7ab378b39c78b06a | [] | no_license | ender233/cleancpp_TDD | 831d8c3d6df74d2f13c0ba6b8f1bf1484d9904fa | cd886585347a4db19af3953588ef4b07a0ca456f | refs/heads/master | 2020-12-30T06:10:00.685450 | 2020-02-07T09:36:39 | 2020-02-07T09:36:39 | 238,887,062 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,006 | cpp | main.cpp | #include <gtest/gtest.h>
#include "roman_number.hpp"
using namespace std;
/* 支持assertThat(3).isConvertedToRomanNumeral("XXXII")语法 */
class RomanNumberalAssert {
public:
RomanNumberalAssert() = delete;
RomanNumberalAssert(const unsigned int number) : number_(number) {}
void isConvertedToRomanNumeral(const std::string &expectedRomanNumeral) const {
EXPECT_EQ(expectedRomanNumeral, convertArabicNumberToRomanNumeral(number_));
}
private:
const unsigned int number_;
};
RomanNumberalAssert assertThat(const unsigned int arabicNumber) {
return RomanNumberalAssert(arabicNumber);
}
TEST(ArabicToRomanNumeralsConverterTestCase, conversionOfArabicNumbersToRomanNumerls_Works) {
assertThat(1).isConvertedToRomanNumeral("I");
assertThat(2).isConvertedToRomanNumeral("II");
assertThat(3).isConvertedToRomanNumeral("III");
assertThat(4).isConvertedToRomanNumeral("IV");
assertThat(5).isConvertedToRomanNumeral("V");
assertThat(6).isConvertedToRomanNumeral("VI");
assertThat(7).isConvertedToRomanNumeral("VII");
assertThat(9).isConvertedToRomanNumeral("IX");
assertThat(10).isConvertedToRomanNumeral("X");
assertThat(20).isConvertedToRomanNumeral("XX");
assertThat(30).isConvertedToRomanNumeral("XXX");
assertThat(33).isConvertedToRomanNumeral("XXXIII");
assertThat(37).isConvertedToRomanNumeral("XXXVII");
assertThat(50).isConvertedToRomanNumeral("L");
assertThat(99).isConvertedToRomanNumeral("XCIX");
assertThat(100).isConvertedToRomanNumeral("C");
assertThat(200).isConvertedToRomanNumeral("CC");
assertThat(300).isConvertedToRomanNumeral("CCC");
assertThat(499).isConvertedToRomanNumeral("CDXCIX");
assertThat(1000).isConvertedToRomanNumeral("M");
assertThat(2000).isConvertedToRomanNumeral("MM");
assertThat(2017).isConvertedToRomanNumeral("MMXVII");
assertThat(3333).isConvertedToRomanNumeral("MMMCCCXXXIII");
assertThat(3999).isConvertedToRomanNumeral("MMMCMXCIX");
}
|
33dfa805a495ce8c2758b583dded7f447eed40fb | bcfd76e6ade3129d28649c86f4fb0212a403fcd5 | /gen_list.cc | 24556861d0279c8c63cabf547a852736fd45c359 | [] | no_license | jixiangpan/cpp_file_stream | 1fc08aa718a917b89457dcdcd7ae692a2f325c8a | ceeaae59efe40135445c7bf1b9ada2232f1a8ab0 | refs/heads/master | 2020-07-24T10:45:46.920903 | 2019-09-11T20:16:44 | 2019-09-11T20:16:44 | 207,898,930 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,563 | cc | gen_list.cc | #include<iostream>
#include<fstream>
#include<cstdlib>
using namespace std;
#include "TROOT.h"
#include "TString.h"
void gen_list(int bgn, int end, int step, int flag)
{
TString roostr = "";
roostr = TString::Format("exe_%02d.sh", flag);
ofstream ListWrite(roostr, ios::out|ios::trunc);
ListWrite<<"#!"<<endl;
///
//TString roostr_file = "data_ext_tgm.list";
TString roostr_file = "data_bnb_numu.list";
///
ifstream InputFile_aa(roostr_file, ios::in);
if(!InputFile_aa) {
cerr<<" No input-list"<<endl;
exit(1);
}
int line_aa = 0;
while( !InputFile_aa.eof() ) {
line_aa++;
InputFile_aa>>roostr;
}
line_aa -= 1;
cout<<endl<<TString::Format("Input-list line: %4d", line_aa)<<endl<<endl;
///
ifstream InputFile_ab(roostr_file, ios::in);
for(int idx=1; idx<=line_aa; idx++) {
InputFile_ab>>roostr;
if( idx<bgn || idx>end ) continue;
ListWrite<<TString::Format("dev-wire-cell-tpc-light ./ChannelWireGeometry_v2.txt ")<< roostr <<endl;
}
ListWrite.close();
cout<<endl<<" chmod 744 *.sh"<<endl<<endl;
// cout<<endl;
// for(int idx=bgn; idx<=end; idx++) {
// int sub_bgn = (idx-1)*step+1;
// int sub_end = idx*step;
// //cout<<TString::Format("root -b -q read_Teval.cc+(%d, %d)", sub_bgn, sub_end)<<endl;
// //ListWrite<<"sleep 2"<<endl;
// //cout<<TString::Format("echo %6d %6d", sub_bgn, sub_end)<<endl;
// ListWrite<<TString::Format("./main_read_speb -b %6d -e %6d", sub_bgn, sub_end)<<endl;
// }
// cout<<endl;
// ListWrite.close();
}
|
e57bce3fe4f753d5cb22d99af9a7e62ed900bd3e | a51b1c2df15a7e533b58fd2cf93730631efc2493 | /src/tracking/backgroundLearner.h | 97f0dee6831a6fcf4516ea189c1f7b9c8397bfdc | [] | no_license | Mimodek/Tracker | adc604b5e21061b1951c56cd056edaf71a11c128 | 2e7980202fb9ec0673f223a8d85103dd4ec45bcd | refs/heads/master | 2016-09-05T11:55:37.728367 | 2013-01-06T10:46:00 | 2013-01-06T10:46:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 498 | h | backgroundLearner.h | /*
* backgroundLearner.h
* fachada_tracking
*
* Created by Chris on 2/13/10.
* Copyright 2010 csugrue. All rights reserved.
*
*/
#pragma once
#include "ofMain.h"
#include "ofxCvMain.h"
class BackgroundLearner{
public:
BackgroundLearner();
~BackgroundLearner(){};
void setup(int w, int h);
void learnBackground( ofxCvGrayscaleImage & graySrc, float rate );
ofxCvGrayscaleImage grayImg;
float *imageFloat;
unsigned char *imageByte;
int w,h;
int framesLearned;
};
|
43ceb47907e8eb1d6ae5b0554ee1aeabeb5617e9 | a62342d6359a88b0aee911e549a4973fa38de9ea | /0.6.0.3/External/SDK/AdsMountingSystem_parameters.h | 332a94c75b3508efeabefdbd3e2c0181f4fa21d0 | [] | no_license | zanzo420/Medieval-Dynasty-SDK | d020ad634328ee8ee612ba4bd7e36b36dab740ce | d720e49ae1505e087790b2743506921afb28fc18 | refs/heads/main | 2023-06-20T03:00:17.986041 | 2021-07-15T04:51:34 | 2021-07-15T04:51:34 | 386,165,085 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 109,018 | h | AdsMountingSystem_parameters.h | #pragma once
// Name: Medieval Dynasty, Version: 0.6.0.3
/*!!DEFINE!!*/
/*!!HELPER_DEF!!*/
/*!!HELPER_INC!!*/
#ifdef _MSC_VER
#pragma pack(push, 0x01)
#endif
namespace CG
{
//---------------------------------------------------------------------------
// Parameters
//---------------------------------------------------------------------------
// Function AdsMountingSystem.AdsMountingSystemLibrary.TranslateVectorRelative
struct UAdsMountingSystemLibrary_TranslateVectorRelative_Params
{
struct FTransform Transform; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData, NoDestructor, NativeAccessSpecifierPublic)
struct FVector offsetValue; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
struct FVector outVector; // (Parm, OutParm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.AdsMountingSystemLibrary.SeatManager_SetSeatOccupiedById
struct UAdsMountingSystemLibrary_SeatManager_SetSeatOccupiedById_Params
{
struct FSeatManager inSeatManager; // (Parm, OutParm, ReferenceParm, NativeAccessSpecifierPublic)
int seatId; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
class APawn* occupyingPawn; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.AdsMountingSystemLibrary.SeatManager_SetSeatOccupiedAtIndex
struct UAdsMountingSystemLibrary_SeatManager_SetSeatOccupiedAtIndex_Params
{
struct FSeatManager inSeatManager; // (Parm, OutParm, ReferenceParm, NativeAccessSpecifierPublic)
int seatIndex; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
class APawn* occupyingPawn; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.AdsMountingSystemLibrary.SeatManager_IsSeatOccupiedById
struct UAdsMountingSystemLibrary_SeatManager_IsSeatOccupiedById_Params
{
struct FSeatManager inSeatManager; // (ConstParm, Parm, OutParm, ReferenceParm, NativeAccessSpecifierPublic)
int seatId; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.AdsMountingSystemLibrary.SeatManager_IsSeatOccupiedAtIndex
struct UAdsMountingSystemLibrary_SeatManager_IsSeatOccupiedAtIndex_Params
{
struct FSeatManager inSeatManager; // (ConstParm, Parm, OutParm, ReferenceParm, NativeAccessSpecifierPublic)
int seatIndex; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.AdsMountingSystemLibrary.SeatManager_IsDriverSeatId
struct UAdsMountingSystemLibrary_SeatManager_IsDriverSeatId_Params
{
struct FSeatManager inSeatManager; // (ConstParm, Parm, OutParm, ReferenceParm, NativeAccessSpecifierPublic)
int seatId; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.AdsMountingSystemLibrary.SeatManager_HasAvailableSeats
struct UAdsMountingSystemLibrary_SeatManager_HasAvailableSeats_Params
{
struct FSeatManager inSeatManager; // (ConstParm, Parm, OutParm, ReferenceParm, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.AdsMountingSystemLibrary.SeatManager_GetSeatDataById
struct UAdsMountingSystemLibrary_SeatManager_GetSeatDataById_Params
{
struct FSeatManager inSeatManager; // (ConstParm, Parm, OutParm, ReferenceParm, NativeAccessSpecifierPublic)
int seatId; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
struct FSeatData SeatData; // (Parm, OutParm, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.AdsMountingSystemLibrary.SeatManager_GetSeatDataAtIndex
struct UAdsMountingSystemLibrary_SeatManager_GetSeatDataAtIndex_Params
{
struct FSeatManager inSeatManager; // (ConstParm, Parm, OutParm, ReferenceParm, NativeAccessSpecifierPublic)
int seatDataIndex; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
struct FSeatData SeatData; // (Parm, OutParm, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.AdsMountingSystemLibrary.SeatManager_GetNumSeats
struct UAdsMountingSystemLibrary_SeatManager_GetNumSeats_Params
{
struct FSeatManager inSeatManager; // (ConstParm, Parm, OutParm, ReferenceParm, NativeAccessSpecifierPublic)
int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.AdsMountingSystemLibrary.SeatManager_GetNumRiders
struct UAdsMountingSystemLibrary_SeatManager_GetNumRiders_Params
{
struct FSeatManager inSeatManager; // (ConstParm, Parm, OutParm, ReferenceParm, NativeAccessSpecifierPublic)
int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.AdsMountingSystemLibrary.SeatManager_GetDriverSeat
struct UAdsMountingSystemLibrary_SeatManager_GetDriverSeat_Params
{
struct FSeatManager inSeatManager; // (ConstParm, Parm, OutParm, ReferenceParm, NativeAccessSpecifierPublic)
struct FSeatData outDriverSeatData; // (Parm, OutParm, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.AdsMountingSystemLibrary.SeatManager_FindAvailableMountingPosition
struct UAdsMountingSystemLibrary_SeatManager_FindAvailableMountingPosition_Params
{
struct FSeatManager inSeatManager; // (ConstParm, Parm, OutParm, ReferenceParm, NativeAccessSpecifierPublic)
AdsMountingSystem_EMountingDirection Position; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
struct FVector riderLocation; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
struct FTransform MountPosition; // (ConstParm, Parm, OutParm, ReferenceParm, IsPlainOldData, NoDestructor, NativeAccessSpecifierPublic)
int outSeatDataIndex; // (Parm, OutParm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.AdsMountingSystemLibrary.SeatManager_ClearOccupierById
struct UAdsMountingSystemLibrary_SeatManager_ClearOccupierById_Params
{
struct FSeatManager inSeatManager; // (Parm, OutParm, ReferenceParm, NativeAccessSpecifierPublic)
int seatId; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.AdsMountingSystemLibrary.SeatManager_ClearOccupierAtIndex
struct UAdsMountingSystemLibrary_SeatManager_ClearOccupierAtIndex_Params
{
struct FSeatManager inSeatManager; // (Parm, OutParm, ReferenceParm, NativeAccessSpecifierPublic)
int seatIndex; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.AdsMountingSystemLibrary.GetRelativeMountingPosition
struct UAdsMountingSystemLibrary_GetRelativeMountingPosition_Params
{
class AActor* mountActor; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
class AActor* riderActor; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool ignoreForwared; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool ignoreRight; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool ignoreUp; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
AdsMountingSystem_EMountingDirection ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.AdsMountingSystemLibrary.GetAngleFromUpBetweenActors
struct UAdsMountingSystemLibrary_GetAngleFromUpBetweenActors_Params
{
class AActor* mainActor; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
class AActor* targetActor; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.AdsMountingSystemLibrary.GetAngleFromRightBetweenActors
struct UAdsMountingSystemLibrary_GetAngleFromRightBetweenActors_Params
{
class AActor* mainActor; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
class AActor* targetActor; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.AdsMountingSystemLibrary.GetAngleFromForwardBetweenActors
struct UAdsMountingSystemLibrary_GetAngleFromForwardBetweenActors_Params
{
class AActor* mainActor; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
class AActor* targetActor; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
float ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.ADMUnifiedControllerPawn.PrepareToMount
struct UADMUnifiedControllerPawn_PrepareToMount_Params
{
class AActor* mountOrRider; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
class AActor* linkedActor; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
struct FMountActionResponse Response; // (Parm, OutParm, NoDestructor, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.ADMUnifiedControllerPawn.PrepareToDismount
struct UADMUnifiedControllerPawn_PrepareToDismount_Params
{
class AActor* mountOrRider; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
struct FMountActionResponse Response; // (Parm, OutParm, NoDestructor, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.ADMUnifiedControllerPawn.PerformMountPawn
struct UADMUnifiedControllerPawn_PerformMountPawn_Params
{
class APawn* mountOrRider; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.ADMUnifiedControllerPawn.PerformDismountPawn
struct UADMUnifiedControllerPawn_PerformDismountPawn_Params
{
class APawn* mountOrRider; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.ADMUnifiedControllerPawn.IsMounted
struct UADMUnifiedControllerPawn_IsMounted_Params
{
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.ADMUnifiedControllerPawn.IsCharacterMountable
struct UADMUnifiedControllerPawn_IsCharacterMountable_Params
{
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.ADMUnifiedControllerPawn.GetCharacterPawn
struct UADMUnifiedControllerPawn_GetCharacterPawn_Params
{
class APawn* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.ADMUnifiedControllerPawn.GetCharacterMount
struct UADMUnifiedControllerPawn_GetCharacterMount_Params
{
class AActor* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.ADMUnifiedControllerPawn.GetCharacterController
struct UADMUnifiedControllerPawn_GetCharacterController_Params
{
class AController* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.LinkedMountActor.SetMasterActor
struct ULinkedMountActor_SetMasterActor_Params
{
class AActor* masterActor; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
class AActor* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.LinkedMountActor.SetLinkedSeatId
struct ULinkedMountActor_SetLinkedSeatId_Params
{
int seatId; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.LinkedMountActor.GetMasterActor
struct ULinkedMountActor_GetMasterActor_Params
{
class AActor* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.LinkedMountActor.GetLinkedSeatId
struct ULinkedMountActor_GetLinkedSeatId_Params
{
int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.LinkedMountActor.GetLinkedActorMesh
struct ULinkedMountActor_GetLinkedActorMesh_Params
{
class UMeshComponent* ReturnValue; // (ExportObject, Parm, OutParm, ZeroConstructor, ReturnParm, InstancedReference, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.LinkedMountActorOwner.SetLinkedActor
struct ULinkedMountActorOwner_SetLinkedActor_Params
{
class AActor* newLinkedActor; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
int seatId; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
class AActor* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.LinkedMountActorOwner.GetLinkedActors
struct ULinkedMountActorOwner_GetLinkedActors_Params
{
TArray<class AActor*> ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.LinkedMountActorOwner.GetLinkedActor
struct ULinkedMountActorOwner_GetLinkedActor_Params
{
int seatId; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
class AActor* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnInterface.SetSeatOccupiedById
struct UMountablePawnInterface_SetSeatOccupiedById_Params
{
int seatId; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
class APawn* rider; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnInterface.SetSeatOccupiedAtIndex
struct UMountablePawnInterface_SetSeatOccupiedAtIndex_Params
{
int seatIndex; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
class APawn* rider; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnInterface.SetSeatOccupied
struct UMountablePawnInterface_SetSeatOccupied_Params
{
int seatIndex; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
class APawn* rider; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnInterface.OnRiderFinishedMounting
struct UMountablePawnInterface_OnRiderFinishedMounting_Params
{
class AActor* mountedActor; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
int seatId; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnInterface.OnRiderFinishedDismounting
struct UMountablePawnInterface_OnRiderFinishedDismounting_Params
{
class AActor* dismountedActor; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
int seatId; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnInterface.OnRiderFinishedChangingSeats
struct UMountablePawnInterface_OnRiderFinishedChangingSeats_Params
{
class AActor* rider; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
int newSeatId; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
int oldSeatId; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnInterface.MustHaveDriver
struct UMountablePawnInterface_MustHaveDriver_Params
{
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnInterface.IsSeatOccupiedById
struct UMountablePawnInterface_IsSeatOccupiedById_Params
{
int seatId; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnInterface.IsSeatOccupiedAtIndex
struct UMountablePawnInterface_IsSeatOccupiedAtIndex_Params
{
int seatIndex; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnInterface.IsMountablePawn
struct UMountablePawnInterface_IsMountablePawn_Params
{
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnInterface.IsMountableByPawn
struct UMountablePawnInterface_IsMountableByPawn_Params
{
class APawn* newRider; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnInterface.IsMountableActor
struct UMountablePawnInterface_IsMountableActor_Params
{
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnInterface.IsDriverSeat
struct UMountablePawnInterface_IsDriverSeat_Params
{
struct FSeatData SeatData; // (ConstParm, Parm, OutParm, ReferenceParm, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnInterface.IsDriverReady
struct UMountablePawnInterface_IsDriverReady_Params
{
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnInterface.HasPassangers
struct UMountablePawnInterface_HasPassangers_Params
{
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnInterface.HasDriver
struct UMountablePawnInterface_HasDriver_Params
{
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnInterface.GetSeatDataById
struct UMountablePawnInterface_GetSeatDataById_Params
{
int seatId; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
struct FSeatData SeatData; // (Parm, OutParm, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnInterface.GetSeatDataAtIndex
struct UMountablePawnInterface_GetSeatDataAtIndex_Params
{
int Index; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
struct FSeatData SeatData; // (Parm, OutParm, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnInterface.GetRelativePositionToMount
struct UMountablePawnInterface_GetRelativePositionToMount_Params
{
class APawn* rider; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
AdsMountingSystem_EMountingDirection ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnInterface.GetRelativeMountDirection
struct UMountablePawnInterface_GetRelativeMountDirection_Params
{
class APawn* rider; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
AdsMountingSystem_EMountingDirection ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnInterface.GetRelativeDismountDirection
struct UMountablePawnInterface_GetRelativeDismountDirection_Params
{
class APawn* rider; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
AdsMountingSystem_EMountingDirection ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnInterface.GetMountBody
struct UMountablePawnInterface_GetMountBody_Params
{
int seatId; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
class UMeshComponent* ReturnValue; // (ExportObject, Parm, OutParm, ZeroConstructor, ReturnParm, InstancedReference, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnInterface.GetMountablePawnComponent
struct UMountablePawnInterface_GetMountablePawnComponent_Params
{
class UMountablePawnComponent* ReturnValue; // (ExportObject, Parm, OutParm, ZeroConstructor, ReturnParm, InstancedReference, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnInterface.GetMaxRiders
struct UMountablePawnInterface_GetMaxRiders_Params
{
int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnInterface.GetDriver
struct UMountablePawnInterface_GetDriver_Params
{
class APawn* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnInterface.GetDismountDirection
struct UMountablePawnInterface_GetDismountDirection_Params
{
class APawn* rider; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
AdsMountingSystem_EMountingDirection ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnInterface.GetCurrentRiderCount
struct UMountablePawnInterface_GetCurrentRiderCount_Params
{
int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnInterface.FindAvailableMountingPosition
struct UMountablePawnInterface_FindAvailableMountingPosition_Params
{
AdsMountingSystem_EMountingDirection Position; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
struct FVector riderLocation; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
struct FSeatData outSeatData; // (Parm, OutParm, NativeAccessSpecifierPublic)
int outSeatIndex; // (Parm, OutParm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnInterface.ClearSeatByIndex
struct UMountablePawnInterface_ClearSeatByIndex_Params
{
int seatIndex; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnInterface.ClearSeatById
struct UMountablePawnInterface_ClearSeatById_Params
{
int seatId; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnInterface.ClearSeatAtIndex
struct UMountablePawnInterface_ClearSeatAtIndex_Params
{
int seatIndex; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnInterface.CanMountPawn
struct UMountablePawnInterface_CanMountPawn_Params
{
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnInterface.CanMountAtPosition
struct UMountablePawnInterface_CanMountAtPosition_Params
{
struct FVector riderLocation; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
AdsMountingSystem_EMountingDirection desiredMountingPosition; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnInterface.CanMountActor
struct UMountablePawnInterface_CanMountActor_Params
{
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountingSystemDebugInterface.SetPlayerDebugId
struct UMountingSystemDebugInterface_SetPlayerDebugId_Params
{
int newDebugId; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountingSystemDebugInterface.GetPlayerDebugId
struct UMountingSystemDebugInterface_GetPlayerDebugId_Params
{
int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountRiderInterface.StartPawnMounting
struct UMountRiderInterface_StartPawnMounting_Params
{
class AActor* newMountActor; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
class AActor* linkedActor; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
struct FMountActionResponse mountingResponse; // (Parm, OutParm, NoDestructor, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountRiderInterface.StartPawnDismounting
struct UMountRiderInterface_StartPawnDismounting_Params
{
class AActor* oldPawnMount; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
struct FMountActionResponse mountingResponse; // (Parm, OutParm, NoDestructor, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountRiderInterface.SetRiderCollisionEnabled
struct UMountRiderInterface_SetRiderCollisionEnabled_Params
{
bool shouldEnable; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountRiderInterface.PlayMoveToSeatAnimation
struct UMountRiderInterface_PlayMoveToSeatAnimation_Params
{
int currentSeatId; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
int oldSeatId; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountRiderInterface.PlayMountingAnimation
struct UMountRiderInterface_PlayMountingAnimation_Params
{
AdsMountingSystem_EMountingDirection Position; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountRiderInterface.PlayDismountingAnimation
struct UMountRiderInterface_PlayDismountingAnimation_Params
{
AdsMountingSystem_EMountingDirection Position; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountRiderInterface.OnMoveToMountingLocationCompleted
struct UMountRiderInterface_OnMoveToMountingLocationCompleted_Params
{
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountRiderInterface.OnMountingPawnFinished
struct UMountRiderInterface_OnMountingPawnFinished_Params
{
class AActor* newMountActor; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountRiderInterface.OnDismountingPawnFinished
struct UMountRiderInterface_OnDismountingPawnFinished_Params
{
class AActor* oldPawnMount; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountRiderInterface.OnChangeToNewSeatCompleted
struct UMountRiderInterface_OnChangeToNewSeatCompleted_Params
{
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountRiderInterface.MoveToMountingLocation
struct UMountRiderInterface_MoveToMountingLocation_Params
{
struct FVector Location; // (ConstParm, Parm, OutParm, ZeroConstructor, ReferenceParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
struct FRotator Orientation; // (ConstParm, Parm, OutParm, ZeroConstructor, ReferenceParm, IsPlainOldData, NoDestructor, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountRiderInterface.IsSeatedOnMount
struct UMountRiderInterface_IsSeatedOnMount_Params
{
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountRiderInterface.IsDriver
struct UMountRiderInterface_IsDriver_Params
{
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountRiderInterface.GetSeatId
struct UMountRiderInterface_GetSeatId_Params
{
int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountRiderInterface.GetRiderMesh
struct UMountRiderInterface_GetRiderMesh_Params
{
class UMeshComponent* ReturnValue; // (ExportObject, Parm, OutParm, ZeroConstructor, ReturnParm, InstancedReference, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountRiderInterface.GetMountRiderComponent
struct UMountRiderInterface_GetMountRiderComponent_Params
{
class UMountRiderComponent* ReturnValue; // (ExportObject, Parm, OutParm, ZeroConstructor, ReturnParm, InstancedReference, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountRiderInterface.GetDebugId
struct UMountRiderInterface_GetDebugId_Params
{
int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountRiderInterface.GetAllRiderSkeletalMeshes
struct UMountRiderInterface_GetAllRiderSkeletalMeshes_Params
{
TArray<class USkeletalMeshComponent*> ReturnValue; // (ExportObject, Parm, OutParm, ZeroConstructor, ReturnParm, ContainsInstancedReference, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountRiderInterface.BeginMountingPawn
struct UMountRiderInterface_BeginMountingPawn_Params
{
class APawn* newMountPawn; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountRiderInterface.BeginDismountingPawn
struct UMountRiderInterface_BeginDismountingPawn_Params
{
class APawn* dismountedPawn; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.RiderControllerInterface.PossessCharacter
struct URiderControllerInterface_PossessCharacter_Params
{
class APawn* characterToPossess; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.RiderControllerInterface.OnRiderRemoved
struct URiderControllerInterface_OnRiderRemoved_Params
{
class AActor* removedRider; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
int seatId; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.RiderControllerInterface.OnRiderAdded
struct URiderControllerInterface_OnRiderAdded_Params
{
class AActor* newRider; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
int seatId; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.RiderControllerInterface.OnOtherRiderChangedSeats
struct URiderControllerInterface_OnOtherRiderChangedSeats_Params
{
class AActor* otherRider; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
int oldSeatId; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
int newSeatId; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.RiderControllerInterface.OnMountActionFailed
struct URiderControllerInterface_OnMountActionFailed_Params
{
class AActor* newMount; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
class AActor* newLinkedActor; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
struct FMountActionResponse Response; // (Parm, NoDestructor, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.RiderControllerInterface.OnDismountActionFailed
struct URiderControllerInterface_OnDismountActionFailed_Params
{
class AActor* currentMount; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
struct FMountActionResponse Response; // (Parm, NoDestructor, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.RiderControllerInterface.OnChangeSeatActionFailed
struct URiderControllerInterface_OnChangeSeatActionFailed_Params
{
struct FMountActionResponse Response; // (Parm, NoDestructor, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.RiderControllerInterface.GetRiderControllerComponent
struct URiderControllerInterface_GetRiderControllerComponent_Params
{
class URiderControllerComponent* ReturnValue; // (ExportObject, Parm, OutParm, ZeroConstructor, ReturnParm, InstancedReference, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnComponent.SetSeatOccupiedById
struct UMountablePawnComponent_SetSeatOccupiedById_Params
{
int seatId; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
class APawn* rider; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnComponent.SetSeatOccupiedAtIndex
struct UMountablePawnComponent_SetSeatOccupiedAtIndex_Params
{
int seatIndex; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
class APawn* rider; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnComponent.SetSeatOccupied
struct UMountablePawnComponent_SetSeatOccupied_Params
{
int seatIndex; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
class APawn* rider; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnComponent.SetRiderBySeatId
struct UMountablePawnComponent_SetRiderBySeatId_Params
{
class APawn* newRider; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
int seatId; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnComponent.SetRiderAtSeatIndex
struct UMountablePawnComponent_SetRiderAtSeatIndex_Params
{
class APawn* newRider; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
int seatIndex; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnComponent.SetRider
struct UMountablePawnComponent_SetRider_Params
{
class APawn* newRider; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
int seatId; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnComponent.SetIsMountable
struct UMountablePawnComponent_SetIsMountable_Params
{
bool IsMountable; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnComponent.RiderFinishedMounting
struct UMountablePawnComponent_RiderFinishedMounting_Params
{
class AActor* Actor; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
int seatId; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnComponent.RiderFinishedDismounting
struct UMountablePawnComponent_RiderFinishedDismounting_Params
{
class AActor* dismountedActor; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
int seatId; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnComponent.RiderFinishedChangingSeats
struct UMountablePawnComponent_RiderFinishedChangingSeats_Params
{
class AActor* rider; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
int newSeatId; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
int oldSeatId; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnComponent.MustHaveDriver
struct UMountablePawnComponent_MustHaveDriver_Params
{
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnComponent.IsSeatOccupiedById
struct UMountablePawnComponent_IsSeatOccupiedById_Params
{
int seatId; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnComponent.IsSeatOccupiedAtIndex
struct UMountablePawnComponent_IsSeatOccupiedAtIndex_Params
{
int seatIndex; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnComponent.IsPossessableMount
struct UMountablePawnComponent_IsPossessableMount_Params
{
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnComponent.IsMounted
struct UMountablePawnComponent_IsMounted_Params
{
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnComponent.IsMountable
struct UMountablePawnComponent_IsMountable_Params
{
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnComponent.IsDriverSeatId
struct UMountablePawnComponent_IsDriverSeatId_Params
{
int seatId; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnComponent.IsDriverSeat
struct UMountablePawnComponent_IsDriverSeat_Params
{
struct FSeatData SeatData; // (ConstParm, Parm, OutParm, ReferenceParm, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnComponent.HasDriver
struct UMountablePawnComponent_HasDriver_Params
{
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnComponent.GetSeatDataById
struct UMountablePawnComponent_GetSeatDataById_Params
{
int seatId; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
struct FSeatData SeatData; // (Parm, OutParm, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnComponent.GetSeatDataAtIndex
struct UMountablePawnComponent_GetSeatDataAtIndex_Params
{
int Index; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
struct FSeatData SeatData; // (Parm, OutParm, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnComponent.GetRiderBySeatId
struct UMountablePawnComponent_GetRiderBySeatId_Params
{
int seatId; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
class APawn* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnComponent.GetRiderAtIndex
struct UMountablePawnComponent_GetRiderAtIndex_Params
{
int seatIndex; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
class APawn* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnComponent.GetRider
struct UMountablePawnComponent_GetRider_Params
{
int seatId; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
class APawn* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnComponent.GetNumSeats
struct UMountablePawnComponent_GetNumSeats_Params
{
int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnComponent.GetNumRiders
struct UMountablePawnComponent_GetNumRiders_Params
{
int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnComponent.GetDriver
struct UMountablePawnComponent_GetDriver_Params
{
class APawn* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnComponent.GetDefaultPositionForSeatById
struct UMountablePawnComponent_GetDefaultPositionForSeatById_Params
{
int seatId; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
AdsMountingSystem_EMountingDirection ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnComponent.GetDefaultPositionForSeatAtIndex
struct UMountablePawnComponent_GetDefaultPositionForSeatAtIndex_Params
{
int seatIndex; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
AdsMountingSystem_EMountingDirection ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnComponent.FindAvailableMountingPosition
struct UMountablePawnComponent_FindAvailableMountingPosition_Params
{
AdsMountingSystem_EMountingDirection Position; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
struct FVector riderLocation; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
struct FSeatData outSeatData; // (Parm, OutParm, NativeAccessSpecifierPublic)
int outSeatIndex; // (Parm, OutParm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnComponent.ClearSeatByIndex
struct UMountablePawnComponent_ClearSeatByIndex_Params
{
int seatIndex; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnComponent.ClearSeatById
struct UMountablePawnComponent_ClearSeatById_Params
{
int seatId; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnComponent.ClearSeatAtIndex
struct UMountablePawnComponent_ClearSeatAtIndex_Params
{
int seatIndex; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountablePawnComponent.CanMount
struct UMountablePawnComponent_CanMount_Params
{
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountRiderComponent.UpdateRootMeshRelativeLocation
struct UMountRiderComponent_UpdateRootMeshRelativeLocation_Params
{
};
// Function AdsMountingSystem.MountRiderComponent.ShouldTeleportToDismountLocation
struct UMountRiderComponent_ShouldTeleportToDismountLocation_Params
{
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountRiderComponent.SetRootMotionValidationForAnimationEnabled
struct UMountRiderComponent_SetRootMotionValidationForAnimationEnabled_Params
{
bool IsRootMotionValidationForAnimationEnabled; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountRiderComponent.SetRiderController
struct UMountRiderComponent_SetRiderController_Params
{
class AController* Controller; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountRiderComponent.SetMovementReplication
struct UMountRiderComponent_SetMovementReplication_Params
{
bool enableMovementReplication; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool onlyAllowAutonomousTickPose; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountRiderComponent.Reset
struct UMountRiderComponent_Reset_Params
{
};
// Function AdsMountingSystem.MountRiderComponent.PawnFinishedMounting
struct UMountRiderComponent_PawnFinishedMounting_Params
{
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountRiderComponent.PawnFinishedDismounting
struct UMountRiderComponent_PawnFinishedDismounting_Params
{
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountRiderComponent.PawnFinishedChangingSeats
struct UMountRiderComponent_PawnFinishedChangingSeats_Params
{
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountRiderComponent.OnRep_IsMounted
struct UMountRiderComponent_OnRep_IsMounted_Params
{
bool previousMountedState; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountRiderComponent.OnRep_DismountDirection
struct UMountRiderComponent_OnRep_DismountDirection_Params
{
};
// Function AdsMountingSystem.MountRiderComponent.OnRep_CurrentSeatData
struct UMountRiderComponent_OnRep_CurrentSeatData_Params
{
};
// Function AdsMountingSystem.MountRiderComponent.OnRep_CurrentMount
struct UMountRiderComponent_OnRep_CurrentMount_Params
{
};
// Function AdsMountingSystem.MountRiderComponent.OnRep_CurrentAction
struct UMountRiderComponent_OnRep_CurrentAction_Params
{
};
// Function AdsMountingSystem.MountRiderComponent.OnCharacterMounted
struct UMountRiderComponent_OnCharacterMounted_Params
{
bool bPlayMountingAnimation; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountRiderComponent.OnCharacterDismounted
struct UMountRiderComponent_OnCharacterDismounted_Params
{
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountRiderComponent.OnCharacterChangedSeats
struct UMountRiderComponent_OnCharacterChangedSeats_Params
{
bool bPlayAnimation; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountRiderComponent.MULTICAST_OnCharacterDismounted
struct UMountRiderComponent_MULTICAST_OnCharacterDismounted_Params
{
AdsMountingSystem_EMountingDirection dismountDirection; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountRiderComponent.MoveToMountingLocationComplete
struct UMountRiderComponent_MoveToMountingLocationComplete_Params
{
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountRiderComponent.MountPawn
struct UMountRiderComponent_MountPawn_Params
{
class AActor* newMountActor; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
class AActor* newLinkedActor; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
struct FMountActionResponse Response; // (Parm, OutParm, NoDestructor, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountRiderComponent.IsSeated
struct UMountRiderComponent_IsSeated_Params
{
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountRiderComponent.IsRootMotionValidationForAnimationEnabled
struct UMountRiderComponent_IsRootMotionValidationForAnimationEnabled_Params
{
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountRiderComponent.IsMounted
struct UMountRiderComponent_IsMounted_Params
{
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountRiderComponent.IsDriver
struct UMountRiderComponent_IsDriver_Params
{
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountRiderComponent.GetSeatId
struct UMountRiderComponent_GetSeatId_Params
{
int ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountRiderComponent.GetRiderController
struct UMountRiderComponent_GetRiderController_Params
{
class AController* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountRiderComponent.GetPreviousMount
struct UMountRiderComponent_GetPreviousMount_Params
{
class AActor* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountRiderComponent.GetOwningPawn
struct UMountRiderComponent_GetOwningPawn_Params
{
class APawn* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountRiderComponent.GetLinkedMountActor
struct UMountRiderComponent_GetLinkedMountActor_Params
{
class AActor* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountRiderComponent.GetDismountLocation
struct UMountRiderComponent_GetDismountLocation_Params
{
AdsMountingSystem_EMountingDirection directionToDismount; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
struct FVector ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountRiderComponent.GetCurrentSeatData
struct UMountRiderComponent_GetCurrentSeatData_Params
{
struct FSeatData ReturnValue; // (Parm, OutParm, ReturnParm, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountRiderComponent.GetCurrentMount
struct UMountRiderComponent_GetCurrentMount_Params
{
class AActor* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountRiderComponent.DismountPawn
struct UMountRiderComponent_DismountPawn_Params
{
class AActor* dismountActor; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
struct FMountActionResponse Response; // (Parm, OutParm, NoDestructor, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountRiderComponent.DismountFinished
struct UMountRiderComponent_DismountFinished_Params
{
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountRiderComponent.DetachRiderFromMount
struct UMountRiderComponent_DetachRiderFromMount_Params
{
};
// Function AdsMountingSystem.MountRiderComponent.ChangeSeatToIndex
struct UMountRiderComponent_ChangeSeatToIndex_Params
{
int seatIndex; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
struct FMountActionResponse Response; // (Parm, OutParm, NoDestructor, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountRiderComponent.ChangeSeatById
struct UMountRiderComponent_ChangeSeatById_Params
{
int seatId; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
struct FMountActionResponse Response; // (Parm, OutParm, NoDestructor, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.MountRiderComponent.AttachRiderToMount
struct UMountRiderComponent_AttachRiderToMount_Params
{
};
// Function AdsMountingSystem.MountRiderComponent.AllowControllerToPossessMount
struct UMountRiderComponent_AllowControllerToPossessMount_Params
{
};
// Function AdsMountingSystem.MountRiderComponent.AllowControllerToPossessCharacter
struct UMountRiderComponent_AllowControllerToPossessCharacter_Params
{
};
// Function AdsMountingSystem.RiderControllerComponent.SetOwnedPawn
struct URiderControllerComponent_SetOwnedPawn_Params
{
class APawn* newOwnedPawn; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.RiderControllerComponent.SetMountPawn
struct URiderControllerComponent_SetMountPawn_Params
{
class APawn* newMountActor; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.RiderControllerComponent.SetMountActor
struct URiderControllerComponent_SetMountActor_Params
{
class AActor* newMountActor; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.RiderControllerComponent.SetLinkedMountActor
struct URiderControllerComponent_SetLinkedMountActor_Params
{
class AActor* newLinkedMountActor; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
class AActor* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.RiderControllerComponent.SetControlledPawn
struct URiderControllerComponent_SetControlledPawn_Params
{
class APawn* newControlledPawn; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.RiderControllerComponent.RiderRemoved
struct URiderControllerComponent_RiderRemoved_Params
{
class AActor* removedRider; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
int seatId; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.RiderControllerComponent.RiderAdded
struct URiderControllerComponent_RiderAdded_Params
{
class AActor* newRider; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
int seatId; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.RiderControllerComponent.Reset
struct URiderControllerComponent_Reset_Params
{
};
// Function AdsMountingSystem.RiderControllerComponent.PerformMountPawn
struct URiderControllerComponent_PerformMountPawn_Params
{
class APawn* newMountActor; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
struct FMountActionResponse Response; // (Parm, OutParm, NoDestructor, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.RiderControllerComponent.PerformMountActor
struct URiderControllerComponent_PerformMountActor_Params
{
class AActor* newMountActor; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
class AActor* newLinkedActor; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
struct FMountActionResponse Response; // (Parm, OutParm, NoDestructor, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.RiderControllerComponent.PerformDismountPawn
struct URiderControllerComponent_PerformDismountPawn_Params
{
class APawn* dismountingActor; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
struct FMountActionResponse Response; // (Parm, OutParm, NoDestructor, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.RiderControllerComponent.PerformDismountActor
struct URiderControllerComponent_PerformDismountActor_Params
{
class AActor* dismountingActor; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
struct FMountActionResponse Response; // (Parm, OutParm, NoDestructor, NativeAccessSpecifierPublic)
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.RiderControllerComponent.OtherRiderChangedSeat
struct URiderControllerComponent_OtherRiderChangedSeat_Params
{
class AActor* otherRider; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
int newSeatId; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
int oldSeatId; // (Parm, ZeroConstructor, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.RiderControllerComponent.IsMounted
struct URiderControllerComponent_IsMounted_Params
{
bool ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.RiderControllerComponent.GetOwningController
struct URiderControllerComponent_GetOwningController_Params
{
class AController* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.RiderControllerComponent.GetOwnedPawn
struct URiderControllerComponent_GetOwnedPawn_Params
{
class APawn* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.RiderControllerComponent.GetMountPawn
struct URiderControllerComponent_GetMountPawn_Params
{
class APawn* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.RiderControllerComponent.GetMountActor
struct URiderControllerComponent_GetMountActor_Params
{
class AActor* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.RiderControllerComponent.GetLinkedMountActor
struct URiderControllerComponent_GetLinkedMountActor_Params
{
class AActor* ReturnValue; // (Parm, OutParm, ZeroConstructor, ReturnParm, IsPlainOldData, NoDestructor, HasGetValueTypeHash, NativeAccessSpecifierPublic)
};
// Function AdsMountingSystem.RiderControllerComponent.ClearMount
struct URiderControllerComponent_ClearMount_Params
{
};
}
#ifdef _MSC_VER
#pragma pack(pop)
#endif
|
63a4a08500f6e1d792765869ebbc96956be9e896 | 01cfb4369ba826b309dce46069a596360139c5f8 | /ArduinoBuzz/test4/test4.ino | 5034f724e3338813243d89f5bedd3f9b2f68d2d9 | [] | no_license | SShariat/enph_253 | 5e3f8ec5332ce6af2fb5d8e24c51af1be9b810b6 | daf0306f2533d11ade5ac17841ea97e7b20bceae | refs/heads/master | 2021-01-18T16:36:22.461220 | 2014-08-14T19:31:00 | 2014-08-14T19:31:15 | 19,964,197 | 0 | 0 | null | 2014-08-05T07:30:08 | 2014-05-20T01:59:17 | Processing | UTF-8 | C++ | false | false | 1,083 | ino | test4.ino | //Having found out how to play tunes, I decided to make it play Ode To Joy! :D
int speakerPin = 9;
int numTones = 10;
int tones[] = {261, 277, 294, 311, 330, 349, 370, 392, 415, 440};
// mid C C# D D# E F F# G G# A
// 1 2 3 4 5 6 7 8 9 10
void setup()
{
// D F D F D' F D' / E D
}
void loop()
{
tone(speakerPin, tones[5]);
delay(500);
tone(speakerPin, tones[5]) ;
delay(500);
tone(speakerPin, tones[6]);
delay(500);
tone(speakerPin, tones[8]) ;
delay(500);
tone(speakerPin, tones[8]) ;
delay(500);
tone(speakerPin, tones[6]) ;
delay(500);
tone(speakerPin, tones[5]) ;
delay(500);
tone(speakerPin, tones[3]) ;
delay(500);
tone(speakerPin, tones[1]) ;
delay(500);
tone(speakerPin, tones[1]) ;
delay(500);
tone(speakerPin, tones[3]) ;
delay(500);
tone(speakerPin, tones[5]) ;
delay(500);
tone(speakerPin, tones[5]) ;
delay(500);
tone(speakerPin, tones[3]) ;
delay(500);
tone(speakerPin, tones[3]) ;
delay(500);
delay(3000);
}
|
efc6e96c9ff1168ec2b95f0b425d8b0df042f807 | 65de955daded3fef861483c52dd6a5589a910605 | /win-win [spatial] - 1/SportsBetting - 6/SportsBettingView.cpp | ec5ae98d9253f1a60044937c85e2467f51e0b868 | [] | no_license | labelexe/new | 6d88b8e24badd0344325398dc31106321efd2229 | b82f354efb312fe1c4ea3f3fefe0204eb487cb0c | refs/heads/master | 2023-06-04T04:53:48.040234 | 2018-04-16T02:11:09 | 2018-04-16T02:11:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,108 | cpp | SportsBettingView.cpp |
// SportsBettingView.cpp : implementation of the CSportsBettingView class
//
#include "stdafx.h"
// SHARED_HANDLERS can be defined in an ATL project implementing preview, thumbnail
// and search filter handlers and allows sharing of document code with that project.
#ifndef SHARED_HANDLERS
#include "SportsBetting.h"
#endif
#include "SportsBettingDoc.h"
#include "SportsBettingView.h"
#include "GameData.h"
#include "MainFrm.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
#define COL_WIDTH 60
// CSportsBettingView
IMPLEMENT_DYNCREATE(CSportsBettingView, CView)
BEGIN_MESSAGE_MAP(CSportsBettingView, CView)
ON_WM_CONTEXTMENU()
ON_WM_RBUTTONUP()
ON_WM_CREATE()
ON_WM_SIZE()
END_MESSAGE_MAP()
// CSportsBettingView construction/destruction
CSportsBettingView::CSportsBettingView()
{
// TODO: add construction code here
}
CSportsBettingView::~CSportsBettingView()
{
}
BOOL CSportsBettingView::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
return CView::PreCreateWindow(cs);
}
void CSportsBettingView::OnDraw(CDC* pDC)
{
}
void CSportsBettingView::OnInitialUpdate()
{
CView::OnInitialUpdate();
theFrame->m_pMainView = this;
theFrame->m_Grid = &m_Grid;
InitListControl();
}
void CSportsBettingView::OnRButtonUp(UINT /* nFlags */, CPoint point)
{
ClientToScreen(&point);
}
// CSportsBettingView diagnostics
#ifdef _DEBUG
void CSportsBettingView::AssertValid() const
{
CView::AssertValid();
}
void CSportsBettingView::Dump(CDumpContext& dc) const
{
CView::Dump(dc);
}
CSportsBettingDoc* CSportsBettingView::GetDocument() const // non-debug version is inline
{
ASSERT(m_pDocument->IsKindOf(RUNTIME_CLASS(CSportsBettingDoc)));
return (CSportsBettingDoc*)m_pDocument;
}
#endif //_DEBUG
// CSportsBettingView message handlers
int CSportsBettingView::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CView::OnCreate(lpCreateStruct) == -1)
return -1;
m_Grid.Create(CRect(0, 0, 0, 0), this, IDC_LIST);
return 0;
}
void CSportsBettingView::OnSize(UINT nType, int cx, int cy)
{
CView::OnSize(nType, cx, cy);
// TODO: Add your message handler code here
if (::IsWindow(m_Grid.m_hWnd))
m_Grid.MoveWindow(0, 0, cx, cy, TRUE);
}
void CSportsBettingView::InitListControl()
{
m_nFixCols = 2;
m_nFixRows = 2;
m_Grid.GetDefaultCell(FALSE, FALSE)->SetBackClr(RGB(0xFF, 0xFF, 0xE0));
m_Grid.SetFixedColumnSelection(TRUE);
m_Grid.SetFixedRowSelection(TRUE);
m_Grid.SetEditable(FALSE);
return;
}
void CSportsBettingView::DeleteAllItems()
{
m_Grid.DeleteAllItems();
}
BOOL CSportsBettingView::IsTableStructureChanged(CGameInfo* pGameInfo)
{
if (theFrame->m_pCurSelGameInfo == NULL)
return TRUE;
if (*pGameInfo != *theFrame->m_pCurSelGameInfo)
return TRUE;
return FALSE;
}
int CSportsBettingView::GetSameCaption(CString strLabel, int nStartColNo, int nCount)
{
for (int i = 0; i < nCount; i++)
{
CString str = m_Grid.GetItemText(1, nStartColNo + i);
if (str == strLabel)
{
return nStartColNo + i;
}
}
return -1;
}
TCHAR g_szHTeam[MAX_TEAM_NAME], g_szATeam[MAX_TEAM_NAME], g_szGame[0x200], g_szStage1[0x40], g_szLeague[MAX_LEAGUE_NAME];
void CSportsBettingView::UpdateList(CGameInfo* pGameInfo, BOOL bNewTreeItem)
{
if (bNewTreeItem || IsTableStructureChanged(pGameInfo))
{
m_Grid.DeleteAllText();
//m_Grid.DeleteAllColor();
if (theFrame->m_pCurSelGameInfo)
delete theFrame->m_pCurSelGameInfo;
theFrame->m_pCurSelGameInfo = new CGameInfo(pGameInfo);
}
//if (strstr(pGameInfo->m_szHTName, "Akademiya") != 0)
// _asm int 3
m_nCols = 80;
m_nRows = 2 + 3 * pGameInfo->m_aryGameData.GetSize();
m_Grid.SetRowCount(m_nRows);
m_Grid.SetColumnCount(m_nCols);
GV_ITEM Item;
Item.mask = GVIF_TEXT;
int i, j;
int nColNo = 0;
int nStartColNo = 0;
m_Grid.MergeCells(0, 0, 1, 0);
CString strTime;
TCHAR szStage[MAX_STAGE_NAME];
string sStage = GetStage(pGameInfo->m_MainInfo.m_szStage, pGameInfo->m_MainInfo.m_nTime);
::ToUnicode(sStage.c_str(), szStage, CP_ACP);
strTime.Format(_T("%.2d:%.2d(%s)"), pGameInfo->m_MainInfo.m_nTime / 60, pGameInfo->m_MainInfo.m_nTime % 60, szStage);
m_Grid.SetItemText(0, 0, strTime);
//BookMaker
m_Grid.SetColumnWidth(nColNo, 100);
for (i = 0; i < pGameInfo->m_aryGameData.GetSize(); i++)
{
CGameData* pGameData = pGameInfo->m_aryGameData[i];
if (!pGameData)
ASSERT(0);
TCHAR szBookMaker[MAX_BOOKMAKER];
m_Grid.MergeCells(2 + i * 3, nColNo, 4 + i * 3, nColNo);
::ToUnicode(g_szSiteName[pGameData->m_nBookMaker], szBookMaker, CP_ACP);
m_Grid.SetItemText(2 + i * 3, nColNo, szBookMaker);
}
nColNo++;
//Comment
m_Grid.SetColumnWidth(nColNo, 90);
m_Grid.MergeCells(0, nColNo, 1, nColNo);
m_Grid.SetItemText(0, nColNo, _T("Comment"));
for (i = 0; i < pGameInfo->m_aryGameData.GetSize(); i++)
{
CGameData* pGameData = pGameInfo->m_aryGameData[i];
if (!pGameData)
ASSERT(0);
m_Grid.SetItemText(2 + i * 3, nColNo, _T("ht/over/odd"));
m_Grid.SetItemText(3 + i * 3, nColNo, _T("at/under/even"));
m_Grid.SetItemText(4 + i * 3, nColNo, _T("draw"));
}
nColNo++;
//Time
m_Grid.SetColumnWidth(nColNo, 140);
m_Grid.MergeCells(0, nColNo, 1, nColNo);
m_Grid.SetItemText(0, nColNo, _T("Time"));
for (i = 0; i < pGameInfo->m_aryGameData.GetSize(); i++)
{
CGameData* pGameData = pGameInfo->m_aryGameData[i];
if (!pGameData)
ASSERT(0);
DWORD dwPeriod = GetRelativeTime(pGameData->m_nLastTime, pGameData->m_nBeforeTime);
TCHAR szDuration[0x20];
_stprintf_s(szDuration, _T("%.4d-%.2d-%.2d %.2d:%.2d:%.2d (%ds)"), pGameData->m_nLastTime.wYear, pGameData->m_nLastTime.wMonth, pGameData->m_nLastTime.wDay,
pGameData->m_nLastTime.wHour, pGameData->m_nLastTime.wMinute, pGameData->m_nLastTime.wSecond, dwPeriod);
m_Grid.MergeCells(2 + i * 3, nColNo, 4 + i * 3, nColNo);
m_Grid.SetItemText(2 + i * 3, nColNo, szDuration);
}
nColNo++;
//Main
m_Grid.SetColumnWidth(nColNo, COL_WIDTH);
m_Grid.MergeCells(0, nColNo, 1, nColNo);
m_Grid.SetItemText(0, nColNo, _T("Main"));
for (i = 0; i < pGameInfo->m_aryGameData.GetSize(); i++)
{
CGameData* pGameData = pGameInfo->m_aryGameData[i];
if (!pGameData)
ASSERT(0);
//data
for (j = 0; j < pGameData->m_aryOddsInfo.GetSize(); j++)
{
COddsInfo* pOddsInfo = pGameData->m_aryOddsInfo[j];
if (pOddsInfo == NULL)
continue;
if (pOddsInfo->m_nOddsInfoKind == OI_MAIN)
{
m_Grid.SetItemFloat(2 + i * 3, nColNo, pOddsInfo->m_oVal1);
m_Grid.SetItemFloat(3 + i * 3, nColNo, pOddsInfo->m_oVal2);
if ((DWORD)pOddsInfo->fDraw != 0)
m_Grid.SetItemFloat(4 + i * 3, nColNo, pOddsInfo->fDraw);
break;
}
}
}
nColNo++;
//Handicap
//if (pGameInfo->GetCameCategory() != GC_CRICKET && pGameInfo->GetCameCategory() != GC_E_SPORTS && pGameInfo->GetCameCategory() != GC_SNOOKER)
{
nStartColNo = nColNo;
int nHandicapCount = 0;
for (i = 0; i < pGameInfo->m_aryGameData.GetSize(); i++)
{
CGameData* pGameData = pGameInfo->m_aryGameData[i];
if (!pGameData)
ASSERT(0);
for (j = 0; j < pGameData->m_aryOddsInfo.GetSize(); j++)
{
COddsInfo* pOddsInfo = pGameData->m_aryOddsInfo.ElementAt(j);
if (pOddsInfo == NULL)
continue;
if (pOddsInfo->m_nOddsInfoKind != OI_HANDICAP)
continue;
nHandicapCount++;
}
}
if (nHandicapCount != 0)
{
for (i = 0; i < nHandicapCount; i++)
m_Grid.SetColumnWidth(nColNo + i, COL_WIDTH);
int nHandicapNo = 0;
for (i = 0; i < pGameInfo->m_aryGameData.GetSize(); i++)
{
CGameData* pGameData = pGameInfo->m_aryGameData[i];
if (!pGameData)
ASSERT(0);
for (int jj = 0; jj < pGameData->m_aryOddsInfo.GetSize(); jj++)
{
COddsInfo* pOddsInfo = pGameData->m_aryOddsInfo[jj];
if (pOddsInfo == NULL)
continue;
if (pOddsInfo->m_nOddsInfoKind != OI_HANDICAP)
continue;
//(+1.5, -1.5)
CString strLabel = MakeHandicapLabel(pOddsInfo);
int nPos = GetSameCaption(strLabel, nStartColNo, nColNo - nStartColNo);
if (nPos == -1)
{
m_Grid.SetItemText(1, nColNo, strLabel);
m_Grid.SetItemFloat(2 + i * 3, nColNo, pOddsInfo->m_oVal1);
m_Grid.SetItemFloat(3 + i * 3, nColNo, pOddsInfo->m_oVal2);
nColNo++;
}
else
{
m_Grid.SetItemFloat(2 + i * 3, nPos, pOddsInfo->m_oVal1);
m_Grid.SetItemFloat(3 + i * 3, nPos, pOddsInfo->m_oVal2);
}
}
}
if (nColNo - nStartColNo >= 2)
m_Grid.MergeCells(0, nStartColNo, 0, nColNo - 1);
m_Grid.SetItemText(0, nStartColNo, _T("Handicap"));
}
//nColNo += (nHandicapCount * 2);
}
int nGoalsCount;
//Goals(Over/Under)
//if (pGameInfo->GetCameCategory() != GC_CRICKET && pGameInfo->GetCameCategory() != GC_DARTS && pGameInfo->GetCameCategory() != GC_SNOOKER)
{
nStartColNo = nColNo;
nGoalsCount = 0;
for (i = 0; i < pGameInfo->m_aryGameData.GetSize(); i++)
{
CGameData* pGameData = pGameInfo->m_aryGameData[i];
if (!pGameData)
ASSERT(0);
for (j = 0; j < pGameData->m_aryOddsInfo.GetSize(); j++)
{
COddsInfo* pOddsInfo = pGameData->m_aryOddsInfo.ElementAt(j);
if (pOddsInfo == NULL)
continue;
if (pOddsInfo->m_nOddsInfoKind != OI_GOAL_OU)
continue;
nGoalsCount++;
}
}
if (nGoalsCount != 0)
{
for (i = 0; i < nGoalsCount; i++)
m_Grid.SetColumnWidth(nColNo + i, COL_WIDTH);
int nGoalsNo = 0;
for (i = 0; i < pGameInfo->m_aryGameData.GetSize(); i++)
{
CGameData* pGameData = pGameInfo->m_aryGameData[i];
if (!pGameData)
ASSERT(0);
for (int jj = 0; jj < pGameData->m_aryOddsInfo.GetSize(); jj++)
{
COddsInfo* pOddsInfo = pGameData->m_aryOddsInfo[jj];
if (pOddsInfo == NULL)
continue;
if (pOddsInfo->m_nOddsInfoKind != OI_GOAL_OU)
continue;
CString strLabel = MakeGoalLabel(pOddsInfo);
int nPos = GetSameCaption(strLabel, nStartColNo, nColNo - nStartColNo);
if (nPos == -1)
{
m_Grid.SetItemText(1, nColNo, strLabel);
m_Grid.SetItemFloat(2 + i * 3, nColNo, pOddsInfo->m_oVal1);
m_Grid.SetItemFloat(3 + i * 3, nColNo, pOddsInfo->m_oVal2);
nColNo++;
}
else
{
m_Grid.SetItemFloat(2 + i * 3, nPos, pOddsInfo->m_oVal1);
m_Grid.SetItemFloat(3 + i * 3, nPos, pOddsInfo->m_oVal2);
}
}
}
if (nColNo - nStartColNo >= 2)
m_Grid.MergeCells(0, nStartColNo, 0, nColNo - 1);
m_Grid.SetItemText(0, nStartColNo, _T("Goals"));
}
//nColNo += (nGoalsCount * 2);
}
//Goals(Odd/Even)
//if (pGameInfo->GetCameCategory() != GC_CRICKET && pGameInfo->GetCameCategory() != GC_DARTS && pGameInfo->GetCameCategory() != GC_SNOOKER)
{
nStartColNo = nColNo;
nGoalsCount = 0;
for (i = 0; i < pGameInfo->m_aryGameData.GetSize(); i++)
{
CGameData* pGameData = pGameInfo->m_aryGameData[i];
if (!pGameData)
ASSERT(0);
for (j = 0; j < pGameData->m_aryOddsInfo.GetSize(); j++)
{
COddsInfo* pOddsInfo = pGameData->m_aryOddsInfo[j];
if (pOddsInfo->m_nOddsInfoKind != OI_GOAL_OE)
continue;
nGoalsCount++;
}
}
if (nGoalsCount != 0)
{
for (i = 0; i < nGoalsCount; i++)
m_Grid.SetColumnWidth(nColNo, COL_WIDTH);
//if (nGoalsCount >= 2)
// m_Grid.MergeCells(0, nColNo, 0, nColNo + 1);
m_Grid.SetItemText(0, nColNo, _T("Goals"));
int nGoalsNo = 0;
for (i = 0; i < pGameInfo->m_aryGameData.GetSize(); i++)
{
CGameData* pGameData = pGameInfo->m_aryGameData[i];
if (!pGameData)
ASSERT(0);
for (int jj = 0; jj < pGameData->m_aryOddsInfo.GetSize(); jj++)
{
COddsInfo* pOddsInfo = pGameData->m_aryOddsInfo[jj];
if (pOddsInfo->m_nOddsInfoKind != OI_GOAL_OE)
continue;
m_Grid.SetItemText(1, nColNo, _T("Odd/Evn"));
m_Grid.SetItemFloat(2 + i * 3, nColNo, pOddsInfo->m_oVal1);
m_Grid.SetItemFloat(3 + i * 3, nColNo, pOddsInfo->m_oVal2);
}
}
nColNo++;
}
}
//Goals(Team1)
// if (pGameInfo->GetCameCategory() != GC_CRICKET && pGameInfo->GetCameCategory() != GC_DARTS &&
// pGameInfo->GetCameCategory() != GC_E_SPORTS && pGameInfo->GetCameCategory() != GC_HANDBALL &&
// pGameInfo->GetCameCategory() != GC_RUGBY_SEVENS && pGameInfo->GetCameCategory() != GC_SNOOKER)
{
nStartColNo = nColNo;
nGoalsCount = 0;
for (i = 0; i < pGameInfo->m_aryGameData.GetSize(); i++)
{
CGameData* pGameData = pGameInfo->m_aryGameData[i];
if (!pGameData)
ASSERT(0);
for (j = 0; j < pGameData->m_aryOddsInfo.GetSize(); j++)
{
COddsInfo* pOddsInfo = pGameData->m_aryOddsInfo[j];
if (pOddsInfo->m_nOddsInfoKind != OI_TEAM1_GOAL_OU)
continue;
nGoalsCount++;
}
}
if (nGoalsCount != 0)
{
for (i = 0; i < nGoalsCount; i++)
m_Grid.SetColumnWidth(nColNo + i, COL_WIDTH);
int nGoalsNo = 0;
for (i = 0; i < pGameInfo->m_aryGameData.GetSize(); i++)
{
CGameData* pGameData = pGameInfo->m_aryGameData[i];
if (!pGameData)
ASSERT(0);
for (int jj = 0; jj < pGameData->m_aryOddsInfo.GetSize(); jj++)
{
COddsInfo* pOddsInfo = pGameData->m_aryOddsInfo[jj];
if (pOddsInfo->m_nOddsInfoKind != OI_TEAM1_GOAL_OU)
continue;
CString strLabel = MakeGoalLabel(pOddsInfo);
int nPos = GetSameCaption(strLabel, nStartColNo, nColNo - nStartColNo);
if (nPos == -1)
{
m_Grid.SetItemText(1, nColNo, strLabel);
m_Grid.SetItemFloat(2 + i * 3, nColNo, pOddsInfo->m_oVal1);
m_Grid.SetItemFloat(3 + i * 3, nColNo, pOddsInfo->m_oVal2);
nColNo++;
}
else
{
m_Grid.SetItemFloat(2 + i * 3, nPos, pOddsInfo->m_oVal1);
m_Grid.SetItemFloat(3 + i * 3, nPos, pOddsInfo->m_oVal2);
}
}
if (nColNo - nStartColNo >= 2)
m_Grid.MergeCells(0, nStartColNo, 0, nColNo - 1);
m_Grid.SetItemText(0, nStartColNo, _T("HT"));
}
//nColNo += (nGoalsCount * 2);
}
}
//Goals(Team2)
// if (pGameInfo->GetCameCategory() != GC_CRICKET && pGameInfo->GetCameCategory() != GC_DARTS &&
// pGameInfo->GetCameCategory() != GC_E_SPORTS && pGameInfo->GetCameCategory() != GC_HANDBALL &&
// pGameInfo->GetCameCategory() != GC_RUGBY_SEVENS && pGameInfo->GetCameCategory() != GC_SNOOKER)
{
nStartColNo = nColNo;
nGoalsCount = 0;
for (i = 0; i < pGameInfo->m_aryGameData.GetSize(); i++)
{
CGameData* pGameData = pGameInfo->m_aryGameData[i];
if (!pGameData)
ASSERT(0);
for (j = 0; j < pGameData->m_aryOddsInfo.GetSize(); j++)
{
COddsInfo* pOddsInfo = pGameData->m_aryOddsInfo[j];
if (pOddsInfo->m_nOddsInfoKind != OI_TEAM2_GOAL_OU)
continue;
nGoalsCount++;
}
}
if (nGoalsCount != 0)
{
for (i = 0; i < nGoalsCount; i++)
m_Grid.SetColumnWidth(nColNo + i, COL_WIDTH);
int nGoalsNo = 0;
for (i = 0; i < pGameInfo->m_aryGameData.GetSize(); i++)
{
CGameData* pGameData = pGameInfo->m_aryGameData[i];
if (!pGameData)
ASSERT(0);
for (int jj = 0; jj < pGameData->m_aryOddsInfo.GetSize(); jj++)
{
COddsInfo* pOddsInfo = pGameData->m_aryOddsInfo[jj];
if (pOddsInfo->m_nOddsInfoKind != OI_TEAM2_GOAL_OU)
continue;
CString strLabel = MakeGoalLabel(pOddsInfo);
int nPos = GetSameCaption(strLabel, nStartColNo, nColNo - nStartColNo);
if (nPos == -1)
{
m_Grid.SetItemText(1, nColNo, strLabel);
m_Grid.SetItemFloat(2 + i * 3, nColNo, pOddsInfo->m_oVal1);
m_Grid.SetItemFloat(3 + i * 3, nColNo, pOddsInfo->m_oVal2);
nColNo++;
}
else
{
m_Grid.SetItemFloat(2 + i * 3, nPos, pOddsInfo->m_oVal1);
m_Grid.SetItemFloat(3 + i * 3, nPos, pOddsInfo->m_oVal2);
}
}
}
if (nColNo - nStartColNo >= 2)
m_Grid.MergeCells(0, nStartColNo, 0, nColNo - 1);
m_Grid.SetItemText(0, nStartColNo, _T("AT"));
}
//nColNo += (nGoalsCount * 2);
}
m_Grid.SetColumnWidth(nColNo, 1000);
m_Grid.MergeCells(0, nColNo, 1, nColNo);
m_Grid.SetItemText(0, nColNo, _T("Game"));
for (i = 0; i < pGameInfo->m_aryGameData.GetSize(); i++)
{
CGameData* pGameData = pGameInfo->m_aryGameData[i];
if (!pGameData)
ASSERT(0);
m_Grid.MergeCells(2 + i * 3, nColNo, 4 + i * 3, nColNo);
::ToUnicode(pGameData->m_MainInfo.m_szHTName, g_szHTeam, CP_ACP);
::ToUnicode(pGameData->m_MainInfo.m_szATName, g_szATeam, CP_ACP);
::ToUnicode(pGameData->m_MainInfo.m_szStage, g_szStage1, CP_ACP);
::ToUnicode(pGameData->m_MainInfo.m_szLeague, g_szLeague, CP_ACP);
TCHAR szChanged[0x40];
_tcscpy_s(szChanged, _T(""));
if (pGameData->m_bHAChanged)
_tcscpy_s(szChanged, _T("[===============]"));
_stprintf_s(g_szGame, _T("%s : %s [%s] (ID : %d, ([%s (%d : %d)] (%d/%d/%d) : (%d/%d/%d)) : %s"), g_szHTeam, g_szATeam, g_szLeague, pGameData->m_nGameID,
g_szStage1, pGameData->m_MainInfo.m_nTime / 60, pGameData->m_MainInfo.m_nTime % 60,
pGameData->m_MainInfo.m_HTScore.nScore, pGameData->m_MainInfo.m_HTScore.nScore1, pGameData->m_MainInfo.m_HTScore.nScore2,
pGameData->m_MainInfo.m_ATScore.nScore, pGameData->m_MainInfo.m_ATScore.nScore1, pGameData->m_MainInfo.m_ATScore.nScore2, szChanged
);
m_Grid.SetItemText(2 + i * 3, nColNo, g_szGame);
}
nColNo++;
m_Grid.SetFixedRowCount(m_nFixRows);
m_Grid.SetFixedColumnCount(m_nFixCols);
}
|
b879314fedc788657c678db80409af1f62bf9601 | f0b7bcc41298354b471a72a7eeafe349aa8655bf | /codebase/apps/spdb_utils/src/Spdb2netCDF/FeatureNcFile.hh | f93aea0b7171e78c15fa8a21c9862deee64819d7 | [
"BSD-3-Clause"
] | permissive | NCAR/lrose-core | 23abeb4e4f1b287725dc659fb566a293aba70069 | be0d059240ca442883ae2993b6aa112011755688 | refs/heads/master | 2023-09-01T04:01:36.030960 | 2023-08-25T00:41:16 | 2023-08-25T00:41:16 | 51,408,988 | 90 | 53 | NOASSERTION | 2023-08-18T21:59:40 | 2016-02-09T23:36:25 | C++ | UTF-8 | C++ | false | false | 8,387 | hh | FeatureNcFile.hh | // *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
// ** Copyright UCAR (c) 1990 - 2016
// ** University Corporation for Atmospheric Research (UCAR)
// ** National Center for Atmospheric Research (NCAR)
// ** Boulder, Colorado, USA
// ** BSD licence applies - redistribution and use in source and binary
// ** forms, with or without modification, are permitted provided that
// ** the following conditions are met:
// ** 1) If the software is modified to produce derivative works,
// ** such modified software should be clearly marked, so as not
// ** to confuse it with the version available from UCAR.
// ** 2) Redistributions of source code must retain the above copyright
// ** notice, this list of conditions and the following disclaimer.
// ** 3) 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.
// ** 4) Neither the name of UCAR nor the names of its contributors,
// ** if any, may be used to endorse or promote products derived from
// ** this software without specific prior written permission.
// ** DISCLAIMER: THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS
// ** OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
// ** WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
// *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
/**
*
* @file FeatureNcFile.hh
*
* @class FeatureNcFile
*
* Class controlling access to a Feature netCDF file.
*
* @date 8/12/2014
*
*/
#ifndef FeatureNcFile_HH
#define FeatureNcFile_HH
#include <map>
#include <string>
#include <toolsa/DateTime.hh>
#include <toolsa/Path.hh>
#include <Ncxx/Nc3xFile.hh>
using namespace std;
/**
* @class FeatureNcFile
*/
class FeatureNcFile : public Nc3xFile
{
public:
////////////////////
// Public methods //
////////////////////
//////////////////////////////
// Constructors/Destructors //
//////////////////////////////
/**
* @brief Constructor
*
* @param[in] debug_flag Debug flag.
* @param[in] verbose_flag Verbose debug flag.
*/
FeatureNcFile(const string &file_format_string,
const bool debug_flag = false);
/**
* @brief Destructor
*/
virtual ~FeatureNcFile(void);
///////////////////////////////
// File manipulation methods //
///////////////////////////////
/**
* @brief Open the file for writing.
*
* @param[in] output_dir Output directory.
* @param[in] interval_start The start time for the data.
* @param[in] interval_end The end time for the data.
*
* @return Returns true on success, false on failure.
*/
bool openWrite(const string &output_dir,
const DateTime &interval_start, const DateTime &interval_end);
/**
* @brief Get the number of records currently in the file.
*
* @return Returns the number of records currently in the file.
*/
size_t getNumRecords() const
{
return _recordDim.getSize();
}
/**
* @brief Add a 1-D variable to the file. The variable will have an unlimited
* dimension of the record number.
*
* @param[in] nc_var The netCDF variable object to use.
* @param[in] name The name of the variable.
* @param[in] standardName The standard name of the variable.
* @param[in] longName The long name of the variable.
* @param[in] ncType The netCDF type of the variable.
* @param[in] units The units for the variable.
* @param[in] coordinates The coordinates for the variable.
*
* @return Returns true on success, false on failure.
*/
bool addVar(const string &name,
const string &standardName,
const string &longName,
NcType ncType,
const string &units = "",
const string &coordinates = "")
{
NcVar *nc_var = new NcVar();
if (Nc3xFile::addVar(*nc_var, name, standardName, longName,
ncType, _recordDim, units) != 0)
return false;
if (coordinates.length() > 0)
addAttr(*nc_var, "coordinates", coordinates);
_varList[name] = nc_var;
return true;
}
/**
* @brief Add a 1-D altitude variable to the file. The variable will have
* an unlimited dimension of the record number.
*
* @param[in] nc_var The netCDF variable object to use.
* @param[in] name The name of the variable.
* @param[in] standardName The standard name of the variable.
* @param[in] longName The long name of the variable.
* @param[in] ncType The netCDF type of the variable.
* @param[in] units The units for the variable.
*
* @return Returns true on success, false on failure.
*/
bool addAltVar(const string &name,
const string &standardName,
const string &longName,
NcType ncType,
const string &units = "")
{
NcVar *nc_var = new NcVar();
if (Nc3xFile::addVar(*nc_var, name, standardName, longName,
ncType, _recordDim, units) != 0)
return false;
addAttr(*nc_var, "positive", "up");
addAttr(*nc_var, "axis", "Z");
_varList[name] = nc_var;
return true;
}
/**
* @brief Set the value of the variable list initialized flag. This flag
* should be set to true after addVar() or addAltVar() has been called
* for each of the variables in the file.
*
* @param[in] initialized Flag indicating whether the list has been
* initialized.
*/
void setVarListInitialized(const bool initialized)
{
_varListInitialized = initialized;
}
/**
* @brief Query the value of the variable list initialized flag.
*
* @return Returns true if the list has been initialized, false otherwise.
*/
bool isVarListInitialized() const
{
return _varListInitialized;
}
/**
* @brief Append a record value to the given variable.
*
* @param[in] name The name of the variable in the netCDF file.
* @param[in] value The data value.
* @param[in] record_num The record number for the new value.
*
* @return Returns true on success, false on failure.
*/
bool appendValue(const string &name, const double value, const size_t record_num);
bool appendValue(const string &name, const int value, const size_t record_num);
bool appendValue(const string &name, const bool value, const size_t record_num);
bool appendValue(const string &name, const string &value, const size_t record_num);
/**
* @brief Get the name of the current output file.
*
* @return Returns the name of the current output file.
*/
string getFileName() const
{
return _filePath.getFile();
}
protected:
///////////////////////
// Protected members //
///////////////////////
/**
* @brief Debug flag.
*/
bool _debug;
/**
* @brief Verbose debug flag.
*/
bool _verbose;
/**
* @brief The path to the current output file.
*/
Path _filePath;
/**
* @brief The file format string. This string identifies the type of data
* stored in the file.
*/
string _fileFormat;
/**
* @brief The record dimension. This is the unlimited dimension.
*/
NcDim _recordDim;
/**
* @brief Flag indicating whether the variable list has been initialized.
* The value of this flag is controlled by the client.
*/
bool _varListInitialized;
/**
* @brief Pointers to the variables in the netCDF file.
*/
map< string, NcVar* > _varList;
///////////////////////
// Protected methods //
///////////////////////
/**
* @brief Construct the file path based on the given information.
*
* @param[in] output_dir Output directory.
* @param[in] interval_start The start time for the data.
* @param[in] interval_end The end time for the data.
*
* @return Returns the constructed file path.
*/
Path _constructFilePath(const string &output_dir,
const DateTime &interval_start,
const DateTime &interval_end) const;
};
#endif
|
4d7a02b30bb8f001e17828200752b35c656e0a15 | 67b7a7085447b7561208ed6df95dd3133df580e2 | /sep97/XDC DEMO/Sources/stats.cpp | f4b905d92b4599e847b4c437203e10ffe1175d9d | [] | no_license | dwilliamson/GDMagArchive | 81fd5b708417697bfb2caf8a983dd3ad7decdaf7 | 701948bbd74b7ae765be8cdaf4ae0f875e2bbf8e | refs/heads/master | 2021-06-07T23:41:08.343776 | 2016-10-31T14:42:20 | 2016-10-31T14:42:20 | 72,441,821 | 74 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 10,608 | cpp | stats.cpp | /*==========================================================================
*
* Copyright (C) 1995, 1996 Microsoft Corporation. All Rights Reserved.
*
* File: stats.cpp
*
***************************************************************************/
#include "d3dmain.h"
#include "main.h"
/*
* GLOBAL VARIABLES
*/
extern D3DAppInfo* d3dapp; /* Pointer to read only collection of DD and D3D
objects maintained by D3DApp */
extern d3dmainglobals myglobs; /* collection of global variables */
static struct {
HFONT hFont;
SIZE szFrameRate;
SIZE szInfo;
} statglobs;
/************************************************************************
Frame rate and info text
************************************************************************/
BOOL
WriteFrameRateBuffer(float fps, long tps)
{
HRESULT LastError;
HDC hdc;
RECT rc;
char buf1[30], buf2[30], buf[60];
int len;
if (!myglobs.lpFrameRateBuffer)
return TRUE;
if (fps > 0.0f)
wsprintf(buf1, "%d.%02d fps ",
(int)( fps * 100 ) / 100,
(int)( fps * 100 ) % 100);
else
buf1[0] = 0;
#if 0
if (tps > 0)
wsprintf(buf2, "%ld tps ", tps);
else
buf2[0] = 0;
#endif
//len = wsprintf(buf, "%s%s", buf1, buf2);
len = wsprintf(buf, "%s", buf1);
if (!myglobs.lpFrameRateBuffer)
return FALSE;
LastError = myglobs.lpFrameRateBuffer->GetDC(&hdc);
if (LastError != DD_OK) {
/*
* If this fails, it's not vital, so don't report an error.
*/
return TRUE;
}
SelectObject(hdc, statglobs.hFont);
SetTextColor(hdc, RGB(255,255,0));
SetBkColor(hdc, RGB(0,0,0));
SetBkMode(hdc, OPAQUE);
GetTextExtentPoint32(hdc, buf, len, &statglobs.szFrameRate);
SetRect(&rc, 0, 0, statglobs.szFrameRate.cx, statglobs.szFrameRate.cy);
ExtTextOut(hdc, 0, 0, ETO_OPAQUE, &rc, buf, len, NULL);
myglobs.lpFrameRateBuffer->ReleaseDC(hdc);
return TRUE;
}
BOOL
WriteFrameRateBufferWithSpot(float fps, long tps , long q_ps)
{
HRESULT LastError;
HDC hdc;
RECT rc;
char buf1[20], buf2[20], buf3[20] ,buf[60];
int len;
if (!myglobs.lpFrameRateBuffer)
return TRUE;
if (fps > 0.0f)
wsprintf(buf1, "%d.%02d fps ",
(int)( fps * 100 ) / 100,
(int)( fps * 100 ) % 100);
else
buf1[0] = 0;
if (tps > 0)
wsprintf(buf2, "%ld tris/sec ", tps);
else
buf2[0] = 0;
if (q_ps > 0)
wsprintf(buf3, "%ld quads/sec ", q_ps);
else
buf3[0] = 0;
len = wsprintf(buf, "%s%s%s", buf1, buf2,buf3);
if (!myglobs.lpFrameRateBuffer)
return FALSE;
LastError = myglobs.lpFrameRateBuffer->GetDC(&hdc);
if (LastError != DD_OK) {
/*
* If this fails, it's not vital, so don't report an error.
*/
return TRUE;
}
SelectObject(hdc, statglobs.hFont);
SetTextColor(hdc, RGB(255,255,0));
SetBkColor(hdc, RGB(0,0,0));
SetBkMode(hdc, OPAQUE);
GetTextExtentPoint32(hdc, buf, len, &statglobs.szFrameRate);
SetRect(&rc, 0, 0, statglobs.szFrameRate.cx, statglobs.szFrameRate.cy);
ExtTextOut(hdc, 0, 0, ETO_OPAQUE, &rc, buf, len, NULL);
myglobs.lpFrameRateBuffer->ReleaseDC(hdc);
return TRUE;
}
BOOL
WriteInfoBuffer(void)
{
HRESULT LastError;
HDC hdc;
RECT rc;
char buf[40];
int len;
if (!myglobs.lpInfoBuffer)
return TRUE;
if (d3dapp->bFullscreen)
len = wsprintf(buf, "%dx%dx%d (%s)", d3dapp->ThisMode.w, d3dapp->ThisMode.h, d3dapp->ThisMode.bpp,
(d3dapp->ThisDriver.Desc.dcmColorModel == D3DCOLOR_MONO) ? "MONO" : "RGB");
else
len = wsprintf(buf, "%dx%d (%s)", d3dapp->szClient.cx, d3dapp->szClient.cy,
(d3dapp->ThisDriver.Desc.dcmColorModel == D3DCOLOR_MONO) ? "MONO" : "RGB");
if (!myglobs.lpInfoBuffer)
return FALSE;
LastError = myglobs.lpInfoBuffer->GetDC(&hdc);
if (LastError != DD_OK) {
/*
* If this fails, it's not vital, so don't report an error.
*/
return TRUE;
}
SelectObject(hdc, statglobs.hFont);
SetTextColor(hdc, RGB(255,255,0));
SetBkColor(hdc, RGB(0,0,0));
SetBkMode(hdc, OPAQUE);
GetTextExtentPoint32(hdc, buf, len, &statglobs.szInfo);
SetRect(&rc, 0, 0, statglobs.szInfo.cx, statglobs.szInfo.cy);
ExtTextOut(hdc, 0, 0, ETO_OPAQUE, &rc, buf, len, NULL);
myglobs.lpInfoBuffer->ReleaseDC(hdc);
return TRUE;
}
void
ReleaseFontAndTextBuffers(void)
{
RELEASE(myglobs.lpInfoBuffer);
RELEASE(myglobs.lpFrameRateBuffer);
if (statglobs.hFont != NULL) {
DeleteObject(statglobs.hFont);
statglobs.hFont = NULL;
}
}
BOOL
InitFontAndTextBuffers(void)
{
DDCOLORKEY ddck;
DDSURFACEDESC ddsd;
HDC hdc;
HRESULT ddrval;
char dummyinfo[] = "000x000x00 (MONO) 0000";
char dummyfps[] = "000.00 fps 00000000.00 tps 0000.00 mppps";
/*
* Create the font.
*/
RELEASE(myglobs.lpInfoBuffer);
RELEASE(myglobs.lpFrameRateBuffer);
if (statglobs.hFont != NULL) {
DeleteObject(statglobs.hFont);
statglobs.hFont = NULL;
}
statglobs.hFont = CreateFont(
d3dapp->szClient.cx <= 600 ? 12 : 24,
0, 0, 0, FW_NORMAL, FALSE, FALSE, FALSE,
ANSI_CHARSET,
OUT_DEFAULT_PRECIS,
CLIP_DEFAULT_PRECIS,
DEFAULT_QUALITY,
VARIABLE_PITCH,
"Arial" );
hdc = GetDC(NULL);
SelectObject(hdc, statglobs.hFont);
GetTextExtentPoint(hdc, dummyfps, strlen(dummyfps), &statglobs.szFrameRate);
GetTextExtentPoint(hdc, dummyinfo, strlen(dummyinfo), &statglobs.szInfo);
ReleaseDC(NULL, hdc);
memset( &ddsd, 0, sizeof( ddsd ) );
ddsd.dwSize = sizeof( ddsd );
ddsd.dwFlags = DDSD_CAPS | DDSD_HEIGHT |DDSD_WIDTH;
ddsd.ddsCaps.dwCaps = DDSCAPS_OFFSCREENPLAIN;
ddsd.dwHeight = statglobs.szFrameRate.cy;
ddsd.dwWidth = statglobs.szFrameRate.cx;
ddrval = D3DAppCreateSurface(&ddsd, &myglobs.lpFrameRateBuffer);
if (ddrval != DD_OK) {
Msg("Could not create frame rate buffer.\n%s", D3DAppErrorToString(ddrval));
goto exit_with_error;
}
memset(&ddck, 0, sizeof(ddck));
myglobs.lpFrameRateBuffer->SetColorKey(DDCKEY_SRCBLT, &ddck);
if (!WriteFrameRateBuffer(0.0f, 0)) {
goto exit_with_error;
}
memset( &ddsd, 0, sizeof( ddsd ) );
ddsd.dwSize = sizeof( ddsd );
ddsd.dwFlags = DDSD_CAPS | DDSD_HEIGHT |DDSD_WIDTH;
ddsd.ddsCaps.dwCaps = DDSCAPS_OFFSCREENPLAIN;
ddsd.dwHeight = statglobs.szInfo.cy;
ddsd.dwWidth = statglobs.szInfo.cx;
ddrval = D3DAppCreateSurface(&ddsd, &myglobs.lpInfoBuffer);
if (ddrval != DD_OK) {
Msg("Could not create info buffer.\n%s", D3DAppErrorToString(ddrval));
goto exit_with_error;
}
memset(&ddck, 0, sizeof(ddck));
myglobs.lpInfoBuffer->SetColorKey(DDCKEY_SRCBLT, &ddck);
if (!WriteInfoBuffer())
goto exit_with_error;
return TRUE;
exit_with_error:
RELEASE(myglobs.lpInfoBuffer);
RELEASE(myglobs.lpFrameRateBuffer);
if (statglobs.hFont != NULL) {
DeleteObject(statglobs.hFont);
}
return FALSE;
}
/*************************************************************************
Frame rate output.
*************************************************************************/
#define INTERVAL 100
char StatTxt[100];
int StatTxtLen;
int count = 0;
int last_polygons = 0;
int last_quads = 0;
int this_frames = 0;
time_t last_time;
float fps;
long tps;
long quads_ps ;
/*
* ResetFrameRate
* Initializes the frame rate counter.
*/
void
ResetFrameRate(void)
{
last_time = clock();
count = 0;
last_polygons = 0;
last_quads = 0;
this_frames = 0;
fps = 0.0f; tps = 0; quads_ps = 0;
StatTxt[0] = 0;
StatTxtLen = 0;
}
BOOL
CalculateFrameRate(void)
{
/*
* Calculate the frame rate and get other stats.
*/
count++;
this_frames++;
if (count == INTERVAL) {
double t;
int p, f , quads;
D3DSTATS stats;
time_t this_time;
count = 0;
this_time = clock();
t = (this_time - last_time) / (double)CLOCKS_PER_SEC;
last_time = this_time;
memset(&stats, 0, sizeof(D3DSTATS));
stats.dwSize = sizeof(D3DSTATS);
d3dapp->lpD3DDevice->GetStats(&stats);
p = stats.dwTrianglesDrawn - last_polygons;
last_polygons = stats.dwTrianglesDrawn;
quads = sw_quads_drawn - last_quads ;
last_quads = sw_quads_drawn ;
f = this_frames;
this_frames = 0;
fps = (float)(f / t);
tps = (long)(p / t);
quads_ps = (long)(quads / t );
if (myglobs.bShowFrameRate) {
//if(!WriteFrameRateBufferWithSpot(fps,tps,quads_ps))
if (!WriteFrameRateBuffer(fps, tps ))
return FALSE;
}
}
return TRUE;
}
/*
* DisplayFrameRate
* Outputs frame rate info and screen mode to back buffer when appropriate.
*/
BOOL
DisplayFrameRate(int* count, LPD3DRECT lpExtents )
{
RECT rc;
int x, y;
HRESULT ddrval = DD_OK;
if (myglobs.bShowFrameRate && !myglobs.bSingleStepMode && statglobs.szFrameRate.cx > 0 && statglobs.szFrameRate.cy > 0 &&
statglobs.szFrameRate.cx < d3dapp->szClient.cx && statglobs.szFrameRate.cy < d3dapp->szClient.cy) {
SetRect(&rc, 0, 0, statglobs.szFrameRate.cx, statglobs.szFrameRate.cy);
x = (int)(0.5 * (d3dapp->szClient.cx - statglobs.szFrameRate.cx) + 0.5);
y = 0;
if (myglobs.lpFrameRateBuffer)
ddrval = d3dapp->lpBackBuffer->BltFast(x, y, myglobs.lpFrameRateBuffer, &rc,
DDBLTFAST_SRCCOLORKEY | DDBLTFAST_WAIT);
if (ddrval != DD_OK) {
/*
* Blting the frame rate has failed. Since it is not vital, we
* aren't going to report an error.
*/
return TRUE;
}
SetRect((LPRECT)(lpExtents), x, y, statglobs.szFrameRate.cx + x, statglobs.szFrameRate.cy);
++(*count);
++lpExtents;
}
if (myglobs.bShowInfo && statglobs.szInfo.cx < d3dapp->szClient.cx && statglobs.szInfo.cy < d3dapp->szClient.cy) {
SetRect(&rc, 0, 0, statglobs.szInfo.cx, statglobs.szInfo.cy);
x = (int)(0.5 * (d3dapp->szClient.cx - statglobs.szInfo.cx) + 0.5);
y = d3dapp->szClient.cy - statglobs.szInfo.cy;
if (myglobs.lpInfoBuffer)
ddrval = d3dapp->lpBackBuffer->BltFast(x,y, myglobs.lpInfoBuffer, &rc,
DDBLTFAST_SRCCOLORKEY | DDBLTFAST_WAIT);
if (ddrval != DD_OK) {
/*
* Blting the info has failed. Since it is not vital, we
* aren't going to report an error.
*/
return TRUE;
}
SetRect((LPRECT)(lpExtents), x, y, x + statglobs.szInfo.cx, y + statglobs.szInfo.cy);
++(*count);
}
return TRUE;
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.