|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sencha.gxt.core.client.util.PrecisePoint
public class PrecisePoint
Represents a double precision point on the (x, y) coordinate plane.
| Constructor Summary | |
|---|---|
PrecisePoint()
Creates a double precision point. |
|
PrecisePoint(double x,
double y)
Creates a double precision point with the given x and y coordinates. |
|
PrecisePoint(PrecisePoint point)
Creates a copy of the given PrecisePoint. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
boolean |
equalsNoPrecision(java.lang.Object obj,
double tolerance)
Indicates whether or not the given object is equal to the rounded values of this PrecisePoint. |
double |
getX()
Returns the x coordinate of the point. |
double |
getY()
Returns the y coordinate of the point. |
int |
hashCode()
|
void |
setX(double x)
Sets the x-coordinate. |
void |
setY(double y)
Sets the y-coordinate |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PrecisePoint()
public PrecisePoint(double x,
double y)
x - the x coordinate of the pointy - the y coordinate of the pointpublic PrecisePoint(PrecisePoint point)
PrecisePoint.
point - the point to be copied| Method Detail |
|---|
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
public boolean equalsNoPrecision(java.lang.Object obj,
double tolerance)
PrecisePoint.
obj - the reference object with which to comparetolerance - the tolerance of the difference between the points
public double getX()
public double getY()
public void setX(double x)
x - the x-coordinatepublic void setY(double y)
y - the y-coordinatepublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||