Home
last modified time | relevance | path

Searched refs:PI (Results 1 – 20 of 20) sorted by relevance

/development/samples/browseable/MidiSynth/src/com.example.android.common.midi/synth/
DSineOscillator.java41 float x = (float) (yp * Math.PI); in fastSin()
/development/samples/browseable/MidiScope/src/com.example.android.common.midi/synth/
DSineOscillator.java41 float x = (float) (yp * Math.PI); in fastSin()
/development/apps/OBJViewer/com/android/objviewer/
DOBJViewer.java45 private static final float PI = (float)Math.PI; field in OBJView
46 private static final float TWO_PI = (float)(2.0*Math.PI);
47 private static final float PI_OVER_TWO = (float)(Math.PI/2.0);
/development/samples/browseable/BasicAccessibility/src/com.example.android.basicaccessibility/
DDialView.java231 Double startAngle = Math.PI * (9 / 8d); // Angles are in radiansq in computeXYForPosition()
232 Double angle = startAngle + (pos * (Math.PI / 4)); in computeXYForPosition()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/kube/
DKube.java259 mAngleIncrement = (float)Math.PI / 50; in animate()
260 mEndAngle = mCurrentAngle + ((float)Math.PI * count) / 2f; in animate()
262 mAngleIncrement = -(float)Math.PI / 50; in animate()
263 mEndAngle = mCurrentAngle - ((float)Math.PI * count) / 2f; in animate()
DLayer.java47 float twopi = (float)Math.PI *2f; in setAngle()
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
DColorPickerDialog.java164 private static final float PI = 3.1415926f; field in ColorPickerDialog.ColorPickerView
189 float unit = angle/(2*PI); in onTouchEvent()
DMatrixPaletteRenderer.java344 float unitAngle = (float) Math.cos(animationUnit * 2 * Math.PI); in onDrawFrame()
393 double angle = Math.PI * 2 * i / uSteps; in generateWeightedGrid()
DCubeMapActivity.java168 double angleV = Math.PI * 2 * j / vSteps; in generateTorusGrid()
172 double angleU = Math.PI * 2 * i / uSteps; in generateTorusGrid()
DTouchPaint.java494 canvas.rotate((float) (orientation * 180 / Math.PI), x, y); in drawOval()
532 double direction = mRandom.nextDouble() * Math.PI * 2; in drawSplat()
/development/samples/browseable/RenderScriptIntrinsic/src/com.example.android.renderscriptintrinsic/
DMainActivity.java265 final float max = (float) Math.PI; in getFilterParameter()
266 final float min = (float) -Math.PI; in getFilterParameter()
/development/samples/ApiDemos/src/com/example/android/apis/view/
DGameView.java447 float direction = mRandom.nextFloat() * (float) Math.PI * 2;
590 private static final float CORNER_ANGLE = (float) Math.PI * 2 / 3;
591 private static final float TO_DEGREES = (float) (180.0 / Math.PI);
/development/samples/Compass/src/com/example/android/compass/
DCompassActivity.java232 final float rad2deg = (float)(180.0f/Math.PI); in onSensorChanged()
/development/samples/ControllerSample/src/com/example/controllersample/
DGameView.java435 float direction = mRandom.nextFloat() * (float) Math.PI * 2; in step()
640 private static final float CORNER_ANGLE = (float) Math.PI * 2 / 3;
641 private static final float TO_DEGREES = (float) (180.0 / Math.PI);
/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/
DOpenGLWatchFaceService.java205 final float cameraAngle = (float) (((float) i) / mNumCameraAngles * 2 * Math.PI); in onGlContextCreated()
DSweepWatchFaceService.java339 float tickRot = (float) (tickIndex * Math.PI * 2 / 12); in onDraw()
DAnalogWatchFaceService.java374 float tickRot = (float) (tickIndex * Math.PI * 2 / 12); in onDraw()
DComplicationSimpleWatchFaceService.java638 float tickRot = (float) (tickIndex * Math.PI * 2 / 12); in drawWatchFace()
/development/vndk/tools/definition-tool/assets/visual/
Ddep-graph.js14 line.angle(function(d) { return d.x / 180 * Math.PI; });
/development/samples/LunarLander/src/com/example/android/lunarlander/
DLunarView.java732 double radians = 2 * Math.PI * mHeading / 360; in updatePhysics()