|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.vecmath.Tuple2d javax.vecmath.Point2d
public class Point2d
A 2 element point that is represented by double precision doubleing point x,y coordinates.
Field Summary |
---|
Fields inherited from class javax.vecmath.Tuple2d |
---|
x, y |
Constructor Summary | |
---|---|
Point2d()
Constructs and initializes a Point2d to (0,0). |
|
Point2d(double[] p)
Constructs and initializes a Point2d from the specified array. |
|
Point2d(double x,
double y)
Constructs and initializes a Point2d from the specified xy coordinates. |
|
Point2d(Point2d p1)
Constructs and initializes a Point2d from the specified Point2d. |
|
Point2d(Point2f p1)
Constructs and initializes a Point2d from the specified Point2f. |
|
Point2d(Tuple2d t1)
Constructs and initializes a Point2d from the specified Tuple2d. |
|
Point2d(Tuple2f t1)
Constructs and initializes a Point2d from the specified Tuple2f. |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
double |
distance(Point2d p1)
Computes the distance between this point and point p1. |
double |
distanceL1(Point2d p1)
Computes the L-1 (Manhattan) distance between this point and point p1. |
double |
distanceLinf(Point2d p1)
Computes the L-infinite distance between this point and point p1. |
double |
distanceSquared(Point2d p1)
Computes the square of the distance between this point and point p1. |
Methods inherited from class javax.vecmath.Tuple2d |
---|
absolute, absolute, add, add, clamp, clamp, clampMax, clampMax, clampMin, clampMin, epsilonEquals, equals, equals, get, hashCode, interpolate, interpolate, negate, negate, scale, scale, scaleAdd, scaleAdd, set, set, set, set, sub, sub, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Point2d()
public Point2d(double[] p)
p
- the array of length 2 containing xy in orderpublic Point2d(double x, double y)
x
- the x coordinatey
- the y coordinatepublic Point2d(Point2d p1)
p1
- the Point2d containing the initialization x y datapublic Point2d(Point2f p1)
p1
- the Point2f containing the initialization x y datapublic Point2d(Tuple2d t1)
t1
- the Tuple2d containing the initialization x y datapublic Point2d(Tuple2f t1)
t1
- the Tuple2f containing the initialization x y dataMethod Detail |
---|
public java.lang.Object clone()
clone
in class Tuple2d
public final double distance(Point2d p1)
p1
- the other pointpublic final double distanceL1(Point2d p1)
p1
- the other pointpublic final double distanceLinf(Point2d p1)
p1
- the other pointpublic final double distanceSquared(Point2d p1)
p1
- the other point
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |