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:
authorCampbell Barton <ideasman42@gmail.com>2013-01-08 06:06:16 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-01-08 06:06:16 +0400
commit682df047a0005435fb8caad3dba974eb6eca2232 (patch)
tree8aeb3e3f6588f52e350b6be461f44fcb1c22e9f3 /source/blender/blenlib
parent08358a60b072461f3632c08cfc3a7af55b290162 (diff)
style cleanup
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r--source/blender/blenlib/intern/math_geom.c6
-rw-r--r--source/blender/blenlib/intern/string.c2
2 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 a54bef9d5d2..5f1047d054e 100644
--- a/source/blender/blenlib/intern/math_geom.c
+++ b/source/blender/blenlib/intern/math_geom.c
@@ -318,7 +318,7 @@ void closest_on_tri_to_point_v3(float r[3], const float p[3],
return;
}
/* Check if P in edge region of AB, if so return projection of P onto AB */
- vc = d1*d4 - d3*d2;
+ vc = d1 * d4 - d3 * d2;
if (vc <= 0.0f && d1 >= 0.0f && d3 <= 0.0f) {
float v = d1 / (d1 - d3);
/* barycentric coordinates (1-v,v,0) */
@@ -335,7 +335,7 @@ void closest_on_tri_to_point_v3(float r[3], const float p[3],
return;
}
/* Check if P in edge region of AC, if so return projection of P onto AC */
- vb = d5*d2 - d1*d6;
+ vb = d5 * d2 - d1 * d6;
if (vb <= 0.0f && d2 >= 0.0f && d6 <= 0.0f) {
float w = d2 / (d2 - d6);
/* barycentric coordinates (1-w,0,w) */
@@ -343,7 +343,7 @@ void closest_on_tri_to_point_v3(float r[3], const float p[3],
return;
}
/* Check if P in edge region of BC, if so return projection of P onto BC */
- va = d3*d6 - d5*d4;
+ va = d3 * d6 - d5 * d4;
if (va <= 0.0f && (d4 - d3) >= 0.0f && (d5 - d6) >= 0.0f) {
float w = (d4 - d3) / ((d4 - d3) + (d5 - d6));
/* barycentric coordinates (0,1-w,w) */
diff --git a/source/blender/blenlib/intern/string.c b/source/blender/blenlib/intern/string.c
index f23f75f69d9..28fdf7b61db 100644
--- a/source/blender/blenlib/intern/string.c
+++ b/source/blender/blenlib/intern/string.c
@@ -412,7 +412,7 @@ int BLI_natstrcmp(const char *s1, const char *s2)
void BLI_timestr(double _time, char *str)
{
/* format 00:00:00.00 (hr:min:sec) string has to be 12 long */
- int hr = ( (int) _time) / (60*60);
+ int hr = ( (int) _time) / (60 * 60);
int min = (((int) _time) / 60 ) % 60;
int sec = ( (int) (_time)) % 60;
int hun = ( (int) (_time * 100.0)) % 100;