Compute optical path length and optical path difference for interference analysis.
由折射率与几何路程,按 光程 = n·L 计算光在介质中的等效真空路径。