I would say that this excerpt (which is, by the way, one of the most famous and commonly quoted lines written by Shakespeare) serves to depict the motivations and personality of the character.
Richard describes himself in the excerpt, and states briefly why he decided to do what he did.