getCircumCircle method

Circle getCircumCircle(
  1. List<Point> list
)

Get the outer circle

formed by the outer centroid of the polygon and its radius

Implementation

Circle getCircumCircle(List<Point> list) {
  assert(list.length >= 3);
  final centroid = getCircumCentroid();

  final radius = centroid.distanceTo(list.first);
  return Circle(radius: radius, center: centroid);
}