CompactRaytrace
- class raytracing.compact.CompactRaytrace(compactRays, firstIndex, traceLength)
Bases:
RayTraceA view into a slice of a
CompactRaysbuffer representing one ray trace.When a single input ray is propagated through N optical elements, it produces N output rays (one after each element). These N consecutive entries in the output buffer form one trace.
CompactRaytracegives convenient access to that slice without copying any data.Inherits
__str__,__repr__,__iter__, and__next__fromRayTrace. Overrides__len__and__getitem__for buffer access.- Parameters:
compactRays (CompactRays) – The output buffer containing all traces laid out end to end.
firstIndex (int) – Index of the first ray in this trace inside the buffer.
traceLength (int) – Number of rays in this trace (equals the number of optical elements).
Methods
|
Inherited Methods
Attributes
|
The final ray after propagation through all elements. |