Skip to content

Commit

Permalink
Doc update
Browse files Browse the repository at this point in the history
  • Loading branch information
Romain BRÉGIER committed Apr 23, 2024
1 parent 319d130 commit 8f33671
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docsource/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ Rotation matrix (rotmat)
- We use column-vector convention, i.e. :math:`R X` is the transformation of a 1xD vector :math:`X` by a rotation matrix :math:`R`.

Euler and Tait-Bryan angles (euler)
- Encoded as a ...xD tensor (with D=3 for typical Euler angle conventions) or a list of D tensors corresponding to each angle.
- We provide mappings between Euler angles and other rotation representations (use an other representation for actual computations).
- Encoded as a ...xD tensor or a list of D tensors corresponding to each angle (D=3 for typical Euler angles conventions).
- We provide mappings between Euler angles and other rotation representations. To perform actual computations, use an other representation.


Mappings between rotation representations
Expand Down
4 changes: 2 additions & 2 deletions roma/euler.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def euler_to_unitquat(convention: str, angles, degrees=False, normalize=True, dt
unitquats.append(q)
return roma.quat_composition(unitquats, normalize=normalize)

def euler_to_rotvec(convention: str, angles : list, degrees=False, dtype=None, device=None):
def euler_to_rotvec(convention: str, angles, degrees=False, dtype=None, device=None):
"""
Convert Euler angles to rotation vector representation.
Expand All @@ -80,7 +80,7 @@ def euler_to_rotvec(convention: str, angles : list, degrees=False, dtype=None, d
"""
return roma.unitquat_to_rotvec(euler_to_unitquat(convention=convention, angles=angles, degrees=degrees, dtype=dtype, device=device))

def euler_to_rotmat(convention: str, angles : list, degrees=False, dtype=None, device=None):
def euler_to_rotmat(convention: str, angles, degrees=False, dtype=None, device=None):
"""
Convert Euler angles to rotation matrix representation.
Expand Down

0 comments on commit 8f33671

Please sign in to comment.