Revision: 2147
          http://synfig.svn.sourceforge.net/synfig/?rev=2147&view=rev
Author:   dooglus
Date:     2008-11-04 14:45:06 +0000 (Tue, 04 Nov 2008)

Log Message:
-----------
Use a single scalar product to calculate the distance of each point from the 
bline.

Modified Paths:
--------------
    synfig-core/trunk/src/modules/mod_gradient/curvegradient.cpp

Modified: synfig-core/trunk/src/modules/mod_gradient/curvegradient.cpp
===================================================================
--- synfig-core/trunk/src/modules/mod_gradient/curvegradient.cpp        
2008-11-04 14:44:38 UTC (rev 2146)
+++ synfig-core/trunk/src/modules/mod_gradient/curvegradient.cpp        
2008-11-04 14:45:06 UTC (rev 2147)
@@ -362,7 +362,7 @@
                        const Real mag(diff.inv_mag());
                        supersample=supersample*mag;
                        diff*=mag*mag;
-                       dist=((point_-origin)*diff-p1*diff);
+                       dist=(point_-origin - p1)*diff;
                }
        }
        else                                            // not perpendicular
@@ -380,7 +380,7 @@
                const Real mag(diff.inv_mag());
                supersample=supersample*mag;
                diff*=mag*mag;
-               dist=((point_-origin)*diff-p1*diff);
+               dist=(point_-origin - p1)*diff;
        }
 
        if(loop)


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to