{"id":2444,"date":"2024-10-15T18:19:07","date_gmt":"2024-10-15T09:19:07","guid":{"rendered":"https:\/\/y42u.net\/tec001\/?p=2444"},"modified":"2024-10-15T18:22:24","modified_gmt":"2024-10-15T09:22:24","slug":"github-copilot-2","status":"publish","type":"post","link":"https:\/\/y42u.net\/tec001\/2024\/10\/15\/github-copilot-2\/","title":{"rendered":"GitHub Copilot\u3092\u4f7f\u3063\u3066\u307f\u305f(2)"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u611f\u6fc0\u3057\u305f\u6240\uff1d\u7c21\u5358\u306a\u95a2\u6570\u306a\u3089\u81ea\u52d5\u7684\u306b\u4f5c\u3063\u3066\u304f\u308c\u308b\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img data-recalc-dims=\"1\" decoding=\"async\" width=\"958\" height=\"808\" src=\"https:\/\/i0.wp.com\/y42u.net\/tec001\/wp-content\/uploads\/2024\/10\/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88-2024-10-15-18.16.39.png?resize=958%2C808&#038;ssl=1\" alt=\"\" class=\"wp-image-2447\" style=\"width:auto;height:300px\" srcset=\"https:\/\/i0.wp.com\/y42u.net\/tec001\/wp-content\/uploads\/2024\/10\/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88-2024-10-15-18.16.39.png?w=958&amp;ssl=1 958w, https:\/\/i0.wp.com\/y42u.net\/tec001\/wp-content\/uploads\/2024\/10\/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88-2024-10-15-18.16.39.png?resize=300%2C253&amp;ssl=1 300w, https:\/\/i0.wp.com\/y42u.net\/tec001\/wp-content\/uploads\/2024\/10\/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88-2024-10-15-18.16.39.png?resize=40%2C34&amp;ssl=1 40w, https:\/\/i0.wp.com\/y42u.net\/tec001\/wp-content\/uploads\/2024\/10\/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88-2024-10-15-18.16.39.png?resize=768%2C648&amp;ssl=1 768w\" sizes=\"(max-width: 958px) 100vw, 958px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\uff11\uff09\u56f3\u5f62\u306e\u56de\u8ee2\u95a2\u6570\u304c\u81ea\u52d5\u3067\u51fa\u3066\u304d\u305f<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">CAD\u3067\u306f\u5f53\u305f\u308a\u524d\u306e\u3001\u90e8\u54c1\u56f3\u5f62\u306e\u89d2\u5ea6\u3092\u3064\u3051\u305f\u914d\u7f6e\u6a5f\u80fd\u306f\u3001xy\u306e\u56de\u8ee2\u95a2\u6570\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3044\u307e\u307e\u3067\u591a\u304f\u306e\u4eba\u3005\u304c\u4f5c\u3063\u3066\u304d\u305f\u95a2\u6570\u3067\u3001\u79c1\u3082Pascal\/C\/C++\/C#\u306a\u3069\u3067\u4f55\u5ea6\u3068\u4f5c\u3063\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4eca\u56de\u3001Python\u3067\u56de\u8ee2\u95a2\u6570\u3092\u4f5c\u308d\u3046\u3068\u3057\u305f\u3089\u3001\u95a2\u6570\u540d\u3092\u66f8\u3044\u305f\u3068\u3053\u308d\u3067\u81ea\u52d5\u7684\u306b\u56de\u8ee2\u51e6\u7406\u90e8\u5206\u304cGit Hub Copilot\u304b\u3089\u63d0\u6848\u3055\u308c\u3066\u30d3\u30c3\u30af\u30ea\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\uff1c\u8a18\u8ff0\u3057\u305f\u30d8\u30c3\u30c0\u30fc\u90e8\u5206\uff1e\n# \u5ea7\u6a19\u5024\u306e\u56de\u8ee2\ndef rotData(org,rotDo,circleList):<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e0a\u8a18\u3092\u5165\u308c\u308b\u3068\u95a2\u6570\u672c\u4f53\u304c\u4ee5\u4e0b\u306e\u69d8\u306b\u81ea\u52d5\u3067\u51fa\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\uff1cGit Hub Copilot\u304c\u52dd\u624b\u306b\u4e88\u60f3\u3057\u3066\u4f5c\u6210\u3057\u305f\u30b3\u30fc\u30c9\uff1e\n    rotCircleList = list()\n    rot = np.radians(rotDo)\n    for (lay,x,y,r) in circleList:\n        x1 = x*np.cos(rot) - y*np.sin(rot)\n        y1 = x*np.sin(rot) + y*np.cos(rot)\n        x2 = x1 + org&#91;0]\n        y2 = y1 + org&#91;1]\n        rotCircleList.append((lay,x2,y2,r))\n    #\n    return rotCircleList<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\uff12\u6b21\u5143\u306e\u56de\u8ee2\u306a\u306e\u3067\u300c\u307e\u305f\u66f8\u304f\u306e\u304b\u3002\u3002\u3002\u9762\u5012\u3060\u306a\u300d\u3068\u601d\u3063\u3066\u5c45\u305f\u3068\u3053\u308d\u3001\u3053\u306e\u30b3\u30fc\u30c9\u304c\u81ea\u52d5\u7684\u306b\u51fa\u3066\u304d\u305f\u306e\u3067\u697d\u3067\u304d\u307e\u3057\u305f\u3002\u307e\u305f\u3001\u4e0a\u8a18\u306ecircleList\u306e\u5185\u90e8\u30c7\u30fc\u30bf\u306a\u3069\u3001\u305d\u306e\u4ed6\u306e\u30bd\u30fc\u30b9\u3092\u898b\u306a\u3044\u3068\u5206\u304b\u3089\u306a\u3044\u7b48\u306a\u306e\u3067\u3001\u5909\u6570\u306e\u30b9\u30bf\u30a4\u30eb\u3084\u5185\u90e8\u3082\u300c\u7406\u89e3\u300d\u3057\u3066\u3044\u308b\u69d8\u306b\u898b\u3048\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u52d5\u304f\u30b3\u30fc\u30c9\u3092\u4f5c\u308b\u3060\u3051\u3067\u7121\u304f\u3001\u4f5c\u8005\u306e\u7656\u306a\u3069\u3082\u3042\u308b\u7a0b\u5ea6\u628a\u63e1\u3057\u3066\u3044\u308b\u69d8\u3067\u9055\u548c\u611f\u306e\u306a\u3044\u30b3\u30fc\u30c9\u304c\u51fa\u3066\u304f\u308b\u306e\u306f\u672c\u5f53\u306b\u9a5a\u304d\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\uff12\uff09\u3053\u308c\u306f\u30d7\u30ed\u30b0\u30e9\u30de\u30fc\u5bff\u547d\u304c\u4f38\u3073\u305d\u3046<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u6bce\u56de\u540c\u3058\u69d8\u306a\u4e8b\u3092\u66f8\u304f\u306e\u306f\u82e6\u75db\u3067\u3059\u304c\u3001\u3053\u306e\u69d8\u306a\u300c\u5206\u304b\u308a\u304d\u3063\u305f\u51e6\u7406\u300d\u3092\u4e88\u60f3\u3057\u3066\u7d50\u69cb\u4f5c\u3063\u3066\u304f\u308c\u307e\u3059\u306e\u3067\u3001\u9762\u767d\u305d\u3046\u306a\u6240\u306f\u81ea\u4f5c\u3057\u5b9a\u756a\u306e\u51e6\u7406\u306fGit Hub Copilot\u306a\u3069\u306eAI\u306b\u4efb\u305b\u308b\u3002\u3002\u69d8\u306a\u4f5c\u696d\u5206\u62c5\u304c\u3067\u304d\u305d\u3046\u306a\u611f\u3058\u3067\u3059\u306d\u3002\u4f53\u529b\u304c\u843d\u3061\u305f\u5e74\u5bc4\u308a\u306b\u306f\u512a\u3057\u3044\u30b7\u30b9\u30c6\u30e0\u3067\u3001\u3044\u3064\u307e\u3067\u3082\u30d7\u30ed\u30b0\u30e9\u30de\u30fc\u304c\u7d9a\u3051\u3089\u308c\u305d\u3046\u306a\u6c17\u304c\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u611f\u6fc0\u3057\u305f\u6240\uff1d\u7c21\u5358\u306a\u95a2\u6570\u306a\u3089\u81ea\u52d5\u7684\u306b\u4f5c\u3063\u3066\u304f\u308c\u308b\u3002 \uff11\uff09\u56f3\u5f62\u306e\u56de\u8ee2\u95a2\u6570\u304c\u81ea\u52d5\u3067\u51fa\u3066\u304d\u305f CAD\u3067\u306f\u5f53\u305f\u308a\u524d\u306e\u3001\u90e8\u54c1\u56f3\u5f62\u306e\u89d2\u5ea6\u3092\u3064\u3051\u305f\u914d\u7f6e\u6a5f\u80fd\u306f\u3001xy\u306e\u56de\u8ee2\u95a2\u6570\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002 \u3044\u307e\u307e\u3067\u591a\u304f\u306e\u4eba\u3005\u304c\u4f5c\u3063\u3066\u304d\u305f\u95a2\u6570\u3067\u3001\u79c1\u3082P [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2447,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"common","vkexunit_cta_each_option":"","_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1,55],"tags":[160],"class_list":["post-2444","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","category-period","tag-github_copilot"],"veu_head_title_object":{"title":"","add_site_title":""},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/y42u.net\/tec001\/wp-content\/uploads\/2024\/10\/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88-2024-10-15-18.16.39.png?fit=958%2C808&ssl=1","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/y42u.net\/tec001\/wp-json\/wp\/v2\/posts\/2444","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/y42u.net\/tec001\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/y42u.net\/tec001\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/y42u.net\/tec001\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/y42u.net\/tec001\/wp-json\/wp\/v2\/comments?post=2444"}],"version-history":[{"count":3,"href":"https:\/\/y42u.net\/tec001\/wp-json\/wp\/v2\/posts\/2444\/revisions"}],"predecessor-version":[{"id":2450,"href":"https:\/\/y42u.net\/tec001\/wp-json\/wp\/v2\/posts\/2444\/revisions\/2450"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/y42u.net\/tec001\/wp-json\/wp\/v2\/media\/2447"}],"wp:attachment":[{"href":"https:\/\/y42u.net\/tec001\/wp-json\/wp\/v2\/media?parent=2444"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/y42u.net\/tec001\/wp-json\/wp\/v2\/categories?post=2444"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/y42u.net\/tec001\/wp-json\/wp\/v2\/tags?post=2444"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}