pythagoras.f

## Interface ICircle

• ### Method Summary

All Methods
Modifier and Type Method and Description
`Circle` `clone()`
Returns a mutable copy of this circle.
`boolean` ```contains(float x, float y)```
Returns true if this circle contains the specified point.
`boolean` `contains(XY p)`
Returns true if this circle contains the supplied point.
`boolean` `intersects(ICircle c)`
Returns true if this circle intersects the supplied circle.
`Circle` ```offset(float x, float y)```
Translates the circle by the specified offset.
`Circle` ```offset(float x, float y, Circle result)```
Translates the circle by the specified offset and stores the result in the supplied object.
`float` `radius()`
`float` `x()`
Returns this circle's x-coordinate.
`float` `y()`
Returns this circle's y-coordinate.
• ### Method Detail

• #### x

`float x()`
Returns this circle's x-coordinate.
• #### y

`float y()`
Returns this circle's y-coordinate.

`float radius()`
• #### intersects

`boolean intersects(ICircle c)`
Returns true if this circle intersects the supplied circle.
• #### contains

`boolean contains(XY p)`
Returns true if this circle contains the supplied point.
• #### contains

```boolean contains(float x,
float y)```
Returns true if this circle contains the specified point.
• #### offset

```Circle offset(float x,
float y)```
Translates the circle by the specified offset.
Returns:
a new Circle containing the result.
• #### offset

```Circle offset(float x,
float y,
Circle result)```
Translates the circle by the specified offset and stores the result in the supplied object.
Returns:
a reference to the result, for chaining.
• #### clone

`Circle clone()`
Returns a mutable copy of this circle.