com.graphbuilder.geom
Interface Point2d

All Known Subinterfaces:
Point3d

public interface Point2d

The Point2d interface represents a two-dimensional point using double precision. This interface is useful when writing general geometry algorithms.


Method Summary
 double getX()
          Returns the x-coordinate.
 double getY()
          Returns the y-coordinate.
 void setLocation(double x, double y)
          Sets the location of the point.
 

Method Detail

setLocation

public void setLocation(double x,
                        double y)
Sets the location of the point.


getX

public double getX()
Returns the x-coordinate.


getY

public double getY()
Returns the y-coordinate.