@woosh/meep-engine
Version:
Pure JavaScript game engine. Fully featured and production ready.
16 lines • 1.01 kB
TypeScript
/**
* Computes the normalized Mie phase function value for a specific angle.
*
* The phase function P(theta) is normalized such that the integral over 4pi solid angle is 4pi.
* This implementation uses the recurrence relations for angular functions pi_n and tau_n as described by Bohren & Huffman.
*
* @param {Float32Array} ab - The flat array of a_n, b_n coefficients from LorenzMie_coefs.
* @param {number} C_sca total scattering cross-section for normalization
* @param {number} wavelength - Wavelength of light in vacuum (in meters).
* @param {vec2} n_med - Complex refractive index of the medium.
* @param {number} cos_theta - Cosine of the angle between incoming light and observation angle.
* @returns {number} The normalized phase function value P(theta).
*/
export function compute_mie_phase(ab: Float32Array, C_sca: number, n_med: typeof vec2, wavelength: number, cos_theta: number): number;
import { vec2 } from "./lorenz_mie_coefs.js";
//# sourceMappingURL=compute_mie_phase.d.ts.map