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']) – The array of s component directions of the incident field.e_a_p (
Float[ArrayLike, '*#batch 3']) – The array of p component directions of the incident field.e_b_s (
Float[ArrayLike, '*#batch 3']) – The array of s component directions of the reflected field.e_b_p (
Float[ArrayLike, '*#batch 3']) – The array of p component directions of the reflected field.
- Return type:
- Returns:
The array of rotation matrices.