Q_reflection

marxs.math.polarization.Q_reflection(delta_dir)[source] [edit on github]

Reflection of a polarization vector on a non-polarizing surface.

This can also be used for other elements that change the direction of the photon without adding any more polarization and where both sides propagate in the same medium. See Yun (2011), eqn 4.3.13 for details.

Parameters:
delta_dirnp.array of shape (n, 4)

Array of photon direction coordinates in homogeneous coordinates: delta_dir = photon['dir_old'] - photons['dir_new']. Note that this vector is not normalized.

Returns:
qnp.array of shape (n, 4, 4)

Array of parallel transport ray tracing matrices.