toon-members
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Toon-members] tag/src five_point.cpp


From: Edward Rosten
Subject: [Toon-members] tag/src five_point.cpp
Date: Mon, 11 May 2009 19:56:53 +0000

CVSROOT:        /cvsroot/toon
Module name:    tag
Changes by:     Edward Rosten <edrosten>        09/05/11 19:56:53

Modified files:
        src            : five_point.cpp 

Log message:
        Fixed a very silly bug.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/tag/src/five_point.cpp?cvsroot=toon&r1=1.17&r2=1.18

Patches:
Index: five_point.cpp
===================================================================
RCS file: /cvsroot/toon/tag/src/five_point.cpp,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -b -r1.17 -r1.18
--- five_point.cpp      11 May 2009 17:54:40 -0000      1.17
+++ five_point.cpp      11 May 2009 19:56:53 -0000      1.18
@@ -358,7 +358,7 @@
 double point_line_distance_squared(Vector<3> point, const Vector<3>& line)
 {      
        //Normalize the point to [x0, y0, 1]
-       point.slice<0,2>() /= point[2];
+       point /= point[2];
 
        return sq(point * line) / (sq(line[0]) + sq(line[1]));
 }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]