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!