edu.mines.jtk.mosaic
Class DPoint

java.lang.Object
  extended by edu.mines.jtk.mosaic.DPoint

public class DPoint
extends java.lang.Object

A double-precision point (x,y).

Version:
2004.12.11
Author:
Dave Hale, Colorado School of Mines

Field Summary
 double x
          The x-coordinate of this point.
 double y
          The y-coordinate of this point.
 
Constructor Summary
DPoint(double x, double y)
          Constructs a point.
DPoint(DPoint p)
          Constructs a copy of the specified point.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

x

public double x
The x-coordinate of this point.


y

public double y
The y-coordinate of this point.

Constructor Detail

DPoint

public DPoint(double x,
              double y)
Constructs a point.

Parameters:
x - the x-coordinate.
y - the y-coordinate.

DPoint

public DPoint(DPoint p)
Constructs a copy of the specified point.

Parameters:
p - the point.
Method Detail

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object