GeoPolygon constructor
GeoPolygon(
- int sides
Creates a new instance of GeoPolygon with n-sides
Implementation
GeoPolygon(this.sides) : assert(sides >= 3) {
interiorAngle = GeoAngle(degree: 360 / sides);
internalAngle = GeoAngle(degree: 180 - 360 / sides);
}