I have a problem with calculating the reflection of a ray from the mirror. I can do it if I know the angle that I used to turn the mirror, but then if I have more than one mirror I have a problem to calculate the right angle. So, I'm thinking to use coordinate transformation to calculate reflection.
Anybody can help?
/* code that I use now */ public void paint(Graphics g) { // initial mirror coordinates double mirror[] = { 120.0, 80.0, 120.0, 160.0 };