Cleanup: Fix various source typos

This is a continuation of D13462 to clean up source typos.

Differential Revision: https://developer.blender.org/D13471
This commit is contained in:
luzpaz
2021-12-06 22:31:05 -05:00
committed by Aaron Carlisle
parent 92dae5775f
commit f159d49f56
4 changed files with 10 additions and 10 deletions

View File

@@ -50,10 +50,10 @@ float circle_to_polygon_angle(float sides_count, float theta)
float ratio = (local_theta - halfside_angle) / halfside_angle;
float halfside_len = polygon_sides_length(sides_count) * 0.5;
float oposite = ratio * halfside_len;
float opposite = ratio * halfside_len;
/* NOTE: atan(y_over_x) has output range [-M_PI_2..M_PI_2]. */
float final_local_theta = atan(oposite / adjacent);
float final_local_theta = atan(opposite / adjacent);
return side * side_angle + final_local_theta;
}