public class Circle extends AbstractCircle implements Serializable
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 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
|
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.
|
clone, contains, contains, equals, hashCode, intersects, offset, offset
public float x
public float y
public float radius
public Circle()
public Circle(float x, float y, float radius)
public Circle(XY p, float radius)
public Circle(ICircle c)
public Circle set(ICircle c)
public Circle set(float x, float y, float radius)
public float x()
ICircle
public float y()
ICircle
Copyright © 2017. All rights reserved.