What is the law of karma and how does it affect the Hindu view of the human person?

What is the law of karma and how does it affect the Hindu view of the human person?