134 double epsilon = 1E-8,
177 static QVector<QgsCircle> from3TangentsMulti(
const QgsPoint &pt1_tg1,
const QgsPoint &pt2_tg1,
180 double epsilon = 1E-8,
259 int outerTangents(
const QgsCircle &other,
284 int innerTangents(
const QgsCircle &other,
315 mSemiMajorAxis = std::fabs( radius );
325 QVector<QgsPoint> northQuadrant() const
SIP_FACTORY;
334 bool contains( const
QgsPoint &point,
double epsilon = 1E-8 ) const;
338 QString toString(
int pointPrecision = 17,
int radiusPrecision = 17,
int azimuthPrecision = 2 ) const override;
371 SIP_PYOBJECT __repr__();
373 QString
str = QStringLiteral(
"<QgsCircle: %1>" ).arg( sipCpp->toString() );
374 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.