Skip to content

File Diffraction.h

File List > Intern > rayx-core > src > Shader > Diffraction.h

Go to the documentation of this file

#pragma once

#include "Core.h"
#include "InvocationState.h"

namespace rayx {

struct Rand;

// Calculates the factorial of n: n!
RAYX_FN_ACC double RAYX_API fact(int n);

RAYX_FN_ACC double RAYX_API bessel1(double v);

RAYX_FN_ACC void bessel_diff(double radius, double wl, double& dphi, double& dpsi, Rand& rand);

RAYX_FN_ACC void fraun_diff(double dim, double wl, double& dAngle, Rand& rand);

}  // namespace rayx