Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(127)

Unified Diff: source/blender/blenlib/intern/math_vector_inline.c

Issue 5306077: Uv tools Base URL: https://svn.blender.org/svnroot/bf-blender/trunk/blender/
Patch Set: patch with changes so far. Created 12 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « source/blender/blenlib/BLI_math_vector.h ('k') | source/blender/blenloader/intern/readfile.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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];
« no previous file with comments | « source/blender/blenlib/BLI_math_vector.h ('k') | source/blender/blenloader/intern/readfile.c » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b