public class Circle extends AbstractCircle implements Serializable
Modifier and Type | Field and Description |
---|---|
double |
radius
The radius of the circle.
|
double |
x
The x-coordinate of the circle.
|
double |
y
The y-coordinate of the circle.
|
Constructor and Description |
---|
Circle()
Constructs a circle at (0, 0) with radius 0
|
Circle(double x,
double y,
double radius)
Constructs a circle with the specified properties
|
Circle(ICircle c)
Constructs a circle with properties equal to the supplied circle.
|
Circle(XY p,
double radius)
Constructs a circle with the specified properties
|
Modifier and Type | Method and Description |
---|---|
double |
radius()
Returns this circle's radius.
|
Circle |
set(double x,
double y,
double radius)
Sets the properties of this circle to the supplied values.
|
Circle |
set(ICircle c)
Sets the properties of this circle to be equal to those of the supplied circle.
|
double |
x()
Returns this circle's x-coordinate.
|
double |
y()
Returns this circle's y-coordinate.
|
clone, contains, contains, equals, hashCode, intersects, offset, offset
public double x
public double y
public double radius
public Circle()
public Circle(double x, double y, double radius)
public Circle(XY p, double radius)
public Circle(ICircle c)
public Circle set(ICircle c)
public Circle set(double x, double y, double radius)
public double x()
ICircle
public double y()
ICircle
Copyright © 2017. All rights reserved.