Quaternions and why they are important in XR
In Chapter 7, Mathematics and Algorithms in Testing, we saw the importance of specific mathematical concepts in software and testing. Quaternions are one such example.
In XR, dealing with three-dimensional (3D) objects is crucial for creating accurate experiences. Understanding how objects are represented can help us understand the problems 3D objects could create, and ultimately, this will help us find any issues and defects in our XR applications. Besides, this concept is also important in other fields such as computer vision.
There are different ways of representing such objects and their position in 3D space. The most well-known way is by selecting a point in our space (which could be the middle of the space or a corner, for example) and indicating what distance in each direction the middle (or equivalent) of our object is from that point. This is called the Euler vector.
Euler vector
A vector with three components...