Go to the documentation of this file.
5 #define _USE_MATH_DEFINES
10 #include "../tools/MathToolbox.hpp"
11 #include "../tools/errorhandler.hpp"
29 , m_rotation(rotation)
38 : m_center(x_center, y_center)
39 , m_radius(x_radius, y_radius)
40 , m_rotation(rotation)
96 value_type pointX = dCos * deltaX + dSin * deltaY;
97 value_type pointY = -dSin * deltaX + dCos * deltaY;
114 printWarning(
"Radius of Ellipse2D was given as negative value - silently using the absolute value instead.");
122 printWarning(
"Radius.getX() of Ellipse2D was given as NaN value - silently using Zero instead.");
127 printWarning(
"Radius.getY() of Ellipse2D was given as NaN value - silently using Zero instead.");
132 printWarning(
"Rotation of Ellipse2D was given as NaN value - silently using Zero instead.");
138 ") was outside of its [-pi,pi] definition range - silently normalizing it back into that range (" +
bool containsPoint(const Point2D &point) const
Returns true if the given Point2D is inside this ellipse or on its outline.
value_type getRotation() const
Ellipse2D()
Constructor for an all-zero Ellipse2D.
void setRadius(const Point2D &p)
Sets the radius of this Ellipse. Must be non-negative.
const Point2D & getRadius() const
Returns the radius of this Ellipse.
void setXY(value_type x, value_type y)
void printWarning(std::string message)
void verifyNumericRanges()
Point2D::value_type value_type
The type of the stored x, y coordinates, and the rotation.
std::string toString() const
std::string toString(UINT16 digits=2) const
Text output for debugging.
void setRotation(value_type r)
const Point2D & getCenter() const
Returns the center point of this Ellipse.
libsick_ldmrs
Author(s): SICK AG
, Martin Günther , Jochen Sprickerhof
autogenerated on Wed Oct 26 2022 02:11:57