public interface P2DPointInterface
extends java.lang.Cloneable
Graphics2D| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Creates a new object of the same class and with the same contents as this object.
|
double |
distance(double PX,
double PY)
Returns the distance from this Point2D to a specified point.
|
double |
distance(java.awt.geom.Point2D pt)
Returns the distance from this Point2D to a specified Point2D.
|
double |
distanceSq(double PX,
double PY)
Returns the square of the distance from this Point2D to a specified point.
|
double |
distanceSq(java.awt.geom.Point2D pt)
Returns the square of the distance from this Point2D to a specified Point2D.
|
boolean |
equals(java.lang.Object obj)
Determines whether or not two points are equal.
|
boolean |
getFlag()
Get the flag.
|
double |
getX()
Returns the X coordinate of this Point2D in double precision.
|
double |
getY()
Returns the Y coordinate of this Point2D in double precision.
|
void |
setFlag(boolean valid)
Set the flag of the point.
|
void |
setLocation(double x,
double y)
Sets the location of this Point2D to the specified float coordinates.
|
void |
setLocation(java.awt.geom.Point2D p)
Sets the location of this Point2D to the same coordinates as the specified Point2D object.
|
java.lang.Object clone()
Point2Ddouble distance(double PX,
double PY)
Point2Ddouble distance(java.awt.geom.Point2D pt)
Point2Ddouble distanceSq(double PX,
double PY)
Point2Ddouble distanceSq(java.awt.geom.Point2D pt)
Point2Dboolean equals(java.lang.Object obj)
equals in class java.lang.ObjectPoint2Ddouble getX()
Point2Ddouble getY()
Point2Dvoid setLocation(double x,
double y)
Point2Dvoid setLocation(java.awt.geom.Point2D p)
Point2Dboolean getFlag()
void setFlag(boolean valid)
valid - true if the point should be valid.