Skip to content

adamisntdead/snell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snell

A Javascript Visualization of Snell's Law 📓 🔦

Snell's Law is a formula used to describe the relationship between the angles of incidence and refraction, when referring to light or other waves passing through a boundary between two different isotropic media.

The Law

Snell's law states:

The ratio of the sines of the angles of incidence and refraction are equivalent to the ratio of phase velocities in the two media, or equivalent to the reciprocal of the ratio of the indices of refraction

Deploying To Github Pages

# Build With Parcel
parcel build index.html --public-url ./

# Push to GH Pages
git subtree push --prefix dist origin gh-pages