Index: source/blender/blenlib/intern/math_vector_inline.c |
=================================================================== |
--- source/blender/blenlib/intern/math_vector_inline.c (.../https://svn.blender.org/svnroot/bf-blender/trunk/blender) (revision 43172) |
+++ source/blender/blenlib/intern/math_vector_inline.c (working copy) |
@@ -429,6 +429,11 @@ |
/*********************************** Length **********************************/ |
+MINLINE float len_squared_v2(const float v[2]) |
+{ |
+ return v[0]*v[0] + v[1]*v[1]; |
+} |
+ |
MINLINE float len_v2(const float v[2]) |
{ |
return (float)sqrtf(v[0]*v[0] + v[1]*v[1]); |
@@ -448,7 +453,7 @@ |
return sqrtf(dot_v3v3(a, a)); |
} |
-MINLINE float len_squared_v2v2(const float a[3], const float b[3]) |
+MINLINE float len_squared_v2v2(const float a[2], const float b[2]) |
{ |
float d[2]; |