Skip to content

OkitaSystemDesign/Rotation3D

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 

Repository files navigation

3D Rotation

Matrix EulerAngle Quaternion

紙飛行機のモデルを空間で回転します

PaperAirplaneEuler.py

オイラー角を使って紙飛行機を回転してみます
[F1]キーで回転が始まります

EulerAngles(p, th, order)

点(p)の位置をオイラー角(th)で指定回転順(order)で回転します

PaperAirplaneEuler(angle, order)

紙飛行機のモデルを7点で作ってオイラー角で回転する様子をmatplotlibで表示します

PaperAirplaneQuaternion.py

クオータニオン(四元数)を使って紙飛行機を回転してみます
実行するとすぐに回転が始まります

Euler2Quaternion(th, order)

オイラー角(th)をクオータニオンに変換します

PaperAirplaneQuaternion(angle, order)

紙飛行機のモデルを7点で作ってクオータニオンで任意の姿勢に回転する様子をmatplotlibで表示します

Qiita記事

オイラー角 https://qiita.com/OkitaSystemDesign/items/58dcd667816623b9ef89
クオータニオン https://qiita.com/OkitaSystemDesign/items/23e94d4e0db22cc6ebd4

About

EulerAngle Quaternion

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages