←back to thread

184 points mikhael | 1 comments | | HN request time: 0s | source
Show context
voxleone ◴[] No.45661522[source]
Quaternion libraries have work to do now.

Positive potential:

Simplified “undo” mechanism: this result suggests that a given traversal (sequence of rotations) might be “reset” (i.e., returned to origin) using a simpler method than computing a full inverse sequence. That could simplify any functionality in libraries, like SpinStep[0], that deal with “returning to base orientation” or “undoing steps.”

The libraries could include a method: given a sequence of quaternion steps that moved from orientation A to orientation B, compute a scale factor λ and then apply that scaled sequence twice to go from B back to A (or A to A). This offers a deterministic “reset” style operation which may be efficient.

Orientation‐graph algorithms: in libraries used in robotics/spatial AI, the ability to reliably reset orientation (even after complex sequences) might enhance reliability of traversal or recovery in systems that might drift or go off‐course.

[0] https://github.com/VoxleOne/SpinStep

replies(4): >>45662416 #>>45662420 #>>45665206 #>>45674767 #
ginko ◴[] No.45662416[source]
I must be missing something major here, but given a sequence of rotations combined into a quaternion orientation, can’t you just get the inverse rotation back to the original orientation by inverting the quaternion?
replies(2): >>45662820 #>>45662824 #
1. ogogmad ◴[] No.45662820[source]
I think even conjugating it. The formula for rotation via quats is v->qvq^{-1} = qvq^*/|q|^2.