Home
last modified time | relevance | path

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

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