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
Published at
2024-11-06 15:00:06Event JSON
{
"id": "061d7f6aede141eb1bdc6d7a96e042daa747afab4f52814093d18fbd9d4e888f",
"pubkey": "4111e1eb377345ff8b66e009129b545c0992f628c5345d553a0b6a1c7207b7ff",
"created_at": 1730905206,
"kind": 1,
"tags": [
[
"p",
"a9012b0816432bd57b2860286ddd43eb33b22d05452df683204ae05571972be0",
"wss://relay.mostr.pub"
],
[
"p",
"49ba75d9934fc475a43386ff2f28e9070e8f52be9ff882da5d49ccd137f1882b",
"wss://relay.mostr.pub"
],
[
"e",
"fe3cd87eae94f3bf4c041bcbb913ebc37a910aefc0fe010c11ff7fbd0090caf8",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://mastodon.gamedev.place/users/soulsource/statuses/113436603621320892",
"activitypub"
]
],
"content": "nostr:npub14yqjkzqkgv4a27egvq5xmh2ravemytg9g5kldqeqfts92uvh90sq2vrfl3 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.\n\nYou can think of the encoding as a form of angle-axis encoding.\nThe 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.\n\nW = cos(φ/2)\nX = x * sin(φ/2)\nY = y * sin(φ/2)\nZ = z * sin(φ/2)\nwhere x, y, z are the components of a unit-vector.\n1/2",
"sig": "25278e2596b953f766e6e636a5328a0bced90d5314073f3ead31eb9e6e138b05424b1b0e412f453f98edf6b866b92585ed0d5750818c176cdecd3ed189d17932"
}