https://github.com/WaveProp/WavePropBase.jl/blob/5d76648d54b77d69138123af51a1459388216433/src/IntegralEquations/kernels.jl#L340