1#ifndef BITSIM_GEOMETRY_SHAPES_CIRCLE_H
2#define BITSIM_GEOMETRY_SHAPES_CIRCLE_H
78 if (std::pow((center_[0] - point[0]), 2) + std::pow((center_[1] - point[1]), 2) - r_ * r_ < tol)
The basic types of bitsim. Code outside this file names Eigen's matrix and vector types only through ...
Circle(real_t r)
Construct a circle centerd at the origin.
Definition circle.h:69
bool is_inside(const GeomPoint< 2 > &point, real_t tol=bitsim::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
GeomPoint< 2 > center() const noexcept
Returns the center of the circle.
Definition circle.h:39
A class that describes a point with spacedim spatial dimension space.
Definition geom_point.h:22
const real_t PI
The PI constant.
Definition bitsim_consts.h:63
const real_t TOLERANCE
Tolerance used around the library.
Definition bitsim_consts.h:26
Definition generic_line.h:16
Definition dc_motor_backend_base.h:9
double real_t
real_t
Definition bitsim_types.h:20