- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 79
- 80
Grid Processor::build_grid()
{
Grid res;
double top = 340+60;
double left = 0, right = 60;
Point a,b,c,d;
for(int i = 0; i < 6; ++i){
for(int j = 0; j < 13; ++j){
a = {left*1e-6, top*1e-6, 2.1e-3};
b = {right*1e-6, top*1e-6, 2.1e-3};
c = {(left-3.25)*1e-6, (top+3.25)*1e-6, 2e-3};
d = {(right+3.25)*1e-6, (top+3.25)*1e-6, 2e-3};
auto t = std::make_tuple(a,b,c,d);
res.push_back(t);
left += (340+60);
right += (340+60);
}
top += (340+60);
left = 0;
right = 60;
}
top = (int)(-mem_size*1e6)+60;
left = (int)(mem_size*1e6)+340;
right = (int)(mem_size*1e6)+400;
for(int i = 0; i < 13; ++i){
for(int j = 0; j < 6; ++j){
a = {left*1e-6, top*1e-6, 2.1e-3};
b = {right*1e-6, top*1e-6, 2.1e-3};
c = {(left-3.25)*1e-6, (top+3.25)*1e-6, 2e-3};
d = {(right+3.25)*1e-6, (top+3.25)*1e-6, 2e-3};
auto t = std::make_tuple(a,b,c,d);
res.push_back(t);
left += (340+60);
right += (340+60);
}
top += (340+60);
left = (int)(mem_size*1e6)+340;
right = (int)(mem_size*1e6)+(340+60);
}
top = (int)(-(mem_size+2.4e-3)*1e6)+60;
left = 0, right = 60;
for(int i = 0; i < 6; ++i){
for(int j = 0; j < 13; ++j){
a = {left*1e-6, top*1e-6, 2.1e-3};
b = {right*1e-6, top*1e-6, 2.1e-3};
c = {(left-3.25)*1e-6, (top+3.25)*1e-6, 2e-3};
d = {(right+3.25)*1e-6, (top+3.25)*1e-6, 2e-3};
auto t = std::make_tuple(a,b,c,d);
res.push_back(t);
left += (340+60);
right += (340+60);
}
top += (340+60);
left = 0;
right = 60;
}
top = (int)(-mem_size*1e6)+60;
left = -2400;
right = -2400+60;
for(int i = 0; i < 13; ++i){
for(int j = 0; j < 6; ++j){
a = {left*1e-6, top*1e-6, 2.1e-3};
b = {right*1e-6, top*1e-6, 2.1e-3};
c = {(left-3.25)*1e-6, (top+3.25)*1e-6, 2e-3};
d = {(right+3.25)*1e-6, (top+3.25)*1e-6, 2e-3};
auto t = std::make_tuple(a,b,c,d);
res.push_back(t);
left += (340+60);
right += (340+60);
}
top += (340+60);
left = -2400;
right = -2400+60;
}
return res;
}
А что за техзадань то?
это танковое наступление
И скоро опять будет интересно.
Как говорил Старк - зима близко
Но что подумал Кролик - никто не узнал. Потому что он был очень воспитанный.