Represents a circle shape with position and radius.
Circle() → CircleCircle() → Circle
Circle(radius: float) → CircleCircle(radius: float) → Circle
Circle(pos: Vec2, radius: float) → CircleCircle(pos: Vec2, radius: float) → Circle
Circle(x: float, y: float, radius: float) → CircleCircle(x: float, y: float, radius: float) → Circle
Represents a circle shape with position and radius.
| Name | Description | Type |
|---|---|---|
area | Get the area of the circle. | float |
bottom | Get or set the y coordinate of the bottommost point of the circle. | float |
circumference | Get the circumference of the circle. | float |
diameter | Get or set the diameter of the circle. | float |
left | Get or set the x coordinate of the leftmost point of the circle. | float |
pos | The center position of the circle as a Vec2. | Vec2 |
radius | The radius of the circle. | float |
right | Get or set the x coordinate of the rightmost point of the circle. | float |
top | Get or set the y coordinate of the topmost point of the circle. | float |