18#ifndef QGSREGULARPOLYGON_H
19#define QGSREGULARPOLYGON_H
152 void setNumberSides(
unsigned int numberSides )
SIP_HOLDGIL;
195 QString toString(
int pointPrecision = 17,
int radiusPrecision = 17,
int anglePrecision = 2 ) const;
228 unsigned int mNumberSides = 0;
229 double mRadius = 0.0;
234 double apothemToRadius(
double apothem,
unsigned int numberSides ) const;
239 double interiorAngle(
unsigned int nbSides ) const;
244 double centralAngle(
unsigned int nbSides ) const;
Line string geometry type, with support for z-dimension and m-values.
Point geometry type, with support for z-dimension and m-values.
Regular Polygon geometry type.
QgsRegularPolygon()=default
Constructor for QgsRegularPolygon.
QgsPoint firstVertex() const
Returns the first vertex (corner) of the regular polygon.
ConstructionOption
A regular polygon can be constructed inscribed in a circle or circumscribed about a circle.
@ InscribedCircle
Inscribed in a circle (the radius is the distance between the center and vertices)
double radius() const
Returns the radius.
unsigned int numberSides() const
Returns the number of sides of the regular polygon.
double apothem() const
Returns the apothem of the regular polygon.
QVector< QgsPoint > QgsPointSequence