Home
last modified time | relevance | path

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

/development/samples/CubeLiveWallpaper/src/com/example/android/livecubes/cube1/
DCubeWallpaper1.java205 float yrot = (0.5f - mOffset) * 2.0f; in drawLine() local
217 float newx1 = (float)(Math.sin(yrot) * newz1 + Math.cos(yrot) * x1); in drawLine()
218 float newx2 = (float)(Math.sin(yrot) * newz2 + Math.cos(yrot) * x2); in drawLine()
219 newz1 = (float)(Math.cos(yrot) * newz1 - Math.sin(yrot) * x1); in drawLine()
220 newz2 = (float)(Math.cos(yrot) * newz2 - Math.sin(yrot) * x2); in drawLine()
/development/samples/CubeLiveWallpaper/src/com/example/android/livecubes/cube2/
DCubeWallpaper2.java247 float yrot = (0.5f - mOffset) * 2.0f; in drawCube() local
248 rotateAndProjectPoints(xrot, yrot); in drawCube()
253 void rotateAndProjectPoints(float xrot, float yrot) { in rotateAndProjectPoints() argument
265 float newx = (float)(Math.sin(yrot) * newz + Math.cos(yrot) * x); in rotateAndProjectPoints()
266 newz = (float)(Math.cos(yrot) * newz - Math.sin(yrot) * x); in rotateAndProjectPoints()