# rayoptics.raytr package¶

Package for optical ray tracing and calculations

The raytr subpackage provides core classes and functions for optical ray tracing and analyses. These include:

The overall optical model is managed by the OpticalModel class

class RayPkg

Bases: tuple

Ray and optical path length, plus wavelength

op

optical path length between pupils

ray

list of RaySegs

wvl

wavelength (in nm) that the ray was traced in

class RaySeg

Bases: tuple

ray intersection and transfer data

d

ray direction cosine following the interface

dst

geometric distance to next point of incidence

nrml

surface normal vector at the point of incidence

p

the point of incidence