808
you are viewing a single comment's thread
view the rest of the comments
[-] Yondoza@sh.itjust.works 57 points 6 months ago

You think one imaginary number is crazy? Just wait till you learn about quaternions. One real number and 3 imaginary numbers forming a four dimensional coordinate system. It's the basis for quantum mechanics and most video game engines. Who thinks of this shit?

[-] sparkle@lemm.ee 19 points 6 months ago* (last edited 6 months ago)

Quaternions? Basis of quantum mechanics? Pretty sure that's not right at all. A lot of games use them for rotations in place of rotation matrices though I suppose.

[-] 0ops@lemm.ee 4 points 6 months ago

Iirc, using quaternions for rotations let's you avoid "gimbal locking".

[-] linja@lemmy.world 16 points 6 months ago

Quaternions are not the basis for quantum mechanics. Biquaternions have some applications in quantum field theory, but there are many areas of quantum mechanics where there's no need or space for anything above complex.

[-] Yondoza@sh.itjust.works 7 points 6 months ago

Oops my bad, it's been a while. I thought the Hamiltonian used quaternions, but I guess that's just complex numbers.

[-] linja@lemmy.world 5 points 6 months ago

The Hamiltonian using Hamilton's numbers? Now I think about it it is a bit silly that two entirely separate yet highly propinquitous concepts have such similar names. Physics really went downhill once humans started writing it down.

[-] egeres@lemmy.world 1 points 6 months ago

We owe "quatties" to hamilton, but there is a generalization of the process in case you're curious: https://en.wikipedia.org/wiki/Cayley%E2%80%93Dickson_construction

[-] barsoap@lemm.ee 0 points 6 months ago* (last edited 6 months ago)

The general concept is called Spinors, Quaternions are just one representation. Here's a great video on them. In physics they're using them because they're necessary (video explains), in computer graphics we're using them because they're algorithmically convenient, very cheap to compute and ignore that whole half-spin thing. It's one of those instances where it's cheaper to compute useless information and then throw it away as opposed to avoiding to compute it.

They're also absolutely impossible to deal with when authoring stuff, as in rotating things in Blender, it's just a representation on the backend. Quaternions would avoid gimbal lock but when authoring you really rather deal with that than a 4-dimensional hypersphere.

this post was submitted on 07 Jun 2024
808 points (95.9% liked)

memes

10552 readers
2572 users here now

Community rules

1. Be civilNo trolling, bigotry or other insulting / annoying behaviour

2. No politicsThis is non-politics community. For political memes please go to !politicalmemes@lemmy.world

3. No recent repostsCheck for reposts when posting a meme, you can only repost after 1 month

4. No botsNo bots without the express approval of the mods or the admins

5. No Spam/AdsNo advertisements or spam. This is an instance rule and the only way to live.

Sister communities

founded 2 years ago
MODERATORS