com.partnersoft.v3x.graphics
Class DoublePoint
java.lang.Object
com.partnersoft.v3x.graphics.DoublePoint
public class DoublePoint
- extends java.lang.Object
A simple, double-precision 2D point object. Public access to x and y for
speed, also supports JavaBean access.
|
Field Summary |
double |
x
|
double |
y
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
x
public double x
y
public double y
DoublePoint
public DoublePoint()
DoublePoint
public DoublePoint(double x,
double y)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
equals
public boolean equals(java.lang.Object nother)
- Overrides:
equals in class java.lang.Object
getX
public double getX()
setX
public void setX(double newX)
getY
public double getY()
setY
public void setY(double newY)
distance
public double distance(DoublePoint nother)