{"id":7622,"date":"2019-05-04T10:29:43","date_gmt":"2019-05-04T01:29:43","guid":{"rendered":"https:\/\/sinsei.space\/blog\/?p=7622"},"modified":"2021-05-02T13:43:49","modified_gmt":"2021-05-02T04:43:49","slug":"1map_stg-ver-0-0008-%e3%83%97%e3%83%ad%e3%82%b0%e3%83%a9%e3%83%a0%e3%81%ae%e8%a7%a3%e8%aa%ac","status":"publish","type":"post","link":"https:\/\/sinsei.space\/blog\/7622","title":{"rendered":"1MAP_STG ver.0.0008 \u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u89e3\u8aac"},"content":{"rendered":"<p><font size=4><br \/>\n2019\u5e74 5\u6708 4\u65e5<br \/>\n<strong>\u3000<\/strong><br \/>\n<strong>\u3000<\/strong><br \/>\n\u3000\u305d\u308c\u3067\u306f\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u89e3\u8aac\u3092\u3057\u307e\u3059\u3002<br \/>\n<strong>\u3000<\/strong><br \/>\n<strong>\u3000<\/strong><br \/>\n1\u3001\u30b7\u30e7\u30c3\u30c8\u306e\u5f53\u305f\u308a\u5224\u5b9a\u3092\u5237\u65b0\u3057\u305f<\/p>\n<p>2\u3001\u30ec\u30fc\u30b6\u30fc\u306e\u7167\u5c04\u9762\u7a4d\u306b\u3088\u308b\u30c0\u30e1\u30fc\u30b8\u5909\u5316<\/p>\n<p>3\u3001\u30ec\u30fc\u30b6\u30fc\u3092\u6483\u3068\u3046<\/p>\n<p>4\u3001\u30ec\u30fc\u30b6\u30fc\u3092\u8868\u793a\u3059\u308b<\/p>\n<p>5\u3001\u88ab\u5f3e\u8868\u793a<br \/>\n<strong>\u3000<\/strong><br \/>\n<strong>\u3000<\/strong><br \/>\n<!--more--><\/p>\n<p>1\u3001\u30b7\u30e7\u30c3\u30c8\u306e\u5f53\u305f\u308a\u5224\u5b9a\u3092\u5237\u65b0\u3057\u305f<\/p>\n<p>\u3000\u524d\u56de ver\u307e\u3067\u306f\u3001\u30b7\u30e7\u30c3\u30c8\u306e\u5927\u304d\u3055\u4ee5\u4e0a\u306e\u901f\u3055\u3067\u52d5\u304b\u3059\u3068\u6575\u3068\u306e\u5f53\u305f\u308a\u5224\u5b9a\u3067\u3059\u308a\u629c\u3051\u308b\u306e\u3067\u3001 1\u30d5\u30ec\u30fc\u30e0\u6bce\u306b\u300c\u30b9\u30d4\u30fc\u30c9 \u00f7 \u5927\u304d\u3055\u300d\u56de\u3001\u79fb\u52d5\u3068\u5f53\u305f\u308a\u5224\u5b9a\u3092\u7e70\u308a\u8fd4\u3057\u3066\u307e\u3057\u305f\u3002<\/p>\n<p>\u3000\u5177\u4f53\u7684\u306b\u306f 1\u30d5\u30ec\u30fc\u30e0\u306b 3\u56de\u3001\u79fb\u52d5\u3055\u305b\u3066\u90fd\u5ea6\u5f53\u305f\u308a\u5224\u5b9a\u3092\u3057\u3066\u307e\u3059\u3002<\/p>\n<p>\u3000\u4eca\u56de\u3002\u7dda\u3068\u5186\u3068\u306e\u5f53\u305f\u308a\u5224\u5b9a\u306e\u65b0\u6280\u8853\u306b\u3088\u308a\u3001\u3053\u308c\u3092 1\u56de\u3067\u6e08\u3080\u3088\u3046\u306b\u76f4\u3057\u3066\u307e\u3059\u3002<\/p>\n<p>\u3000\u3053\u308c\u306f\u30d0\u30eb\u30ab\u30f3\u3082\u540c\u3058\u3067\u3059\u3002<\/p>\n<pre class=\"lang:hsp decode:true \" >#deffunc s_syo ; \u79fb\u52d5\u51e6\u7406\r\n\r\n\trepeat sb : sn=cnt ; \u30b7\u30e7\u30c3\u30c8\u79fb\u52d5\u51e6\u7406\r\n\t if sf(sn)=0 : continue ; \u7121\u3057\r\n\r\n\t sx1=sx(sn) ; \u59cb\u70b9\u5ea7\u6a19x\r\n\t sy1=sy(sn) ; \u59cb\u70b9\u5ea7\u6a19y\r\n\r\n\t sx(sn)+=sdx(sn) ; x\u306e\u79fb\u52d5\r\n\t sy(sn)+=sdy(sn) ; y\u306e\u79fb\u52d5\r\n\r\n\t skn(sn)+=ssp ; \u3069\u308c\u3060\u3051\u8ddd\u96e2\u3092\u9032\u3093\u3060\u304b\r\n\t  if skn(sn)&gt;=skb(sn) { ; \u7d42\u70b9\u5224\u5b9a\r\n\t   sx(sn)=double(sxb(sn))\r\n\t   sy(sn)=double(syb(sn))\r\n\t   sf(sn)=-1 ; \u7740\u5f3e\u30d5\u30e9\u30b0\r\n\t  }\r\n\r\n\t sx2=sx(sn) ; \u7d42\u70b9\u5ea7\u6a19x\r\n\t sy2=sy(sn) ; \u7d42\u70b9\u5ea7\u6a19y\r\n\r\n\t sln=sqrt((sx2-sx1)*(sx2-sx1)+(sy2-sy1)*(sy2-sy1)) ; \u7dda\u306e\u9577\u3055\r\n\r\n\r\n ; \u6575\u3068\u306e\u5f53\u305f\u308a\u5224\u5b9a\r\n\t repeat eb : en=cnt ; \u6575No,\r\n\t  if ef(en)=0 : continue\r\n\r\n;dbg_put\r\n\t if ef(en)=1 : eo2=e1o2\t\t\t; \u65751\u306e\u6642\u306e\u5927\u304d\u3055\r\n\t if ef(en)=2 : eo2=e2o2*12\/10\t; \u65752\u306e\u6642\u306e\u5927\u304d\u3055\r\n\t if ef(en)=3 : eo2=e3o2 \t\t; \u65753\u306e\u6642\u306e\u5927\u304d\u3055\r\n\t  eo2+=so2 ; \u6575\u306e\u534a\u5f84\u306b\u30b7\u30e7\u30c3\u30c8\u306e\u534a\u5f84\u3092\u8db3\u3059\r\n\r\n\t  f=0\r\n\t  repeat 1 ; \u5f53\u305f\u308a\u5224\u5b9a\r\n\r\n; \u4e21\u7aef\u5224\u5b9a\r\n\t   if (ex(en)-sx2)*(ex(en)-sx2)+(ey(en)-sy2)*(ey(en)-sy2)&lt;=(eo2*eo2) : f=1 : break ; \u7d42\u70b9\u3068\u6575\u306e\u5f53\u305f\u308a\u5224\u5b9a\r\n\t   if (ex(en)-sx1)*(ex(en)-sx1)+(ey(en)-sy1)*(ey(en)-sy1)&lt;=(eo2*eo2) : f=1 : break ; \u59cb\u70b9\u3068\u6575\u306e\u5f53\u305f\u308a\u5224\u5b9a\r\n\r\n\r\n; \u30b7\u30e7\u30c3\u30c8\u8ecc\u9053\u3068\u6575\u3068\u306e\u5f53\u305f\u308a\u5224\u5b9a\r\n\r\n\t   sxn=ex(en)-sx1\t; \u6575x-\u59cb\u70b9x\r\n\t   syn=ey(en)-sy1\t; \u6575y-\u59cb\u70b9y\r\n\r\n\t   cosf=cos(-sr(sn)) ; \u89d2\u5ea6\u4fee\u6b63\u3001\u5782\u76f4\u306b\r\n\t   sinf=sin(-sr(sn)) ; \u89d2\u5ea6\u4fee\u6b63\u3001\u7d20\u76f4\u306b\r\n\r\n\t   xf=cosf*sxn-sinf*syn ; \u5782\u76f4\u4f4d\u7f6e\u306b\u4fee\u6b63\u3057\u305f\u6575\u306ex\r\n\t   yf=sinf*sxn+cosf*syn ; \u5782\u76f4\u4f4d\u7f6e\u306b\u4fee\u6b63\u3057\u305f\u6575\u306ey\r\n\r\n\t   if abs(yf)&lt;=eo2 and 0&lt;=xf and xf&lt;=sln : f=1 ; \u5f53\u305f\u308a\u5224\u5b9a\r\n\t  loop\r\n\r\n\r\n; \u5f53\u305f\u308a\u51e6\u7406\r\n\r\n\t  if f=1 {\r\n\t   sf(sn)=-1\t\t\t\t; \u7740\u5f3e\u30d5\u30e9\u30b0\r\n\t   eaf(en)=1\t\t\t\t; \u88ab\u5f3e\u30d5\u30e9\u30b0\r\n\t   ehp(en)-=sp\t\t\t\t; \u8010\u4e45\u5ea6-\r\n\t   if ehp(en)&lt;=0 {\t\t\t; \u5012\u3057\u305f\u304b\r\n\t    scr+=escr(ef(en))\t\t; \u30b9\u30b3\u30a2\r\n\t     if hiscr&lt;scr : hiscr=scr ; \u30cf\u30a4\u30b9\u30b3\u30a2\u306e\u66f4\u65b0\r\n\r\n\t    ef(en)=0\t\t\t\t; \u6575\u3092\u6d88\u3059\r\n\t     if en=esn : esn_set 0\t; \u6b21\u306e\u6a19\u7684\u3092\u63a2\u3059\r\n\t    vc+=vck\t\t\t\t\t; \u30d0\u30eb\u30ab\u30f3\u306e\u6b8b\u5f3e\u6570\u3092\u5897\u3084\u3059\r\n\t     if vc&gt;vcb : vc=vcb\t\t; \u6700\u5927\u6570\r\n\t   }\r\n\t  }\r\n\t loop\r\n\r\n\t if sf(sn)=1 : if sx1&lt;0 or wx&lt;sx1 or sy1&lt;0 or wy&lt;sy1 : sf(sn)=0 : continue ; \u5834\u5916\u3067\u30d5\u30e9\u30b0 off\r\n\tloop\r\n\r\n\treturn\r\n<\/pre>\n<p><strong>\u3000<\/strong><br \/>\n<strong>\u3000<\/strong><br \/>\n\u3000\u30b7\u30e7\u30c3\u30c8\u306e\u79fb\u52d5\u8ecc\u9053\u306e\u7dda\u3068\u3001\u6575\u3068\u30b7\u30e7\u30c3\u30c8\u306e\u5408\u8a08\u306e\u534a\u5f84\u306e\u5186\u3068\u3067\u5f53\u305f\u308a\u5224\u5b9a\u3092\u3057\u307e\u3059\u3002<\/p>\n<p>\u3000\u7dda\u3068\u5186\u306e\u5f53\u305f\u308a\u5224\u5b9a\u306b\u3064\u3044\u3066\u306f\u524d\u306e\u8a18\u4e8b\u3001<br \/>\n\u3000<a href=\"https:\/\/sinsei.space\/blog\/7424\" rel=\"noopener noreferrer\" target=\"_blank\">1MAP_STG \u5f53\u305f\u308a\u5224\u5b9a\u306e\u7814\u7a76\u7de8<\/a> \u3092\u53c2\u7167\u3057\u3066\u4e0b\u3055\u3044\u3002<br \/>\n<strong>\u3000<\/strong><br \/>\n<strong>\u3000<\/strong><br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/sinsei.space\/blog\/wp-content\/uploads\/2019\/05\/img0025c.jpg\" alt=\"\" width=\"400\" height=\"400\" class=\"alignnone size-full wp-image-7637\" srcset=\"https:\/\/sinsei.space\/blog\/wp-content\/uploads\/2019\/05\/img0025c.jpg 400w, https:\/\/sinsei.space\/blog\/wp-content\/uploads\/2019\/05\/img0025c-150x150.jpg 150w, https:\/\/sinsei.space\/blog\/wp-content\/uploads\/2019\/05\/img0025c-300x300.jpg 300w\" sizes=\"auto, (max-width: 400px) 85vw, 400px\" \/><\/p>\n<p>\u3000\u3053\u308c\u3067\u79fb\u52d5\u5206\u306e\u5f53\u305f\u308a\u5224\u5b9a\u3092 1\u56de\u884c\u3048\u3070\u6e08\u307f\u307e\u3059\u3002<\/p>\n<p>\u3000\u30b7\u30e7\u30c3\u30c8\u306e\u539a\u3055\u534a\u5f84\u306f 3\u30c9\u30c3\u304f\u3089\u3044\u3067\u3059\u304c\u3001\u3053\u308c\u3092\u6575\u306e\u5927\u304d\u3055\u306e\u534a\u5f84\u306b\u8db3\u305b\u3070\u3001\u30b7\u30e7\u30c3\u30c8\u306e\u539a\u3055\u3082\u8003\u616e\u3057\u3066\u5224\u5b9a\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u3000\u8981\u3059\u308b\u306b\u6575\u306e\u5927\u304d\u3055\u3092\u30b7\u30e7\u30c3\u30c8\u306e\u534a\u5f84\u5206\u3001\u5897\u3057\u3066\u3084\u308c\u3070\u826f\u3044\u8a33\u3067\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/sinsei.space\/blog\/wp-content\/uploads\/2019\/05\/img0026.jpg\" alt=\"\" width=\"400\" height=\"296\" class=\"alignnone size-full wp-image-7638\" srcset=\"https:\/\/sinsei.space\/blog\/wp-content\/uploads\/2019\/05\/img0026.jpg 400w, https:\/\/sinsei.space\/blog\/wp-content\/uploads\/2019\/05\/img0026-300x222.jpg 300w\" sizes=\"auto, (max-width: 400px) 85vw, 400px\" \/><\/p>\n<p>\u3000\u3082\u3057\u3053\u308c\u3092\u30b7\u30e7\u30c3\u30c8\u306e\u77e9\u5f62\uff08\u30b7\u30e7\u30c3\u30c8\u5e45\uff09\u3068\u6575\u306e\u5186\u3067\u51e6\u7406\u3059\u308b\u3068\u3001\u77e9\u5f62\u3068\u5186\u306e\u5f53\u305f\u308a\u5224\u5b9a\u3068\u3044\u3046\u5225\u306e\u6280\u8853\u304c\u8981\u308b\u4e8b\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u3000\u6575\u306e\u5186\u304c\u7dda\u306b\u63a5\u3057\u3066\u3044\u3066\u3001\u59cb\u70b9\u3068\u7d42\u70b9\u3088\u308a\u6575\u4e2d\u5fc3\u306e x\u8ef8\u304c\u7dda\u3088\u308a\u5916\u306b\u3042\u308b\u3068\u5224\u5b9a\u6f0f\u308c\u306b\u306a\u308b\u306e\u3067\u3001\u59cb\u70b9\u3068\u7d42\u70b9\u3068\u5224\u5b9a\u5927\u304d\u3055\u306e\u5186\u3068\u3067\u3001\u3064\u307e\u308a\u70b9\u3068\u5186\u306e\u5f53\u305f\u308a\u5224\u5b9a\u3082\u3057\u307e\u3059\u3002<br \/>\n<strong>\u3000<\/strong><br \/>\n<strong>\u3000<\/strong><br \/>\n<strong>\u3000<\/strong><br \/>\n2\u3001\u30ec\u30fc\u30b6\u30fc\u306e\u7167\u5c04\u9762\u7a4d\u306b\u3088\u308b\u30c0\u30e1\u30fc\u30b8\u5909\u5316<\/p>\n<p>\u3000\u30ec\u30fc\u30b6\u30fc\u304c\u592a\u3044\u3057\u3001\u5358\u306b\u5f53\u305f\u3063\u3066\u3044\u308b\u3060\u3051\u3067\u540c\u3058\u30c0\u30e1\u30fc\u30b8\u91cf\u3060\u3068\u3001\u6575\u8981\u585e\u306e\u3088\u3046\u306a\u8010\u4e45\u529b\u306e\u5927\u304d\u3044\u6575\u306b\u5bfe\u3057\u3066\u30c0\u30e1\u30fc\u30b8\u304c\u4f4e\u304f\u3066\u30b2\u30fc\u30e0\u30d0\u30e9\u30f3\u30b9\u304c\u60aa\u3044\u306e\u3067\u3001\u30ec\u30fc\u30b6\u30fc\u306e\u5f53\u305f\u3063\u3066\u3044\u308b\u9762\u7a4d\u3067\uff08\u5b9f\u969b\u306b\u306f\u5e45\u3067\uff09\u30c0\u30e1\u30fc\u30b8\u304c\u5909\u5316\u3059\u308b\u3088\u3046\u306b\u3057\u305f\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/sinsei.space\/blog\/wp-content\/uploads\/2019\/05\/img02178.jpg\" alt=\"\" width=\"646\" height=\"388\" class=\"alignnone size-full wp-image-7641\" srcset=\"https:\/\/sinsei.space\/blog\/wp-content\/uploads\/2019\/05\/img02178.jpg 646w, https:\/\/sinsei.space\/blog\/wp-content\/uploads\/2019\/05\/img02178-300x180.jpg 300w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><br \/>\n<strong>\u3000<\/strong><br \/>\n<strong>\u3000<\/strong><br \/>\n\u3000\u5177\u4f53\u7684\u306b\u306f\u5f53\u305f\u308a\u5224\u5b9a\u6642\u306e\u56de\u8ee2\u4fee\u6b63\u5f8c\u306e yf\u5ea7\u6a19\u304c\u3001\u30ec\u30fc\u30b6\u30fc\u4e2d\u592e\u7dda\u8ef8\u306b\u5bfe\u3059\u308b\u6575\u306e\u8ddd\u96e2\u3001\u3064\u307e\u308a\u7167\u5c04\u9762\u7a4d\uff08\u5e45\uff09\u305d\u306e\u307e\u307e\u306a\u306e\u3067\u3001\u305d\u308c\u3092\u5229\u7528\u3059\u308b\u3002<\/p>\n<p>\u3000dn=eo2 &#8211; <span style=\"color: #0000f0;\">abs<\/span>(<span style=\"color: #0000f0;\">int<\/span>(yf))\u3000\u30c0\u30e1\u30fc\u30b8<\/p>\n<p>\u3000eo2 = \u6575\u306e\u534a\u5f84\u3068\u30ec\u30fc\u30b6\u30fc\u306e\u534a\u5f84\u3092\u8db3\u3057\u305f\u6570<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/sinsei.space\/blog\/wp-content\/uploads\/2019\/05\/img0027.jpg\" alt=\"\" width=\"400\" height=\"258\" class=\"alignnone size-full wp-image-7642\" \/><\/p>\n<p>\u3000\u305d\u308c\u306b\u5bfe\u3057\u3066\u3001\u6575\u306e\u5404\u5927\u304d\u3055\u3092\u6700\u5927\u30c0\u30e1\u30fc\u30b8\u306b\u3059\u308b\u3002<\/p>\n<p>\u3000\u3064\u307e\u308a\u5c0f\u3055\u306a 14\u30c9\u30c3\u30c8\u306e\u6575\u306f\u6700\u5927 14\u30c0\u30e1\u30fc\u30b8\u300164\u30c9\u30c3\u30c8\u306e\u8981\u585e\u306a\u3089\u6700\u5927 64\u30c0\u30e1\u30fc\u30b8\u304c\u5165\u308b\u3002<br \/>\n<strong>\u3000<\/strong><br \/>\n<strong>\u3000<\/strong><br \/>\n<strong>\u3000<\/strong><br \/>\n3\u3001\u30ec\u30fc\u30b6\u30fc\u3092\u6483\u3068\u3046<\/p>\n<p>\u3000\u30ec\u30fc\u30b6\u30fc\u3082\u5225\u306e\u30b2\u30fc\u30e0\u3067\u4f55\u56de\u304b\u4f5c\u3063\u305f\u4e8b\u304c\u3042\u308b\u304c\u3001\u3053\u308c\u304c\u610f\u5916\u3068\u96e3\u3057\u304b\u3063\u305f\u308a\u3059\u308b\u3002<\/p>\n<p>\u3000\u3044\u3064\u3082\u306f\u5358\u306b\u9023\u7d9a\u3067\u9023\u306a\u308b\u30b7\u30e7\u30c3\u30c8\u3068\u3057\u3066\u4f5c\u3063\u3066\u3044\u305f\u304c\u3001\u4eca\u56de\u306f 1\u672c\u306e\u307f\u3068\u306a\u308b\u3002<br \/>\n<strong>\u3000<\/strong><br \/>\n<strong>\u3000<\/strong><br \/>\n\u3000\u307e\u305a\u57fa\u672c\u7684\u306b\u9032\u884c\u72b6\u614b\u306b\u3088\u308b\u30e2\u30fc\u30c9\u3092 3\u3064\u304f\u3089\u3044\u306b\u5206\u3051\u308b\u3002<\/p>\n<p>1\u3001\u5148\u982d\u304c\u7aef\u307e\u3067\u4f38\u3073\u308b\u30e2\u30fc\u30c9<br \/>\n2\u3001\u9577\u3055\u304c\u3044\u3063\u3071\u3044\u306e\u30e2\u30fc\u30c9<br \/>\n3\u3001\u5f8c\u5c3e\u304c\u7e2e\u3080\u30e2\u30fc\u30c9<br \/>\n<strong>\u3000<\/strong><br \/>\n<strong>\u3000<\/strong><br \/>\n\u3000\u4eca\u56de\u306f\u3001<\/p>\n<p>lf=0\u3000\u7121\u3057<br \/>\nlf=1\u3000\u767a\u5c04\u8981\u6c42\u3001\u767a\u5c04\u30bb\u30c3\u30c8\uff08\u51fa\u73fe\uff09<br \/>\nlf=2\u3000\u5148\u982d\u304c\u4f38\u3073\u308b\u30e2\u30fc\u30c9<br \/>\nlf=3\u3000\u30a8\u30cd\u30eb\u30ae\u30fc\u6d88\u8cbb\u307e\u3067\u4f38\u3073\u5207\u3063\u305f\u30e2\u30fc\u30c9<br \/>\nlf=4\u3000\u5f8c\u5c3e\u304c\u7e2e\u3080\u30e2\u30fc\u30c9<br \/>\nlf=5\u3000\u9023\u7d9a\u767a\u5c04\u9632\u6b62\u306e\u305f\u3081\u306e\u30a6\u30a8\u30a4\u30c8<\/p>\n<p>\u3000\u3068\u306a\u3063\u3066\u308b\u3002<\/p>\n<pre class=\"lang:hsp decode:true \" >\r\n; LASER --------------------\r\n#deffunc l_set ; \u51fa\u73fe\r\n\r\n\tif lf!1 : return ; \u767a\u5c04\u8981\u6c42\u3055\u308c\u3066\u306a\u3044\r\n\r\n\tif le<leb : lf=0 : return ; \u30a8\u30cd\u30eb\u30ae\u30fc\u304c\u7121\u3044\r\n\r\n\tlf=2 : ;le-=leb\t\t; \u767a\u5c04\r\n\r\n\r\n\tlx1=double(jx) : ly1=double(jy) ; \u59cb\u70b9\u5ea7\u6a19\r\n\tlx2=lx1 : ly2=ly1\t; \u7d42\u70b9\u5ea7\u6a19\r\n\r\n\txn=lxs-lx1\t\t\t; \u81ea\u6a5f\u3068\u76ee\u6a19\u5730\u70b9\u306e\u8ddd\u96e2x\r\n\tyn=lys-ly1\t\t\t; \u81ea\u6a5f\u3068\u76ee\u6a19\u5730\u70b9\u306e\u8ddd\u96e2y\r\n\r\n\tlr=atan(yn,xn)\t\t; \u8ddd\u96e2xy\u304b\u3089\u89d2\u5ea6\u3092\u6c42\u3081\u308b\r\n\r\n\tldx=cos(lr)*lsp\t\t; \u89d2\u5ea6\u3068\u30b9\u30d4\u30fc\u30c9\u304b\u3089\u79fb\u52d5\u91cfx\u3092\u6c42\u3081\u308b\r\n\tldy=sin(lr)*lsp\t\t; \u89d2\u5ea6\u3068\u30b9\u30d4\u30fc\u30c9\u304b\u3089\u79fb\u52d5\u91cfy\u3092\u6c42\u3081\u308b\r\n\r\n\treturn\r\n\r\n\r\n#deffunc l_syo ; \u30ec\u30fc\u30b6\u30fc\u79fb\u52d5\u51e6\u7406\r\n\r\n\tif lf&lt;2 or lf=5 {\r\n\t if le&lt;leb : le+ ; \u30a8\u30cd\u30eb\u30ae\u30fc\u84c4\u7a4d\r\n\t}\r\n\r\n\tif lf=2 or lf=3 : le- ; \u30a8\u30cd\u30eb\u30ae\u30fc\u6d88\u8cbb\r\n\r\n\tif lf&lt;2 : return ; \u767a\u5c04\u3055\u308c\u3066\u306a\u3044\r\n\r\n\r\n; \u30ec\u30fc\u30b6\u30fc\u79fb\u52d5\u51e6\u7406\r\n\r\n\tswitch lf\r\n\t case 2 ; \u5148\u982d\u304c\u4f38\u3073\u308b\r\n\t  lx2+=ldx ; \u30ec\u30fc\u30b6\u30fc\u7d42\u70b9\u5ea7\u6a19x\r\n\t  ly2+=ldy ; \u30ec\u30fc\u30b6\u30fc\u7d42\u70b9\u5ea7\u6a19y\r\n\r\n\t  if lx2&lt;-20 or wx+20&lt;lx2 or ly2&lt;-20 or wy+20&lt;ly2 : lf=3 ; \u5148\u982d\u304c\u753b\u9762\u5916\r\n\t swbreak\r\n\r\n\t case 3 ; \u4f38\u3073\u304d\u3063\u3066\u308b\r\n\t\u3000;if lc&gt;lcb : lf=4 ; \u767a\u5c04\u6642\u9593\u3092\u904e\u304e\u305f\r\n\t  if le=0 : lf=4 ; \u30a8\u30cd\u30eb\u30ae\u30fc\u5207\u308c\r\n\t swbreak\r\n\r\n\t case 4 ; \u5f8c\u5c3e\u304c\u7e2e\u3080\r\n\t  lx1+=ldx ; \u30ec\u30fc\u30b6\u30fc\u7d42\u70b9\u5ea7\u6a19x\r\n\t  ly1+=ldy ; \u30ec\u30fc\u30b6\u30fc\u7d42\u70b9\u5ea7\u6a19y\r\n\r\n\t  if lx1&lt;-20 or wx+20&lt;lx1 or ly1&lt;-20 or wy+20&lt;ly1 : lf=5 : lc=0 ; \u5f8c\u5c3e\u304c\u753b\u9762\u5916\r\n\t swbreak\r\n\t case 5 ; \u30a6\u30a8\u30a4\u30c8\r\n\t  lc+ : if lc&gt;20 : lf=0\r\n\t swbreak\r\n\tswend\r\n\r\n\tlln=sqrt((lx2-lx1)*(lx2-lx1)+(ly2-ly1)*(ly2-ly1)) ; \u7dda\u306e\u9577\u3055\r\n\r\n\r\n\trepeat eb : en=cnt ; \u6575\u3068\u306e\u5f53\u305f\u308a\u5224\u5b9a\r\n\t if ef(en)=0 : continue\r\n\r\n\t if ef(en)=1 : eo2=e1o2\t\t\t; \u65751\u306e\u6642\u306e\u5927\u304d\u3055\r\n\t if ef(en)=2 : eo2=e2o2*12\/10\t; \u65752\u306e\u6642\u306e\u5927\u304d\u3055\r\n\t if ef(en)=3 : eo2=e3o2 \t\t; \u65753\u306e\u6642\u306e\u5927\u304d\u3055\r\n\r\n\t eo2+=int(double(lo2)*lopx)\t\t; \u6575\u306e\u534a\u5f84\u306b\u30ec\u30fc\u30b6\u30fc\u306e\u534a\u5f84\u3092\u8db3\u3059\r\n\r\n\t f=0\r\n\t repeat 1 ; \u5f53\u305f\u308a\u5224\u5b9a\r\n; \u4e21\u7aef\u5224\u5b9a\r\n\t  if (ex(en)-lx2)*(ex(en)-lx2)+(ey(en)-ly2)*(ey(en)-ly2)&lt;=(eo2*eo2) : f=1 ;: break ; \u7d42\u70b9\u3068\u6575\u306e\u5f53\u305f\u308a\u5224\u5b9a\r\n\t  if (ex(en)-lx1)*(ex(en)-lx1)+(ey(en)-ly1)*(ey(en)-ly1)&lt;=(eo2*eo2) : f=1 ;: break ; \u59cb\u70b9\u3068\u6575\u306e\u5f53\u305f\u308a\u5224\u5b9a\r\n\r\n\r\n; \u30ec\u30fc\u30b6\u30fc\u8ecc\u9053\u3068\u6575\u3068\u306e\u5f53\u305f\u308a\u5224\u5b9a\r\n\r\n\t  lxn=ex(en)-lx1\t\t; \u6575x-\u59cb\u70b9x\r\n\t  lyn=ey(en)-ly1\t\t; \u6575y-\u59cb\u70b9y\r\n\r\n\t  cosf=cos(-lr)\t\t\t; \u89d2\u5ea6\u4fee\u6b63\u3001\u5782\u76f4\u306b\r\n\t  sinf=sin(-lr)\t\t\t; \u89d2\u5ea6\u4fee\u6b63\u3001\u7d20\u76f4\u306b\r\n\r\n\t  xf=cosf*lxn-sinf*lyn ; \u5782\u76f4\u4f4d\u7f6e\u306b\u4fee\u6b63\u3057\u305f\u6575\u306ex\r\n\t  yf=sinf*lxn+cosf*lyn ; \u5782\u76f4\u4f4d\u7f6e\u306b\u4fee\u6b63\u3057\u305f\u6575\u306ey\r\n\r\n\t  if abs(yf)&lt;=eo2 and 0&lt;=xf and xf&lt;=lln : f=1 ; \u5f53\u305f\u308a\u5224\u5b9a\r\n\t loop\r\n\r\n\r\n; \u5f53\u305f\u308a\u51e6\u7406\r\n\r\n\t repeat 1\r\n\t  if f=0 : break\r\n\r\n\t  eaf(en)=1\t\t\t\t\t; \u88ab\u5f3e\u30d5\u30e9\u30b0\r\n\r\n\t  dn=eo2-abs(int(yf))\t\t; \u7167\u5c04\u9762\u7a4d\u306b\u3088\u308b\u30c0\u30e1\u30fc\u30b8\r\n\t   if ef(en)=1 : if dn&gt;e1o : dn=e1o ; \u5927\u304d\u3055\u306b\u3088\u308b\u6700\u5927\u30c0\u30e1\u30fc\u30b8\r\n\t   if ef(en)=2 : if dn&gt;e2o : dn=e2o\r\n\t   if ef(en)=3 : if dn&gt;e3o : dn=e3o\r\n\r\n\t  ehp(en)-=dn\t\t\t\t; \u8010\u4e45\u5ea6-\r\n\t   if ehp(en)&gt;0 : break\t\t; \u5012\u3057\u305f\u304b\r\n\r\n\t  scr+=escr(ef(en))\t\t\t; \u30b9\u30b3\u30a2\r\n\t   if hiscr&lt;scr : hiscr=scr\t; \u30cf\u30a4\u30b9\u30b3\u30a2\u306e\u66f4\u65b0\r\n\r\n\t  ef(en)=0\t\t\t\t\t; \u6575\u3092\u6d88\u3059\r\n\t   if en=esn : esn_set 0\t; \u6b21\u306e\u6a19\u7684\u3092\u63a2\u3059\r\n\t loop\r\n\r\n\tloop\r\n\r\n\treturn\r\n<\/pre>\n<p><strong>\u3000<\/strong><br \/>\n<strong>\u3000<\/strong><br \/>\n\u3000\u30ec\u30fc\u30b6\u30fc\u3082\u3001\u59cb\u70b9\uff08lx1,ly1\uff09\u3001\u7d42\u70b9\uff08lx2,ly2\uff09\u3068\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3001<\/p>\n<p>1\u3001\u5148\u982d\u304c\u4f38\u3073\u308b\u6642\u306f lx2,ly2\uff08\u7d42\u70b9\u5ea7\u6a19\uff09\u3092\u79fb\u52d5\u3055\u305b<br \/>\n2\u3001\u4f38\u3073\u304d\u3063\u3066\u308b\u72b6\u614b\u306f\u5ea7\u6a19\u5909\u5316\u7121\u3057<br \/>\n3\u3001\u5f8c\u5c3e\u304c\u7e2e\u3080\u6642\u306f lx1,ly1\uff08\u59cb\u70b9\u5ea7\u6a19\uff09\u3092\u79fb\u52d5\u3055\u305b\u308b<\/p>\n<p>\u3000\u3068\u3044\u3046\u4e8b\u3067\u3067\u304d\u305f\u3002<br \/>\n<strong>\u3000<\/strong><br \/>\n<strong>\u3000<\/strong><br \/>\n<strong>\u3000<\/strong><br \/>\n4\u3001\u30ec\u30fc\u30b6\u30fc\u3092\u8868\u793a\u3059\u308b<\/p>\n<p>\u3000\u30ec\u30fc\u30b6\u30fc\u304c\u5c11\u3057\u96e3\u3057\u3044\u306e\u306f\u3001\u7279\u306b\u8868\u793a\u306b\u304a\u3044\u3066\u3060\u3063\u305f\u308a\u3059\u308b\u3002<\/p>\n<p>\u3000\u9023\u7d9a\u30b7\u30e7\u30c3\u30c8\u306e\u30ec\u30fc\u30b6\u30fc\u306e\u5834\u5408\u306f\u3001\u4f8b\u3048\u3070 1\u30d5\u30ec\u30fc\u30e0\u306b\u5168\u30ec\u30fc\u30b6\u30fc\u306e x\u5ea7\u6a19\u3092\u3001\u5168\u3066\u81ea\u6a5f\u306e x\u5ea7\u6a19\u306b\u30ea\u30bb\u30c3\u30c8\u3057\u305f\u308a\u3059\u308b\uff08\u7e26\u306e\u5834\u5408\u306e\u307f\uff09<\/p>\n<p>\u3000\u4eca\u56de\u306f 1\u672c\u306e\u307f\u306a\u306e\u3067\u3069\u3046\u8868\u793a\u3057\u305f\u3082\u306e\u304b\u60a9\u3093\u3060\u304c\u3001celput\u306e\u4ed5\u69d8\u3067\u9583\u3044\u305f\u306e\u3067\u3001\u305d\u308c\u3092\u5229\u7528\u3057\u305f\u3002<\/p>\n<p>\u3000celput\u306f x\u5ea7\u6a19\u3001y\u5ea7\u6a19\u306e\u62e1\u5927\u7387\u3092\u6307\u5b9a\u3067\u304d\u308b\u3002<br \/>\n\u3000\u305d\u3053\u3067\u30ec\u30fc\u30b6\u30fc\u306e\u9577\u3055\u3092 y\u5ea7\u6a19\u306e\u62e1\u5927\u3067\u8868\u793a\u3059\u308b\u4e8b\u306b\u3057\u305f\u3002<\/p>\n<p>\u3000\u8868\u793a\u5ea7\u6a19\uff08lx,ly\uff09\u306f\u30ec\u30fc\u30b6\u30fc\u7dda\u306e\u4e2d\u70b9\u3068\u306a\u308b\u3002 <\/p>\n<p>\u3000lr = \u89d2\u5ea6<\/p>\n<p>\u3000y\u62e1\u5927\u7387 = lln\uff08\u9577\u3055\uff09\/ lo\uff08\u30ec\u30fc\u30b6\u30fc\u306e\u30b0\u30e9 y\u30c9\u30c3\u30c8\u306e\u5927\u304d\u3055\uff09<\/p>\n<p>\u3000\u306a\u304a <span style=\"color: #0000f0;\">celdiv<\/span>\u306b\u3088\u308a\u3001\u8868\u793a\u306f\u30ec\u30fc\u30b6\u30fc\u30b0\u30e9\u306e\u4e2d\u5fc3\u70b9\u3092\u57fa\u70b9\u3068\u3057\u3066\u3044\u308b\u3002<\/p>\n<pre class=\"lang:hsp decode:true \" >#deffunc l_put ; \u30ec\u30fc\u30b6\u30fc\u8868\u793a\r\n\r\n\tif lf&lt;2 or lf=5 : return ; \u767a\u5c04\u3055\u308c\u3066\u306a\u3044\r\n\r\n\r\n\tlln=sqrt((lx2-lx1)*(lx2-lx1)+(ly2-ly1)*(ly2-ly1)) ; \u30ec\u30fc\u30b6\u30fc\u306e\u9577\u3055\r\n\r\n\tlx=lx1+cos(lr)*lln\/2 ; \u8868\u793a\u5ea7\u6a19x\u3001\u59cb\u70b9\u5ea7\u6a19\u306b\u534a\u5206\u306e\u9577\u3055\u3092\u9032\u3093\u3060\u4e2d\u70b9\u5ea7\u6a19\r\n\tly=ly1+sin(lr)*lln\/2 ; \u8868\u793a\u5ea7\u6a19y\r\n\r\n\tpos lx,ly\r\n\r\n\tgmode 5,,,255 ; \u534a\u900f\u660e\u52a0\u7b97\u8868\u793a\r\n\t celput lw,,lopx,lln\/lo,lr+rad90 ; \u30ec\u30fc\u30b6\u30fc\r\n\r\n\treturn\r\n<\/pre>\n<p>\u3000\u306a\u304a\u3001\u4eca\u56de <span style=\"color: #0000f0;\">atan<\/span>\u306e\u4f7f\u3044\u65b9\u3092\u6b63\u898f\u306e <span style=\"color: #0000f0;\">atan<\/span>(ly2-ly1,lx2-lx1)\u3068\u3057\u305f\u306e\u3067\u3001<span style=\"color: #0000f0;\">celput<\/span>\u306e\u30e9\u30b8\u30a2\u30f3\uff08\u56de\u8ee2\u5411\u304d\uff09\u306f\u4e0a\u304c 0\u00b0\u3067\u3001<span style=\"color: #0000f0;\">atan<\/span>\u306e\u30e9\u30b8\u30a2\u30f3\u306f\u53f3\u304c 0\u00b0\u306e\u305f\u3081\u3001\u8868\u793a\u5411\u304d\u306b\u306f+rad90\uff08rad90\u306b\u306f1.5707965\u304c\u5165\u308c\u3066\u3042\u308b\uff09\u3001\u3064\u307e\u308a 90\u00b0\u56de\u8ee2\u304c\u8db3\u3055\u308c\u3066\u3044\u308b\u3002<br \/>\n<strong>\u3000<\/strong><br \/>\n<strong>\u3000<\/strong><br \/>\n<strong>\u3000<\/strong><br \/>\n5\u3001\u88ab\u5f3e\u8868\u793a<\/p>\n<p>\u3000\u4eca\u56de\u30ec\u30fc\u30b6\u30fc\u7167\u5c04\u304c\u3055\u308c\u3066\u3044\u308b\u63cf\u5199\u304c\u6b32\u3057\u304f\u3066\u3001\u88ab\u5f3e\u8868\u793a\uff08\u3064\u307e\u308a\u5f3e\u304c\u5f53\u305f\u3063\u3066\u3044\u308b\u6575\u306e\u8868\u793a\uff09\u3092\u8003\u3048\u305f\u3002<\/p>\n<p>1\u3001\u307e\u305a <span style=\"color: #0000f0;\">gmode<\/span> 2\u3067\u666e\u901a\u306b\u8868\u793a\u3059\u308b<br \/>\n2\u3001<span style=\"color: #0000f0;\">gmode<\/span> 5,,,255\u3001\u3064\u307e\u308a\u52a0\u7b97\u5408\u6210\u3067\u3082\u3046\u4e00\u5ea6\u540c\u3058\u5ea7\u6a19\u306b\u540c\u3058\u3082\u306e\u3092\u8868\u793a\u3059\u308b\u3002<\/p>\n<p>\u3000\u3053\u308c\u3067\u305d\u306e\u8868\u793a\u7269\u306f\u660e\u308b\u3044\u8868\u793a\u306b\u306a\u308b\u3002<\/p>\n<p>\u3000\u4eca\u56de\u306f\u3053\u306e\u6280\u8853\u3092\u30ec\u30fc\u30b6\u30fc\u67a0\u306e\u9078\u629e\u8868\u793a\uff08\u767a\u5c04\u30e2\u30fc\u30c9\uff09\u306b\u3082\u4f7f\u3063\u3066\u3044\u308b\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/sinsei.space\/blog\/wp-content\/uploads\/2019\/05\/img02179.jpg\" alt=\"\" width=\"111\" height=\"145\" class=\"alignnone size-full wp-image-7646\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/sinsei.space\/blog\/wp-content\/uploads\/2019\/05\/img02180.jpg\" alt=\"\" width=\"71\" height=\"364\" class=\"alignnone size-full wp-image-7647\" \/><br \/>\n<strong>\u3000<\/strong><br \/>\n<strong>\u3000<\/strong><br \/>\n<strong>\u3000<\/strong><br \/>\n\u3000\u3068\u3044\u3046\u4e8b\u3067\u4ee5\u4e0a\u3001\u4eca\u56de\u306f\u521d\u3081\u3066\u300c\u7dda\u3068\u5186\u306e\u5f53\u305f\u308a\u5224\u5b9a\u300d\u5c0e\u5165\u306b\u3088\u308b\u3001\u30ec\u30fc\u30b6\u30fc\u306e\u5b9f\u88c5\u3067\u3057\u305f\u3002<br \/>\n<strong>\u3000<\/strong><br \/>\n<strong>\u3000<\/strong><br \/>\n\u3000\u307e\u305f\u3057\u3070\u3089\u304f HEXTRATEGY\u5c02\u9580\u306a\u306e\u3067\u3001\u5b8c\u6210\u307e\u3067\u306f 1MAP_STG\u306e\u65b9\u306f\u304a\u4f11\u307f\u3060\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n<strong>\u3000<\/strong><br \/>\n<strong>\u3000<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>2019\u5e74 5\u6708 4\u65e5 \u3000 \u3000 \u3000\u305d\u308c\u3067\u306f\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u89e3\u8aac\u3092\u3057\u307e\u3059\u3002 \u3000 \u3000 1\u3001\u30b7\u30e7\u30c3\u30c8\u306e\u5f53\u305f\u308a\u5224\u5b9a\u3092\u5237\u65b0\u3057\u305f 2\u3001\u30ec\u30fc\u30b6\u30fc\u306e\u7167\u5c04\u9762\u7a4d\u306b\u3088\u308b\u30c0\u30e1\u30fc\u30b8\u5909\u5316 3\u3001\u30ec\u30fc\u30b6\u30fc\u3092\u6483\u3068\u3046 4\u3001\u30ec\u30fc\u30b6\u30fc\u3092\u8868\u793a\u3059\u308b 5\u3001\u88ab\u5f3e\u8868\u793a \u3000  &hellip; <a href=\"https:\/\/sinsei.space\/blog\/7622\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;1MAP_STG ver.0.0008 \u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u89e3\u8aac&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,4,13],"tags":[],"class_list":["post-7622","post","type-post","status-publish","format-standard","hentry","category-1map-stg","category-hsp","category-13"],"_links":{"self":[{"href":"https:\/\/sinsei.space\/blog\/wp-json\/wp\/v2\/posts\/7622","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sinsei.space\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sinsei.space\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sinsei.space\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sinsei.space\/blog\/wp-json\/wp\/v2\/comments?post=7622"}],"version-history":[{"count":28,"href":"https:\/\/sinsei.space\/blog\/wp-json\/wp\/v2\/posts\/7622\/revisions"}],"predecessor-version":[{"id":7659,"href":"https:\/\/sinsei.space\/blog\/wp-json\/wp\/v2\/posts\/7622\/revisions\/7659"}],"wp:attachment":[{"href":"https:\/\/sinsei.space\/blog\/wp-json\/wp\/v2\/media?parent=7622"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sinsei.space\/blog\/wp-json\/wp\/v2\/categories?post=7622"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sinsei.space\/blog\/wp-json\/wp\/v2\/tags?post=7622"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}