Convert everything in the Sky API from degrees to radians.

Radians are the one true angle unit.

R=abarth@chromium.org

Review URL: https://codereview.chromium.org/1164393002
This commit is contained in:
Hixie
2015-06-08 14:38:06 -07:00
parent 086c921ccd
commit 5c0fd999ae

View File

@@ -14,7 +14,7 @@ void beginFrame(double timeStamp) {
double delta = timeStamp - timeBase;
PictureRecorder canvas = new PictureRecorder(view.width, view.height);
canvas.translate(view.width / 2.0, view.height / 2.0);
canvas.rotateDegrees(delta / 10);
canvas.rotate(math.PI * delta / 1800);
canvas.drawRect(new Rect.fromLTRB(-100.0, -100.0, 100.0, 100.0),
new Paint()..setARGB(255, 0, 255, 0));