| /xsrc/external/mit/freetype/dist/src/tools/ |
| cordic.py | 17 angle = math.atan(x) # arctangent variable 18 angle2 = round(angle*scale) # arctangent in FT_Angle units
|
| /xsrc/external/mit/freetype/dist/include/freetype/ |
| fttrigon.h | 48 * This type is used to model angle values in FreeType. Note that the 49 * angle is a 16.16 fixed-point value expressed in degrees. 61 * The angle pi expressed in @FT_Angle units. 73 * The angle 2*pi expressed in @FT_Angle units. 85 * The angle pi/2 expressed in @FT_Angle units. 97 * The angle pi/4 expressed in @FT_Angle units. 109 * Return the sinus of a given angle in fixed-point format. 112 * angle :: 113 * The input angle. 119 * If you need both the sinus and cosinus for a given angle, use th 124 FT_Sin( FT_Angle angle ); variable 148 FT_Cos( FT_Angle angle ); variable 168 FT_Tan( FT_Angle angle ); variable [all...] |
| /xsrc/external/mit/freetype/dist/src/autofit/ |
| afangles.c | 33 * The trick here is to realize that we don't need a very accurate angle 35 * only compare the sign of angle differences, or check whether its 48 AF_Angle angle; 61 angle = 0; 64 angle = ( AF_ANGLE_PI2 * dy ) / ( ax + ay ); 67 if ( angle >= 0 ) 68 angle = AF_ANGLE_PI - angle; 70 angle = -AF_ANGLE_PI - angle; 127 AF_Angle angle; local [all...] |
| /xsrc/external/mit/mesa-demos/dist/src/demos/ |
| winpos.c | 36 GLfloat angle; local 40 for (angle = -45.0; angle <= 135.0; angle += 10.0) { 41 GLfloat x = 50.0 + 200.0 * cos( angle * M_PI / 180.0 ); 42 GLfloat y = 50.0 + 200.0 * sin( angle * M_PI / 180.0 );
|
| vao_demo.c | 37 static GLfloat angle = 0.0; variable 184 glRotatef( angle, 0.0 * angle , 0.0 * angle, 1.0 ); 190 glRotatef( angle, 0.3 * angle , 0.8 * angle, 1.0 ); 198 glRotatef( angle, 0.3 * angle , 0.8 * angle, 1.0 ) [all...] |
| gearbox.c | 51 GLfloat angle, da; local 67 angle = i * 2.0 * M_PI / teeth; 68 glVertex3f(r0 * cos(angle), r0 * sin(angle), width * 0.5); 69 glVertex3f(r1 * cos(angle), r1 * sin(angle), width * 0.5); 71 glVertex3f(r0 * cos(angle), r0 * sin(angle), width * 0.5); 72 glVertex3f(r1 * cos(angle + 3 * da), r1 * sin(angle + 3 * da), width * 0.5) [all...] |
| gears.c | 55 GLfloat angle, da; local 71 angle = i * 2.0 * M_PI / teeth; 72 glVertex3f(r0 * cos(angle), r0 * sin(angle), width * 0.5); 73 glVertex3f(r1 * cos(angle), r1 * sin(angle), width * 0.5); 75 glVertex3f(r0 * cos(angle), r0 * sin(angle), width * 0.5); 76 glVertex3f(r1 * cos(angle + 3 * da), r1 * sin(angle + 3 * da), width * 0.5) 169 static GLfloat angle = 0.0; variable [all...] |
| pointblast.c | 33 static GLfloat angle = -150; /* in degrees */ variable 89 float angle, velocity, direction; local 98 angle = (RANDOM_RANGE(60.0, 70.0)) * M_PI/180.0; 103 pointVelocity[i][0] = velocity * cos(angle); 104 pointVelocity[i][1] = velocity * sin(angle); 165 angle += 0.3; 188 glRotatef(angle, 0.0, 1.0, 0.0); 259 angle = angle + (x - begin);
|
| /xsrc/external/mit/mesa-demos/dist/src/egl/openvg/ |
| lion.c | 10 VGfloat angle = 0; variable 24 vgRotate(angle); 46 ++angle;
|
| /xsrc/external/mit/mesa-demos/dist/src/tests/ |
| backspecular.c | 15 static double angle = 0.0; variable 27 glRotated(angle, 0.0, 1.0, 0.0); 47 angle += angle_delta;
|
| jkrahntest.c | 43 float angle; local 127 for (angle = 0; angle < 360*4; angle += 10.0) { 138 glVertex2f(cos(angle * DEGTOR), sin(angle * DEGTOR)); 139 glVertex2f(cos((angle + 20.0) * DEGTOR), 140 sin((angle + 20.0) * DEGTOR)); 163 glVertex2f(cos(angle * DEGTOR), sin(angle * DEGTOR)) [all...] |
| mapbufrange.c | 44 UpdateRect(int r, float angle) 78 rect[i * 6 + 0] = xpos + x * cos(angle) + y * sin(angle); 79 rect[i * 6 + 1] = ypos + x * sin(angle) - y * cos(angle); 90 float angle = glutGet(GLUT_ELAPSED_TIME) * 0.001; local 91 UpdateRect(frame % NumRects, angle);
|
| quads.c | 195 float angle = i / (float) NUM_QUADS * M_PI; local 196 float x = r * cos(angle); 197 float y = r * sin(angle);
|
| auxbuffer.c | 64 static GLfloat angle = 0.0; variable 84 GLfloat angle, da; local 100 angle = i * 2.0 * M_PI / teeth; 101 glVertex3f(r0 * cos(angle), r0 * sin(angle), width * 0.5); 102 glVertex3f(r1 * cos(angle), r1 * sin(angle), width * 0.5); 104 glVertex3f(r0 * cos(angle), r0 * sin(angle), width * 0.5); 105 glVertex3f(r1 * cos(angle + 3 * da), r1 * sin(angle + 3 * da) [all...] |
| texfilt.c | 229 GLfloat angle = 0.0f; local 243 position[0] = 2.5 * sinf( angle ); 244 position[1] = 2.5 * cosf( angle ); 263 angle += angle_step; 266 position[0] = 2.5 * sinf( angle ); 267 position[1] = 2.5 * cosf( angle );
|
| /xsrc/external/mit/xf86-video-nouveau/dist/src/ |
| nv10_xv_ovl.c | 281 double angle; local 283 angle = (double)pPriv->hue * 3.1415927 / 180.0; 285 satSine = pPriv->saturation * sin(angle); 288 satCosine = pPriv->saturation * cos(angle);
|
| /xsrc/external/mit/pixman/dist/demos/ |
| conical-test.c | 38 double angle; local 43 angle = (0.5 / NUM_GRADIENTS + index / (double)NUM_GRADIENTS) * 720 - 180; 46 &c, pixman_double_to_fixed (angle), stops, NUM_STOPS);
|
| /xsrc/external/mit/mesa-demos/dist/src/egl/opengl/ |
| eglgears.c | 38 static GLfloat angle = 0.0; variable 57 GLfloat angle, da; local 73 angle = i * 2.0 * M_PI / teeth; 74 glVertex3f(r0 * cos(angle), r0 * sin(angle), width * 0.5); 75 glVertex3f(r1 * cos(angle), r1 * sin(angle), width * 0.5); 77 glVertex3f(r0 * cos(angle), r0 * sin(angle), width * 0.5); 78 glVertex3f(r1 * cos(angle + 3 * da), r1 * sin(angle + 3 * da) [all...] |
| peglgears.c | 93 static GLfloat angle = 0.0; variable 119 GLfloat angle, da; local 135 angle = i * 2.0 * M_PI / teeth; 136 glVertex3f(r0 * cos(angle), r0 * sin(angle), width * 0.5); 137 glVertex3f(r1 * cos(angle), r1 * sin(angle), width * 0.5); 139 glVertex3f(r0 * cos(angle), r0 * sin(angle), width * 0.5); 140 glVertex3f(r1 * cos(angle + 3 * da), r1 * sin(angle + 3 * da) [all...] |
| /xsrc/external/mit/mesa-demos/dist/src/redbook/ |
| shadowmap.c | 59 GLfloat angle = 0.0; variable 125 angle += PI / 10000; 323 gluLookAt( radius*cos(angle), radius*sin(angle), 30,
|
| /xsrc/external/mit/mesa-demos/dist/src/egl/opengles1/ |
| gears.c | 48 static GLfloat angle = 0.0; variable 265 glRotatef(angle, 0.0, 0.0, 1.0); 274 glRotatef(-2.0 * angle - 9.0, 0.0, 0.0, 1.0); 283 glRotatef(-2.0 * angle - 25.0, 0.0, 0.0, 1.0); 356 angle += 70.0 * dt; /* 70 degrees per second */ 357 angle = fmod(angle, 360.0); /* prevents eventual overflow */
|
| /xsrc/external/mit/mesa-demos/dist/src/samples/ |
| overlay.c | 72 static float Sin(float angle) 75 return (sinTable[(GLint)angle]); 78 static float Cos(float angle) 81 return (sinTable[((GLint)angle+(MAXANGLES/4))%MAXANGLES]); 204 float angle; local 213 angle = 0.0; 215 sinTable[n] = sin(angle); 216 angle += PI / (MAXANGLES / 2.0);
|
| star.c | 70 static float Sin(float angle) 73 return (sinTable[(GLint)angle]); 76 static float Cos(float angle) 79 return (sinTable[((GLint)angle+(MAXANGLES/4))%MAXANGLES]); 212 float angle; local 221 angle = 0.0; 223 sinTable[n] = sin(angle); 224 angle += PI / (MAXANGLES / 2.0);
|
| /xsrc/external/mit/mesa-demos/dist/src/xdemos/ |
| glxcontexts.c | 94 static GLfloat angle = 0.0; variable 117 GLfloat angle, da; local 133 angle = i * 2.0 * M_PI / teeth; 134 glVertex3f(r0 * cos(angle), r0 * sin(angle), width * 0.5); 135 glVertex3f(r1 * cos(angle), r1 * sin(angle), width * 0.5); 137 glVertex3f(r0 * cos(angle), r0 * sin(angle), width * 0.5); 138 glVertex3f(r1 * cos(angle + 3 * da), r1 * sin(angle + 3 * da) [all...] |
| glxgears_pixmap.c | 94 static GLfloat angle = 0.0; variable 114 GLfloat angle, da; local 130 angle = i * 2.0 * M_PI / teeth; 131 glVertex3f(r0 * cos(angle), r0 * sin(angle), width * 0.5); 132 glVertex3f(r1 * cos(angle), r1 * sin(angle), width * 0.5); 134 glVertex3f(r0 * cos(angle), r0 * sin(angle), width * 0.5); 135 glVertex3f(r1 * cos(angle + 3 * da), r1 * sin(angle + 3 * da) [all...] |