{"id":26793,"date":"2024-11-24T15:09:11","date_gmt":"2024-11-24T07:09:11","guid":{"rendered":"https:\/\/fwq.ai\/blog\/26793\/"},"modified":"2024-11-24T15:09:11","modified_gmt":"2024-11-24T07:09:11","slug":"%e6%97%8b%e8%bd%ac%e9%95%bf%e6%96%b9%e5%bd%a2%e5%90%8e%e5%a6%82%e4%bd%95%e8%ae%a1%e7%ae%97%e5%85%b6%e5%9c%a8%e7%94%bb%e5%b8%83%e4%b8%8a%e7%9a%84%e8%bd%b4%e8%b7%9d%ef%bc%9f-2","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/26793\/","title":{"rendered":"\u65cb\u8f6c\u957f\u65b9\u5f62\u540e\u5982\u4f55\u8ba1\u7b97\u5176\u5728\u753b\u5e03\u4e0a\u7684\u8f74\u8ddd\uff1f"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/173106664989645.jpg\" class=\"aligncenter\" title=\"\u65cb\u8f6c\u957f\u65b9\u5f62\u540e\u5982\u4f55\u8ba1\u7b97\u5176\u5728\u753b\u5e03\u4e0a\u7684\u8f74\u8ddd\uff1f\u63d2\u56fe\" alt=\"\u65cb\u8f6c\u957f\u65b9\u5f62\u540e\u5982\u4f55\u8ba1\u7b97\u5176\u5728\u753b\u5e03\u4e0a\u7684\u8f74\u8ddd\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong>\u65cb\u8f6c\u957f\u65b9\u5f62\u540e\u8ba1\u7b97\u8f74\u8ddd<\/strong><\/p>\n<p>\u5047\u8bbe\u957f\u65b9\u5f62\u7684\u5bbd\u3001\u9ad8\u5206\u522b\u4e3a 200 \u548c 20\uff0c\u521d\u59cb\u5750\u6807\u4e3a (100, 100)\uff0c\u6211\u4eec\u5c06\u5b83\u65cb\u8f6c\u4e00\u4e2a\u4efb\u610f\u89d2\u5ea6\u3002\u6839\u636e\u65cb\u8f6c\u77e9\u9635\u516c\u5f0f\uff0c\u65cb\u8f6c\u540e\u7684\u65b0\u5750\u6807 (x&#8217;, y&#8217;) \u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u516c\u5f0f\u8ba1\u7b97\uff1a<\/p>\n<pre>x' = x * cos(\u03b8) - y * sin(\u03b8)\ny' = x * sin(\u03b8) + y * cos(\u03b8)<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u5176\u4e2d\uff0c\u03b8 \u4e3a\u65cb\u8f6c\u89d2\u5ea6\u3002<\/p>\n<p>\u4ee5\u65cb\u8f6c 30 \u5ea6\u4e3a\u4f8b\uff0c\u8ba1\u7b97\u65cb\u8f6c\u540e\u7684\u5750\u6807\uff1a<\/p>\n<pre>x' = 100 * cos(30) - 100 * sin(30) \u2248 87\ny' = 100 * sin(30) + 100 * cos(30) \u2248 150<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u540c\u7406\uff0c\u53ef\u4ee5\u8ba1\u7b97\u4efb\u610f\u65cb\u8f6c\u89d2\u5ea6\u4e0b\u7684\u65b0\u5750\u6807\u3002<\/p>\n<p>\u4e3a\u4e86\u8ba1\u7b97\u957f\u65b9\u5f62\u8ddd\u79bb\u753b\u5e03\u5de6\u4e0a\u89d2\u7684\u8f74\u8ddd\uff0c\u9700\u8981\u8ba1\u7b97\u65cb\u8f6c\u540e\u957f\u65b9\u5f62\u7684\u4e2d\u5fc3\u70b9\u4e0e\u539f\u70b9\u7684\u8ddd\u79bb\u3002\u4e2d\u5fc3\u70b9\u5750\u6807\u4e3a\uff1a<\/p>\n<pre>x0 = x' + (w \/ 2)\ny0 = y' + (h \/ 2)<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u5176\u4e2d\uff0cw\u3001h \u5206\u522b\u4e3a\u957f\u65b9\u5f62\u7684\u5bbd\u3001\u9ad8\u3002<\/p>\n<p>\u7136\u540e\uff0c\u8f74\u8ddd\u53ef\u4ee5\u8ba1\u7b97\u4e3a\uff1a<\/p>\n<pre>d = \u221a((x0 - 0)^2 + (y0 - 0)^2)<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u4f8b\u5982\uff0c\u5f53\u65cb\u8f6c 30 \u5ea6\u65f6\uff0c\u8f74\u8ddd\u4e3a\uff1a<\/p>\n<pre>d = \u221a((87 + 100 \/ 2)^2 + (150 + 100 \/ 2)^2) \u2248 330<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u901a\u8fc7\u8fd9\u79cd\u65b9\u6cd5\uff0c\u53ef\u4ee5\u8ba1\u7b97\u65cb\u8f6c\u4efb\u610f\u89d2\u5ea6\u540e\u957f\u65b9\u5f62\u5728\u753b\u5e03\u4e0a\u7684 xy \u8f74\u8ddd\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u65cb\u8f6c\u957f\u65b9\u5f62\u540e\u5982\u4f55\u8ba1\u7b97\u5176\u5728\u753b\u5e03\u4e0a\u7684\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\u957f\u65b9\u5f62\u540e\u8ba1\u7b97\u8f74\u8ddd \u5047\u8bbe\u957f\u65b9\u5f62\u7684\u5bbd\u3001\u9ad8\u5206\u522b\u4e3a 200 \u548c 20\uff0c\u521d\u59cb\u5750\u6807\u4e3a (100, 100)\uff0c\u6211\u4eec\u5c06\u5b83\u65cb\u8f6c\u4e00\u4e2a\u4efb\u610f\u89d2\u5ea6\u3002\u6839\u636e\u65cb\u8f6c\u77e9\u9635\u516c\u5f0f\uff0c\u65cb\u8f6c\u540e\u7684\u65b0\u5750\u6807 (x&#8217;, y&#8217;) \u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u516c\u5f0f\u8ba1\u7b97\uff1a x&#8217; = x * cos(\u03b8) &#8211; y * sin(\u03b8) y&#8217; = x * sin(\u03b8) + y * cos(\u03b8) \u767b\u5f55\u540e\u590d\u5236 \u5176\u4e2d\uff0c\u03b8 \u4e3a\u65cb\u8f6c\u89d2\u5ea6\u3002 \u4ee5\u65cb\u8f6c 30 \u5ea6\u4e3a\u4f8b\uff0c\u8ba1\u7b97\u65cb\u8f6c\u540e\u7684\u5750\u6807\uff1a x&#8217; = 100 * cos(30) &#8211; 100 * sin(30) \u2248 87 y&#8217; = 100 * sin(30) + 100 * cos(30) \u2248 [&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-26793","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/26793","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=26793"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/26793\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=26793"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=26793"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=26793"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}