GeoStar constructor

GeoStar(
  1. int sides
)

Creates a new instance of GeoStar with n-sides

Implementation

GeoStar(this.sides) : assert(sides >= 3) {
  interiorAngle = GeoAngle(degree: 360 / sides);
  halfInteriorAngle = GeoAngle(degree: 180 / sides);
  internalAngle = GeoAngle(degree: 180 - 360 / sides);
}