Home
last modified time | relevance | path

Searched refs:cos (Results 1 – 17 of 17) sorted by relevance

/development/samples/ApiDemos/src/com/example/android/apis/graphics/kube/
DLayer.java53 float cos = (float)Math.cos(angle); in setAngle() local
58 m[1][1] = cos; in setAngle()
61 m[2][2] = cos; in setAngle()
66 m[0][0] = cos; in setAngle()
69 m[2][2] = cos; in setAngle()
74 m[0][0] = cos; in setAngle()
77 m[1][1] = cos; in setAngle()
/development/samples/CubeLiveWallpaper/src/com/example/android/livecubes/cube1/
DCubeWallpaper1.java211 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()
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/browseable/RenderScriptIntrinsic/src/com.example.android.renderscriptintrinsic/
DMainActivity.java217 float cos = (float) Math.cos((double) value); in performFilter() local
220 mat.set(0, 0, (float) (.299 + .701 * cos + .168 * sin)); in performFilter()
221 mat.set(1, 0, (float) (.587 - .587 * cos + .330 * sin)); in performFilter()
222 mat.set(2, 0, (float) (.114 - .114 * cos - .497 * sin)); in performFilter()
223 mat.set(0, 1, (float) (.299 - .299 * cos - .328 * sin)); in performFilter()
224 mat.set(1, 1, (float) (.587 + .413 * cos + .035 * sin)); in performFilter()
225 mat.set(2, 1, (float) (.114 - .114 * cos + .292 * sin)); in performFilter()
226 mat.set(0, 2, (float) (.299 - .3 * cos + 1.25 * sin)); in performFilter()
227 mat.set(1, 2, (float) (.587 - .588 * cos - 1.05 * sin)); in performFilter()
228 mat.set(2, 2, (float) (.114 + .886 * cos - .203 * sin)); in performFilter()
/development/vndk/tools/definition-tool/tests/testdata/test_generic_refs/system/lib/
Dlibm.so.sym4 EXP_SYMBOL cos
/development/vndk/tools/definition-tool/tests/testdata/test_generic_refs/system/lib64/
Dlibm.so.sym4 EXP_SYMBOL cos
/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/
DOpenGLWatchFaceService.java206 final float eyeX = (float) Math.cos(cameraAngle); in onGlContextCreated()
355 double cos = Math.cos(angleRadians); in rotateCoords() local
360 coords[i] = (float) (cos * x - sin * y); in rotateCoords()
361 coords[i + 1] = (float) (sin * x + cos * y); in rotateCoords()
DSweepWatchFaceService.java341 float innerY = (float) -Math.cos(tickRot) * innerTickRadius; in onDraw()
343 float outerY = (float) -Math.cos(tickRot) * outerTickRadius; in onDraw()
DAnalogWatchFaceService.java376 float innerY = (float) -Math.cos(tickRot) * innerTickRadius; in onDraw()
378 float outerY = (float) -Math.cos(tickRot) * outerTickRadius; in onDraw()
DComplicationSimpleWatchFaceService.java640 float innerY = (float) -Math.cos(tickRot) * innerTickRadius; in drawWatchFace()
642 float outerY = (float) -Math.cos(tickRot) * outerTickRadius; in drawWatchFace()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DTouchPaint.java519 float ny = (float) (- Math.cos(orientation) * Math.sin(tilt)); in drawSplat()
520 float nz = (float) Math.cos(tilt); in drawSplat()
534 double vx = Math.cos(direction) * dispersion; in drawSplat()
540 vy = temp * Math.cos(tilt) - vz * Math.sin(tilt); in drawSplat()
541 vz = temp * Math.sin(tilt) + vz * Math.cos(tilt); in drawSplat()
545 vx = temp * Math.cos(orientation) - vy * Math.sin(orientation); in drawSplat()
546 vy = temp * Math.sin(orientation) + vy * Math.cos(orientation); in drawSplat()
DMatrixPaletteRenderer.java344 float unitAngle = (float) Math.cos(animationUnit * 2 * Math.PI); in onDrawFrame()
394 float x = radius * (float) Math.cos(angle); in generateWeightedGrid()
DCubeMapActivity.java169 float cosV = (float) Math.cos(angleV); in generateTorusGrid()
173 float cosU = (float) Math.cos(angleU); in generateTorusGrid()
/development/samples/CubeLiveWallpaper/src/com/example/android/livecubes/cube2/
DCubeWallpaper2.java261 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()
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()
/development/samples/ApiDemos/src/com/example/android/apis/view/
DGameView.java450 float velocityX = (float) Math.cos(direction) * speed;
611 mPath.lineTo((float)Math.cos(-CORNER_ANGLE) * mSize,
614 mPath.lineTo((float)Math.cos(CORNER_ANGLE) * mSize,
643 return (float) Math.cos(mHeadingAngle) * radius;
/development/samples/browseable/BasicAccessibility/src/com.example.android.basicaccessibility/
DDialView.java233 result[0] = (float) (radius * Math.cos(angle)) + (mWidth / 2); in computeXYForPosition()
/development/samples/ControllerSample/src/com/example/controllersample/
DGameView.java438 float velocityX = (float) Math.cos(direction) * speed; in step()
681 mPath.lineTo((float) Math.cos(-CORNER_ANGLE) * mSize, in Ship()
684 mPath.lineTo((float) Math.cos(CORNER_ANGLE) * mSize, in Ship()
936 return (float) Math.cos(mHeadingAngle) * radius;
/development/samples/LunarLander/src/com/example/android/lunarlander/
DLunarView.java734 ddy += Math.cos(radians) * accel; in updatePhysics()