{"id":632,"date":"2008-11-11T23:11:42","date_gmt":"2008-11-11T15:11:42","guid":{"rendered":"http:\/\/fdream.net\/blog\/article\/632.aspx"},"modified":"2008-11-11T23:11:55","modified_gmt":"2008-11-11T15:11:55","slug":"AS3%e4%bd%8d%e5%9b%be%e4%bb%bb%e6%84%8f%e5%bd%a2%e5%8f%98%e4%b8%80%e6%ad%a5%e4%b8%80%e6%ad%a5%e6%9d%a5%ef%bc%882%ef%bc%89%e2%80%94%e2%80%94%e8%ae%a1%e7%ae%97%e5%8f%98%e6%8d%a2%e7%9f%a9%e9%98%b5","status":"publish","type":"post","link":"https:\/\/fdream.net\/blog\/article\/632","title":{"rendered":"AS3\u4f4d\u56fe\u4efb\u610f\u5f62\u53d8\u4e00\u6b65\u4e00\u6b65\u6765\uff082\uff09\u2014\u2014\u8ba1\u7b97\u53d8\u6362\u77e9\u9635"},"content":{"rendered":"<p>\u8f6c\u8f7d\u8bf7\u6ce8\u660e\u51fa\u5904\uff1a<a href=\"http:\/\/fdream.net\" target=\"_blank\" title=\"http:\/\/fdream.net\">http:\/\/fdream.net<\/a>\uff0c\u4f5c\u8005\uff1aFdream<\/p>\n<p>\u7531\u4e8e\u4eff\u5c04\u53d8\u6362\u65f6\uff0c\u5e73\u884c\u7684\u8fb9\u4f9d\u7136\u5e73\u884c\uff0c\u6240\u4ee5\uff0c\u6211\u4eec\u65e0\u6cd5\u5bf9\u4e00\u4e2a\u77e9\u5f62\u7684\u4f4d\u56fe\u8fdb\u884c\u968f\u610f\u53d8\u6362\uff0c\u6bd4\u5982\u6211\u4eec\u65e0\u6cd5\u62c9\u4f38\u4e00\u4e2a\u89d2\uff0c\u4e5f\u65e0\u6cd5\u8fdb\u884c\u628a\u5b83\u53d8\u6210\u68af\u5f62\u7b49\u3002\u5728\u4e0a\u6587\u4e2d\uff0c\u6211\u4eec\u63d0\u5230\u8fc7\u4e00\u79cd\u601d\u8def\uff0c\u5c31\u662f\u628a\u77e9\u5f62\u5206\u5272\u6210\u4e24\u4e2a\u4e09\u89d2\u5f62\uff0c\u8fd9\u6837\u53d8\u6362\u65f6\u4ece<b>\u8868\u9762\u4e0a<\/b>\u770b\u6765\u5c31\u6ca1\u6709\u4ec0\u4e48\u5e73\u884c\u8fb9\u4e86\uff0c\u8fd9\u6837\u6211\u4eec\u5c31\u53ef\u4ee5\u53d8\u6362\u5176\u4e2d\u7684\u4e00\u4e2a\u6216\u8005\u591a\u4e2a\u89d2\u4e86\u3002\u6ce8\u610f\uff0c\u6211\u8fd9\u91cc\u8bf4\u7684\u662f\u4ece\u8868\u9762\u4e0a\u770b\uff0c\u8fd9\u4e00\u70b9\u5728\u540e\u9762\u7684\u53d8\u6362\u4e2d\u8981\u8fdb\u884c\u4e00\u5b9a\u7684\u5904\u7406\u7684\u3002<\/p>\n<p>\u8fd9\u6837\u6211\u4eec\u53ea\u9700\u8981\u5bf9\u4e09\u4e2a\u70b9\u8fdb\u884c\u5e73\u9762\u53d8\u6362\uff0c\u5047\u8bbe\u6211\u4eec\u7684\u4e09\u4e2a\u70b9\u5206\u522b\u4e3a(x1, y1)\u3001(x2, y2)\u3001(x3, y3)\uff0c\u8981\u53d8\u6362\u7684\u4f4d\u7f6e\u5206\u522b\u4e3a\uff08x1&#8242;,y1&#8242;)\u3001(x2&#8242;, y2&#8242;)\u3001(x3&#8242;, y3&#8217;\uff09\u3001\u73b0\u5728\uff0c\u6211\u4eec\u8981\u505a\u7684\u5c31\u662f\u8ba1\u7b97\u5176\u53d8\u6362\u77e9\u9635\u3002\u5047\u8bbe\u5176\u53d8\u6362\u77e9\u9635\u4e3a\uff1a<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/fdream.net\/blog\/wp-content\/uploads\/2008\/11\/oy4wim_matrixa.gif\" onload=\"ImageViewer.preProcess(this);\" \/><\/p>\n<p>\u6ce8\u610f\uff0c\u5728Flash\u4e2d\uff0c\u5176\u5bf9\u5e94\u7684\u53d8\u6362\u77e9\u9635\u5e94\u8be5\u662f\u8fd9\u4e2a\uff08\u5e73\u79fb\u53d8\u6362\u7684\u4f4d\u7f6e\u7565\u6709\u4e0d\u540c\uff09\uff1a<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/fdream.net\/blog\/wp-content\/uploads\/2008\/11\/5v55a5_matrixb.gif\" onload=\"ImageViewer.preProcess(this);\" \/><\/p>\n<p>\u6839\u636e<a href=\"http:\/\/fdream.net\/blog\/article\/631.aspx\" target=\"_blank\" title=\"\u4e0a\u4e00\u7bc7\u6587\u7ae0\">\u4e0a\u4e00\u7bc7\u6587\u7ae0<\/a>\u4e2d\u63d0\u5230\u7684\uff0c\u70b9(x1, y1)\u53d8\u6362\u4e3a(x1&#8242;, y1&#8242;)\u65f6\uff0c\u6709\uff1a<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/fdream.net\/blog\/wp-content\/uploads\/2008\/11\/yswioy_example.gif\" onload=\"ImageViewer.preProcess(this);\" \/><\/p>\n<p>\u4e8e\u662f\u53ef\u4ee5\u5f97\u5230\u65b9\u7a0b\uff1a<\/p>\n<ul style=\"list-style-type:none\">\n<li>a*x1 + c * y1 + tx = x1&#8242;<\/li>\n<li>b*x1 + d * y1 + ty = y1&#8242;<\/li>\n<\/ul>\n<p>\u540c\u7406\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u5f97\u5230\u5176\u4ed6\u56db\u4e2a\u65b9\u7a0b\uff1a<\/p>\n<ul style=\"list-style-type:none\">\n<li>a*x2 + c * y2 + tx = x2&#8242;<\/li>\n<li>b*x2 + d * y2 + ty = y2&#8242;<\/li>\n<li>a*x3 + c * y3 + tx = x3&#8242;<\/li>\n<li>b*x3 + d * y3 + ty = y3&#8242;<\/li>\n<\/ul>\n<p>\u6b63\u597d\u516d\u4e2a\u65b9\u7a0b\uff0c\u516d\u4e2a\u672a\u77e5\u6570\uff1aa\u3001b\u3001c\u3001d\u3001tx\u3001ty\uff0c\u89e3\u8fd9\u516d\u4e2a\u65b9\u7a0b\u5c31\u53ef\u4ee5\u5f97\u5230\u6211\u4eec\u7684\u53d8\u6362\u77e9\u9635\u3002\u65b9\u7a0b\u7684\u89e3\u4e3a\uff1a<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/fdream.net\/blog\/wp-content\/uploads\/2008\/11\/ifxa5l_a.gif\" onload=\"ImageViewer.preProcess(this);\" \/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/fdream.net\/blog\/wp-content\/uploads\/2008\/11\/1e1una_b.gif\" onload=\"ImageViewer.preProcess(this);\" \/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/fdream.net\/blog\/wp-content\/uploads\/2008\/11\/111en6_c.gif\" onload=\"ImageViewer.preProcess(this);\" \/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/fdream.net\/blog\/wp-content\/uploads\/2008\/11\/t2qkky_d.gif\" onload=\"ImageViewer.preProcess(this);\" \/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/fdream.net\/blog\/wp-content\/uploads\/2008\/11\/q5twov_tx.gif\" onload=\"ImageViewer.preProcess(this);\" \/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/fdream.net\/blog\/wp-content\/uploads\/2008\/11\/sbkduf_ty.gif\" onload=\"ImageViewer.preProcess(this);\" \/><\/p>\n<p>\u8fd9\u51e0\u4e2a\u7ed3\u679c\u770b\u8d77\u6765\u591f\u6655\u7684\uff0c\u672c\u6765\u8fd8\u60f3\u5316\u7b80\u4e00\u4e0b\u7684\uff0c\u61d2\u4e86\uff0c\u8fd8\u6015\u5f04\u9519\uff0c\u8c01\u6709\u5174\u8da3\u770b\u770b\u8fd8\u80fd\u4e0d\u80fd\u518d\u7b80\u5316\u4e00\u4e0b\uff0c\u8fd9\u4e2a\u7ed3\u679c\u5e94\u8be5\u662f\u6ca1\u6709\u9519\u7684\u3002\u89e3\u8fd9\u4e2a\u65b9\u7a0b\u591f\u6655\u7684\uff0c\u8fd9\u7bc7\u5c31\u5230\u8fd9\u91cc\u4e3a\u6b62\u5427\uff0c\u8fd9\u51e0\u4e2a\u7ed3\u679c\u7559\u7740\u540e\u9762\u7528\uff0c\u4e0b\u4e00\u7bc7\u8bb2\u8bb2\u5982\u4f55\u628a\u4e00\u4e2a\u4f4d\u56fe\u5207\u5272\u6210\u4e09\u89d2\u5f62\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8f6c\u8f7d\u8bf7\u6ce8\u660e\u51fa\u5904\uff1ahttp:\/\/fdream.net\uff0c\u4f5c\u8005\uff1aFdream \u7531\u4e8e\u4eff\u5c04\u53d8\u6362\u65f6\uff0c\u5e73\u884c\u7684\u8fb9\u4f9d\u7136\u5e73\u884c\uff0c\u6240\u4ee5\uff0c\u6211\u4eec\u65e0\u6cd5\u5bf9\u4e00\u4e2a\u77e9\u5f62\u7684\u4f4d\u56fe\u8fdb\u884c\u968f\u610f\u53d8\u6362\uff0c\u6bd4\u5982\u6211\u4eec\u65e0\u6cd5\u62c9\u4f38\u4e00\u4e2a\u89d2\uff0c\u4e5f\u65e0\u6cd5\u8fdb\u884c\u628a\u5b83\u53d8\u6210\u68af\u5f62\u7b49\u3002\u5728\u4e0a\u6587\u4e2d\uff0c\u6211\u4eec\u63d0\u5230\u8fc7\u4e00\u79cd\u601d\u8def\uff0c\u5c31\u662f\u628a\u77e9\u5f62\u5206\u5272\u6210\u4e24\u4e2a\u4e09\u89d2\u5f62\uff0c\u8fd9\u6837\u53d8\u6362\u65f6\u4ece\u8868\u9762\u4e0a\u770b\u6765\u5c31\u6ca1\u6709\u4ec0\u4e48\u5e73\u884c\u8fb9\u4e86\uff0c\u8fd9\u6837\u6211\u4eec\u5c31\u53ef\u4ee5\u53d8\u6362\u5176\u4e2d\u7684\u4e00\u4e2a\u6216\u8005\u591a\u4e2a\u89d2\u4e86\u3002\u6ce8\u610f\uff0c\u6211\u8fd9\u91cc\u8bf4\u7684\u662f\u4ece\u8868\u9762\u4e0a\u770b\uff0c\u8fd9\u4e00\u70b9\u5728\u540e\u9762\u7684\u53d8\u6362\u4e2d\u8981\u8fdb\u884c\u4e00\u5b9a\u7684\u5904\u7406\u7684\u3002 \u8fd9\u6837\u6211\u4eec\u53ea\u9700\u8981\u5bf9\u4e09\u4e2a\u70b9\u8fdb\u884c\u5e73\u9762\u53d8\u6362\uff0c\u5047\u8bbe\u6211\u4eec\u7684\u4e09\u4e2a\u70b9\u5206\u522b\u4e3a(x1, y1)\u3001(x2, y2)\u3001(x3, y3)\uff0c\u8981\u53d8\u6362\u7684\u4f4d\u7f6e\u5206\u522b\u4e3a\uff08x1&#8242;,y1&#8242;)\u3001(x2&#8242;, y2&#8242;)\u3001(x3&#8242;, y3&#8217;\uff09\u3001\u73b0\u5728\uff0c\u6211\u4eec\u8981\u505a\u7684\u5c31\u662f\u8ba1\u7b97\u5176\u53d8\u6362\u77e9\u9635\u3002\u5047\u8bbe\u5176\u53d8\u6362\u77e9\u9635\u4e3a\uff1a \u6ce8\u610f\uff0c\u5728Flash\u4e2d\uff0c\u5176\u5bf9\u5e94\u7684\u53d8\u6362\u77e9\u9635\u5e94\u8be5\u662f\u8fd9\u4e2a\uff08\u5e73\u79fb\u53d8\u6362\u7684\u4f4d\u7f6e\u7565\u6709\u4e0d\u540c\uff09\uff1a \u6839\u636e\u4e0a\u4e00\u7bc7\u6587\u7ae0\u4e2d\u63d0\u5230\u7684\uff0c\u70b9(x1, y1)\u53d8\u6362\u4e3a(x1&#8242;, y1&#8242;)\u65f6\uff0c\u6709\uff1a \u4e8e\u662f\u53ef\u4ee5\u5f97\u5230\u65b9\u7a0b\uff1a a*x1 + c * y1 + tx = x1&#8242; b*x1 + d * y1 + ty = y1&#8242; \u540c\u7406\uff0c\u6211\u4eec\u8fd8\u53ef\u4ee5\u5f97\u5230\u5176\u4ed6\u56db\u4e2a\u65b9\u7a0b\uff1a a*x2 + c * y2 + tx = x2&#8242; b*x2 + d * y2 + ty = y2&#8242; a*x3 + c * y3 &hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[216,78,298,63],"class_list":["post-632","post","type-post","status-publish","format-standard","hentry","category-coding","tag-ActionScript","tag-AS","tag-AS3","tag-flash"],"views":11356,"_links":{"self":[{"href":"https:\/\/fdream.net\/blog\/wp-json\/wp\/v2\/posts\/632","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fdream.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fdream.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fdream.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fdream.net\/blog\/wp-json\/wp\/v2\/comments?post=632"}],"version-history":[{"count":0,"href":"https:\/\/fdream.net\/blog\/wp-json\/wp\/v2\/posts\/632\/revisions"}],"wp:attachment":[{"href":"https:\/\/fdream.net\/blog\/wp-json\/wp\/v2\/media?parent=632"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fdream.net\/blog\/wp-json\/wp\/v2\/categories?post=632"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fdream.net\/blog\/wp-json\/wp\/v2\/tags?post=632"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}