Lines Matching refs:theta
1324 * carefully limited to -180 <= theta <= 180.
1334 static int ov7670_sine(int theta)
1339 if (theta < 0) {
1340 theta = -theta;
1343 if (theta <= 90)
1344 sine = ov7670_sin_table[theta/SIN_STEP];
1346 theta -= 90;
1347 sine = 1000 - ov7670_sin_table[theta/SIN_STEP];
1352 static int ov7670_cosine(int theta)
1354 theta = 90 - theta;
1355 if (theta > 180)
1356 theta -= 360;
1357 else if (theta < -180)
1358 theta += 360;
1359 return ov7670_sine(theta);