HomeSort by relevance Sort by last modified time
    Searched full:yrot (Results 1 - 2 of 2) sorted by null

  /development/samples/CubeLiveWallpaper/src/com/example/android/livecubes/cube1/
CubeWallpaper1.java 205 float yrot = (0.5f - mOffset) * 2.0f; local
217 float newx1 = (float)(Math.sin(yrot) * newz1 + Math.cos(yrot) * x1);
218 float newx2 = (float)(Math.sin(yrot) * newz2 + Math.cos(yrot) * x2);
219 newz1 = (float)(Math.cos(yrot) * newz1 - Math.sin(yrot) * x1);
220 newz2 = (float)(Math.cos(yrot) * newz2 - Math.sin(yrot) * x2);
  /development/samples/CubeLiveWallpaper/src/com/example/android/livecubes/cube2/
CubeWallpaper2.java 247 float yrot = (0.5f - mOffset) * 2.0f; local
248 rotateAndProjectPoints(xrot, yrot);
253 void rotateAndProjectPoints(float xrot, float yrot) {
265 float newx = (float)(Math.sin(yrot) * newz + Math.cos(yrot) * x);
266 newz = (float)(Math.cos(yrot) * newz - Math.sin(yrot) * x);

Completed in 779 milliseconds