hexike
- hcipy.mode_basis.hexike(n, m, circum_diameter, hexagon_angle=0, grid=None, cache=None)
Evaluate a Hexike polynomial on a grid.
- Parameters:
- nint
The radial Hexike order.
- mint
The azimuthal Hexike order.
- circum_diameterscalar
The circum-diameter of the hexagonal aperture.
- hexagon_anglefloat
The angle of the hexagon. At an angle of 0, the point of the hexagon points up.
- gridGrid or None
The grid on which to evaluate the Hexike polynomial. If this is None, a Field generator will be returned.
- cachedictionary or None
A dictionary containing previously calculated Zernike modes on the same grid. This function is for speedup only, and therefore the cache is expected to be valid. You can reuse the cache for future calculations on the same exact grid. The given dictionary is updated with the current calculation.
- Returns:
- Field or Field generator
The evaluated Hexike polynomial. If grid is None, a Field generator is returned, which evaluates the Hexike polynomial on the supplied grid.