getCircumCentroid method

Point getCircumCentroid()

Get the centroid of Outer circle

this centroid is calculated from the distance to the vertices or the polygon.

Implementation

Point getCircumCentroid() {
  final n = vertices.length;

  var center = vertices.reduce((c, n) => Point((c.x + n.x), (c.y + n.y)));

  return Point((center.x / n), (center.y / n));
}