Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
The Dirac String Trick (2015) (ariwatch.com)
32 points by gjvc on Aug 30, 2021 | hide | past | favorite | 3 comments


The first part of the article about describing sphere rotations with a direction and magnitude has some overlap with quaternion rotations, described and visualized nicely here: https://eater.net/quaternions/ ; https://www.youtube.com/watch?v=d4EgbgTm0Bg

The second part of the article about untangling strings after a 720° turn is also covered in: https://www.youtube.com/watch?v=JaIR-cWk_-o ; https://www.youtube.com/watch?v=Nat-EsReXtQ ; https://www.youtube.com/watch?v=O7wvWJ3-t44 ; https://www.youtube.com/watch?v=Rzt_byhgujg


>> The first part of the article about describing sphere rotations with a direction and magnitude has some overlap with quaternion rotations

Some? Scale the direction vector (x,y,z) to have magnitude = sin(theta) and then set w = cos theta, where theta is half the desired rotation angle. Then (w,x,y,z) is the quaternion that represents the rotation. It was hard for me to read without that relationship constantly popping into my head.


If this one looks to be a bit of a deep dive, try the cup trick first!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: