Class representing a circle. More...
#include <cvb/circle.hpp>
Public Member Functions | |
| Circle () noexcept=default | |
| Create default circle. | |
| Circle (Point2D< double > center, double radius) noexcept | |
| Create a circle. | |
| Point2D< double > | Center () const noexcept |
| Gets the center of the circle. | |
| void | SetCenter (Point2D< double > center) noexcept |
| Sets the center of the circle. | |
| double | Radius () const noexcept |
| Gets the radius of the circle. | |
| void | SetRadius (double radius) noexcept |
| Sets the radius of the circle. | |
| bool | Contains (Point2D< double > point) const noexcept |
| Check whether a point is inside or outside a circle. | |
| bool | IsOnRadius (Point2D< double > point, double epsilon) const noexcept |
| Check whether a point is on the radius of a circle. | |
| bool | operator== (const Circle &circle) const noexcept |
| Compares to an other circle. | |
| bool | operator!= (const Circle &circle) const noexcept |
| Compares to an other circle. | |
Class representing a circle.
For the purpose of regression and other calculations.
|
defaultnoexcept |
Create default circle.
All members are zero, so the circle is invalid!
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. |