eradiate.kernel.map_cube

Contents

eradiate.kernel.map_cube#

eradiate.kernel.map_cube(xmin, xmax, ymin, ymax, zmin, zmax)[source]#

Map the cube \([-1, 1]^3\) to \([x_\mathrm{min}, x_\mathrm{max}] \times [y_\mathrm{min}, y_\mathrm{max}] \times [z_\mathrm{min}, z_\mathrm{max}]\).

Parameters:
  • xmin (float) – Minimum X value.

  • xmax (float) – Maximum X value.

  • ymin (float) – Minimum Y value.

  • ymax (float) – Maximum Y value.

  • zmin (float) – Minimum Z value.

  • zmax (float) – Maximum Z value.

Returns:

mitsuba.core.ScalarTransform4f – Computed transform matrix.

Warning

You must select a Mitsuba variant before calling this function.