|
bitsim
Model, simulate, estimate and control robots in C++
|
The Circle class. Models a common circle. More...
#include <circle.h>
Public Member Functions | |
| Circle (real_t r) | |
| Construct a circle centerd at the origin. | |
| Circle (real_t r, const GeomPoint< 2 > ¢er) | |
| Construct a circle given its radius and center. | |
| real_t | radius () const noexcept |
| Returns the radius of the circle. | |
| GeomPoint< 2 > | center () const noexcept |
| Returns the center of the circle. | |
| real_t | area () const |
| Returns the area. | |
| bool | is_inside (const GeomPoint< 2 > &point, real_t tol=bitsim::consts::TOLERANCE) const |
| Returns true if the given point lies inside the circle. | |
| bool | is_inside (const real_t x, const real_t y, real_t tol=bitsim::consts::TOLERANCE) const |
| Returns true if the given spatial point (x, y) lies within the circle. | |
The Circle class. Models a common circle.
|
inlineexplicit |
Construct a circle centerd at the origin.
|
inline |
Construct a circle given its radius and center.
|
inline |
Returns the area.
|
inlinenoexcept |
Returns the center of the circle.
|
inline |
Returns true if the given point lies inside the circle.
|
inline |
Returns true if the given spatial point (x, y) lies within the circle.
|
inlinenoexcept |
Returns the radius of the circle.