computational.geometry
Class RealPoint
java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RealPoint
public RealPoint(double x,
double y)
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