Interface Point2d

All Superinterfaces:
Point
All Known Subinterfaces:
Point3d

public interface Point2d extends Point
The Point2d interface represents a two-dimensional point using double precision. This interface is useful when writing general geometry algorithms.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Returns the x-coordinate.
    double
    Returns the y-coordinate.
    void
    setLocation(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.