pythagoras.d

Interface ICircle

• Method Summary

All Methods
Modifier and Type Method and Description
`Circle` `clone()`
Returns a mutable copy of this circle.
`boolean` ```contains(double x, double 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(double x, double y)```
Translates the circle by the specified offset.
`Circle` ```offset(double x, double y, Circle result)```
Translates the circle by the specified offset and stores the result in the supplied object.
`double` `radius()`
`double` `x()`
Returns this circle's x-coordinate.
`double` `y()`
Returns this circle's y-coordinate.
• Method Detail

• x

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

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

`double 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(double x,
double y)```
Returns true if this circle contains the specified point.
• offset

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

```Circle offset(double x,
double 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.