#include "pyramidworks/geometry/circle.h"
A circle, one type of GeometricShape.
pyramidworks::geometry::Circle::Circle |
( |
double |
_radius | ) |
|
|
inline |
Returns a bounding box for this shape.
The box is at the shape's position and offset
- Parameters
-
position | The absolute position for this shape. |
- Returns
- A 2D Box around this shape
Implements pyramidworks::geometry::GeometricShape.
Checks if this shape intersects another shape.
- Parameters
-
this_pos | The absolute position for this shape. |
obj | The shape to compare with. |
that_pos | The absolute position of the other shape. |
- Returns
- True if there's an intersection.
Implements pyramidworks::geometry::GeometricShape.
Checks if there's an intersection with a Rect.
- Parameters
-
this_pos | The absolute position for this shape. |
obj | The shape to compare with. |
that_pos | The absolute position of the other shape. |
- Returns
- True if there's an intersection.
Implements pyramidworks::geometry::GeometricShape.
Checks if there's an intersection with a Circle.
- Parameters
-
this_pos | The absolute position for this shape. |
obj | The shape to compare with. |
that_pos | The absolute position of the other shape. |
- Returns
- True if there's an intersection.
Implements pyramidworks::geometry::GeometricShape.
Checks if there's an intersection with a Convex Polygon.
- Parameters
-
this_pos | The absolute position for this shape. |
obj | The shape to compare with. |
that_pos | The absolute position of the other shape. |
- Returns
- True if there's an intersection.
Implements pyramidworks::geometry::GeometricShape.
double pyramidworks::geometry::Circle::radius |
( |
| ) |
const |
|
inline |
Getter for the radius.
- Returns
- A double.
void pyramidworks::geometry::Circle::set_radius |
( |
double |
_radius | ) |
|
|
inline |
Setter the radius.
- Parameters
-
The documentation for this class was generated from the following file:
- modules/ugdk-core/include/pyramidworks/geometry/circle.h