Module org.htmlunit

Class Point2D

java.lang.Object
org.htmlunit.util.geometry.Point2D

public class Point2D extends Object
Simple 2D point.
Author:
Ronald Brill
  • Constructor Details

    • Point2D

      public Point2D(double x, double y)
      Ctor.
      Parameters:
      x - x value
      y - y value
  • Method Details

    • getX

      public double getX()
      Returns:
      the x value
    • getY

      public double getY()
      Returns:
      the y value
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object