edu.gwu.champAlg
Class Pointd

java.lang.Object
  extended by edu.gwu.champAlg.Pointd

public class Pointd
extends java.lang.Object

Pointd class implements a class corresponding to 2-dimensional points in the plane specified by type double x and y coordinates.


Field Summary
 double x
          Variables specifying a point instance.
 double y
           
 
Constructor Summary
Pointd()
          Default Pointd constructor: x=y=0.
Pointd(double x, double y)
          Pointd constructor.
 
Method Summary
 Pointd copy()
           
 boolean equals(java.lang.Object obj)
          Return true if the point instance equals the input point instance.
 boolean equals(Pointd p)
          Return true if the point instance equals point p.
 java.lang.String toString()
          Return string representation of Pointd instance.
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

x

public double x
Variables specifying a point instance.


y

public double y
Constructor Detail

Pointd

public Pointd(double x,
              double y)
Pointd constructor.


Pointd

public Pointd()
Default Pointd constructor: x=y=0.

Method Detail

toString

public java.lang.String toString()
Return string representation of Pointd instance.

Overrides:
toString in class java.lang.Object

equals

public boolean equals(Pointd p)
Return true if the point instance equals point p. Exact or inexact comparison is supported.


equals

public boolean equals(java.lang.Object obj)
Return true if the point instance equals the input point instance. Exact or inexact comparison is supported.

Overrides:
equals in class java.lang.Object

copy

public Pointd copy()