Thanks for your reply. I have tried it actually and can derive the equations and work out by hand. The problem is understanding why the final angles are calculated the way they are. Actually, I have another post in this forum and both these post are now converging towards the same question. (May be it is better to close this one).
The link for the other one is at
Thanks and Regards,