diff options
Diffstat (limited to 'source/blender/blenlib/BLI_math_vector.h')
-rw-r--r-- | source/blender/blenlib/BLI_math_vector.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_math_vector.h b/source/blender/blenlib/BLI_math_vector.h index 9b73ca553d6..e6e46a4d8cd 100644 --- a/source/blender/blenlib/BLI_math_vector.h +++ b/source/blender/blenlib/BLI_math_vector.h @@ -266,6 +266,11 @@ void print_v3(const char *str, const float a[3]); void print_v4(const char *str, const float a[4]); void print_vn(const char *str, const float v[], const int n); +#define print_v2_id(v) print_v2(STRINGIFY(v), v) +#define print_v3_id(v) print_v3(STRINGIFY(v), v) +#define print_v4_id(v) print_v4(STRINGIFY(v), v) +#define print_vn_id(v, n) print_vn(STRINGIFY(v), v, n) + MINLINE void normal_short_to_float_v3(float r[3], const short n[3]); MINLINE void normal_float_to_short_v3(short r[3], const float n[3]); |