pythagoras.f

## Class Circle

• All Implemented Interfaces:
Serializable, ICircle

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

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

Constructors
Constructor and Description
`Circle()`
Constructs a circle at (0, 0) with radius 0
```Circle(float x, float y, float radius)```
Constructs a circle with the specified properties
`Circle(ICircle c)`
Constructs a circle with properties equal to the supplied circle.
```Circle(XY p, float radius)```
Constructs a circle with the specified properties
• ### Method Summary

All Methods
Modifier and Type Method and Description
`float` `radius()`
Returns this circle's radius.
`Circle` ```set(float x, float y, float 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.
`float` `x()`
Returns this circle's x-coordinate.
`float` `y()`
Returns this circle's y-coordinate.
• ### Methods inherited from class pythagoras.f.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 float x`
The x-coordinate of the circle.
• #### y

`public float y`
The y-coordinate of the circle.
• #### radius

`public float radius`
The radius of the circle.
• ### Constructor Detail

• #### Circle

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

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

```public Circle(XY p,
float radius)```
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(float x,
float y,
float radius)```
Sets the properties of this circle to the supplied values.
Returns:
a reference to this this, for chaining.
• #### x

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

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

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

Copyright © 2017. All rights reserved.