Re: [問題] 如何取得模型旋轉後的矩陣資料

看板MATLAB作者 (神無月 孝臣)時間18年前 (2006/03/03 11:56), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
※ 引述《soulcalibur (...)》之銘言: : rotate(trisurf(Tri,X,Y,Z),[1 0 0],180); : 以上指令可以畫出三維模型對X軸旋轉180度的圖形 : 想請教的是 : 如何可以取得(顯示或以變數儲存)經旋轉後的X',Y',Z'點座標 : 謝謝 首先 對x軸旋轉180度表示x的座標都不會改變 接著 只有對x軸旋轉表示只需要一個轉換矩陣[C1(θ)]而已 而θ為180度 因此要進行座標轉換只需要以下算式即可完成 ┌ ┐ ┌ ┐┌ ┐ │x'│ │1 0 0││x│ │y'│=│0 -1 0││y│ │z'│ │0 0 -1││z│ └ ┘ └ ┘└ ┘ 其中xyz為原來的座標 x'y'z'為轉換後的座標 這樣就可以知道轉換後座標變啥樣了 這個應該算是數學問題 而非程式上的問題 -- Deserves death! I daresay he does. Many that live deserve death. And some die that deserve life. Can you give that to them? Then be not too eager to deal out death in the name of justice, fearing for your own safty. Even the wise cannot see all ends. Gandalf to Frodo -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.120.25.235 ※ 編輯: Gwaewluin 來自: 140.120.25.235 (03/03 13:05)
文章代碼(AID): #141xvxPw (MATLAB)