public class DPoint
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
double |
x
The x-coordinate of this point.
|
double |
y
The y-coordinate of this point.
|
Constructor and Description |
---|
DPoint(double x,
double y)
Constructs a point.
|
DPoint(DPoint p)
Constructs a copy of the specified point.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
java.lang.String |
toString() |
public double x
public double y
public DPoint(double x, double y)
x
- the x-coordinate.y
- the y-coordinate.public DPoint(DPoint p)
p
- the point.