Class representing an ellipse. More...
#include <cvb/ellipse.hpp>
Public Member Functions | |
Ellipse (Point2D< double > center, double radiusA, double radiusB, Angle rotation) | |
Create an ellipse. More... | |
Point2D< double > | Center () const noexcept |
Gets the center of the ellipse. More... | |
void | SetCenter (Point2D< double > center) noexcept |
Sets the center of the ellipse. More... | |
double | RadiusA () const noexcept |
Gets the larger radius of the ellipse. More... | |
void | SetRadiusA (double radiusA) |
Sets the larger radius A of the ellipse. More... | |
double | RadiusB () const noexcept |
Gets the larger radius of the ellipse. More... | |
void | SetRadiusB (double radiusB) |
Sets the smaller radius of the ellipse. More... | |
Angle | Rotation () const noexcept |
Gets the angle by which the ellipse is rotated. More... | |
void | SetRotation (Angle rotation) noexcept |
Sets the angle by which the ellipse is rotated. More... | |
bool | operator== (const Ellipse &ellipse) const noexcept |
Compares to an other ellipse. More... | |
bool | operator!= (const Ellipse &ellipse) const noexcept |
Compares to an other ellipse. More... | |
Class representing an ellipse.
For the purpose of regression and other calculations.
Create an ellipse.
[in] | center | Center of the ellipse. |
[in] | radiusA | Larger radius of the ellipse. |
[in] | radiusB | Smaller radius of the ellipse. |
[in] | rotation | Angle by which the ellipse is rotated (auto trimmed). |
Does | not throw any exception. |
|
inlinenoexcept |
Gets the center of the ellipse.
Does | not throw any exception. |
|
inlinenoexcept |
Compares to an other ellipse.
[in] | ellipse | Other ellipse. |
Does | not throw any exception. |
|
inlinenoexcept |
Compares to an other ellipse.
[in] | ellipse | Other ellipse. |
Does | not throw any exception. |
|
inlinenoexcept |
Gets the larger radius of the ellipse.
Does | not throw any exception. |
|
inlinenoexcept |
Gets the larger radius of the ellipse.
Does | not throw any exception. |
|
inlinenoexcept |
Gets the angle by which the ellipse is rotated.
Does | not throw any exception. |
|
inlinenoexcept |
Sets the center of the ellipse.
[in] | center | The new center. |
Does | not throw any exception. |
|
inline |
Sets the larger radius A of the ellipse.
[in] | radiusA | The new radius, if negative the absolute value is used. |
Any | exception derived from std::exception including CvbException. |
|
inline |
Sets the smaller radius of the ellipse.
[in] | radiusB | The new radius, if negative the absolute value is used. |
Any | exception derived from std::exception including CvbException. |
|
inlinenoexcept |
Sets the angle by which the ellipse is rotated.
[in] | rotation | The new rotation angle (auto trimmed). |
Does | not throw any exception. |