if(x1 == x2){ //if TATE stroke, use y-axis\r
switch(a1){\r
case 0:\r
- poly[0].X = x1 - kMinWidthT;\r
- poly[0].Y = y1 - kMinWidthY / 2;\r
- poly[3].X = x1 + kMinWidthT;\r
- poly[3].Y = y1 + kMinWidthY / 2;\r
+ poly[3].X = x1 - kMinWidthT;\r
+ poly[3].Y = y1 - kMinWidthY / 2;\r
+ poly[0].X = x1 + kMinWidthT;\r
+ poly[0].Y = y1 + kMinWidthY / 2;\r
break;\r
case 1:\r
case 6:\r
case 22:\r
- poly[0].X = x1 - kMinWidthT;\r
- poly[0].Y = y1;\r
- poly[3].X = x1 + kMinWidthT;\r
+ poly[3].X = x1 - kMinWidthT;\r
poly[3].Y = y1;\r
+ poly[0].X = x1 + kMinWidthT;\r
+ poly[0].Y = y1;\r
break;\r
case 12:\r
- poly[0].X = x1 - kMinWidthT;\r
- poly[0].Y = y1 - kMinWidthY - kMinWidthT;\r
- poly[3].X = x1 + kMinWidthT;\r
- poly[3].Y = y1 - kMinWidthY;\r
+ poly[3].X = x1 - kMinWidthT;\r
+ poly[3].Y = y1 - kMinWidthY - kMinWidthT;\r
+ poly[0].X = x1 + kMinWidthT;\r
+ poly[0].Y = y1 - kMinWidthY;\r
break;\r
case 32:\r
- poly[0].X = x1 - kMinWidthT;\r
- poly[0].Y = y1 - kMinWidthY;\r
- poly[3].X = x1 + kMinWidthT;\r
+ poly[3].X = x1 - kMinWidthT;\r
poly[3].Y = y1 - kMinWidthY;\r
+ poly[0].X = x1 + kMinWidthT;\r
+ poly[0].Y = y1 - kMinWidthY;\r
break;\r
}\r
\r
switch(a2){\r
case 0:\r
if(a1 == 6){ //KAGI's tail\r
- poly[1].X = x2 - kMinWidthT;\r
- poly[1].Y = y2;\r
- poly[2].X = x2 + kMinWidthT;\r
+ poly[2].X = x2 - kMinWidthT;\r
poly[2].Y = y2;\r
+ poly[1].X = x2 + kMinWidthT;\r
+ poly[1].Y = y2;\r
}\r
else{\r
- poly[1].X = x2 - kMinWidthT;\r
- poly[1].Y = y2 + kMinWidthT / 2;\r
- poly[2].X = x2 + kMinWidthT;\r
- poly[2].Y = y2 - kMinWidthT / 2;\r
+ poly[2].X = x2 - kMinWidthT;\r
+ poly[2].Y = y2 + kMinWidthT / 2;\r
+ poly[1].X = x2 + kMinWidthT;\r
+ poly[1].Y = y2 - kMinWidthT / 2;\r
}\r
break;\r
case 1:\r
- poly[1].X = x2 - kMinWidthT;\r
- poly[1].Y = y2;\r
- poly[2].X = x2 + kMinWidthT;\r
+ poly[2].X = x2 - kMinWidthT;\r
poly[2].Y = y2;\r
+ poly[1].X = x2 + kMinWidthT;\r
+ poly[1].Y = y2;\r
break;\r
case 13:\r
- poly[1].X = x2 - kMinWidthT;\r
- poly[1].Y = y2 + kWidth * kKakato + kMinWidthT;\r
- poly[2].X = x2 + kMinWidthT;\r
- poly[2].Y = y2 + kWidth * kKakato;\r
+ poly[2].X = x2 - kMinWidthT;\r
+ poly[2].Y = y2 + kWidth * kKakato + kMinWidthT;\r
+ poly[1].X = x2 + kMinWidthT;\r
+ poly[1].Y = y2 + kWidth * kKakato;\r
break;\r
case 23:\r
- poly[1].X = x2 - kMinWidthT;\r
- poly[1].Y = y2 + kWidth * kKakato * 0.5 + kMinWidthT;\r
- poly[2].X = x2 + kMinWidthT;\r
- poly[2].Y = y2 + kWidth * kKakato * 0.5;\r
+ poly[2].X = x2 - kMinWidthT;\r
+ poly[2].Y = y2 + kWidth * kKakato * 0.5 + kMinWidthT;\r
+ poly[1].X = x2 + kMinWidthT;\r
+ poly[1].Y = y2 + kWidth * kKakato * 0.5;\r
break;\r
case 32:\r
- poly[1].X = x2 - kMinWidthT;\r
- poly[1].Y = y2 + kMinWidthY;\r
- poly[2].X = x2 + kMinWidthT;\r
+ poly[2].X = x2 - kMinWidthT;\r
poly[2].Y = y2 + kMinWidthY;\r
+ poly[1].X = x2 + kMinWidthT;\r
+ poly[1].Y = y2 + kMinWidthY;\r
break;\r
}\r
\r
}\r
\r
if((a1 == 6 && a2 == 0) || a2 == 1){ //KAGI NO YOKO BOU NO SAIGO NO MARU\r
- poly3[0].X = x2 - kMinWidthT;\r
- poly3[0].Y = y2;\r
- poly3[1].X = x2 - kMinWidthT * 0.6;\r
- poly3[1].Y = y2 + kMinWidthT * 0.6;\r
+ poly3[4].X = x2 - kMinWidthT;\r
+ poly3[4].Y = y2;\r
+ poly3[3].X = x2 - kMinWidthT * 0.6;\r
+ poly3[3].Y = y2 + kMinWidthT * 0.6;\r
poly3[2].X = x2;\r
poly3[2].Y = y2 + kMinWidthT;\r
- poly3[3].X = x2 + kMinWidthT * 0.6;\r
- poly3[3].Y = y2 + kMinWidthT * 0.6;\r
- poly3[4].X = x2 + kMinWidthT;\r
- poly3[4].Y = y2;\r
+ poly3[1].X = x2 + kMinWidthT * 0.6;\r
+ poly3[1].Y = y2 + kMinWidthT * 0.6;\r
+ poly3[0].X = x2 + kMinWidthT;\r
+ poly3[0].Y = y2;\r
icPolygon(poly3, 5);\r
}\r
}\r