You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by tn...@apache.org on 2012/10/02 22:15:01 UTC

svn commit: r1393153 - in /commons/proper/math/trunk/src/main/java/org/apache/commons/math3/geometry/euclidean/twod: Line.java Segment.java

Author: tn
Date: Tue Oct  2 20:15:00 2012
New Revision: 1393153

URL: http://svn.apache.org/viewvc?rev=1393153&view=rev
Log:
Remove trailing spaces, added missing javadoc tags.

Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math3/geometry/euclidean/twod/Line.java
    commons/proper/math/trunk/src/main/java/org/apache/commons/math3/geometry/euclidean/twod/Segment.java

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math3/geometry/euclidean/twod/Line.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/geometry/euclidean/twod/Line.java?rev=1393153&r1=1393152&r2=1393153&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math3/geometry/euclidean/twod/Line.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math3/geometry/euclidean/twod/Line.java Tue Oct  2 20:15:00 2012
@@ -264,10 +264,10 @@ public class Line implements Hyperplane<
     }
 
     /** Compute the distance between the instance and a point.
-     *  This is a shortcut for invoking FastMath.abs(getOffset(p)), 
-     *  and provides consistency with what is in the 
-     *  org.apache.commons.math3.geometry.euclidean.threed.Line class.
-     *  
+     * <p>This is a shortcut for invoking FastMath.abs(getOffset(p)),
+     * and provides consistency with what is in the
+     * org.apache.commons.math3.geometry.euclidean.threed.Line class.</p>
+     *
      * @param p to check
      * @return distance between the instance and the point
      */

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math3/geometry/euclidean/twod/Segment.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math3/geometry/euclidean/twod/Segment.java?rev=1393153&r1=1393152&r2=1393153&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math3/geometry/euclidean/twod/Segment.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math3/geometry/euclidean/twod/Segment.java Tue Oct  2 20:15:00 2012
@@ -65,15 +65,19 @@ public class Segment {
         return line;
     }
 
-    /**
-     * Calculates the shortest distance from a point to this line segment.  
+    /** Calculates the shortest distance from a point to this line segment.
      * <p>
-     * If the perpendicular extension from the point to the line does not 
-     * cross in the bounds of the line segment, the shortest distance to 
+     * If the perpendicular extension from the point to the line does not
+     * cross in the bounds of the line segment, the shortest distance to
      * the two end points will be returned.
      * </p>
-     * 
-     * Algorithm adapted from: http://www.codeguru.com/forum/printthread.php?s=cc8cf0596231f9a7dba4da6e77c29db3&t=194400&pp=15&page=1 
+     *
+     * Algorithm adapted from:
+     * <a href="http://www.codeguru.com/forum/printthread.php?s=cc8cf0596231f9a7dba4da6e77c29db3&t=194400&pp=15&page=1">
+     * Thread @ Codeguru</a>
+     *
+     * @param p to check
+     * @return distance between the instance and the point
      */
     public double distance(final Vector2D p) {
         final double deltaX = end.getX() - start.getX();