RayTrace

class raytracing.RayTrace(rays=None)

Bases: object

A single ray trace: the path of one ray through an optical system.

When a ray is propagated through optical elements, it produces a sequence of Ray objects (one per element). This class wraps that sequence with a clean interface for indexing, iteration, and display.

Parameters:

rays (list of Ray, optional) – The sequence of rays forming this trace.

property lastRay

The final ray after propagation through all elements.

Methods

__init__([rays])

Inherited Methods

Attributes

lastRay

The final ray after propagation through all elements.