snell3d

バージョン 1.2.1 (1.35 KB) 作成者: Duijnhouwer
Refraction of light at a surface in 3D vector form
ダウンロード: 99
更新 2020/10/1

ライセンスの表示

Implementation of tutorial found on
http://starkeffects.com/snells-law-vector.shtml

s2 = snell3d(n1,n2,s1,N)
n1,n2: refractive indexes of first medium and surface respectively
s1: incident ray vector (xyz vector, will be normalized and made column)
N: surface normal (xyz vector, will be normalized and made column)
s2: refracted ray (normalized xyz vector)

引用

Duijnhouwer (2024). snell3d (https://www.mathworks.com/matlabcentral/fileexchange/80422-snell3d), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2020a
R2019b 以降のリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
バージョン 公開済み リリース ノート
1.2.1

added icon

1.2.0

Fixed bug where function relied on idiosyncratic normalize function that happened to reside on my path!

1.1.0

Made sure vector 2-norm is used for normalization

1.0.1

Examples in help

1.0.0