Mike Helland
Philosopher
- Joined
- Nov 29, 2020
- Messages
- 5,244
The wavelength is constant on reflection and the speed changes and therefore...?
The wavelength is not constant on reflection.
Code:
if (!photon.flipped && photon.y > boundary) {
photon.flipped = true
photon.wavelength = photon.wavelength * photon.dv
dv here is 1+z, works for any z.
