{"id":236,"date":"2007-06-22T21:44:57","date_gmt":"2007-06-23T01:44:57","guid":{"rendered":"http:\/\/www.rakkar.org\/blog\/?p=236"},"modified":"2007-06-22T21:44:57","modified_gmt":"2007-06-23T01:44:57","slug":"quaternion-from-a-to-b","status":"publish","type":"post","link":"https:\/\/rakkar.org\/blog\/index.php\/2007\/06\/22\/quaternion-from-a-to-b\/","title":{"rendered":"Quaternion from A to B"},"content":{"rendered":"<p>\t\t\t\tI couldn&#8217;t figure out how to get the quaternion representing the rotation from A to B. Laugh if you want but I don&#8217;t use Quaternions enough to remember and have to reinvent the wheel every time.<\/p>\n<p>20 minutes later of looking at Real-Time rendering<\/p>\n<p>\/\/ start * delta = final<br \/>\n\/\/ start^-1 * start * delta = start^-1 * final<br \/>\n\/\/ delta = start^-1 * final<\/p>\n<p>The inverse of a quaternion q is conjugate(q) \/ length(q)^2<\/p>\n<p>For a unit quaternion, the length is 1.<\/p>\n<p>For the conjugate, flip the sign of x,y, and z.\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I couldn&#8217;t figure out how to get the quaternion representing the rotation from A to B. Laugh if you want but I don&#8217;t use Quaternions enough to remember and have to reinvent the wheel every time. 20 minutes later of looking at Real-Time rendering \/\/ start * delta = final \/\/ start^-1 * start * [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[],"_links":{"self":[{"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/posts\/236"}],"collection":[{"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=236"}],"version-history":[{"count":0,"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/posts\/236\/revisions"}],"wp:attachment":[{"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=236"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=236"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/rakkar.org\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=236"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}