All Packages Class Hierarchy This Package Previous Next Index
Class javax.vecmath.Point2f
java.lang.Object
|
+----javax.vecmath.Tuple2f
|
+----javax.vecmath.Point2f
- public class Point2f
- extends javax.vecmath.Tuple2f
- implements java.io.Serializable
A 2 element point that is represented by single precision
floating point x,y coordinates.
- Version:
- specification 1.1, implementation $Revision: 1.9 $, $Date: 1999/03/04 09:16:33 $
- Author:
- Kenji hiranabe
-
Point2f()
- Constructs and initializes a Point2f to (0,0).
-
Point2f(float, float)
- Constructs and initializes a Point2f from the specified xy coordinates.
-
Point2f(float[])
- Constructs and initializes a Point2f from the specified array.
-
Point2f(Point2d)
- Constructs and initializes a Point2f from the specified Point2d.
-
Point2f(Point2f)
- Constructs and initializes a Point2f from the specified Point2f.
-
Point2f(Tuple2d)
- Constructs and initializes a Point2f from the specified Tuple2d.
-
Point2f(Tuple2f)
- Constructs and initializes a Point2f from the specified Tuple2f.
-
distance(Point2f)
- Computes the distance between this point and point p1.
-
distanceL1(Point2f)
- Computes the L-1 (Manhattan) distance between this point and point p1.
-
distanceLinf(Point2f)
- Computes the L-infinite distance between this point and point p1.
-
distanceSquared(Point2f)
- Computes the square of the distance between this point and point p1.
Point2f
public Point2f(float x,
float y)
- Constructs and initializes a Point2f from the specified xy coordinates.
- Parameters:
- x - the x coordinate
- y - the y coordinate
Point2f
public Point2f(float p[])
- Constructs and initializes a Point2f from the specified array.
- Parameters:
- p - the array of length 2 containing xy in order
Point2f
public Point2f(javax.vecmath.Point2f p1)
- Constructs and initializes a Point2f from the specified Point2f.
- Parameters:
- p1 - the Point2f containing the initialization x y data
Point2f
public Point2f(javax.vecmath.Point2d p1)
- Constructs and initializes a Point2f from the specified Point2d.
- Parameters:
- p1 - the Point2d containing the initialization x y data
Point2f
public Point2f(javax.vecmath.Tuple2f t1)
- Constructs and initializes a Point2f from the specified Tuple2f.
- Parameters:
- t1 - the Tuple2f containing the initialization x y data
Point2f
public Point2f(javax.vecmath.Tuple2d t1)
- Constructs and initializes a Point2f from the specified Tuple2d.
- Parameters:
- t1 - the Tuple2d containing the initialization x y data
Point2f
public Point2f()
- Constructs and initializes a Point2f to (0,0).
distanceSquared
public final float distanceSquared(javax.vecmath.Point2f p1)
- Computes the square of the distance between this point and point p1.
- Parameters:
- p1 - the other point
distance
public final float distance(javax.vecmath.Point2f p1)
- Computes the distance between this point and point p1.
- Parameters:
- p1 - the other point
distanceL1
public final float distanceL1(javax.vecmath.Point2f p1)
- Computes the L-1 (Manhattan) distance between this point and point p1.
The L-1 distance is equal to abs(x1-x2) + abs(y1-y2).
- Parameters:
- p1 - the other point
distanceLinf
public final float distanceLinf(javax.vecmath.Point2f p1)
- 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)].
- Parameters:
- p1 - the other point
All Packages Class Hierarchy This Package Previous Next Index