The Circle class. Models a common circle.
More...
#include <circle.h>
The Circle class. Models a common circle.
◆ Circle() [1/2]
| bitsim::geometry::Circle::Circle |
( |
real_t | r | ) |
|
|
inlineexplicit |
Construct a circle centerd at the origin.
◆ Circle() [2/2]
| bitsim::geometry::Circle::Circle |
( |
real_t | r, |
|
|
const GeomPoint< 2 > & | center ) |
|
inline |
Construct a circle given its radius and center.
◆ area()
| real_t bitsim::geometry::Circle::area |
( |
| ) |
const |
|
inline |
◆ center()
| GeomPoint< 2 > bitsim::geometry::Circle::center |
( |
| ) |
const |
|
inlinenoexcept |
Returns the center of the circle.
◆ is_inside() [1/2]
Returns true if the given point lies inside the circle.
◆ is_inside() [2/2]
Returns true if the given spatial point (x, y) lies within the circle.
◆ radius()
| real_t bitsim::geometry::Circle::radius |
( |
| ) |
const |
|
inlinenoexcept |
Returns the radius of the circle.
The documentation for this class was generated from the following file:
- libs/bitsim/src/bitsim/geometry/shapes/circle.h