diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-10-19 03:38:51 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-10-19 03:38:51 +0400 |
commit | fc8b0ed5e572d0e3e0ee68f5e0b2e7060acfa2cf (patch) | |
tree | db8c9034f01967f02c2eda49e48c4084fa818363 /source/blender/blenlib/intern/math_vector_inline.c | |
parent | 451607630edd2d1b1ef86bac2f62baa162546078 (diff) |
Move utility functions from mball to mathutils
Diffstat (limited to 'source/blender/blenlib/intern/math_vector_inline.c')
-rw-r--r-- | source/blender/blenlib/intern/math_vector_inline.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/math_vector_inline.c b/source/blender/blenlib/intern/math_vector_inline.c index ce5d9657c7f..b479b06da3f 100644 --- a/source/blender/blenlib/intern/math_vector_inline.c +++ b/source/blender/blenlib/intern/math_vector_inline.c @@ -235,6 +235,14 @@ MINLINE void swap_v4_v4(float a[4], float b[4]) SWAP(float, a[3], b[3]); } +/* 3 float -> vec */ +MINLINE void copy_v3_fl3(float v[3], float x, float y, float z) +{ + v[0] = x; + v[1] = y; + v[2] = z; +} + /********************************* Arithmetic ********************************/ MINLINE void add_v2_fl(float r[2], float f) |