computational.geometry
Class RealPoint

java.lang.Object
  extended by computational.geometry.RealPoint
All Implemented Interfaces:
RealShape
Direct Known Subclasses:
SweepingLine.IntersectionPoint

public class RealPoint
extends java.lang.Object
implements RealShape


Constructor Summary
RealPoint(double x, double y)
           
 
Method Summary
 double distance2(RealPoint p)
           
 boolean equals(java.lang.Object obj)
           
 double getX()
           
 double getY()
           
 Shape toShape()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RealPoint

public RealPoint(double x,
                 double y)
Method Detail

distance2

public double distance2(RealPoint p)

equals

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

getX

public double getX()

getY

public double getY()

toShape

public Shape toShape()
Specified by:
toShape in interface RealShape

toString

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