133 double epsilon = 1E-8,
176 static QVector<QgsCircle> from3TangentsMulti(
const QgsPoint &pt1_tg1,
const QgsPoint &pt2_tg1,
179 double epsilon = 1E-8,
258 int outerTangents(
const QgsCircle &other,
283 int innerTangents(
const QgsCircle &other,
314 mSemiMajorAxis = std::fabs( radius );
324 QVector<QgsPoint> northQuadrant() const
SIP_FACTORY;
333 bool contains( const
QgsPoint &point,
double epsilon = 1E-8 ) const;
337 QString toString(
int pointPrecision = 17,
int radiusPrecision = 17,
int azimuthPrecision = 2 ) const override;
370 SIP_PYOBJECT __repr__();
372 QString str = QStringLiteral(
"<QgsCircle: %1>" ).arg( sipCpp->toString() );
373 sipRes = PyUnicode_FromString( str.toUtf8().constData() );
Abstract base class for all geometries.
double radius() const
Returns the radius of the circle.
void setRadius(double radius)
Sets the radius of the circle.
Circular string geometry type.
static QgsEllipse fromCenterPoint(const QgsPoint &ptc, const QgsPoint &pt1)
Constructs an ellipse by a center point and a another point.
virtual double perimeter() const
The circumference of the ellipse using first approximation of Ramanujan.
virtual void setSemiMinorAxis(double semiMinorAxis)
Sets the semi-minor axis.
static QgsEllipse fromExtent(const QgsPoint &pt1, const QgsPoint &pt2)
Constructs an ellipse by an extent (aka bounding box / QgsRectangle).
virtual double area() const
The area of the ellipse.
virtual void setSemiMajorAxis(double semiMajorAxis)
Sets the semi-major axis.
A class to represent a 2D point.
Point geometry type, with support for z-dimension and m-values.
A rectangle specified with double values.