Class representing a circle. More...
#include <cvb/circle.hpp>
Public Member Functions | |
Circle (Point2D< double > center, double radius) noexcept | |
Create a circle. More... | |
Point2D< double > | Center () const noexcept |
Gets the center of the circle. More... | |
void | SetCenter (Point2D< double > center) noexcept |
Sets the center of the circle. More... | |
double | Radius () const noexcept |
Gets the radius of the circle. More... | |
void | SetRadius (double radius) noexcept |
Sets the radius of the circle. More... | |
bool | Contains (Point2D< double > point) const noexcept |
Check whether a point is inside or outside a circle. More... | |
bool | IsOnRadius (Point2D< double > point, double epsilon) const noexcept |
Check whether a point is on the radius of a circle. More... | |
bool | operator== (const Circle &circle) const noexcept |
Compares to an other circle. More... | |
bool | operator!= (const Circle &circle) const noexcept |
Compares to an other circle. More... | |
Class representing a circle.
For the purpose of regression and other calculations.
Create a circle.
[in] | center | Center of the circle. |
[in] | radius | Radius of the circle. |
Does | not throw any exception. |
|
inlinenoexcept |
Gets the center of the circle.
Does | not throw any exception. |
|
inlinenoexcept |
Check whether a point is inside or outside a circle.
[in] | point | Point to be checked. |
Does | not throw any exception. |
|
inlinenoexcept |
Check whether a point is on the radius of a circle.
[in] | point | Point to be checked. |
[in] | epsilon | Maximum allowable deviation. |
Does | not throw any exception. |
|
inlinenoexcept |
Compares to an other circle.
[in] | circle | Other circle. |
Does | not throw any exception. |
|
inlinenoexcept |
Compares to an other circle.
[in] | circle | Other circle. |
Does | not throw any exception. |
|
inlinenoexcept |
Gets the radius of the circle.
Does | not throw any exception. |
|
inlinenoexcept |
Sets the center of the circle.
[in] | center | The new center. |
Does | not throw any exception. |
|
inlinenoexcept |
Sets the radius of the circle.
[in] | radius | If the radius is negative, the absolute value is used. |
Does | not throw any exception. |