|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.geom.Point2D
java.awt.geom.Point2D.Double
util.Point2DDouble
public class Point2DDouble
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.awt.geom.Point2D |
---|
Point2D.Double, Point2D.Float |
Field Summary |
---|
Fields inherited from class java.awt.geom.Point2D.Double |
---|
x, y |
Constructor Summary | |
---|---|
Point2DDouble()
|
|
Point2DDouble(double x,
double y)
|
|
Point2DDouble(Point2DDouble pt)
|
Method Summary | |
---|---|
double |
getLength()
Returns the length of the vector from the origin to this point. |
void |
multBy(double a)
|
void |
setLocation(Point2DDouble pt)
|
void |
translate(double x,
double y)
|
void |
translate(Point2DDouble delta)
|
Point2DDouble |
unitVecTo(Point2DDouble pt)
Returns a unit vector in the direction from this pt to the given pt |
Point2DDouble |
vecTo(Point2DDouble pt)
Returns a vector pointing from this point to the given pt. |
Methods inherited from class java.awt.geom.Point2D.Double |
---|
getX, getY, setLocation, toString |
Methods inherited from class java.awt.geom.Point2D |
---|
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, equals, hashCode, setLocation |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Point2DDouble()
public Point2DDouble(double x, double y)
public Point2DDouble(Point2DDouble pt)
Method Detail |
---|
public void translate(double x, double y)
public void translate(Point2DDouble delta)
public void setLocation(Point2DDouble pt)
public void multBy(double a)
public Point2DDouble unitVecTo(Point2DDouble pt)
public Point2DDouble vecTo(Point2DDouble pt)
public double getLength()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |