Skip to content

Commit

Permalink
Add rotation angle
Browse files Browse the repository at this point in the history
  • Loading branch information
cmower committed Sep 10, 2024
1 parent eae2a89 commit b7e1a6c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spatial_casadi/spatial.py
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,10 @@ def elementary_basis_index(axis):

return angles

def rotation_angle(self, other):
"""Angle between two rotations."""
return (self.inv() * other).magnitude()


class Translation:
"""! A class defining a translation vector."""
Expand Down

0 comments on commit b7e1a6c

Please sign in to comment.