Computer Science Canada Resulting Mirror Angles |
Author: | GlobeTrotter [ Mon Dec 05, 2005 10:59 pm ] | ||
Post subject: | Resulting Mirror Angles | ||
So, in my program, I have two vector-like things. Mainly, I'm just dealing with directions though. Basically, I have the original direction, and I have the direction of the "mirror" (The mirror really has two directions, 180 from each other.) How do I get from these two to the final direction. All directions are relative to the positive x axis. I tried coming up with some examples, so that I could find the pattern but I can't see it. The left column represents the original, the middle the mirror and the last column represents the resultant. How do I get from column 1 and 2 to 3?
|
Author: | Tony [ Tue Dec 06, 2005 9:39 am ] |
Post subject: | |
well with mirrors, the angle of incidence is equal to the angle of reflection. I don't understand what you mean by the 2nd angle.. Though your mirror angle (column 2) * 2 is the difference between original angle (column 1) and the result (column 3) 0 |45 |90 => 45 * 2 = 90 - 0 270 |45 |180 => 45 * 2 = 270 - 180 180 |135 |90 => 135 * 2 = 90 - 180 ( - 90 is 270 equivalent) 270 |135 |0 => 135 * 2 = 270 - 0 You just have to figure out which direction (CW or CCW) you're going |