Require that a circle c contains polygon p with optional margin padding.

  • Parameters

    • c: Vec2

      Center of c

    • r: Num

      Radius of c

    • pts: Vec2[]

      List of points for polygon p

    • padding: Num = 0

      Margin between the polygon and the point (default: 0)

    Returns Num