opt_elem.m

来自「Matlab实现光线跟踪算法」· M 代码 · 共 30 行

M
30
字号
function opt_elem = opt_elem(type)% OPT_ELEM - Default opt_elem structure% % Calling%  opt_elem = opt_elem(type)% % See also OPT_APERTURE, OPT_GRID, OPT_LENS, OPT_PRISM, OPT_SCREEN, OPT_SLIT% Version: 1.0% Copyright: Bjorn Gustavsson 20020430opt_elem.type = type;opt_elem.r = []; % location of the optical elementopt_elem.n = []; % normal of the optical elementopt_elem.dxdydz = []; % rectangular sizeopt_elem.diameter = []; % Circular sizeopt_elem.glass = ''; % Glass type, for apertures and the like -> `air'!opt_elem.arc = [];   % Anti reflectin coating, currently scalar(*)opt_elem.imgres = [];% size of image: [sx sy]opt_elem.img = [];   % imageopt_elem.r_o_curv = []; % spherical curvature of lenses.opt_elem.lpmm = [];     % lines per milimeter for gridsopt_elem.e_slits = [];  % unit vector || with grid slitsopt_elem.absorption = 0; % absorpptionopt_elem.fcn1 = inline('');opt_elem.fcn2 = inline('');opt_elem.arglist = struct;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?