35 , radius_(std::abs(radius))
76 radius_ = std::abs(radius);
87 auto delta = point - center_;
88 return delta.Length() <= radius_;
100 auto delta = point - center_;
101 return std::abs(delta.Length() - radius_) < epsilon;
112 return (center_ == circle.center_ && radius_ == circle.radius_);
123 return !(*
this == circle);
128 double radius_ = 0.0;
Point2D< double > Center() const noexcept
Gets the center of the circle.
Definition circle.hpp:44
bool IsOnRadius(Point2D< double > point, double epsilon) const noexcept
Check whether a point is on the radius of a circle.
Definition circle.hpp:98
double Radius() const noexcept
Gets the radius of the circle.
Definition circle.hpp:64
Circle() noexcept=default
Create default circle.
bool operator==(const Circle &circle) const noexcept
Compares to an other circle.
Definition circle.hpp:110
void SetRadius(double radius) noexcept
Sets the radius of the circle.
Definition circle.hpp:74
bool Contains(Point2D< double > point) const noexcept
Check whether a point is inside or outside a circle.
Definition circle.hpp:85
void SetCenter(Point2D< double > center) noexcept
Sets the center of the circle.
Definition circle.hpp:54
bool operator!=(const Circle &circle) const noexcept
Compares to an other circle.
Definition circle.hpp:121
Multi-purpose 2D vector class.
Definition point_2d.hpp:20
Root namespace for the Image Manager interface.
Definition c_bayer_to_rgb.h:17