Ray.at

raytracing.Ray.at(self, z)

This function returns a ray at position z parallel to the current ray. Z is not the distance, it is the position. The distance is (z-self.z)

Parameters:z (float) – Position in z where we want the output ray
Returns:ray – A Ray at position z, with y interpolated and theta unchanged
Return type:an interpolated Ray

Notes

If ray is blocked, then the output Ray will be blocked too