centroid property

Point<double> get centroid

Centroid (average) point. Is often a good enough approximation for true centroid of a shape

Implementation

Point<double> get centroid => edges.map((e) => e.start).centroid;