diff --git a/images/documentation/math/x.gif b/images/documentation/math/x.gif new file mode 100644 index 0000000..d9dc41d Binary files /dev/null and b/images/documentation/math/x.gif differ diff --git a/images/documentation/math/y.gif b/images/documentation/math/y.gif new file mode 100644 index 0000000..e6be18a Binary files /dev/null and b/images/documentation/math/y.gif differ diff --git a/images/documentation/math/z.gif b/images/documentation/math/z.gif new file mode 100644 index 0000000..06a2b65 Binary files /dev/null and b/images/documentation/math/z.gif differ diff --git a/pages/documentation/math-cheatsheet.md b/pages/documentation/math-cheatsheet.md index 4996b95..f2e892f 100644 --- a/pages/documentation/math-cheatsheet.md +++ b/pages/documentation/math-cheatsheet.md @@ -219,11 +219,20 @@ To build a quaternion that rotates an object by 180 degrees around each axis (X, ```cpp // Quaternion for 180 degrees rotation around X-axis Quaternion rotationX{0.0f, 1.0f, 0.0f, 0.0f}; +``` +![180 degrees rotation around X-axis](images/documentation/math/x.gif) + +```cpp // Quaternion for 180 degrees rotation around Y-axis Quaternion rotationY{0.0f, 0.0f, 1.0f, 0.0f}; +``` +![180 degrees rotation around Y-axis](images/documentation/math/y.gif) + +```cpp // Quaternion for 180 degrees rotation around Z-axis Quaternion rotationZ{0.0f, 0.0f, 0.0f, 1.0f}; ``` +![180 degrees rotation around Z-axis](images/documentation/math/z.gif) ### Quaternion Multiplication Order