Please read this article from GameDev.net, it explains the theory very well.
There was an error while loading. Please reload this page.