Lines Matching defs:theta
951 * carefully limited to -180 <= theta <= 180.
961 static int ov7670_sine(int theta)
966 if (theta < 0) {
967 theta = -theta;
970 if (theta <= 90)
971 sine = ov7670_sin_table[theta/SIN_STEP];
973 theta -= 90;
974 sine = 1000 - ov7670_sin_table[theta/SIN_STEP];
979 static int ov7670_cosine(int theta)
981 theta = 90 - theta;
982 if (theta > 180)
983 theta -= 360;
984 else if (theta < -180)
985 theta += 360;
986 return ov7670_sine(theta);