Permalink
Browse files

ERRATA: Some minus signs did not print in the book for chapter 10.

  • Loading branch information...
1 parent 6d6454b commit ef26af0c70d9766fc2f0369c891d051d9bc0267a @lamberta committed Mar 20, 2012
Showing with 17 additions and 0 deletions.
  1. +17 −0 errata.md
View
@@ -85,6 +85,23 @@ In the `drawFrame` function, the following lines should be highlighted since the
...
context.lineTo(ball0.x, ball0.y);
+## p. 230, 232
+
+A minus sign did not print in the book for examples `02-rotate-2.html` and `03-rotate-3.html`:
+
+ x2 = x1 * cos - y1 * sin,
+
+## p. 236
+
+A few minus signs did not print in the book for example `04-angle-bounce.html`:
+
+ //get position of ball, relative to line
+ var x1 = ball.x – line.x,
+ y1 = ball.y – line.y,
+ //rotate coordinates
+ ...
+ y2 = y1 * cos – x1 * sin,
+
## p. 462
Exercise [14-time-based-3.html](https://github.com/lamberta/html5-animation/blob/master/examples/ch19/14-time-based-3.html)

0 comments on commit ef26af0

Please sign in to comment.