Ok, now I would like to expand upon this a little bit...

Lets say the projectile flies at wall "A" from location 1.
How would I alter the angles of the projectile so that after it hits wall "A", it flies towards wall "B", and then when it hits wall "B", it changes its angles again so that it flies towards location 2?
And, vice versa; if the projectile flew at wall "B" from location 2, it would alter its angles so that it flies at wall "A", then when it hits wall "A", it alters its angles again so that it flies towards location 1.
Sort of like a "ricochet" effect...