Home
last modified time | relevance | path

Searched refs:mHeadingAngle (Results 1 – 2 of 2) sorted by relevance

/development/samples/ApiDemos/src/com/example/android/apis/view/
DGameView.java595 private float mHeadingAngle;
638 mHeadingAngle = (float) Math.atan2(mHeadingY, mHeadingX);
643 return (float) Math.cos(mHeadingAngle) * radius;
647 return (float) Math.sin(mHeadingAngle) * radius;
695 canvas.rotate(mHeadingAngle * TO_DEGREES);
/development/samples/ControllerSample/src/com/example/controllersample/
DGameView.java660 private float mHeadingAngle; field in GameView.Ship
923 mHeadingAngle = (float) Math.atan2(mHeadingY, mHeadingX);
936 return (float) Math.cos(mHeadingAngle) * radius;
940 return (float) Math.sin(mHeadingAngle) * radius;
1020 canvas.rotate(mHeadingAngle * TO_DEGREES); in draw()