GeoStar class

The GeoStar class defines a star pattern with n-leaves. The class may be used to calculate coordinates and paths of a polygon.

Constructors

GeoStar(int sides)
Creates a new instance of GeoStar with n-sides

Properties

halfInteriorAngle GeoAngle
latefinal
hashCode int
The hash code for this object.
no setterinherited
interiorAngle GeoAngle
latefinal
internalAngle GeoAngle
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sides int
final

Methods

getCoordinates({required GeoAngle startAngle, bool clockwise = false, required Size size, double indentSideFactor = 0.5, BoxFit boxFit = BoxFit.none}) List<GeoCoordinate2D>
Get list of coordinates starting at angle startAngle inside a rectangle defined by size. For regular n-sided star, make sure size defines a square with equal dimensions. Note: Depending on resolution, a rectangle may be defined to create the visual appearance of a regular polygon. Angle startAngle is defined as start from east direction, and moving counter-clockwise (towards north, west, then south)
getPath({required GeoAngle startAngle, double indentSideFactor = 0.5, bool clockwise = false, required Size size, BoxFit boxFit = BoxFit.none, double cornerRadius = 0}) Path
Get Path for star transformed based on start angle startAngle, side indent factor indentSideFactor, size of drawing area, stretched based on boxFit with corners rounded with specified cornerRadius.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited