Skip to content

Commit

Permalink
Use matrix multiplication.
Browse files Browse the repository at this point in the history
  • Loading branch information
moorepants committed Jun 6, 2024
1 parent b3dac86 commit e5f9532
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yeadon/tests/test_solid.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,8 @@ def test_solid():
sol.set_orientation(position, C, True)
testing.assert_allclose(sol.pos, position)
testing.assert_allclose(sol._rot_mat, C)
testing.assert_allclose(sol.end_pos, position + (height * C * array([[0],
[0], [1]])))
testing.assert_allclose(sol.end_pos, position + (height * C @
array([[0], [0], [1]])))
testing.assert_allclose(sol.inertia, zeros((3, 3)))

#TODO: complete tests for solid and the remaining classes in solid.py
Expand Down

0 comments on commit e5f9532

Please sign in to comment.