From c80c1c6f5c90b446652cc866484b966bdcbc6b60 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 22 Oct 2013 03:31:21 +0000 Subject: add copy_v4_fl4, replace QUATSET macro. --- source/blender/blenlib/intern/math_vector_inline.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'source/blender/blenlib/intern') diff --git a/source/blender/blenlib/intern/math_vector_inline.c b/source/blender/blenlib/intern/math_vector_inline.c index b479b06da3f..0ce5855b16a 100644 --- a/source/blender/blenlib/intern/math_vector_inline.c +++ b/source/blender/blenlib/intern/math_vector_inline.c @@ -235,7 +235,7 @@ MINLINE void swap_v4_v4(float a[4], float b[4]) SWAP(float, a[3], b[3]); } -/* 3 float -> vec */ +/* float args -> vec */ MINLINE void copy_v3_fl3(float v[3], float x, float y, float z) { v[0] = x; @@ -243,6 +243,14 @@ MINLINE void copy_v3_fl3(float v[3], float x, float y, float z) v[2] = z; } +MINLINE void copy_v4_fl4(float v[4], float x, float y, float z, float w) +{ + v[0] = x; + v[1] = y; + v[2] = z; + v[3] = w; +} + /********************************* Arithmetic ********************************/ MINLINE void add_v2_fl(float r[2], float f) -- cgit v1.2.3