Skip to content

Commit

Permalink
Math for quaternion conjugate
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderFabisch committed Sep 30, 2024
1 parent dfe469b commit 367fe1e
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions pytransform3d/rotations/_quaternion_operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,19 @@ def q_prod_vector(q, v):


def q_conj(q):
"""Conjugate of quaternion.
r"""Conjugate of quaternion.
The conjugate of a unit quaternion inverts the rotation represented by
this unit quaternion. The conjugate of a quaternion q is often denoted
as q*.
this unit quaternion.
The conjugate of a quaternion :math:`\boldsymbol{q}` is often denoted as
:math:`\boldsymbol{q}^*`. For a quaternion :math:`\boldsymbol{q} = w
+ x \boldsymbol{i} + y \boldsymbol{j} + z \boldsymbol{k}` it is defined as
.. math::
\boldsymbol{q}^* = w - x \boldsymbol{i} - y \boldsymbol{j}
- z \boldsymbol{k}.
Parameters
----------
Expand Down

0 comments on commit 367fe1e

Please sign in to comment.