ufcpp/UfcppSample

四元数構造体

Closed this issue · 2 comments

Benshi commented

四元数 (quaternion) に関しては理解しきれていないのですが:
https://ufcpp.net/study/sp/image/quaternion0/

下記の C# 記事で記されている
Quarternion 構造体は、先の記事の
Quaternion とは別物なのでしょうか。
https://ufcpp.net/study/csharp/cheatsheet/ap_ver7_2/
https://ufcpp.net/study/csharp/sp_ref.html
https://ufcpp.net/study/csharp/sp3_extension.html

スペルの表記揺れだけで、中身は同じものかと思ったのですが、
類似名の System.Numerics.Quaternion の実装と比べると、
Quaternion は (x, y, z, w) なコンストラクタで a * b な演算
Quarternion は (w, x, y, z) なコンストラクタで b * a な演算
という違いがありそうだったので、別の概念なのかな、と。

概念は一緒ですね。
全然違う時期にそれぞれ独立に書いてるんでぶれてるだけです。

スペルミスは直します…

スペルミス修正。