Revision: 48249
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=48249
Author: jwilkins
Date: 2012-06-24 21:37:36 +0000 (Sun, 24 Jun 2012)
Log Message:
-----------
Added copy_v2_flfl and copy_v3_flflfl because copy_v3_flflfl(v, 1, 2, 3) looks
better than filling in an array using 3 statements.
Modified Paths:
--------------
branches/soc-2012-swiss_cheese/source/blender/blenlib/intern/math_vector_inline.h
Modified:
branches/soc-2012-swiss_cheese/source/blender/blenlib/intern/math_vector_inline.h
===================================================================
---
branches/soc-2012-swiss_cheese/source/blender/blenlib/intern/math_vector_inline.h
2012-06-24 20:21:57 UTC (rev 48248)
+++
branches/soc-2012-swiss_cheese/source/blender/blenlib/intern/math_vector_inline.h
2012-06-24 21:37:36 UTC (rev 48249)
@@ -98,6 +98,19 @@
r[3] = f;
}
+MINLINE void copy_v2_flfl(float r[2], float f0, float f1)
+{
+ r[0] = f0;
+ r[1] = f1;
+}
+
+MINLINE void copy_v3_flflfl(float r[3], float f0, float f1, float f2)
+{
+ r[0] = f0;
+ r[1] = f1;
+ r[2] = f2;
+}
+
/* short */
MINLINE void copy_v2_v2_char(char r[2], const char a[2])
{
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs