differt.em.sp_rotation_matrix#
- sp_rotation_matrix(e_a_s, e_a_p, e_b_s, e_b_p)[source]#
Return the rotation matrix to convert the s and p components from one base to another.
All input vectors must have a unit length, and the direction of propagation must be the same. The latter is equivalent to ensuring that all four vectors are coplanar.
- Parameters:
e_a_s (
Float[ArrayLike, '*#batch 3']) – s-component direction of the first field basis.e_a_p (
Float[ArrayLike, '*#batch 3']) – p-component direction of the first field basis.e_b_s (
Float[ArrayLike, '*#batch 3']) – s-component direction of the second field basis.e_b_p (
Float[ArrayLike, '*#batch 3']) – p-component direction of the second field basis.
- Return type:
- Returns:
Rotation matrix from basis
(e_a_s, e_a_p)to(e_b_s, e_b_p).