You should add an assert that angle is defined here:
```js
goog.asserts.assert(goog.isDef(angle));
```
Also, I find it clearer if the variable name matches the property name, i.e. `angle` should be renamed to `rotation`.