18#ifndef QGSREGULARPOLYGON_H
19#define QGSREGULARPOLYGON_H
151 void setNumberSides(
unsigned int numberSides )
SIP_HOLDGIL;
194 QString toString(
int pointPrecision = 17,
int radiusPrecision = 17,
int anglePrecision = 2 ) const;
227 unsigned int mNumberSides = 0;
228 double mRadius = 0.0;
233 double apothemToRadius(
double apothem,
unsigned int numberSides ) const;
238 double interiorAngle(
unsigned int nbSides ) const;
243 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