1. fix Latex Reflection and Simulation from previous meeting
2. add detailed calculation part for triangle reflection
3. Define tube length, calculate escape time. Each time travel distance is decided by theta_out - done, think it is correct
4. Refactor code to put boundaries, normal vectors and so on to list, so we can specify mode and put everything to one file and reuse most chunks of code. - done, circle one has a bug.
5. rootSolve, multiroot should work under assumption that we always have equation for the boundaries, which we do.
later we can try when incoming vector is not straight line
6. validate input value - done
Code:
Latex:
Delay
so R rounded some values during calculation. after 'hitting' the right circle first time, it has correct reflected vector but thought collision pt is slightly below the circle. So next collision will by hitting right circle again, from bottom left to up right. Then after the collision it goes to left down direction again. Visually it is just a straight line that we can not see what happens.
This can be fixed by checking current boundary before calculating t's, assign the current boundary t to inf.