{"id":204331,"date":"2025-05-29T10:09:08","date_gmt":"2025-05-29T02:09:08","guid":{"rendered":"https:\/\/server.hk\/cnblog\/204331\/"},"modified":"2025-05-29T10:09:08","modified_gmt":"2025-05-29T02:09:08","slug":"%e6%9c%ba%e5%99%a8%e5%ad%a6%e4%b9%a0%e4%b8%ad%e5%90%91%e9%87%8f%e7%9a%84%e5%a4%a7%e5%b0%8f%e4%b8%8e%e6%96%b9%e5%90%91%ef%bc%9a%e5%ae%83%e4%bb%ac%e5%a6%82%e4%bd%95%e5%bd%b1%e5%93%8d%e6%a8%a1%e5%9e%8b","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/204331\/","title":{"rendered":"\u673a\u5668\u5b66\u4e60\u4e2d\u5411\u91cf\u7684\u5927\u5c0f\u4e0e\u65b9\u5411\uff1a\u5b83\u4eec\u5982\u4f55\u5f71\u54cd\u6a21\u578b\uff1f"},"content":{"rendered":"<p><b><\/b>     <\/p>\n<h1>\u673a\u5668\u5b66\u4e60\u4e2d\u5411\u91cf\u7684\u5927\u5c0f\u4e0e\u65b9\u5411\uff1a\u5b83\u4eec\u5982\u4f55\u5f71\u54cd\u6a21\u578b\uff1f<\/h1>\n<p>\u4eca\u5929\u5c06\u7ed9\u5927\u5bb6\u5e26\u6765\uff0c\u611f\u5174\u8da3\u7684\u670b\u53cb\u8bf7\u7ee7\u7eed\u770b\u4e0b\u53bb\u5427\uff01\u4ee5\u4e0b\u5185\u5bb9\u5c06\u4f1a\u6d89\u53ca\u5230<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\"><\/span>\u7b49\u7b49\u77e5\u8bc6\u70b9\uff0c\u5982\u679c\u4f60\u662f\u6b63\u5728\u5b66\u4e60<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u6587\u7ae0<\/span>\u6216\u8005\u5df2\u7ecf\u662f\u5927\u4f6c\u7ea7\u522b\u4e86\uff0c\u90fd\u975e\u5e38\u6b22\u8fce\u4e5f\u5e0c\u671b\u5927\u5bb6\u90fd\u80fd\u7ed9\u6211\u5efa\u8bae\u8bc4\u8bba\u54c8~\u5e0c\u671b\u80fd\u5e2e\u52a9\u5230\u5927\u5bb6\uff01<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241104\/17307216486728b770e3015.jpg\" class=\"aligncenter\"><\/p>\n<p><strong>\u673a\u5668\u5b66\u4e60\u4e2d\u7684\u5411\u91cf\uff1a\u5927\u5c0f\u4e0e\u65b9\u5411<\/strong><\/p>\n<p>\u5728\u673a\u5668\u5b66\u4e60\u4e2d\uff0c\u5411\u91cf\u901a\u5e38\u7528\u6570\u7ec4\u8868\u793a\uff0c\u6bcf\u4e2a\u5143\u7d20\u4ee3\u8868\u5411\u91cf\u5728\u76f8\u5e94\u7ef4\u5ea6\u4e0a\u7684\u5750\u6807\u503c\u3002<\/p>\n<p><strong>\u5927\u5c0f\uff08\u6a21\uff09<\/strong><\/p>\n<p>\u5411\u91cf\u7684\u6a21\u8868\u793a\u5176\u957f\u5ea6\uff0c\u53c8\u79f0\u6b27\u51e0\u91cc\u5f97\u957f\u5ea6\u3002\u5bf9\u4e8e\u4e09\u7ef4\u5411\u91cf v = (x, y, z)\uff0c\u5176\u6a21\u4e3a\uff1a<\/p>\n<pre>l = sqrt(x^2 + y^2 + z^2)<\/pre>\n<p><strong>\u65b9\u5411<\/strong><\/p>\n<p>\u5411\u91cf\u7684\u65b9\u5411\u7531\u5176\u5355\u4f4d\u5411\u91cf\u8868\u793a\uff0c\u5373\u957f\u5ea6\u4e3a 1 \u7684\u5411\u91cf\u3002\u5bf9\u4e8e\u4e09\u7ef4\u5411\u91cf\uff0c\u5355\u4f4d\u5411\u91cf\u4e3a\uff1a<\/p>\n<pre>(x\/l, y\/l, z\/l)<\/pre>\n<p>\u5176\u4e2d l \u662f\u5411\u91cf\u7684\u6a21\u3002<\/p>\n<p>\u56e0\u6b64\uff0c\u673a\u5668\u5b66\u4e60\u4e2d\u7684\u5411\u91cf\u65e2\u6709\u5927\u5c0f\uff08\u6a21\uff09\uff0c\u4e5f\u6709\u65b9\u5411\u3002\u8fd9\u4e9b\u5c5e\u6027\u5bf9\u4e8e\u673a\u5668\u5b66\u4e60\u6a21\u578b\u7684\u8bad\u7ec3\u548c\u8bc4\u4f30\u81f3\u5173\u91cd\u8981\u3002\u4f8b\u5982\uff0c\u5728\u56fe\u50cf\u5206\u7c7b\u4e2d\uff0c\u50cf\u7d20\u503c\u53ef\u4ee5\u88ab\u89c6\u4e3a\u4e00\u4e2a\u5411\u91cf\uff0c\u5176\u5927\u5c0f\u548c\u65b9\u5411\u53ef\u4ee5\u53cd\u6620\u56fe\u50cf\u7684\u4e0d\u540c\u7279\u5f81\u3002<\/p>\n<p>\u7ec8\u4e8e\u4ecb\u7ecd\u5b8c\u5566\uff01\u5c0f\u4f19\u4f34\u4eec\uff0c\u8fd9\u7bc7\u5173\u4e8e\u300a\u673a\u5668\u5b66\u4e60\u4e2d\u5411\u91cf\u7684\u5927\u5c0f\u4e0e\u65b9\u5411\uff1a\u5b83\u4eec\u5982\u4f55\u5f71\u54cd\u6a21\u578b\uff1f\u300b\u7684\u4ecb\u7ecd\u5e94\u8be5\u8ba9\u4f60\u6536\u83b7\u591a\u591a\u4e86\u5427\uff01\u6b22\u8fce\u5927\u5bb6\u6536\u85cf\u6216\u5206\u4eab\u7ed9\u66f4\u591a\u9700\u8981\u5b66\u4e60\u7684\u670b\u53cb\u5427~\u516c\u4f17\u53f7\u4e5f\u4f1a\u53d1\u5e03\u6587\u7ae0\u76f8\u5173\u77e5\u8bc6\uff0c\u5feb\u6765\u5173\u6ce8\u5427\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u673a\u5668\u5b66\u4e60\u4e2d\u5411\u91cf\u7684\u5927\u5c0f\u4e0e\u65b9\u5411\uff1a\u5b83\u4eec&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4925],"tags":[],"class_list":["post-204331","post","type-post","status-publish","format-standard","hentry","category-4925"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/204331","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=204331"}],"version-history":[{"count":0,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/204331\/revisions"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=204331"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=204331"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=204331"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}