7 #include "../BasicDatatypes.hpp" 78 Ellipse2D(value_type x_center, value_type y_center, value_type x_radius, value_type y_radius, value_type rotation = 0.0);
122 void setRadius(value_type x_length, value_type y_width);
177 #endif // ELLIPSE2D_H Point2D::value_type value_type
The type of the stored x, y coordinates, and the rotation.
const Point2D & getCenter() const
Returns the center point of this Ellipse.
void verifyNumericRanges()
bool containsPoint(const Point2D &point) const
Returns true if the given Point2D is inside this ellipse or on its outline.
virtual const UINT32 getUsedMemory() const
value_type getRotation() const
friend bool operator!=(const Ellipse2D &, const Ellipse2D &)
void setCenter(const Point2D &p)
Sets the center point of this Ellipse2D.
void setRotation(value_type r)
void setXY(value_type x, value_type y)
friend bool operator==(const Ellipse2D &, const Ellipse2D &)
double value_type
The type of the stored x and y coordinates.
A rotated 2-dimensional ellipse in the plane.
void setCenter(value_type x, value_type y)
Sets the center point of this 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.
Ellipse2D()
Constructor for an all-zero Ellipse2D.
std::string toString() const