Searched refs:PI (Results 1 - 11 of 11) sorted by relevance

/development/apps/OBJViewer/com/android/objviewer/
H A DOBJViewer.java45 private static final float PI = (float)Math.PI; field in class: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/ApiDemos/src/com/example/android/apis/graphics/kube/
H A DLayer.java47 float twopi = (float)Math.PI *2f;
H A DKube.java259 mAngleIncrement = (float)Math.PI / 50;
260 mEndAngle = mCurrentAngle + ((float)Math.PI * count) / 2f;
262 mAngleIncrement = -(float)Math.PI / 50;
263 mEndAngle = mCurrentAngle - ((float)Math.PI * count) / 2f;
/development/ndk/platforms/android-4/samples/san-angeles/jni/
H A Ddemo.c39 #undef PI macro
40 #define PI 3.1415926535897932f macro
230 float t1 = -PI + longitude * 2 * PI / resol1;
231 float t2 = -PI + (longitude + 1) * 2 * PI / resol1;
232 float p1 = -PI / 2 + latitude * 2 * PI / resol2;
233 float p2 = -PI / 2 + (latitude + 1) * 2 * PI / resol
[all...]
/development/samples/ApiDemos/src/com/example/android/apis/graphics/
H A DColorPickerDialog.java164 private static final float PI = 3.1415926f; field in class:ColorPickerDialog.ColorPickerView
188 // need to turn angle [-PI ... PI] into unit [0....1]
189 float unit = angle/(2*PI);
H A DCubeMapActivity.java168 double angleV = Math.PI * 2 * j / vSteps;
172 double angleU = Math.PI * 2 * i / uSteps;
H A DMatrixPaletteRenderer.java344 float unitAngle = (float) Math.cos(animationUnit * 2 * Math.PI);
393 double angle = Math.PI * 2 * i / uSteps;
H A DTouchPaint.java461 canvas.rotate((float) (orientation * 180 / Math.PI), x, y);
499 double direction = mRandom.nextDouble() * Math.PI * 2;
/development/samples/ApiDemos/src/com/example/android/apis/view/
H A 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/
H A DCompassActivity.java232 final float rad2deg = (float)(180.0f/Math.PI);
/development/samples/LunarLander/src/com/example/android/lunarlander/
H A DLunarView.java720 double radians = 2 * Math.PI * mHeading / 360;

Completed in 178 milliseconds