Ray.along

raytracing.Ray.along(rayTrace, z)

This function returns a ray at position z along the ray trace. y and theta are linearly interpolated in between the two closest rays.

Parameters:
  • rayTrace (list of Ray) – The rayTrace

  • z (float) – Position in z where we want the output ray

Returns:

ray – A Ray at position z, with y and theta interpolated from the ray trace

Return type:

an interpolated Ray

Notes

If the ray at an earlier z is blocked, then the Ray will be blocked too