Skip to content

Commit

Permalink
Float type
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderFabisch committed Oct 3, 2024
1 parent 5e0d34b commit 2283f93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pytransform3d/rotations/_mrp.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ def concatenate_mrp(mrp1, mrp2):
cross_product = np.cross(mrp2, mrp1)
scalar_product = np.dot(mrp2, mrp1)
return (
(1 - norm1_sq) * mrp2 + (1 - norm2_sq) * mrp1 - 2 * cross_product
) / (1 + norm2_sq * norm1_sq - 2 * scalar_product)
(1.0 - norm1_sq) * mrp2 + (1.0 - norm2_sq) * mrp1 - 2.0 * cross_product
) / (1.0 + norm2_sq * norm1_sq - 2.0 * scalar_product)

0 comments on commit 2283f93

Please sign in to comment.