RayTraceLens:

Path: Imaging/Optics

% Ray trace a lens assembly.

 For a demo of a Cooke Triplet lens type RayTraceLens
--------------------------------------------------------------------------
   Form:
   r = RayTraceLens( r, l )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   r         (:)     Ray source definition
                     .p     (2,1) Origin
                     .m     (2,1) Ray unit vector
   l         (:)     Lens data structure
                     .r     (1,1) Radius of one surface
                     .t     (1,1) Thickness
                     .matl  (1,:) Material name
                     .index (1,1) Index of Refraction
                     .vNo   (1,1) Abbe V-number, the reciprocal of the
                                  relative dispersion of the material
                     .sa    (1,1) Semi aperture

   -------
   Outputs
   -------
   r         (:)     Ray source definition
                     .p     (2,:) Origins
                     .m     (2,:) Ray unit vectors

--------------------------------------------------------------------------

Children:

Imaging: Optics/DrawLens
Imaging: Optics/ReadLensData
Imaging: Optics/SnellsLawCurve

Back to the Imaging Module page