23 #include "qgis_core.h" 88 static QgsCircle fromCenterDiameter(
const QgsPoint ¢er,
double diameter,
double azimuth = 0 );
142 double area()
const override;
169 mSemiMajorAxis = std::fabs( radius );
179 QVector<QgsPoint> northQuadrant()
const SIP_FACTORY;
188 bool contains(
const QgsPoint &point,
double epsilon = 1E-8 )
const;
192 QString
toString(
int pointPrecision = 17,
int radiusPrecision = 17,
int azimuthPrecision = 2 )
const override;
196 #endif // QGSCIRCLE_H void setRadius(double radius)
Set the radius of the circle.
A rectangle specified with double values.
static QgsEllipse fromCenterPoint(const QgsPoint &ptc, const QgsPoint &pt1)
Constructs an ellipse by a center point and a another point.
virtual void setSemiMajorAxis(const double semiMajorAxis)
Sets the semi-major axis.
double radius() const
Returns the radius of the circle.
static QgsEllipse fromExtent(const QgsPoint &pt1, const QgsPoint &pt2)
Constructs an ellipse by an extent (aka bounding box / QgsRectangle).
Point geometry type, with support for z-dimension and m-values.
virtual QString toString(int pointPrecision=17, int axisPrecision=17, int azimuthPrecision=2) const
returns a string representation of the ellipse.
virtual double area() const
The area of the ellipse.
Circular string geometry type.
virtual QgsRectangle boundingBox() const
Returns the minimal bounding box for the ellipse.
virtual double perimeter() const
The circumference of the ellipse using first approximation of Ramanujan.
virtual void setSemiMinorAxis(const double semiMinorAxis)
Sets the semi-minor axis.