Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/blenlib/intern/math_geom.c')
-rw-r--r--source/blender/blenlib/intern/math_geom.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/blenlib/intern/math_geom.c b/source/blender/blenlib/intern/math_geom.c
index 0873dece864..5d78bb0b901 100644
--- a/source/blender/blenlib/intern/math_geom.c
+++ b/source/blender/blenlib/intern/math_geom.c
@@ -5233,7 +5233,7 @@ void map_to_sphere(float *r_u, float *r_v, const float x, const float y, const f
len = sqrtf(x * x + y * y + z * z);
if (len > 0.0f) {
if (UNLIKELY(x == 0.0f && y == 0.0f)) {
- *r_u = 0.0f; /* othwise domain error */
+ *r_u = 0.0f; /* Otherwise domain error. */
}
else {
*r_u = (1.0f - atan2f(x, y) / (float)M_PI) / 2.0f;
@@ -5836,7 +5836,7 @@ bool form_factor_visible_quad(const float p[3],
return true;
}
-/* altivec optimization, this works, but is unused */
+/* `AltiVec` optimization, this works, but is unused. */
#if 0
# include <Accelerate/Accelerate.h>
@@ -6125,7 +6125,7 @@ bool is_quad_convex_v3(const float v1[3], const float v2[3], const float v3[3],
bool is_quad_convex_v2(const float v1[2], const float v2[2], const float v3[2], const float v4[2])
{
- /* linetests, the 2 diagonals have to instersect to be convex */
+ /* Line-tests, the 2 diagonals have to intersect to be convex. */
return (isect_seg_seg_v2(v1, v3, v2, v4) > 0);
}
@@ -6233,7 +6233,7 @@ float cubic_tangent_factor_circle_v3(const float tan_l[3], const float tan_r[3])
return (1.0f / 3.0f) * 0.75f;
}
if (tan_dot < -1.0f + eps) {
- /* parallele tangents (half-circle) */
+ /* Parallel tangents (half-circle). */
return (1.0f / 2.0f);
}