<p>I think Fig. 1 in the referenced paper is only a 2D-sketch, as the unit quaternions lie on the 3-dimensional sphere embedded in four dimensions. </p>

<p>Quaternions are used to represent orientations / rotations and these can be associated with the axis-angle representation (determining the angle from the first quaternion coefficient and the axis from the last three coefficients.) However, I could think of a visualization in 3D, where a point in space is associated to a unit quaternion / or axis-angle: Place the point in direction of the axis "angle"-units away from the origin. This would be a sphere of radius two pi, where also internal points represent rotations. I dont know of a direct visualization in 3D of the quaternion coefficients. </p>

CC BY-SA 4.0
2019-11-21T08:18:16.893Z
2019-11-21T08:18:16.893Z
dweber
<p>Because given 3 values of a unit quaterion we can derive the fourth value.</p>

<p>Which means there exists a <a href="https://en.wikipedia.org/wiki/Bijection" rel="nofollow noreferrer">bijective</a> mapping from unit quaternion to 3D space. </p>

<p>Though for visualization you want the mapping that makes what is happening the most easily discernible. However a usable visualization doesn't need to be fully bijective.</p>

CC BY-SA 4.0
2019-11-20T22:05:34.947Z
Thank you for your help. But I still don't get why we can plot the unit quaternion as a point on a sphere. I have summarized my question as the second question, I wonder if you may have some suggestions?
Ali
CC BY-SA 4.0
2019-11-20T13:02:34.687Z
2019-11-20T13:02:34.687Z
ratchet freak
<p>Though quaternions cannot be visualized as points on the surface of a unit sphere in 3 dimensions, they can be readily visualized as unit <em>tangents</em> attached to the surface of the unit sphere. <a href="https://www.ri.cmu.edu/pub_files/pub4/kuffner_james_2004_1/kuffner_james_2004_1.pdf" rel="nofollow noreferrer">Here is an example visualization</a>. </p>

<p>One could construct a similar visualization by drawing an arrow, starting at
<span class="math-container">$q * \hat{x}$</span> and ending at <span class="math-container">$q * \hat{y}$</span>, where <span class="math-container">$\hat{x}$</span> is the unit x vector, <span class="math-container">$\hat{y}$</span> is the unit y vector, and <span class="math-container">$q$</span> is the unit quaternion we are trying to visualize. This allows the drawing of nice smooth curves, while remaining bijective.</p>

CC BY-SA 4.0
2020-04-23T19:47:27.420Z
2020-04-23T19:47:27.420Z
Jacob Panikulam
<p>My major is mechanical, please forgive me for asking questions that may seem trivial to you. </p>

<p>First, I'm reading the following paper:</p>

<blockquote>
  <p>Dam, Erik B., Martin Koch, and Martin Lillholm. <a href="https://archive.org/details/Erik_B_Dam_Martin_Koch_and_Martin_Lillholm___Quaternions_Interpolation_and_Animation" rel="nofollow noreferrer">Quaternions, interpolation and animation</a>. Vol. 2. Copenhagen: Datalogisk Institut, Københavns Universitet, 1998.</p>
</blockquote>

<p>On page 35, it says:</p>

<blockquote>
  <p>Since quaternion space is four-dimensional, we cannot visualise the interpolated curves directly. We will always interpolate between unit quaternions, and the interpolated quaternions will always (with a few exceptions in chapter 6 on page 38 and 69) be unit quaternions. This means that we only need three dimensions to visualize the interpolation curves, <strong>because they lie on the surface of the unit sphere.</strong> </p>
</blockquote>

<p>I don't quite get the last sentence: why only three dimensions are needed to visualize the unit quaternion or why unit quaternion lies on the surface of the unit sphere? I thought they lie on the unit hyper-sphere. Does the author assume that we are viewing the quaternions from the south pole of the hyper-sphere?</p>

<p>Second, I was also following this paper:</p>

<blockquote>
  <p>Ramamoorthi, R., &amp; Barr, A. H. (1997). Fast construction of accurate quaternion splines.</p>
</blockquote>

<p>I found they are also treating (plotting) a unit quaternion as a point on a unit sphere <span class="math-container">$\mathbb{S}^{2}$</span>. I wonder if you could recommend some resources in why we can view a unit quaternion <span class="math-container">$q = (a+b\mathbf{i}+c\mathbf{j}+d\mathbf{k})$</span> as a point on a unit sphere <span class="math-container">$\mathbb{S}^{2}$</span>? </p>

<p>Any help is appreciated. Thank you. </p>

