5,337
edits
Line 36: | Line 36: | ||
===Distance Metrics=== | ===Distance Metrics=== | ||
There are multiple ways to calculate the distance between two quaternions. See [https://math.stackexchange.com/questions/90081/quaternion-distance Stackexchange]. | There are multiple ways to calculate the distance between two quaternions. See [https://math.stackexchange.com/questions/90081/quaternion-distance Stackexchange]. | ||
* <math>\theta = \cos^{-1}( \langle q_1, q_2 \rangle)</math> | |||
* <math>\theta = \cos^{-1}(2 \langle q_1, q_2 \rangle^2 - 1)</math> | * <math>\theta = \cos^{-1}(2 \langle q_1, q_2 \rangle^2 - 1)</math> | ||