CompactRays.fillWithRandomUniform

raytracing.compact.CompactRays.fillWithRandomUniform(self, yMax=1.0, yMin=None, thetaMax=1.5707963267948966, thetaMin=None)

Fill the buffer with rays at random heights and angles.

Each ray receives a uniformly distributed height in [yMin, yMax] and angle in [thetaMin, thetaMax]. If the minimum values are not given, symmetric ranges around zero are used.

Parameters:
  • yMax (float) – Maximum height. (Default=1.0)

  • yMin (float, optional) – Minimum height. Defaults to -yMax.

  • thetaMax (float) – Maximum angle in radians. (Default=pi/2)

  • thetaMin (float, optional) – Minimum angle in radians. Defaults to -thetaMax.