From b18794c3b67e75fc4eedcfed45686cc1efa279e8 Mon Sep 17 00:00:00 2001 From: Nicholas Bishop Date: Wed, 29 Feb 2012 04:17:26 +0000 Subject: Add blenlib function to initialize vectors from a single float. The new functions are copy_v2_fl, copy_v3_fl, and copy_v4_fl. --- source/blender/blenlib/BLI_math_vector.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/blender/blenlib/BLI_math_vector.h') diff --git a/source/blender/blenlib/BLI_math_vector.h b/source/blender/blenlib/BLI_math_vector.h index af8b52a7edf..7a39fc8b8ce 100644 --- a/source/blender/blenlib/BLI_math_vector.h +++ b/source/blender/blenlib/BLI_math_vector.h @@ -50,6 +50,10 @@ MINLINE void copy_v2_v2(float r[2], const float a[2]); MINLINE void copy_v3_v3(float r[3], const float a[3]); MINLINE void copy_v4_v4(float r[4], const float a[4]); +MINLINE void copy_v2_fl(float r[2], float f); +MINLINE void copy_v3_fl(float r[3], float f); +MINLINE void copy_v4_fl(float r[4], float f); + MINLINE void swap_v2_v2(float a[2], float b[2]); MINLINE void swap_v3_v3(float a[3], float b[3]); MINLINE void swap_v4_v4(float a[4], float b[4]); -- cgit v1.2.3