AC508_100_B.append¶
-
raytracing.thorlabs.AC508_100_B.append(self, matrix) This function adds an element at the end of the path.
Parameters: matrix (object of matrix class) – This parameter can be an element defined ABCD matrix like Lens, Space,… Returns: matrix – The new appended matrix with the input matrix at the end Return type: object of matrix class Examples
>>> from raytracing import * >>> # define an empty matrix group >>> matGrp=MatrixGroup() >>> matGrp.append(Space(d=10)) # add a matrix of space (d=10) >>> matGrp.append(Lens(f=10)) # add a matrix of a lens (f=10) >>> matGrp.append(Space(d=10)) # add a matrix of space (d=10) >>> print(matGrp) # print to see the output ABCD matrix | 0.000 10.000 | | | | -0.100 0.000 | f=10.000