ufcpp / UfcppSample

http://ufcpp.net/ 向けのサンプル
Apache License 2.0
133 stars 41 forks source link

四元数構造体 #453

Closed Benshi closed 7 months ago

Benshi commented 8 months ago

四元数 (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 な演算 という違いがありそうだったので、別の概念なのかな、と。

ufcpp commented 7 months ago

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

スペルミスは直します…

ufcpp commented 7 months ago

スペルミス修正。