CC BY-SA 4.0
2019-11-20T16:14:28.353Z
Okay it might help to think that the quaternionion is a weirdly encoded vector representation where we encode the system so that it makes sense only if the vector length is one. Offcourse the encoding is weird indeed and has properties that the vector representation does not have.
joojaa
CC BY-SA 4.0
2019-11-20T22:06:45.393Z
Thank you all.  I wonder if you could recommend some resources in why we can view a unit quaternion $q = (a+b\mathbf{i}+c\mathbf{j}+d\mathbf{k})$ as a point on a unit sphere $\mathbb{S}^2$?
Ali
CC BY-SA 4.0
2019-12-21T18:43:20.420Z
You will likely get much better answers for this sort of question here: https://math.stackexchange.com/ While quaternions are used in computer graphics, most graphics engineers don't put a significant amount of effort into understanding the theoretical mathematics any more deeply than what you've already stated in your question.
Dan
CC BY-SA 4.0
2020-04-27T15:01:33.020Z
A beautiful visual description [here](https://youtu.be/d4EgbgTm0Bg).
Brett Hale
CC BY-SA 4.0
2021-01-20T15:38:08.780Z
When we work with a plane in 2 dimensions we also recognize that plane is a "slice" of 3 dimensions. When we work with quaternions, we can similarly take a "slice" out of the quaternion. But with a quaternion that "slice" has 3 dimensions. Similarly, on a plane, we can draw a unit circle and use it to show the direction of a vector that lies in the plane. Since a quaternion "slice" has 3 dimensions, we must use a unit sphere. When working with quaternions in 3d graphics we almost always work with unit quaternions and so are restricting ourselves to a 3D subspace "slice".
pmw1234
<3d><transformations><mathematics><geometry>
Visualize the interpolated unit quaternion on the surface of the unit sphere
Ali
# Visualize the interpolated unit quaternion on the surface of the unit sphere

(Asked by: username_0 on 2019-11-20)

My major is mechanical, please forgive me for asking questions that may seem trivial to you.

First, I'm reading the following paper:

> Dam, Erik B., Martin Koch, and Martin Lillholm. [Quaternions, interpolation and animation](https://archive.org/details/Erik_B_Dam_Martin_Koch_and_Martin_Lillholm___Quaternions_Interpolation_and_Animation). Vol. 2. Copenhagen: Datalogisk Institut, Københavns Universitet, 1998.

On page 35, it says:

> Since quaternion space is four-dimensional, we cannot visualise the interpolated curves directly. We will always interpolate between unit quaternions, and the interpolated quaternions will always (with a few exceptions in chapter 6 on page 38 and 69) be unit quaternions. This means that we only need three dimensions to visualize the interpolation curves, **because they lie on the surface of the unit sphere.**

I don't quite get the last sentence: why only three dimensions are needed to visualize the unit quaternion or why unit quaternion lies on the surface of the unit sphere? I thought they lie on the unit hyper-sphere. Does the author assume that we are viewing the quaternions from the south pole of the hyper-sphere?

Second, I was also following this paper:

> Ramamoorthi, R., & Barr, A. H. (1997). Fast construction of accurate quaternion splines.

I found they are also treating (plotting) a unit quaternion as a point on a unit sphere $\mathbb{S}^{2}$. I wonder if you could recommend some resources in why we can view a unit quaternion $q = (a+b\mathbf{i}+c\mathbf{j}+d\mathbf{k})$ as a point on a unit sphere $\mathbb{S}^{2}$?

Any help is appreciated. Thank you.

**Tags:** 3d, transformations, mathematics, geometry

> **Comments:**
> **username_1**: Okay it might help to think that the quaternionion is a weirdly encoded vector representation where we encode the system so that it makes sense only if the vector length is one. Offcourse the encoding is weird indeed and has properties that the vector representation does not have.  
> **username_0**: Thank you all.  I wonder if you could recommend some resources in why we can view a unit quaternion $q = (a+b\mathbf{i}+c\mathbf{j}+d\mathbf{k})$ as a point on a unit sphere $\mathbb{S}^2$?  
> **username_2**: You will likely get much better answers for this sort of question here: https://math.stackexchange.com/ While quaternions are used in computer graphics, most graphics engineers don't put a significant amount of effort into understanding the theoretical mathematics any more deeply than what you've already stated in your question.  
> **username_3**: A beautiful visual description [here](https://youtu.be/d4EgbgTm0Bg).  
> **username_4**: When we work with a plane in 2 dimensions we also recognize that plane is a "slice" of 3 dimensions. When we work with quaternions, we can similarly take a "slice" out of the quaternion. But with a quaternion that "slice" has 3 dimensions. Similarly, on a plane, we can draw a unit circle and use it to show the direction of a vector that lies in the plane. Since a quaternion "slice" has 3 dimensions, we must use a unit sphere. When working with quaternions in 3d graphics we almost always work with unit quaternions and so are restricting ourselves to a 3D subspace "slice".  

---

## 3 answers

### Answer by username_5 on 2019-11-21. Score: 1

I think Fig. 1 in the referenced paper is only a 2D-sketch, as the unit quaternions lie on the 3-dimensional sphere embedded in four dimensions.

Quaternions are used to represent orientations / rotations and these can be associated with the axis-angle representation (determining the angle from the first quaternion coefficient and the axis from the last three coefficients.) However, I could think of a visualization in 3D, where a point in space is associated to a unit quaternion / or axis-angle: Place the point in direction of the axis "angle"-units away from the origin. This would be a sphere of radius two pi, where also internal points represent rotations. I dont know of a direct visualization in 3D of the quaternion coefficients.


---

### Answer by username_6 on 2019-11-20. Score: 0

Because given 3 values of a unit quaterion we can derive the fourth value.

Which means there exists a [bijective](https://en.wikipedia.org/wiki/Bijection) mapping from unit quaternion to 3D space.

Though for visualization you want the mapping that makes what is happening the most easily discernible. However a usable visualization doesn't need to be fully bijective.

> **Comments:**
> **username_0**: Thank you for your help. But I still don't get why we can plot the unit quaternion as a point on a sphere. I have summarized my question as the second question, I wonder if you may have some suggestions?  

---

### Answer by username_7 on 2020-04-23. Score: 0

Though quaternions cannot be visualized as points on the surface of a unit sphere in 3 dimensions, they can be readily visualized as unit *tangents* attached to the surface of the unit sphere. [Here is an example visualization](https://www.ri.cmu.edu/pub_files/pub4/kuffner_james_2004_1/kuffner_james_2004_1.pdf).

One could construct a similar visualization by drawing an arrow, starting at
$q \* \hat{x}$ and ending at $q \* \hat{y}$, where $\hat{x}$ is the unit x vector, $\hat{y}$ is the unit y vector, and $q$ is the unit quaternion we are trying to visualize. This allows the drawing of nice smooth curves, while remaining bijective.


---

