ElectricFieldBuilder

public interface ElectricFieldBuilder

Builds a new ElectricField instance.

Author:Kyle M. Douglass

Methods

build

public ElectricField build()

Builds a new ElectricField instance.

Returns:A new instance of an electric field.

refractiveIndex

public ElectricFieldBuilder refractiveIndex(RefractiveIndex n)

Sets the refractive index of the sample.

Parameters:
  • n – The sample’s refractive index.
Returns:

A new ElectricFieldBuilder with the refractive index set.

wavelength

public ElectricFieldBuilder wavelength(double wavelength)

Sets the free space wavelength of the radiation.

Parameters:
  • wavelength – The free space wavelength.
Returns:

A new ElectricFieldBuilder with the wavelength set.