summaryrefslogtreecommitdiffstats
path: root/src/javax/vecmath/Point2f.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/javax/vecmath/Point2f.java')
-rw-r--r--src/javax/vecmath/Point2f.java22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/javax/vecmath/Point2f.java b/src/javax/vecmath/Point2f.java
index a22e305..11272a5 100644
--- a/src/javax/vecmath/Point2f.java
+++ b/src/javax/vecmath/Point2f.java
@@ -34,7 +34,7 @@ package javax.vecmath;
import java.lang.Math;
/**
- * A 2 element point that is represented by single precision floating
+ * A 2 element point that is represented by single precision floating
* point x,y coordinates.
*
*/
@@ -87,8 +87,8 @@ public class Point2f extends Tuple2f implements java.io.Serializable {
/**
* Constructs and initializes a Point2f from the specified Tuple2d.
* @param t1 the Tuple2d containing the initialization x y z data
- */
- public Point2f(Tuple2d t1)
+ */
+ public Point2f(Tuple2d t1)
{
super(t1);
}
@@ -98,8 +98,8 @@ public class Point2f extends Tuple2f implements java.io.Serializable {
/**
* Constructs and initializes a Point2f from the specified Tuple2f.
* @param t1 the Tuple2f containing the initialization x y data
- */
- public Point2f(Tuple2f t1)
+ */
+ public Point2f(Tuple2f t1)
{
super(t1);
}
@@ -121,20 +121,20 @@ public class Point2f extends Tuple2f implements java.io.Serializable {
{
float 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 float distance(Point2f p1)
{
float dx, dy;
- dx = this.x-p1.x;
+ dx = this.x-p1.x;
dy = this.y-p1.y;
return (float) Math.sqrt(dx*dx+dy*dy);
}
@@ -152,8 +152,8 @@ public class Point2f extends Tuple2f 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 float distanceLinf(Point2f p1)