Package org.openpatch.scratch
Class Circle
java.lang.Object
org.openpatch.scratch.Shape
org.openpatch.scratch.Circle
Represents a circle shape defined by its center and radius.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionCircle(double x, double y, double radius) Creates a circle with no specified position or size. -
Method Summary
Methods inherited from class org.openpatch.scratch.Shape
contains, draw, getBounds, intersects, invalidateCache, rotate, scale, translate
-
Constructor Details
-
Circle
public Circle(double x, double y, double radius) Creates a circle with no specified position or size.- Parameters:
x- the x-coordinate of the circle's centery- the y-coordinate of the circle's centerradius- the radius of the circle
-