Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Unified Diff: sky/examples/game/lib/transform_node.dart

Issue 1164393002: Convert everything in the Sky API from degrees to radians. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/core/painting/Path.idl ('k') | sky/examples/raw/painting.sky » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/examples/game/lib/transform_node.dart
diff --git a/sky/examples/game/lib/transform_node.dart b/sky/examples/game/lib/transform_node.dart
index e5bc444001a5de47b3b21fc8d27a34a0692b8585..199ca55f80719ce0d06f337c159b0415f1416fb5 100644
--- a/sky/examples/game/lib/transform_node.dart
+++ b/sky/examples/game/lib/transform_node.dart
@@ -123,7 +123,7 @@ class TransformNode {
canvas.save();
canvas.translate(_position[0], _position[1]);
- canvas.rotateDegrees(_rotation);
+ canvas.rotate(degrees2radians(_rotation));
canvas.translate(-_width*_pivot[0], -_height*_pivot[1]);
// TODO: Use transformation matrix instead of individual calls
@@ -147,4 +147,4 @@ class TransformNode {
void update(double dt) {
}
-}
+}
« no previous file with comments | « sky/engine/core/painting/Path.idl ('k') | sky/examples/raw/painting.sky » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698