Package org.htmlunit.util.geometry
Class Circle2D
java.lang.Object
org.htmlunit.util.geometry.Circle2D
- All Implemented Interfaces:
Shape2D
Simple 2D shape circle.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final double
private final double
private final double
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
centerX_
private final double centerX_ -
centerY_
private final double centerY_ -
radius_
private final double radius_
-
-
Constructor Details
-
Circle2D
public Circle2D(double centerX, double centerY, double radius) Ctor.- Parameters:
centerX
- x value of the second centercenterY
- y value of the second centerradius
- the radius
-
-
Method Details
-
contains
public boolean contains(double x, double y) -
isEmpty
public boolean isEmpty() -
toString
-