Skip to content

Commit

Permalink
Minor fix to rotation orientation
Browse files Browse the repository at this point in the history
  • Loading branch information
siuwuncheung committed Nov 5, 2024
1 parent 3e5cf8f commit 7982658
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/PinnedH2O/rotation_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def rotation_matrix(axis, angle):
[uz * ux * (1 - cos_theta) - uy * sin_theta, uz * uy * (1 - cos_theta) + ux * sin_theta, cos_theta + uz**2 * (1 - cos_theta)]
])

plane_normal = np.cross(H1, H2)
plane_normal = np.cross(H2, H1)
plane_normal = plane_normal / np.linalg.norm(plane_normal)

target_plane_normal = np.array([0, 0, 1])
Expand Down

0 comments on commit 7982658

Please sign in to comment.