Lines Matching refs:angle
92 float angle; in bowl_view_image_to_world() local
106 angle = degree2radian (config.angle_start + img_pos.x * angle_step); in bowl_view_image_to_world()
109 if(XCAM_DOUBLE_EQUAL_AROUND (angle, PI / 2)) { in bowl_view_image_to_world()
112 } else if (XCAM_DOUBLE_EQUAL_AROUND (angle, PI * 3 / 2)) { in bowl_view_image_to_world()
115 } else if((angle < PI / 2) || (angle > PI * 3 / 2)) { in bowl_view_image_to_world()
116 world.x = sqrt(r2 * a * a * b * b / (b * b + a * a * tan(angle) * tan(angle))); in bowl_view_image_to_world()
117 world.y = -world.x * tan(angle); in bowl_view_image_to_world()
119 world.x = -sqrt(r2 * a * a * b * b / (b * b + a * a * tan(angle) * tan(angle))); in bowl_view_image_to_world()
120 world.y = -world.x * tan(angle); in bowl_view_image_to_world()
133 angle = degree2radian (config.angle_start + img_pos.x * angle_step); in bowl_view_image_to_world()
135 if(XCAM_DOUBLE_EQUAL_AROUND (angle, PI / 2)) { in bowl_view_image_to_world()
138 } else if (XCAM_DOUBLE_EQUAL_AROUND (angle, PI * 3 / 2)) { in bowl_view_image_to_world()
141 } else if((angle < PI / 2) || (angle > PI * 3 / 2)) { in bowl_view_image_to_world()
142 world.x = a * b / sqrt(b * b + a * a * tan(angle) * tan(angle)); in bowl_view_image_to_world()
143 world.y = -world.x * tan(angle); in bowl_view_image_to_world()
145 world.x = -a * b / sqrt(b * b + a * a * tan(angle) * tan(angle)); in bowl_view_image_to_world()
146 world.y = -world.x * tan(angle); in bowl_view_image_to_world()