Package com.graphbuilder.geom
Interface Point2d
- All Superinterfaces:
Point
- All Known Subinterfaces:
Point3d
The Point2d interface represents a two-dimensional point using double precision.
This interface is useful when writing general geometry algorithms.
-
Method Summary
Modifier and TypeMethodDescriptiondoublegetX()Returns the x-coordinate.doublegetY()Returns the y-coordinate.voidsetLocation(double x, double y) Sets the location of the point.Methods inherited from interface com.graphbuilder.curve.Point
getLocation, setLocation
-
Method Details
-
setLocation
void setLocation(double x, double y) Sets the location of the point. -
getX
double getX()Returns the x-coordinate. -
getY
double getY()Returns the y-coordinate.
-