public class FloatAngularSpectrum extends FloatPropagator
Constructor and Description |
---|
FloatAngularSpectrum(int M,
int N,
float lambda,
float z,
float dx,
float dy)
Creates a new instance of FloatAngularSpectrum.
|
Modifier and Type | Method and Description |
---|---|
void |
diffract(float[][] field)
Performs numerical diffraction of the complex data in
field ,
leaving the result in field . |
float |
getDx() |
float |
getDy() |
float |
getLambda() |
int |
getM() |
int |
getN() |
float |
getZ() |
public FloatAngularSpectrum(int M, int N, float lambda, float z, float dx, float dy)
M
- Number of data points on x direction.N
- Number of data points on y direction.lambda
- Wavelength.z
- Distance.dx
- Sampling pitch on x direction.dy
- Sampling pitch on y direction.public void diffract(float[][] field)
FloatPropagator
field
,
leaving the result in field
. The physical layout of the
complex data must be the same as in JTransforms:
field[i][2 * j] = Re[i][j],
field[i][2 * j + 1] = Im[i][j]; 0 <= i < M, 0 <= j < N
diffract
in class FloatPropagator
field
- The complex field to diffract.public int getM()
public int getN()
public float getZ()
public float getLambda()
public float getDx()
public float getDy()