Code
- return both collision points list and vector list - done for triangle, done for circle
- use inf instead of big numbers like 100000 - done for triangle, done for circle
- use draw sector function to draw part ofter circle - done, but as what expected, draw.arc?
- refactor simulation function to take x and vin as parameter, generating random variables outside simulate function - done for triangle, done for circle
- search on functions that solve non quadratic functions, get rid of expression for specific t’s
- animation
- take v_out as v_in for next periodic micro geometry, simulate over multiple ones (like a tube)
- calculate escape time
Latex
- detail calculation for reflection on triangles - in progress
- how simulations are done, natural distribution for angles - in progress
Comment
- done for triangle one
- done for circle one
- Will use draw arc than draw sector. Okay without left and right side bar
- Fixed the little gap between 2 arcs, not drawing enough for left arch. should draw 90 to (90-'angle') than 90 to 'angle'
- check if input is valid (coordinates, non negative values, etc.)
- Use R to draw pictures - need bar one code as well
- draw.arc, but tiny gap there
- u for circle, if scale( u-0.5) inside simulate, sometimes not working
- work on when r<1/2, use straight line for part that circles not intersect - delay
- rootSolve, multiroot should work under assumption that we always have equation for the boundaries, which we do.
- Change triangle a.b to angle input
- Check function: angle between 0 and pi, radius >1/2,
- input for reflect: angle for triangle, r for circle, b/h for bars
- animation
- take v_out as v_in for next periodic micro geometry, simulate over multiple ones (like a tube)
- calculate escape time