pyoptools.raytrace.surface.idealsurface module¶
Modulo con clases y funciones auxiliares.
- class pyoptools.raytrace.surface.idealsurface.IdealSurface¶
Bases:
SurfaceClase que representa una superficie ideal. Se utiliza para crear lentes ideales
- f¶
- normal(ri)¶
Method that returns the normal to the surface
- propagate(ri, ni, nr)¶
Calculate the refracted ray on a surface.
This method calculates the ray refracted (or both refracted and reflected rays) on a surface.
- Parameters:
incident_ray (Ray) – The incident ray, which must be in the coordinate system of the surface.
ni (double) – The refractive index of the incident medium.
nr (double) – The refractive index of the refracted medium.
- Returns:
A list containing the rays resulting from the ray-surface interaction.
- Return type:
list