Rotating an object is such a common operation, but the underlying math can be tricky. We are lucky that many tools and libraries simplify this task so that we don’t have to think too much. But understanding the mechanics behind these functions can still be fun and useful. Here, we will start with the basics of trigonometry, then move on to practical methods for handling rotation in 2D and 3D.

オブジェクトの回転はとても一般的な操作ですが、背後にある数学は意外と複雑です。幸運にも仕事を簡単にしてくれるのツールやライブラリが沢山あるので、あまり考えなくても済むのですが、これらの関数の背後にあるメカニズムを理解することもまた楽しく、役に立ちます。ここでは、三角関数の基礎から始め、2Dと3Dにおける実践的な回転処理の方法をいくつかカバーします。

<aside> 💡 There are cases where necessary functions, like in GLSL, are not present. You may have no problem in a city where you can easily get lighters, but knowing the principle of fire-making could help you survive on a deserted island. GLSLのように必要な関数が用意されてない場合もあります。ライターが売ってる都会では必要なくても、火おこしの原理を覚えておけば無人島でも生きていけるかもしれません。

</aside>

Rotation and Trigonometry 回転と三角関数

Quaternion クォータニオン

FAQs Mini
License? Can I use the contents? Yes, please! Anything from personal to educational. I'd appreciate if you can let me know where you have used them, but it's not required. Assume CC BY 4.0 unless otherwise noted. Use at your own responsibility. Read more
ライセンス? コンテンツを他で使っても良い? はい、ぜひ。個人使用から教育目的まで、どのような用途でもOKです。使った場所を知せてもらえると嬉しいですが、必須ではありません。特に明記がない限り、CC BY 4.0ライセンスが適用されます。ご利用は自己責任で。詳しく
How can I follow the updates? Follow me on Bluesky, Threads or other one.
アップデートはどこで確認できますか? BlueskyThreadsその他でフォローしてください。
Is there an index page? Yes, here.
目次はありますか? はい、ここです。
More questions

Index


@kynd Instagram Vimeo Bluesky Threads Twitter