RayBundle
Description
Add-On Required: This feature requires the Optical Design and Simulation Library for Image Processing Toolbox add-on.
A RayBundle object stores information on the rays traced through
the optical system from a single field point at a specific wavelength.
Creation
Create a RayBundle object by using the traceRays,
traceChiefRay, or
traceMarginalRays
function to trace rays through an optical system.
Properties
This property is read-only.
Field point representation of the light source, represented as one of these values.
FieldPoint Value | Field Point Type |
|---|---|
| Field point represents a light source that is at an infinite distance. |
| Field point represents a light source that is at a finite distance. |
This property is read-only.
Wavelength for which the rays are traced, represented as a positive numeric scalar. Units are in nanometers.
This property is read-only.
Sampling configuration, represented as a structure with these fields.
| Field | Value |
|---|---|
Grid | Sampling grid, represented as a samplingGrid object. |
Type | Sampling surface, represented as one of these options.
|
This property is read-only.
Ray data from rays traced through the optical system, represented as a structure with these fields, which correspond to ray properties.
| Field | Value |
|---|---|
| Number of traced rays, represented as a nonnegative integer. |
| Maximum number of straight-line ray segments that any single ray can have as it passes through the optical system, represented as a nonnegative integer. |
| Length of each ray, represented as a |
Origin | Origin of the ray in the global coordinate system, represented as a
|
HitPoints | Ray intersection coordinates in the global coordinate system,
represented as a
Note If a ray terminates before reaching |
| Ray direction vectors at each segment, represented as a
Note If a ray terminates before reaching |
TerminationMode | Ray termination, represented as a
|
LastRayDirection | Final direction vector of each ray, represented as a
|
OrientedGrid | Grid coordinates of each ray, represented as a
|
To return one or more of these additional ray properties, specify the
RayProperties name-value argument of the traceRays,
traceChiefRay, or traceMarginalRays function.
| Field | Value |
|---|---|
| Surface normal vectors at ray intersection points, represented as a
Note If a ray terminates before reaching |
| Angle of incidence at each ray-surface intersection, represented as a
Note If a ray terminates before reaching |
| Optical path length (OPL), represented as a
Note If a ray terminates before reaching |
| Ray intersection coordinates in the local reference frame,
represented as a
Note If a ray terminates before reaching |
|
The s-polarized and p-polarized incident electric field vectors are perpendicular and parallel to the plane of incidence, respectively. Note For the |
PolarizationMatrices |
Note For the |
For more information about the global and local coordinate systems, see Coordinate Systems in Optical Design.
Version History
Introduced in R2026a
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)