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

  /development/samples/CubeLiveWallpaper/src/com/example/android/livecubes/cube1/
CubeWallpaper1.java 204 float xrot = ((float)(now - mStartTime)) / 1000; local
211 float newy1 = (float)(Math.sin(xrot) * z1 + Math.cos(xrot) * y1);
212 float newy2 = (float)(Math.sin(xrot) * z2 + Math.cos(xrot) * y2);
213 float newz1 = (float)(Math.cos(xrot) * z1 - Math.sin(xrot) * y1);
214 float newz2 = (float)(Math.cos(xrot) * z2 - Math.sin(xrot) * y2);
  /development/samples/CubeLiveWallpaper/src/com/example/android/livecubes/cube2/
CubeWallpaper2.java 246 float xrot = ((float)(now - mStartTime)) / 1000; local
248 rotateAndProjectPoints(xrot, yrot);
253 void rotateAndProjectPoints(float xrot, float yrot) {
261 float newy = (float)(Math.sin(xrot) * z + Math.cos(xrot) * y);
262 float newz = (float)(Math.cos(xrot) * z - Math.sin(xrot) * y);

Completed in 47 milliseconds