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>2014-09-16 16:04:44 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-09-16 18:33:38 +0400
commitaba5fc29d5817d8bb81c95efa0569bda21ba2a3f (patch)
tree4866ab4021d5071a049fb6982185a909a73cc2f9 /source/blender/blenlib/intern
parenta41a38d11c835d7d1598542900b08177bc10f4c0 (diff)
Math Lib: use higher precision for vector printing
Only use for debugging, where precision is often important.
Diffstat (limited to 'source/blender/blenlib/intern')
-rw-r--r--source/blender/blenlib/intern/math_vector.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/blenlib/intern/math_vector.c b/source/blender/blenlib/intern/math_vector.c
index 6b37b0d5d32..887ec7d4d2c 100644
--- a/source/blender/blenlib/intern/math_vector.c
+++ b/source/blender/blenlib/intern/math_vector.c
@@ -714,17 +714,17 @@ void rotate_v3_v3v3fl(float r[3], const float p[3], const float axis[3], const f
void print_v2(const char *str, const float v[2])
{
- printf("%s: %.3f %.3f\n", str, v[0], v[1]);
+ printf("%s: %.8f %.8f\n", str, v[0], v[1]);
}
void print_v3(const char *str, const float v[3])
{
- printf("%s: %.3f %.3f %.3f\n", str, v[0], v[1], v[2]);
+ printf("%s: %.8f %.8f %.8f\n", str, v[0], v[1], v[2]);
}
void print_v4(const char *str, const float v[4])
{
- printf("%s: %.3f %.3f %.3f %.3f\n", str, v[0], v[1], v[2], v[3]);
+ printf("%s: %.8f %.8f %.8f %.8f\n", str, v[0], v[1], v[2], v[3]);
}
void print_vn(const char *str, const float v[], const int n)
@@ -732,7 +732,7 @@ void print_vn(const char *str, const float v[], const int n)
int i = 0;
printf("%s[%d]:", str, n);
while (i < n) {
- printf(" %.3f", v[i++]);
+ printf(" %.8f", v[i++]);
}
printf("\n");
}