QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
23 #include "qgis_core.h"
195 int outerTangents(
const QgsCircle &other,
220 int innerTangents(
const QgsCircle &other,
251 mSemiMajorAxis = std::fabs( radius );
261 QVector<QgsPoint> northQuadrant() const
SIP_FACTORY;
270 bool contains( const
QgsPoint &point,
double epsilon = 1E-8 ) const;
274 QString toString(
int pointPrecision = 17,
int radiusPrecision = 17,
int azimuthPrecision = 2 ) const override;
277 SIP_PYOBJECT __repr__();
279 QString str = QStringLiteral(
"<QgsCircle: %1>" ).arg( sipCpp->toString() );
280 sipRes = PyUnicode_FromString( str.toUtf8().constData() );
285 #endif // QGSCIRCLE_H
void setRadius(double radius) SIP_HOLDGIL
Sets the radius of the circle.
virtual double area() const SIP_HOLDGIL
The area of the ellipse.
virtual void setSemiMinorAxis(double semiMinorAxis) SIP_HOLDGIL
Sets the semi-minor axis.
Point geometry type, with support for z-dimension and m-values.
A rectangle specified with double values.
Circular string geometry type.
static QgsEllipse fromExtent(const QgsPoint &pt1, const QgsPoint &pt2) SIP_HOLDGIL
Constructs an ellipse by an extent (aka bounding box / QgsRectangle).
double radius() const SIP_HOLDGIL
Returns the radius of the circle.
A class to represent a 2D point.
static QgsEllipse fromCenterPoint(const QgsPoint &ptc, const QgsPoint &pt1) SIP_HOLDGIL
Constructs an ellipse by a center point and a another point.
virtual double perimeter() const SIP_HOLDGIL
The circumference of the ellipse using first approximation of Ramanujan.
virtual void setSemiMajorAxis(double semiMajorAxis) SIP_HOLDGIL
Sets the semi-major axis.