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()
Point2D
double distance(double PX, double PY)
Point2D
double distance(java.awt.geom.Point2D pt)
Point2D
double distanceSq(double PX, double PY)
Point2D
double distanceSq(java.awt.geom.Point2D pt)
Point2D
boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Point2D
double getX()
Point2D
double getY()
Point2D
void setLocation(double x, double y)
Point2D
void setLocation(java.awt.geom.Point2D p)
Point2D
boolean getFlag()
void setFlag(boolean valid)
valid
- true if the point should be valid.