The Medium class
Medium is a handle class.
Properties
name |
type |
default |
description |
|---|---|---|---|
|
double or char |
refractive index or nature of the upper medium |
|
|
double or char |
refractive index or nature of the upper medium |
|
|
Illumination |
Illumination of the microscope |
name |
type |
dependence |
description |
|---|---|---|---|
|
double |
refractive index of the upper medium |
|
|
double |
refractive index of the lower medium |
|
|
double |
|
incident electric field |
Constructor
Constructor
Synthax
% prototypes
Medium(n)
Medium(n, nS)
Medium(mat)
Medium(mat,matS)
% examples
Medium(1.5)
Medium(1.33, 1.5)
Medium('water','glass')
Medium('air','BK7')
Medium(n) creates a Medium object representing a uniform medium of refractive index n.
Medium(n, nS) creates a Medium object representing a system composed of two semi-infinite media separated by a planar interface, the top one with a refractive index n and the bottom one with nS (S for substrate).
Instead of specifying the refractive indices, one can specify medium names. The known materials and the associated values are the following:
glass: 1.51BK7: 1.51water: 1.33air: 1.0
Medium methods
display
Display the properties of the object.
Synthax
% prototype
ME.display()
Description
This method displays the properties of a Medium object in a nice way:
>> ME = Medium('water','glass');
top mat: water
sub mat: glass
n : 1.33
nS : 1.51