pythagoras.d

## Class Circle

• All Implemented Interfaces:
Serializable, ICircle

```public class Circle
extends AbstractCircle
implements Serializable```
Represents a circle on a plane.
Serialized Form
• ### Field Summary

Fields
Modifier and Type Field and Description
`double` `radius`
`double` `x`
The x-coordinate of the circle.
`double` `y`
The y-coordinate of the circle.
• ### Constructor Summary

Constructors
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
• ### Method Summary

All Methods
Modifier and Type Method and Description
`double` `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.
• ### Methods inherited from class pythagoras.d.AbstractCircle

`clone, contains, contains, equals, hashCode, intersects, offset, offset`
• ### Methods inherited from class java.lang.Object

`getClass, notify, notifyAll, toString, wait, wait, wait`
• ### Field Detail

• #### x

`public double x`
The x-coordinate of the circle.
• #### y

`public double y`
The y-coordinate of the circle.

`public double radius`
• ### Constructor Detail

• #### Circle

`public Circle()`
Constructs a circle at (0, 0) with radius 0
• #### Circle

```public Circle(double x,
double y,
Constructs a circle with the specified properties
• #### Circle

```public Circle(XY p,
Constructs a circle with the specified properties
• #### Circle

`public Circle(ICircle c)`
Constructs a circle with properties equal to the supplied circle.
• ### Method Detail

• #### set

`public Circle set(ICircle c)`
Sets the properties of this circle to be equal to those of the supplied circle.
Returns:
a reference to this this, for chaining.
• #### set

```public Circle set(double x,
double y,
Sets the properties of this circle to the supplied values.
Returns:
a reference to this this, for chaining.
• #### x

`public double x()`
Description copied from interface: `ICircle`
Returns this circle's x-coordinate.
Specified by:
`x` in interface `ICircle`
• #### y

`public double y()`
Description copied from interface: `ICircle`
Returns this circle's y-coordinate.
Specified by:
`y` in interface `ICircle`
`public double radius()`
Description copied from interface: `ICircle`
`radius` in interface `ICircle`