java.lang.Object
org.htmlunit.util.geometry.Circle2D
- All Implemented Interfaces:
Shape2D
Simple 2D circle shape.
- Author:
- Ronald Brill
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionCircle2D(double centerX, double centerY, double radius) Creates a new circle with the given center and radius. -
Method Summary
-
Constructor Details
-
Circle2D
public Circle2D(double centerX, double centerY, double radius) Creates a new circle with the given center and radius.- Parameters:
centerX- the x coordinate of the centercenterY- the y coordinate of the centerradius- the radius
-
-
Method Details
-
contains
public boolean contains(double x, double y) Returns whether the specified point lies inside this shape. -
isEmpty
public boolean isEmpty()Returns whether this shape is empty. -
toString
-