Function packEnclose

  • Computes the smallest circle that encloses the specified array of circles, each of which must have a circle.r property specifying the circle’s radius, and circle.x and circle.y properties specifying the circle’s center. The enclosing circle is computed using the Matoušek-Sharir-Welzl algorithm. (See also Apollonius’ Problem.)

    Type Parameters

    Parameters

    • circles: Datum[]

      The specified array of circles to pack.

    Returns PackCircle