Lines Matching refs:theta
1309 * carefully limited to -180 <= theta <= 180.
1319 static int ov7670_sine(int theta)
1324 if (theta < 0) {
1325 theta = -theta;
1328 if (theta <= 90)
1329 sine = ov7670_sin_table[theta/SIN_STEP];
1331 theta -= 90;
1332 sine = 1000 - ov7670_sin_table[theta/SIN_STEP];
1337 static int ov7670_cosine(int theta)
1339 theta = 90 - theta;
1340 if (theta > 180)
1341 theta -= 360;
1342 else if (theta < -180)
1343 theta += 360;
1344 return ov7670_sine(theta);