Skip to content

Commit

Permalink
Rotation illustration
Browse files Browse the repository at this point in the history
  • Loading branch information
gleblebedev committed Sep 11, 2024
1 parent 259af44 commit 8a20841
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
Binary file added images/documentation/math/x.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/documentation/math/y.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/documentation/math/z.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions pages/documentation/math-cheatsheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 8a20841

Please sign in to comment.