{"id":3692,"date":"2024-11-10T11:29:29","date_gmt":"2024-11-10T03:29:29","guid":{"rendered":"https:\/\/fwq.ai\/blog\/3692\/"},"modified":"2024-11-10T11:29:29","modified_gmt":"2024-11-10T03:29:29","slug":"%e6%97%8b%e8%bd%ac%e9%95%bf%e6%96%b9%e5%bd%a2%e5%90%8e%ef%bc%8c%e5%a6%82%e4%bd%95%e8%ae%a1%e7%ae%97%e5%ae%83%e4%b8%8e%e7%94%bb%e5%b8%83%e5%b7%a6%e4%b8%8a%e8%a7%92%e7%9a%84xy%e8%bd%b4%e8%b7%9d%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/3692\/","title":{"rendered":"\u65cb\u8f6c\u957f\u65b9\u5f62\u540e\uff0c\u5982\u4f55\u8ba1\u7b97\u5b83\u4e0e\u753b\u5e03\u5de6\u4e0a\u89d2\u7684xy\u8f74\u8ddd\uff1f"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/173111978449150.jpg\" class=\"aligncenter\" title=\"\u65cb\u8f6c\u957f\u65b9\u5f62\u540e\uff0c\u5982\u4f55\u8ba1\u7b97\u5b83\u4e0e\u753b\u5e03\u5de6\u4e0a\u89d2\u7684xy\u8f74\u8ddd\uff1f\u63d2\u56fe\" alt=\"\u65cb\u8f6c\u957f\u65b9\u5f62\u540e\uff0c\u5982\u4f55\u8ba1\u7b97\u5b83\u4e0e\u753b\u5e03\u5de6\u4e0a\u89d2\u7684xy\u8f74\u8ddd\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong>\u65cb\u8f6c\u540e\u957f\u65b9\u5f62\u5728\u753b\u5e03\u4e0a\u7684xy\u8f74\u8ddd\u8ba1\u7b97<\/strong><\/p>\n<p>\u5728\u753b\u5e03\u4e2d\u6dfb\u52a0\u4e00\u4e2a\u957f\u65b9\u5f62\uff0c\u5e76\u5c06\u5176\u65cb\u8f6c\u4efb\u610f\u89d2\u5ea6\uff0c\u5982\u4f55\u8ba1\u7b97\u65cb\u8f6c\u540e\u7684\u957f\u65b9\u5f62\u4e0e\u753b\u5e03\u5de6\u4e0a\u89d2\u4e4b\u95f4\u7684xy\u8f74\u8ddd\uff1f<\/p>\n<p><strong>\u95ee\u9898\u5206\u89e3\uff1a<\/strong><\/p>\n<p>\u8981\u8ba1\u7b97\u65cb\u8f6c\u540e\u957f\u65b9\u5f62\u7684xy\u8f74\u8ddd\uff0c\u9700\u8981\u8003\u8651\u65cb\u8f6c\u5bf9\u957f\u65b9\u5f62\u5bbd\u9ad8\u548c\u4f4d\u7f6e\u7684\u5f71\u54cd\u3002\u9996\u5148\uff0c\u65cb\u8f6c\u4f1a\u6539\u53d8\u957f\u65b9\u5f62\u7684\u957f\u548c\u5bbd\uff0c\u5176\u6b21\uff0c\u65cb\u8f6c\u4f1a\u6539\u53d8\u957f\u65b9\u5f62\u7684\u4e2d\u5fc3\u70b9\u4f4d\u7f6e\u3002<\/p>\n<p><strong>\u6c42\u89e3\u65b9\u6cd5\uff1a<\/strong><\/p>\n<ol>\n<li>\n<p><strong>\u8ba1\u7b97\u65cb\u8f6c\u540e\u7684\u957f\u548c\u5bbd\uff1a<\/strong><\/p>\n<ul>\n<li>\n<p>\u5047\u8bbe\u957f\u65b9\u5f62\u539f\u59cb\u957f\u4e3ax\uff0c\u5bbd\u4e3ay\uff0c\u65cb\u8f6c\u89d2\u5ea6\u4e3ar\uff0c\u5219\u65cb\u8f6c\u540e\u7684\u957f\u548c\u5bbd\u5206\u522b\u4e3a\uff1a<\/p>\n<pre>x_new = x * cos(r * pi \/ 180)\ny_new = y * sin(r * pi \/ 180)<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236  <\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u8ba1\u7b97\u65cb\u8f6c\u540e\u7684\u4e2d\u5fc3\u70b9\u4f4d\u7f6e\uff1a<\/strong><\/p>\n<ul>\n<li>\n<p>\u5047\u8bbe\u957f\u65b9\u5f62\u539f\u59cb\u4e2d\u5fc3\u70b9\u4e3a(x0, y0)\uff0c\u65cb\u8f6c\u540e\u4e2d\u5fc3\u70b9\u7684\u4f4d\u7f6e(x1, y1)\u53ef\u901a\u8fc7\u4ee5\u4e0b\u516c\u5f0f\u8ba1\u7b97\uff1a<\/p>\n<pre>x1 = x0 + (x \/ 2) - (x \/ 2) * cos(r * pi \/ 180)\ny1 = y0 + (y \/ 2) - (y \/ 2) * sin(r * pi \/ 180)<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236  <\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u8ba1\u7b97xy\u8f74\u8ddd\uff1a<\/strong><\/p>\n<ul>\n<li>\n<p>\u65cb\u8f6c\u540e\u7684\u957f\u65b9\u5f62\u4e0e\u753b\u5e03\u5de6\u4e0a\u89d2\u7684xy\u8f74\u8ddd\u4e3a\uff1a<\/p>\n<pre>dx = x1 - x0\ndy = y1 - y0<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236  <\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><strong>\u793a\u4f8b\uff1a<\/strong><\/p>\n<p>\u7ed9\u5b9a\u4e00\u4e2a\u957f\u65b9\u5f62\uff0c\u5bbd\u4e3a200\uff0c\u9ad8\u4e3a20\uff0c\u4e2d\u5fc3\u70b9\u5750\u6807\u4e3a(100, 100)\uff0c\u65cb\u8f6c\u89d2\u5ea6\u4e3a30\u5ea6\u3002\u6839\u636e\u4ee5\u4e0a\u516c\u5f0f\u8ba1\u7b97\uff0c\u65cb\u8f6c\u540e\u7684\u957f\u65b9\u5f62\u4e0e\u753b\u5e03\u5de6\u4e0a\u89d2\u7684xy\u8f74\u8ddd\u4e3a\uff1a<\/p>\n<pre>x_new = 200 * cos(30 * PI \/ 180) \u2248 173.2\ny_new = 20 * sin(30 * PI \/ 180) \u2248 10\nx1 = 100 + (200 \/ 2) - (200 \/ 2) * cos(30 * PI \/ 180) \u2248 65.1\ny1 = 100 + (20 \/ 2) - (20 \/ 2) * sin(30 * PI \/ 180) \u2248 110\ndx = 65.1 - 100 \u2248 -34.9\ndy = 110 - 100 \u2248 10<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u65cb\u8f6c\u957f\u65b9\u5f62\u540e\uff0c\u5982\u4f55\u8ba1\u7b97\u5b83\u4e0e\u753b\u5e03\u5de6\u4e0a\u89d2\u7684xy\u8f74\u8ddd\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u65cb\u8f6c\u540e\u957f\u65b9\u5f62\u5728\u753b\u5e03\u4e0a\u7684xy\u8f74\u8ddd\u8ba1\u7b97 \u5728\u753b\u5e03\u4e2d\u6dfb\u52a0\u4e00\u4e2a\u957f\u65b9\u5f62\uff0c\u5e76\u5c06\u5176\u65cb\u8f6c\u4efb\u610f\u89d2\u5ea6\uff0c\u5982\u4f55\u8ba1\u7b97\u65cb\u8f6c\u540e\u7684\u957f\u65b9\u5f62\u4e0e\u753b\u5e03\u5de6\u4e0a\u89d2\u4e4b\u95f4\u7684xy\u8f74\u8ddd\uff1f \u95ee\u9898\u5206\u89e3\uff1a \u8981\u8ba1\u7b97\u65cb\u8f6c\u540e\u957f\u65b9\u5f62\u7684xy\u8f74\u8ddd\uff0c\u9700\u8981\u8003\u8651\u65cb\u8f6c\u5bf9\u957f\u65b9\u5f62\u5bbd\u9ad8\u548c\u4f4d\u7f6e\u7684\u5f71\u54cd\u3002\u9996\u5148\uff0c\u65cb\u8f6c\u4f1a\u6539\u53d8\u957f\u65b9\u5f62\u7684\u957f\u548c\u5bbd\uff0c\u5176\u6b21\uff0c\u65cb\u8f6c\u4f1a\u6539\u53d8\u957f\u65b9\u5f62\u7684\u4e2d\u5fc3\u70b9\u4f4d\u7f6e\u3002 \u6c42\u89e3\u65b9\u6cd5\uff1a \u8ba1\u7b97\u65cb\u8f6c\u540e\u7684\u957f\u548c\u5bbd\uff1a \u5047\u8bbe\u957f\u65b9\u5f62\u539f\u59cb\u957f\u4e3ax\uff0c\u5bbd\u4e3ay\uff0c\u65cb\u8f6c\u89d2\u5ea6\u4e3ar\uff0c\u5219\u65cb\u8f6c\u540e\u7684\u957f\u548c\u5bbd\u5206\u522b\u4e3a\uff1a x_new = x * cos(r * pi \/ 180) y_new = y * sin(r * pi \/ 180) \u767b\u5f55\u540e\u590d\u5236 \u8ba1\u7b97\u65cb\u8f6c\u540e\u7684\u4e2d\u5fc3\u70b9\u4f4d\u7f6e\uff1a \u5047\u8bbe\u957f\u65b9\u5f62\u539f\u59cb\u4e2d\u5fc3\u70b9\u4e3a(x0, y0)\uff0c\u65cb\u8f6c\u540e\u4e2d\u5fc3\u70b9\u7684\u4f4d\u7f6e(x1, y1)\u53ef\u901a\u8fc7\u4ee5\u4e0b\u516c\u5f0f\u8ba1\u7b97\uff1a x1 = x0 + (x \/ 2) &#8211; (x \/ 2) * cos(r * pi \/ 180) y1 = y0 + (y \/ 2) &#8211; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-3692","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/3692","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=3692"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/3692\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=3692"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=3692"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=3692"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}