78 if (std::pow((center_[0] -
point[0]), 2) + std::pow((center_[1] -
point[1]), 2) - r_ * r_ <
tol)
The Circle class. Models a common circle.
Definition circle.h:19
GeomPoint< 2 > center() const noexcept
Returns the center of the circle.
Definition circle.h:39
bool is_inside(const GeomPoint< 2 > &point, real_t tol=bitrl::consts::TOLERANCE) const
Returns true if the given point lies inside the circle.
Definition circle.h:75
real_t radius() const noexcept
Returns the radius of the circle.
Definition circle.h:34
real_t area() const
Returns the area.
Definition circle.h:73
Circle(real_t r)
Construct a circle centerd at the origin.
Definition circle.h:69
A class that describes a point with spacedim spatial dimension space.
Definition geom_point.h:22
const real_t PI
The PI constant.
Definition bitrl_consts.h:49
const real_t TOLERANCE
Tolerance used around the library.
Definition bitrl_consts.h:31
OutT resolve(const std::string &name, const std::map< std::string, std::any > &input)
Definition std_map_utils.h:25
Definition bitrl_consts.h:14
double real_t
real_t
Definition bitrl_types.h:23