Skip to content

Commit

Permalink
Correcting rotation matrix usage in vector mapping.
Browse files Browse the repository at this point in the history
  • Loading branch information
LyceanEM committed May 24, 2024
1 parent 25b3499 commit 660bde7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lyceanem/electromagnetics/empropagation.py
Original file line number Diff line number Diff line change
Expand Up @@ -3663,7 +3663,7 @@ def vector_mapping(local_E_vector, point_normal, rotation_matrix):
global_vector
"""
point_vector = point_normal.astype(local_E_vector.dtype)
point_vector = np.matmul(point_normal.astype(local_E_vector.dtype),rotation_matrix)
local_axes = np.eye(3)
uvn_axes = np.zeros((3, 3), dtype=local_E_vector.dtype)
uvn_axes[2, :] = point_vector
Expand Down

0 comments on commit 660bde7

Please sign in to comment.