refraction_render.calcs.Calc¶
-
class
refraction_render.calcs.
Calc
(FermatEquations_obj)[source]¶ Bases:
object
Base class for Calculators.
-
__init__
(FermatEquations_obj)[source]¶ Initialize self. See help(type(self)) for accurate signature.
Methods
__init__
(FermatEquations_obj)Initialize self.
solve_ivp
(d, h[, dh, alpha])Solve initial value problem for light rays.
-
solve_ivp
(d, h, dh=None, alpha=None, **kwargs)[source]¶ Solve initial value problem for light rays.
- d: float
maximum distance to solve the light rays.
- h: array_like (n,)
initial height of rays.
- dh: array_like (n,), optional
initial derivatives of the rays.
- alpha: array_like (n,), optional
initial angle of the rays.
- **kwargs: optional
extra arguments which get passed into Fermat equation solver.
-