Implement angle energy term.