30 , radius_(std::abs(radius))
71 radius_ = std::abs(radius);
82 auto delta = point - center_;
83 return delta.
Length() <= radius_;
95 auto delta = point - center_;
96 return std::abs(delta.Length() - radius_) < epsilon;
109 return (center_ == circle.center_
110 && radius_ == circle.radius_);
122 return !(*
this == circle);
128 double radius_ = 0.0;
Class representing a circle.
Definition: circle.hpp:19
Circle(Point2D< double > center, double radius) noexcept
Create a circle.
Definition: circle.hpp:28
Point2D< double > Center() const noexcept
Gets the center of the circle.
Definition: circle.hpp:39
bool IsOnRadius(Point2D< double > point, double epsilon) const noexcept
Check whether a point is on the radius of a circle.
Definition: circle.hpp:93
double Radius() const noexcept
Gets the radius of the circle.
Definition: circle.hpp:59
bool operator==(const Circle &circle) const noexcept
Compares to an other circle.
Definition: circle.hpp:107
void SetRadius(double radius) noexcept
Sets the radius of the circle.
Definition: circle.hpp:69
bool Contains(Point2D< double > point) const noexcept
Check whether a point is inside or outside a circle.
Definition: circle.hpp:80
void SetCenter(Point2D< double > center) noexcept
Sets the center of the circle.
Definition: circle.hpp:49
bool operator!=(const Circle &circle) const noexcept
Compares to an other circle.
Definition: circle.hpp:120
T Length() const noexcept
Gets the length of the vector represented by this point object.
Definition: point_2d.hpp:126
Root namespace for the Image Manager interface.
Definition: c_barcode.h:15