What is Nostr?
Andreas Grois /
npub1gyg…846g
2024-11-06 15:00:06
in reply to nevent1q…e4py

Andreas Grois on Nostr: npub14yqjk…vrfl3 The Unit Quaternions can be used to represent rotations - so, as ...

npub14yqjkzqkgv4a27egvq5xmh2ravemytg9g5kldqeqfts92uvh90sq2vrfl3 (npub14yq…rfl3) The Unit Quaternions can be used to represent rotations - so, as long as you are dealing with rotations, your quaternions will have a length of 1.

You can think of the encoding as a form of angle-axis encoding.
The W component is the cosine of half of the angle, and the XYZ components are the unit-axis around which you rotate, times the sine of half of the angle.

W = cos(φ/2)
X = x * sin(φ/2)
Y = y * sin(φ/2)
Z = z * sin(φ/2)
where x, y, z are the components of a unit-vector.
1/2
Author Public Key
npub1gyg7r6ehwdzllzmxuqy39x65tsye9a3gc56964f6pd4pcus8kllsf7846g