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:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user