[GRASS-SVN] r71781 - grass/trunk/lib/vector/diglib

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Nov 19 12:44:35 PST 2017


Author: mmetz
Date: 2017-11-19 12:44:34 -0800 (Sun, 19 Nov 2017)
New Revision: 71781

Modified:
   grass/trunk/lib/vector/diglib/line_dist.c
Log:
diglib: human readable code formatting

Modified: grass/trunk/lib/vector/diglib/line_dist.c
===================================================================
--- grass/trunk/lib/vector/diglib/line_dist.c	2017-11-19 20:43:53 UTC (rev 71780)
+++ grass/trunk/lib/vector/diglib/line_dist.c	2017-11-19 20:44:34 UTC (rev 71781)
@@ -76,9 +76,8 @@
 	tpz = z1;
     }
     else {
-	t = (dx * (x - x1) + dy * (y - y1) + dz * (z - z1)) / (dx * dx +
-							       dy * dy +
-							       dz * dz);
+	t = (dx * (x - x1) + dy * (y - y1) + dz * (z - z1)) / 
+	    (dx * dx + dy * dy + dz * dz);
 
 	if (t <= 0.0) {		/* go to x1,y1,z1 */
 	    if (t < 0.0) {



More information about the grass-commit mailing list