-
Notifications
You must be signed in to change notification settings - Fork 5
/
geometry.h
31 lines (18 loc) · 1.08 KB
/
geometry.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*
def geom_h(n):
return 'const int {};'.format(', '.join(['h_{}_{}={}'.format(n,i,480*i/n) for i in range(n+1)]))
def geom_v(n):
return 'const int {};'.format(', '.join(['v_{}_{}={}'.format(n,i,640*i/n) for i in range(n+1)]))
*/
const int h_2_0=0, h_2_1=240, h_2_2=480;
const int h_3_0=0, h_3_1=160, h_3_2=320, h_3_3=480;
const int h_4_0=0, h_4_1=120, h_4_2=240, h_4_3=360, h_4_4=480;
const int h_5_0=0, h_5_1=96, h_5_2=192, h_5_3=288, h_5_4=384, h_5_5=480;
const int h_6_0=0, h_6_1=80, h_6_2=160, h_6_3=240, h_6_4=320, h_6_5=400, h_6_6=480;
const int h_7_0=0, h_7_1=68, h_7_2=137, h_7_3=205, h_7_4=274, h_7_5=342, h_7_6=411, h_7_7=480;
const int h_8_0=0, h_8_1=60, h_8_2=120, h_8_3=180, h_8_4=240, h_8_5=300, h_8_6=360, h_8_7=420, h_8_8=480;
const int h_9_0=0, h_9_1=53, h_9_2=106, h_9_3=160, h_9_4=213, h_9_5=266, h_9_6=320, h_9_7=373, h_9_8=426, h_9_9=480;
const int v_2_0=0, v_2_1=320, v_2_2=640;
const int v_3_0=0, v_3_1=213, v_3_2=426, v_3_3=640;
const int v_4_0=0, v_4_1=160, v_4_2=320, v_4_3=480, v_4_4=640;
const int v_5_0=0, v_5_1=128, v_5_2=256, v_5_3=384, v_5_4=512, v_5_5=640;