rectangular_aperture

hcipy.aperture.rectangular_aperture(size, center=None)

Makes a Field generator for a rectangular aperture.

Parameters:
sizescalar or array_like

The length of the sides. If this is scalar, a square aperture is assumed.

centerarray_like

The center of the aperture

Returns:
Field generator

This function can be evaluated on a grid to get a Field.