summaryrefslogtreecommitdiffstats
path: root/src/javax/vecmath/Point2d.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/javax/vecmath/Point2d.java')
-rw-r--r--src/javax/vecmath/Point2d.java22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/javax/vecmath/Point2d.java b/src/javax/vecmath/Point2d.java
index 570ee6e..9c16c2e 100644
--- a/src/javax/vecmath/Point2d.java
+++ b/src/javax/vecmath/Point2d.java
@@ -34,7 +34,7 @@ package javax.vecmath;
import java.lang.Math;
/**
- * A 2 element point that is represented by double precision floating
+ * A 2 element point that is represented by double precision floating
* point x,y coordinates.
*
*/
@@ -87,8 +87,8 @@ public class Point2d extends Tuple2d implements java.io.Serializable {
/**
* Constructs and initializes a Point2d from the specified Tuple2d.
* @param t1 the Tuple2d containing the initialization x y data
- */
- public Point2d(Tuple2d t1)
+ */
+ public Point2d(Tuple2d t1)
{
super(t1);
}
@@ -97,8 +97,8 @@ public class Point2d extends Tuple2d implements java.io.Serializable {
/**
* Constructs and initializes a Point2d from the specified Tuple2f.
* @param t1 the Tuple2f containing the initialization x y data
- */
- public Point2d(Tuple2f t1)
+ */
+ public Point2d(Tuple2f t1)
{
super(t1);
}
@@ -120,20 +120,20 @@ public class Point2d extends Tuple2d implements java.io.Serializable {
{
double dx, dy;
- dx = this.x-p1.x;
+ dx = this.x-p1.x;
dy = this.y-p1.y;
return dx*dx+dy*dy;
}
/**
* Computes the distance between this point and point p1.
- * @param p1 the other point
- */
+ * @param p1 the other point
+ */
public final double distance(Point2d p1)
{
double dx, dy;
- dx = this.x-p1.x;
+ dx = this.x-p1.x;
dy = this.y-p1.y;
return Math.sqrt(dx*dx+dy*dy);
}
@@ -151,8 +151,8 @@ public class Point2d extends Tuple2d implements java.io.Serializable {
/**
* Computes the L-infinite distance between this point and
- * point p1. The L-infinite distance is equal to
- * MAX[abs(x1-x2), abs(y1-y2)].
+ * point p1. The L-infinite distance is equal to
+ * MAX[abs(x1-x2), abs(y1-y2)].
* @param p1 the other point
*/
public final double distanceLinf(Point2d p1)