java.lang.Object
org.htmlunit.util.geometry.Point2D
Simple immutable 2D point.
- Author:
- Ronald Brill
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Point2D
public Point2D(double x, double y) Creates a new point with the given coordinates.- Parameters:
x- the x coordinatey- the y coordinate
-
-
Method Details
-
getX
public double getX()Returns the x coordinate.- Returns:
- the x coordinate
-
getY
public double getY()Returns the y coordinate.- Returns:
- the y coordinate
-
toString
-
equals
-
hashCode
public int hashCode()
-