6#include <Kanoop/geometry/point.h>
24 _center(center), _semiAxisA(semiAxisA), _semiAxisB(semiAxisB) {}
77 double _semiAxisA = 0;
78 double _semiAxisB = 0;
A 2D ellipse defined by a centre point and two semi-axis lengths.
double semiAxisB() const
Return the vertical semi-axis length.
double semiAxisA() const
Return the horizontal semi-axis length.
void setCenter(const Point &value)
Set the centre of the ellipse.
void setSemiAxisB(double value)
Set the vertical semi-axis length.
Point center() const
Return the centre of the ellipse.
void setSemiAxisA(double value)
Set the horizontal semi-axis length.
Ellipse()
Default constructor — creates a degenerate ellipse at the origin.
double radiusAtAngle(double angle) const
radiusAtAngle
Ellipse(const Point ¢er, double semiAxisA, double semiAxisB)
Construct an ellipse from a centre point and semi-axis lengths.
QString toString() const
Format the ellipse as a human-readable string.
A 2D floating-point point extending QPointF with movement and spatial query methods.