You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
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)
Cite As
Duijnhouwer (2026). snell3d (https://in.mathworks.com/matlabcentral/fileexchange/80422-snell3d), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.2.1 (1.35 KB)
MATLAB Release Compatibility
- Compatible with R2019b and later releases
Platform Compatibility
- Windows
- macOS
- Linux